joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fbe4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5986b2
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
cmp edi, ebx
jne 0x41fc32
xor eax, eax
jmp 0x41fdae
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x41fc5c
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x41fc5c
dec dword [edx]
mov edx, dword [esi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x41fdae
cmp dword [esi + 0x50], 0
je 0x41fdac
mov ecx, esi
call fcn.0042072b
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x41fc89
push dword [esi + 0x50]
push edi
call fcn.0041e3fd
test al, al
pop ecx
pop ecx
cmovne ebx, edi
jmp 0x41fdac
mov eax, dword [ebp + 8]
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
push 8
mov byte [esp + 0x2c], al
mov dword [esp + 0x44], 0xf
call fcn.00404623
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x2c]
mov edi, dword [esi]
cmovae ecx, dword [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x35]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [edi + 0x1c]
test eax, eax
js 0x41fd9f
cmp eax, 1
jg 0x41fd82
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp edi, 0x10
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x14], edx
je 0x41fd4f
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x2c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.0055c87b
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp edx, eax
jne 0x41fd9f
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x24]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x41fd7d
test edx, edx
jne 0x41fcbc
cmp dword [esp + 0x38], 0x20
jae 0x41fd9f
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.0041a538
jmp 0x41fcb8
mov ebx, dword [ebp + 8]
jmp 0x41fd9f
cmp eax, 3
jne 0x41fd9f
mov eax, dword [esp + 0x10]
push dword [eax + 0x50]
push dword [esp + 0x28]
call fcn.0041e3fd
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0040412f
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00559b09
mov esp, ebp
pop ebp
ret 4
Function at 0x4205a6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599133
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4206e0
cmp byte [ebx + 0x45], 0
je 0x4206e0
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x420606
xor al, al
jmp 0x4206e2
xor eax, eax
mov dword [esp + 0x2c], 0xf
push eax
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
call fcn.00404623
and dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42066b
dec eax
je 0x42066f
dec eax
dec eax
je 0x4206cd
xor bl, bl
jmp 0x4206cf
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4206ae
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0055c87b
add esp, 0x10
cmp esi, eax
jne 0x420667
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x4206cd
test esi, esi
jne 0x420631
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0041a538
jmp 0x420629
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040412f
mov al, bl
jmp 0x4206e2
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00559b09
mov esp, ebp
pop ebp
ret
Function at 0x421b42
Capabilities:
Resolve dns

Disassembly:
push 0x3c
mov eax, 0x5993aa
call fcn.0055da28
mov eax, ecx
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
call fcn.004136d7
xor bl, bl
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x421bdc
mov eax, dword [eax + 0xc]
and dword [ebp - 0x28], 0
cmp dword [eax], 0
je 0x421bde
inc bl
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403e94
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.00418c2e
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0040412f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0xc]
lea eax, [eax + ecx*4]
cmp dword [eax], 0
jne 0x421b85
jmp 0x421bde
xor bl, bl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
mov al, bl
call fcn.0055d9d7
ret

Function at 0x42447c
Capabilities:
Set socket configuration

