joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409150
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x1c], eax
push esi
push edi
mov edi, dword [eax]
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x4091a5
push 0
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
test eax, eax
je 0x4091a5
mov edx, dword [ebx]
add esi, eax
cmp esi, edi
jae 0x4091ba
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x409185
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret 4
xor edi, edi
cmp edx, 0xffffffff
je 0x40928a
push edi
push 0x10
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push edx
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 4
jle 0x40928a
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x40928a
cmp eax, 0x19000
jge 0x40928a
add eax, 8
push eax
call fcn.0041e44a
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
push 0
push edi
call fcn.00420150
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
push edi
call fcn.004202f0
mov eax, dword [ebp - 0x18]
add esp, 0xc
sub eax, esi
push 0
push eax
lea eax, [edi + esi]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x409260
add esi, eax
mov eax, dword [ebp - 0x18]
cmp esi, eax
jge 0x40928a
push 0
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x409242
jns 0x40928a
push 1
push edi
call fcn.0041e43c
add esp, 8
push 0x18
call fcn.0041e44a
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4092ab
push 0x18
call fcn.0041e44a
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret 4
Function at 0x4092c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x44d010]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x409303
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x409367
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x276d
jne 0x409367
cmp byte [0x4536a8], 0
jne 0x40935d
push 0x190
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00420150
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40935d
mov byte [0x4536a8], 1
push 6
push 1
push 2
call esi
mov dword [edi], eax
push dword [ebp + 8]
mov ebx, dword [edi]
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
test eax, eax
lea eax, [esp + 0x24]
push eax
push ebx
jne 0x40941f
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
mov ebx, 0x5b4
test esi, esi
cmovne ebx, eax
jmp 0x409427
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test ebx, ebx
je 0x40944f
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x40944f
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov ecx, dword [esp + 0x1c4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret 4
Function at 0x40b430
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e40e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], ebx
call fcn.00406e10
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x18]
call fcn.00406e10
mov byte [ebp - 4], 1
lea ecx, [esi + 0x34]
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
lea eax, [ebx + 0x34]
push eax
call fcn.00406e10
lea eax, [ebx + 0x4c]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x4c]
call fcn.00406e10
mov byte [ebp - 4], 3
lea edi, [esi + 0x64]
mov dword [edi], 0
mov eax, 0x88888889
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, dword [ebx + 0x68]
sub ecx, dword [ebx + 0x64]
imul ecx
mov dword [ebp - 0x20], edi
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40b551
cmp eax, 0x2222222
ja 0x40b593
push eax
mov ecx, edi
call fcn.0040f550
mov dword [ebp - 0x34], edi
mov esi, dword [edi]
xorps xmm0, xmm0
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebx + 0x64]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
cmp edi, eax
je 0x40b548
mov ebx, eax
nop word [eax + eax]
push edi
mov ecx, esi
call fcn.0040b430
add esi, 0x78
add edi, 0x78
mov dword [ebp - 0x18], esi
cmp edi, ebx
jne 0x40b530
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x70]
mov eax, esi
mov dword [esi + 0x70], ecx
movsd xmm0, qword [ebx + 0x70]
movsd qword [esi + 0x70], xmm0
mov ecx, dword [ebx + 0x70]
mov dword [esi + 0x70], ecx
mov cl, byte [ebx + 0x70]
mov byte [esi + 0x70], cl
mov ecx, dword [ebx + 0x70]
mov dword [esi + 0x70], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret 4
call fcn.00407cd0
int3
Function at 0x40d3e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e61d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406c30
push 0xa
push str.patch.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004072d0
lea ecx, [ebp - 0x28]
call fcn.0040fb30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40d487
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
push 0
call fcn.00411980
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x40d475
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, esi
cmovae ecx, dword [ebp - 0x28]
call fcn.0040c020
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40d4bd
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d4b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4d8
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
call fcn.004267cc
int3
Function at 0x40f790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e7e7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x21c], edi
push 0x208
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0
mov dword [ebp - 0x224], edi
push eax
mov dword [ebp - 0x220], 0
call fcn.00420150
add esp, 0xc
mov ecx, edi
push 0x447ed8
call fcn.00406c30
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x21c]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x40f875
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40f875
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f857
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004071c0
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x40f886
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
Function at 0x4102a0
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e935
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x6c
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
push ecx
lea ecx, [ebp - 0x44]
movlpd qword [ebp - 0x52], xmm0
mov dword [ebp - 0x4a], 0
call fcn.00406c30
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00406c30
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040fb30
lea ecx, [ebp - 0x2c]
call fcn.0040fb30
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 2
movups xmmword [ebp - 0x7c], xmm0
xor eax, eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x78], ax
push 2
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x44]
call fcn.004072d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x410394
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41038a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104d9
push ecx
push edx
call fcn.0041e43c
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 2
movups xmmword [ebp - 0x7c], xmm0
xor eax, eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x78], ax
push 2
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.004072d0
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x410402
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4103f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104d9
push ecx
push edx
call fcn.0041e43c
add esp, 8
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x60], 2
cmovae eax, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x58], eax
mov eax, 0x2614
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmp ecx, 8
jb 0x410470
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410466
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104d9
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x4104ba
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4104b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104d9
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004267cc
int3
Function at 0x4104e0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e975
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x3a], xmm0
mov dword [ebp - 0x32], 0
call fcn.00406c30
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040fb30
xorps xmm0, xmm0
mov dword [ebp - 0x54], 2
movups xmmword [ebp - 0x64], xmm0
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x60], ax
push 2
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.004072d0
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x4105c0
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4105b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41063f
push ecx
push edx
call fcn.0041e43c
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], 3
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, 0x2614
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmp ecx, 8
jb 0x410620
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410616
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41063f
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004267cc
int3
Function at 0x410650
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x800
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x814], edx
mov byte [ebp - 0x80d], 0
mov dword [ebp - 0x808], 0
call fcn.00420150
add esp, 0xc
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x804]
push eax
push 0x800
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x448720
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410738
mov edx, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x80c]
test edx, edx
je 0x4106fe
mov ax, word [ecx + 0xa]
mov word [edx], ax
mov edx, dword [ebp - 0x818]
test edx, edx
je 0x41070f
mov ax, word [ecx + 8]
mov word [edx], ax
test ebx, ebx
je 0x41071a
mov ax, word [ecx + 0xe]
mov word [ebx], ax
test edi, edi
je 0x410725
mov ax, word [ecx + 0xc]
mov word [edi], ax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x80d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
Function at 0x411d60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eb6d
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x260], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov edi, eax
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.00420150
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x447ed8
call fcn.00406c30
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x411ee8
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x411ee5
nop
push dword [ebp - 0x250]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x234]
mov esi, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e20
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004071c0
test esi, esi
je 0x411e87
push 0x103
lea eax, [ebp - 0x234]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x411e84
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411e65
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004071c0
push esi
call ebx
push dword [ebp - 0x25c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x240]
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x250]
push eax
call dword [ebp - 0x260]
test al, al
je 0x411ee5
push 0x228
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00420150
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x411e00
push edi
call ebx
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x411f1e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411f14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411f3a
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
call fcn.004267cc
int3
Function at 0x411f40
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x44d010]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push 8
mov ebx, edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x424
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00420150
add esp, 0xc
cmp esi, 0xffffffff
je 0x411ff9
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x411ff2
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop dword [eax + eax]
push dword [esp + 0xc]
lea eax, [esp + 0x234]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call ebx
test al, al
je 0x411ff2
push 0x424
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00420150
add esp, 0xc
mov dword [esp + 0x10], 0x428
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x411fb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
Function at 0x412350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [edx]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
push edi
test eax, eax
jle 0x4123cd
cmp eax, 8
jb 0x4123cd
and eax, reloc.WS2_32.dll_getsockopt
jns 0x412381
dec eax
or eax, 0xfffffff8
inc eax
mov edi, dword [edx]
xorps xmm2, xmm2
sub edi, eax
xorps xmm1, xmm1
lea eax, [edx + 0x14]
nop
movups xmm0, xmmword [eax - 0x10]
add ecx, 8
lea eax, [eax + 0x20]
paddd xmm2, xmm0
movups xmm0, xmmword [eax - 0x20]
paddd xmm1, xmm0
cmp ecx, edi
jl 0x412390
mov eax, dword [edx]
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd dword [ebp - 8], xmm1
xor edi, edi
xor ebx, ebx
cmp ecx, eax
jge 0x41241a
sub eax, ecx
cmp eax, 2
jl 0x412406
lea eax, [edx + 8]
mov edx, dword [edx]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 2
shr edx, 1
inc edx
lea ecx, [ecx + edx*2]
nop
add edi, dword [eax - 4]
lea eax, [eax + 8]
add ebx, dword [eax - 8]
sub edx, 1
jne 0x4123f0
cmp ecx, dword [ebp - 0x14]
jge 0x412410
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx*4 + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
add ecx, eax
jmp 0x41241d
mov ecx, dword [ebp - 8]
cmp ecx, 5
jl 0x412506
push 0x40
push 0x1000
push 0x37
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov edi, ebx
test ebx, ebx
je 0x412508
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
cmp dword [eax], 0
jle 0x4124dc
add eax, 4
mov dword [ebp - 0x10], eax
nop
mov eax, dword [eax]
mov dl, al
sar eax, 0x10
mov ecx, eax
mov byte [ebp - 1], dl
sar ecx, 8
test cl, cl
je 0x4124b0
cmp al, 4
jne 0x4124f2
movzx ebx, cl
push ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
call fcn.004202f0
mov eax, dword [ebx + esi]
lea ecx, [ebx + 4]
sub eax, edi
add esp, 0xc
add eax, esi
mov dword [ebx + edi], eax
movzx ebx, byte [ebp - 1]
cmp ecx, ebx
jae 0x4124be
mov eax, ebx
sub eax, dword [ebp - 0x18]
sub eax, 4
push eax
lea eax, [ecx + esi]
push eax
lea eax, [ecx + edi]
push eax
jmp 0x4124b6
movzx ebx, dl
push ebx
push esi
push edi
call fcn.004202f0
add esp, 0xc
mov edx, dword [ebp - 8]
add edi, ebx
mov ecx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 0x10]
add esi, ebx
add eax, 4
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
cmp edx, dword [ecx]
jl 0x412460
mov ebx, dword [ebp - 0x14]
lea eax, [edi + 1]
mov byte [edi], 0xe9
sub esi, eax
sub esi, 4
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
jmp 0x4124dc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret