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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jbe 0x42fd6d
push ebx
push esi
mov esi, dword [edi + 0x34]
mov edx, edi
call fcn.0042fb1d
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x48]
lea edx, [ecx + eax]
movzx eax, byte [edx]
movzx esi, byte [edx + 1]
shl eax, 5
xor eax, esi
movzx esi, byte [edx + 2]
mov ebx, dword [edi + 0x50]
shl eax, 5
xor eax, esi
mov esi, dword [edi + 0x4c]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
shl eax, 2
add esi, eax
mov dword [ebp - 4], esi
mov esi, dword [esi]
mov dword [ebx + ecx*4], esi
mov esi, dword [ebp - 4]
mov dword [esi], ecx
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4], 0x801
mov esi, dword [edi + 0x58]
inc dword [eax + esi]
movzx eax, word [edx]
mov edx, dword [edi + 0x5c]
mov dword [edx + eax*4], ecx
mov eax, edi
call fcn.0042fc80
dec dword [ebp + 8]
jne 0x42fcf8
pop esi
pop ebx
leave
ret 4

Function at 0x43052c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
cmp ecx, 0xffffffff
je 0x430552
xor edx, edx
mov eax, ecx
mov esi, 0x3e8
div esi
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
inc ecx
neg ecx
sbb ecx, ecx
lea eax, [ebp - 8]
and ecx, eax
push ecx
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x430589
or eax, 0xffffffff
jmp 0x430597
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
pop esi
leave
ret 8

Function at 0x43059c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov ebx, ecx
cmp dword [ebp + 0xc], 0
jbe 0x4305b9
mov ecx, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043052c
jmp 0x4305c6
push 0
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4305e0
add dword [ebp + 8], eax
sub esi, eax
test esi, esi
jg 0x4305a5
xor eax, eax
test esi, esi
sete al
pop esi
pop ebx
pop ebp
ret 8
xor al, al
jmp 0x4305da

Function at 0x430613
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esp + 0xc]
sete al
ret 0xc

Function at 0x430631
Capabilities:
Connect socket

Disassembly:
movzx eax, word [edi]
push esi
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x43066e
xor eax, eax
cmp word [edi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x43066e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret
Function at 0x430672
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
rol ax, 8
movzx ebx, ax
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4306a3
or eax, 0xffffffff
jmp 0x430725
push esi
mov esi, dword [ebp + 8]
jmp 0x4306d7
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x4306c1
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.0042c0d8
mov dword [ebp - 4], eax
jmp 0x4306d4
cmp eax, 0x17
jne 0x4306d4
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.0042c0d8
mov dword [ebp - 8], eax
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x4306a9
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
or esi, 0xffffffff
cmp eax, edi
je 0x4306fb
mov edi, eax
mov word [eax + 2], bx
call fcn.00430631
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x430712
cmp esi, 0xffffffff
jne 0x430712
mov word [edi + 2], bx
call fcn.00430631
mov esi, eax
push dword [ebp - 4]
call fcn.0042c085
push dword [ebp - 8]
call fcn.0042c085
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x43072b
Capabilities:
Create udp socket

Disassembly:
cmp word [ebx], 2
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
jne 0x430742
push 0x11
push 2
push 2
call edi
mov dword [esi], eax
cmp word [ebx], 0x17
jne 0x430753
push 0x11
push 2
push 0x17
call edi
mov dword [esi + 4], eax
cmp dword [esi], 0xffffffff
pop edi
jne 0x430762
cmp dword [esi + 4], 0xffffffff
jne 0x430762
xor eax, eax
ret
xor eax, eax
inc eax
ret
Function at 0x430766
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x10
mov di, ax
pop eax
call fcn.0042c055
mov esi, eax
xor eax, eax
rol di, 8
movzx edi, di
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x43085c
lea ecx, [ebp - 0x10]
push ecx
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4307ac
xor eax, eax
jmp 0x43085e
push ebx
mov ebx, dword [ebp - 0x10]
jmp 0x4307e0
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x4307ca
push dword [ebx + 0x10]
push dword [ebx + 0x18]
call fcn.0042c0d8
mov dword [ebp - 8], eax
jmp 0x4307dd
cmp eax, 0x17
jne 0x4307dd
push dword [ebx + 0x10]
push dword [ebx + 0x18]
call fcn.0042c0d8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x4307b2
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x43080f
mov word [ebx + 2], di
call fcn.0043072b
mov byte [ebp + 0xb], al
test al, al
je 0x43080f
mov eax, ebx
mov dword [esi + 8], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x43082b
mov word [ebx + 2], di
call fcn.0043072b
mov byte [ebp - 1], al
test al, al
je 0x43082b
mov eax, ebx
mov dword [esi + 0xc], eax
cmp byte [ebp + 0xb], 0
pop ebx
jne 0x43083a
push dword [ebp - 8]
call fcn.0042c085
cmp byte [ebp - 1], 0
jne 0x430848
push dword [ebp - 0xc]
call fcn.0042c085
cmp byte [ebp + 0xb], 0
jne 0x43085c
cmp byte [ebp - 1], 0
jne 0x43085c
push esi
call fcn.0042c085
xor esi, esi
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x43091e
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x510
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
xor esi, esi
jmp 0x43099a
mov dword [ebp + 0x70], esi
cmp dword [ebp - 0x9c], esi
jbe 0x43099a
mov eax, dword [ebp + 0x70]
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, ebx
jne 0x430956
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], ecx
jmp 0x430959
mov dword [ebp + 0x6c], ebx
push esi
push 0x400
lea ecx, [ebp - 0x49c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 0x68], eax
cmp eax, 1
jl 0x4309c9
push esi
push eax
lea eax, [ebp - 0x49c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x68]
jne 0x4309c9
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0x9c]
jb 0x430940
mov eax, dword [ebp + 0x7c]
push esi
push esi
mov dword [ebp - 0x94], eax
push esi
lea eax, [ebp - 0x9c]
push eax
push esi
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], ebx
call edi
cmp eax, 1
jge 0x430935
pop edi
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x4309d2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x430a66
test eax, eax
je 0x430a09
xor edx, edx
mov ebx, 0x3e8
div ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.0042c0c1
test esi, esi
je 0x430a37
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.0042c0c1
xor eax, eax
cmp eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x430a6f
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xffffffff
je 0x430a66
xor esi, esi
push dword [ebx + esi*4]
lea eax, [ebp - 0x10c]
call fcn.00430506
test al, al
jne 0x430a90
inc esi
cmp esi, 1
jb 0x430a76
jmp 0x430a66
mov eax, dword [ebx + esi*4]
jmp 0x430a69