Disassembly:
push 0xa8
mov eax, 0x599763
call fcn.0055da28
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x74]
xor ebx, ebx
mov dword [ebp - 0x84], ebx
call fcn.00407888
xor eax, eax
mov dword [ebp - 4], ebx
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], 1
test eax, eax
je 0x4244da
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x18], eax
jmp 0x4244e8
mov dword [ebp - 0x1c], 0x124f80
mov dword [ebp - 0x18], 0x7d0
push ebx
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
push 0xc
lea eax, [ebp - 0x80]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x98000004
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x424566
mov byte [ebp - 0x74], bl
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x9c]
call fcn.00404abc
push eax
mov edx, str.setKeepAlive_WSAIoctl_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.0040412f
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call fcn.0040412f
jmp 0x424580
mov esi, 0x5e268d
mov byte [ebp - 0x74], 1
push esi
call fcn.004035ea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004042b9
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0040d019
lea ecx, [ebp - 0x74]
call fcn.00405438
mov eax, edi
call fcn.0055d9d7
ret 4
Function at 0x42459d
Capabilities:
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x5997a4
call fcn.0055da28
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.00407888
mov dword [ebp - 4], ebx
xor eax, eax
inc ebx
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, 0x5e268d
mov byte [edi], bl
push esi
call fcn.004035ea
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.004042b9
mov eax, edi
call fcn.0055d9d7
ret 4
Function at 0x424606
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5997fd
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x8c]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov byte [esi + 0x44], bl
call fcn.00407888
push ebx
push 1
push 2
pop eax
push eax
mov dword [esp + 0xf4], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4246e4
mov byte [esp + 0x8c], bl
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x10]
call fcn.00404abc
push eax
mov edx, str.create_socket_error:
mov byte [esp + 0xec], 1
lea ecx, [esp + 0x30]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407163
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040412f
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xf0], bl
call fcn.0040412f
jmp 0x424833
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.0042447c
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xec], 2
call fcn.004086e4
lea ecx, [esp + 0x44]
mov byte [esp + 0xe8], bl
call fcn.00405438
cmp byte [esp + 0x8c], 0
je 0x424833
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.0042459d
lea ecx, [esp + 0x44]
call fcn.00405438
push 0x10
call fcn.00431c6a
pop ecx
mov ebx, eax
push 2
pop eax
mov word [ebx], ax
movzx ecx, word [esi + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x424762
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push ebx
mov dword [ebx + 4], eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4247ac
mov byte [esp + 0x8c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x2c]
call fcn.00404abc
mov byte [esp + 0xe8], 3
mov edx, str.bind_error:
jmp 0x4247e9
push 0x14
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x42482c
mov byte [esp + 0x8c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x2c]
call fcn.00404abc
mov byte [esp + 0xe8], 4
mov edx, str.listen_error:
push eax
lea ecx, [esp + 0x14]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407163
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040412f
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0xf0], 0
call fcn.0040412f
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call fcn.00431ca0
pop ecx
lea eax, [esp + 0x8c]
mov ecx, edi
push eax
call fcn.0040d019
lea ecx, [esp + 0x8c]
call fcn.00405438
mov eax, edi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00559b09
mov esp, ebp
pop ebp
ret 4
Function at 0x427fd4
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599da1
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x4c]
and dword [esp + 0x18], 0
call fcn.00407888
and dword [esp + 0xb8], 0
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4280ab
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x34]
call fcn.00404abc
push eax
mov edx, str.create_udp_socket_error:
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x20]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00407163
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.0040412f
push 0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 0
call fcn.0040412f
jmp 0x4281ca
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x94]
push 4
push eax
push 0x1002
push 0xffff
push edi
mov dword [esp + 0xa8], 0x40000
call esi
push 4
lea eax, [esp + 0x98]
push eax
push 0x1001
push 0xffff
push edi
call esi
mov esi, dword [esp + 0x14]
push 2
pop eax
mov word [esp + 0x98], ax
movzx eax, word [esi + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x9a], ax
lea eax, [esi + 0x8c]
cmp dword [eax + 0x14], 0x10
jb 0x42811d
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4281ab
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x1c]
call fcn.00404abc
push eax
mov edx, str.bind_error:
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x38]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00407163
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.0040412f
push 0
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 0
call fcn.0040412f
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4281ca
mov dword [esi + 0x28], edi
mov esi, 0x5e268d
push esi
mov byte [esp + 0x50], 1
call fcn.004035ea
pop ecx
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.004042b9
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.0040d019
lea ecx, [esp + 0x4c]
call fcn.00405438
mov eax, ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00559b09
mov esp, ebp
pop ebp
ret 4
Function at 0x42a745
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x610490]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42a7bd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push str.SeDebugPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp + 8]
neg eax
push esi
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
jmp 0x42a7bf
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.00559b09
mov esp, ebp
pop ebp
ret 4
Function at 0x42ae61
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a1db
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0x680]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x1c], ebx
mov esi, ecx
mov dword [esp + 0x18], esi
and dword [esp + 0x20], 0
lea ecx, [esp + 0x3c]
push 0x5e268d
call fcn.00403e94
xor edi, edi
xor eax, eax
mov dword [esp + 0x688], edi
mov word [esp + 0x264], ax
test ebx, ebx
je 0x42b001
lea eax, [esp + 0x264]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42b001
mov eax, dword [0x5e649c]
mov ebx, edi
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x264]
mov dword [esp + 0x54], eax
mov ax, word [0x5e64a0]
mov word [esp + 0x58], ax
mov dword [esp + 0x14], edi
mov ax, word [edi]
mov word [esp + 0x54], ax
lea eax, [esp + 0x5c]
push 0x104
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor edx, edx
test eax, eax
je 0x42afc4
lea edi, [esp + 0x5c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x42af49
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jae 0x42afc0
push edi
lea eax, [esp + 0x60]
push eax
push esi
call fcn.0055cf12
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x42afbe
lea eax, [esi + edi*2]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x474]
push 0x5e64a4
push eax
call fcn.0042bab3
add esp, 0x10
lea edx, [esp + 0x46c]
lea ecx, [esp + 0x24]
call fcn.00417df7
push eax
lea ecx, [esp + 0x40]
call fcn.00407163
xor edi, edi
lea ecx, [esp + 0x24]
push edi
push 1
call fcn.0040412f
xor edx, edx
mov edi, dword [esp + 0x14]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42afc4
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x42afe0
cmp word [edi], dx
jne 0x42af1b
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edx
mov byte [esi], dl
call fcn.00403f05
xor edi, edi
push edi
jmp 0x42b01c
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [esp + 0x3c]
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00403f05
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.0040412f
mov eax, esi
mov ecx, dword [esp + 0x680]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00559b09
mov esp, ebp
pop ebp
ret
Function at 0x42b04d
Capabilities:
Get process image filename