Function at 0x430bb2
Capabilities:
Create udp socket

Disassembly:
movzx eax, word [esi]
push edi
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x430bef
xor eax, eax
cmp word [esi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x430bef
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov eax, edi
pop edi
ret

Function at 0x430ede
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x430f32
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x430f29
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x4315d2
Capabilities:
Get common file path

Disassembly:
push edi
xor edi, edi
call fcn.004314f3
test al, al
je 0x4316c3
push esi
mov eax, 0x950
call fcn.0042c055
mov esi, eax
test esi, esi
je 0x4316bd
push dword [esp + 0xc]
lea eax, [esi + 0x53e]
push eax
xor eax, eax
call fcn.00433982
test al, al
je 0x4316b7
lea eax, [esi + 0x746]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
setne al
test al, al
je 0x4316b7
mov ecx, closesocket
mov dword [esi + 0x14], ecx
lea eax, [esi + 0x10]
mov dword [eax], ecx
xor ecx, ecx
inc ecx
push 0xc
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
push 0x407d9c
lea ecx, [esi + 0x132]
push ecx
call fcn.0042c0c1
push 2
push 0x407d88
lea ecx, [esi + 0x232]
push ecx
call fcn.0042c0c1
push esi
push eax
push 0x4313dd
push 0x4313a5
push 0x431359
push fcn.00431330
push 0x4312e8
push 0x4312b0
push fcn.0043127b
push fcn.004310ef
push fcn.004310dc
lea eax, [esi + 4]
push 0x43145e
push eax
call dword [0x4367d8]
add esp, 0x34
mov dword [esi], eax
test eax, eax
je 0x4316b7
mov edi, esi
jmp 0x4316c2
push esi
call fcn.0042c085
call fcn.004315b1
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x4318c9
Capabilities:
Create thread

Disassembly:
cmp byte [esi], 0x40
jb 0x4318dd
push 0x9b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x43190b
cmp dword [esp + 8], 0
je 0x431909
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4318d9
movzx ecx, byte [esi]
mov dword [esi + ecx*4 + 4], eax
inc byte [esi]
mov al, 1
ret 0xc

Function at 0x431931
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43196a
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.00431a59
mov ebx, eax
jmp 0x43196d
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x4319de
test bl, 1
jne 0x4319de
cmp dword [ebp + 8], 1
je 0x431983
cmp dword [ebp + 8], 2
jne 0x4319de
test ebx, ebx
jne 0x43198e
xor eax, eax
mov word [edi], ax
jmp 0x4319da
shr ebx, 1
lea eax, [ebx - 1]
cmp word [edi + eax*2], 0
jne 0x43199d
dec ebx
jmp 0x4319ab
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x4319de
xor ecx, ecx
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x4319da
cmp dword [ebp + 8], 2
jne 0x4319da
push edi
call fcn.0042c441
mov esi, eax
test esi, esi
je 0x4319d1
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4319d4
or ebx, 0xffffffff
push esi
call fcn.0042c085
mov eax, ebx
jmp 0x4319e1
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
Function at 0x431a8c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov eax, reloc.WS2_32.dll_accept
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x431ad9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x431ad0
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 0x14

Function at 0x431ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
or dword [ebp - 8], 0xffffffff
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x431b54
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x431b1c
mov dword [ebp - 8], edi
jmp 0x431b54
push ebx
add eax, 4
call fcn.0042c055
mov ebx, eax
cmp ebx, edi
je 0x431b53
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x431b4d
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x431b53
push ebx
call fcn.0042c085
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x431bde
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
movzx ecx, cl
push edi
movzx eax, al
push ecx
call fcn.0042d7a9
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.0042d75d
mov ebx, 0x407ddc
test eax, 0x100
je 0x431c15
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x407df0
jmp 0x431c1f
mov dword [ebp - 0x1c], 0x407df0
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp esi, edi
jbe 0x431ccd
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 2
jne 0x431c64
call fcn.0042d75d
test eax, 0x100
je 0x431c56
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x407df0
jmp 0x431c60
mov dword [ebp - 0x1c], 0x407df0
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esi, dword [ebp + eax*4 - 0x1c]
xor eax, eax
cmp esi, ebx
setne al
dec eax
and eax, 0xd
add eax, 6
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x431ca6
mov eax, edi
sub eax, dword [ebp - 8]
cmp eax, 1
jbe 0x431ca6
call fcn.0042d75d
mov ecx, eax
mov eax, 0x101
and ecx, eax
cmp ecx, eax
jne 0x431ca6
push 0x20
pop eax
mov dword [ebp - 8], edi
jmp 0x431cb6
mov eax, dword [ebp - 0x14]
dec eax
push 0
call fcn.0042d7a9
movsx ax, byte [eax + esi]
mov ecx, dword [ebp + 0xc]
mov word [ecx + edi*2], ax
inc edi
inc dword [ebp - 4]
cmp edi, dword [ebp - 0xc]
jb 0x431c38
mov esi, dword [ebp - 0xc]
test byte [ebp + 8], 4
je 0x431cec
test esi, esi
je 0x431cec
mov edi, dword [ebp + 0xc]
lea eax, [edi + esi*2 - 2]
cmp word [eax], 0x20
jne 0x431cef
sub eax, 2
dec esi
jne 0x431cde
jmp 0x431cef
mov edi, dword [ebp + 0xc]
xor eax, eax
test byte [ebp + 8], 2
mov word [edi + esi*2], ax
je 0x431d08
movzx eax, word [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov word [edi], ax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x431d41
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov cl, 4
call fcn.00431bde
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
call fcn.00433982
test al, al
je 0x431d9a
cmp dword [ebp + 0x14], 0
je 0x431d8c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x431d9a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431da7
inc esi
cmp esi, 0x64
jb 0x431d4d
xor al, al
pop esi
leave
ret 0x14
mov al, 1
jmp 0x431da2
Function at 0x431e34
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2d4
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push 0x24
push ebx
mov byte [ebp + 0x73], bl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x431ed2
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x260]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
jmp 0x431e9b
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x431ed2
lea eax, [ebp - 0x260]
push eax
call esi
push 0x64
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test eax, eax
je 0x431e74
cmp word [ebp - 0x44], 0x7b
jne 0x431ed2
push dword [ebp + 0x7c]
xor eax, eax
mov word [ebp + 8], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x431ed2
mov byte [ebp + 0x73], 1
jmp 0x431edd
push 0x10
push ebx
push dword [ebp + 0x7c]
call fcn.0042c138
mov al, byte [ebp + 0x73]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x431f9e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x432133
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x43212a
cmp dword [ebp - 0x238], ebx
jbe 0x43210c
push dword [ebp - 0x238]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x43210c
mov edi, 0x208
push edi
lea ecx, [ebp - 0x650]
push ecx
push eax
call fcn.0042e93f
cmp al, 1
jne 0x432101
lea eax, [ebp - 0x650]
push eax
call fcn.0042cded
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x43206b
push edi
lea eax, [ebp - 0x448]
push eax
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x650]
push eax
call fcn.0042e82d
test al, al
je 0x43206b
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x448]
call fcn.0042d58d
test al, al
jne 0x43206d
xor ebx, ebx
cmp dword [ebp + 0x10], 0
je 0x4320a4
push edi
lea eax, [ebp - 0x448]
push eax
push 3
lea eax, [ebp - 0x650]
push eax
call fcn.0042e82d
test al, al
je 0x4320a4
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x448]
call fcn.0042d58d
test al, al
je 0x4320a4
xor edi, edi
inc edi
jmp 0x4320a6
xor edi, edi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4320c2
test esi, esi
je 0x4320c2
lea edx, [esi + 2]
call fcn.0042d58d
test al, al
je 0x4320c2
xor eax, eax
inc eax
jmp 0x4320c4
xor eax, eax
cmp dword [ebp + 0x14], 1
jne 0x4320e6
cmp dword [ebp + 0xc], 0
je 0x4320d4
test ebx, ebx
je 0x432101
cmp dword [ebp + 0x10], 0
je 0x4320de
test edi, edi
je 0x432101
cmp dword [ebp + 8], 0
je 0x4320f8
jmp 0x4320f4
cmp dword [ebp + 0x14], 0
jne 0x432101
test ebx, ebx
jne 0x4320f8
test edi, edi
jne 0x4320f8
test eax, eax
je 0x432101
mov eax, dword [ebp - 0x238]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x43212a
cmp dword [ebp - 4], ebx
je 0x431fe6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x432522
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov eax, esi
mov byte [ebp - 2], 0
call fcn.004322c2
push 0
push 1
mov edi, eax
lea eax, [ebp - 1]
push eax
push esi
or ebx, 0xffffffff
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x432555
xor al, al
jmp 0x4325cb
cmp byte [ebp - 1], 0xe9
jne 0x43257e
cmp edi, 0x1e
jb 0x4325c8
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push ebx
call edi
test eax, eax
je 0x4325c8
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffb
jmp 0x4325a5
cmp byte [ebp - 1], 0x68
jne 0x4325c8
cmp edi, 0x1e
jb 0x4325c8
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push ebx
call edi
test eax, eax
je 0x4325c8
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffa
push 0
push eax
push dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4325bb
mov byte [ebp - 2], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x1e
push esi
push ebx
call edi
mov al, byte [ebp - 2]
pop edi
pop ebx
leave
ret 8