Disassembly:
push 0x234
mov eax, 0x59a22b
call fcn.0055da28
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x5e268d
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
call fcn.00403e94
push esi
push ebx
mov dword [ebp - 4], ebx
push 0x410
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42b0fe
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.0055dec0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x42b0f7
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x240]
call fcn.0042ae61
push eax
mov ecx, edi
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x240]
call fcn.0040412f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.0055d9d7
ret

Function at 0x42b106
Capabilities:
Enumerate processes

Disassembly:
push 0x284
mov eax, 0x59a26e
call fcn.0055da28
mov dword [ebp - 0x260], ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ecx]
push esi
push 2
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x5e268d
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00403e94
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
je 0x42b211
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x42b202
mov edx, dword [ebp - 0x254]
lea ecx, [ebp - 0x278]
call fcn.0042b04d
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407163
push esi
push 1
lea ecx, [ebp - 0x278]
call fcn.0040412f
lea edx, [ebp + 8]
lea ecx, [ebp - 0x290]
call fcn.00417e5e
mov esi, eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00417e5e
mov edx, esi
mov ecx, eax
call fcn.004076e9
xor esi, esi
lea ecx, [ebp - 0x278]
push esi
push 1
mov bl, al
call fcn.0040412f
push esi
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.0040412f
test bl, bl
je 0x42b1f4
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
call fcn.0040a6fd
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42b167
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040412f
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
call fcn.0055d9d7
ret
Function at 0x42b22d
Capabilities:
Enumerate processes

Disassembly:
push 0x27c
mov eax, 0x59a2b6
call fcn.0055da28
mov edi, ecx
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov eax, dword [edi]
mov edx, 0x5e268d
mov dword [edi + 4], eax
call fcn.004057ed
test al, al
jne 0x42b314
lea edx, [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.00417e5e
push 0
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x288], 0x22c
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42b301
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.00417df7
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00417e5e
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.004076e9
test al, al
je 0x42b2d1
lea eax, [ebp - 0x280]
mov ecx, edi
push eax
call fcn.0040a6fd
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
push 1
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.0040412f
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040412f
test esi, esi
jne 0x42b293
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040412f
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
call fcn.0055d9d7
ret

Function at 0x42b3e8
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x42b4d3
Capabilities:
Create process on windows

Disassembly:
push 0x46c
mov eax, 0x59a323
call fcn.0055da28
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor esi, esi
mov dword [ebp - 4], esi
push eax
call fcn.00403e6e
call fcn.0041e4bc
add esp, 0x18
test al, al
je 0x42b5bb
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 8]
call fcn.00417da5
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00403e6e
lea ecx, [ebp - 0x438]
call fcn.0041eea3
add esp, 0x18
lea ecx, [ebp - 0x438]
cmp dword [ebp - 0x424], 0x10
lea edx, [ebp - 0x420]
cmovae ecx, dword [ebp - 0x438]
call fcn.00417da5
lea eax, [ebp - 0x218]
mov dword [ebp - 0x474], 0x3c
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x458], 5
mov dword [ebp - 0x454], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
push 1
lea ecx, [ebp - 0x438]
call fcn.0040412f
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
call fcn.0055d9d7
ret