Function at 0x4326c6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x50]
push ebx
push edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4326f3
xor eax, eax
jmp 0x4327c4
push 0x40
push 0x3000
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
je 0x4327c1
push ebx
push edi
call fcn.0042c0d8
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x4327aa
cmp dword [esi + 0xa4], ecx
jbe 0x43279e
mov eax, dword [esi + 0xa0]
cmp eax, ecx
jbe 0x43279e
mov esi, dword [esi + 0x34]
mov edx, dword [ebp - 8]
sub edi, esi
sub edx, esi
mov dword [ebp - 0x10], edi
add eax, ebx
jmp 0x432783
mov esi, dword [eax + 4]
cmp esi, 8
jb 0x43277e
add esi, 0xfffffff8
shr esi, 1
mov dword [ebp - 0xc], ecx
je 0x43277e
mov ecx, dword [ebp - 0xc]
movzx ecx, word [eax + ecx*2 + 8]
test cx, cx
je 0x432776
and ecx, 0xfff
add ecx, dword [eax]
mov edi, edx
sub edi, dword [ebp - 0x10]
add dword [ecx + ebx], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jb 0x432759
add eax, dword [eax + 4]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x432747
push ecx
push dword [ebp - 0x14]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne byte [ebp - 1]
push ebx
call fcn.0042c085
cmp byte [ebp - 1], 0
jne 0x4327c1
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4