joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c100
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x451424]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x41c23b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41c17c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041eef0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0041b730
add esp, 0x18
jmp 0x41c244
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41c1bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041eef0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0041b730
add esp, 0x18
jmp 0x41c244
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0041c0c0
test eax, eax
jne 0x41c1fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041eef0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0041b730
add esp, 0x18
jmp 0x41c244
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0041c0c0
test eax, eax
jne 0x41c23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041eef0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0041b730
add esp, 0x18
jmp 0x41c244
push ebp
call fcn.0041c060
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402ab3
add esp, 0x10c
ret

Function at 0x41c260
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41c2a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0041eef0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0041b6a0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0041b6a0
add esp, 8
pop esi
pop ecx
ret

Function at 0x41c2c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x41c309
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x41c321
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x41c330
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x41c389
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x41c389
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x41c35c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x41c380
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41c385
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x41cb90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x41cd41
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x41cd1f
push esi
jmp 0x41cbe0
cmp dword [edi + 4], 2
jne 0x41cc98
cmp dword [edi + 0x18], ebx
je 0x41cc98
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x41cc98
cmp eax, 0x10
jb 0x41cc98
push 0x20
call dword [0x452048]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41cca5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x452048]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x41ccaf
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x41cc85
push eax
call dword [0x452054]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x41ccc3
cmp dword [esp + 0x10], ebx
jne 0x41cc8f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x41cc96
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x41cbe0
jmp 0x41ccdf
mov dword [esp + 0x14], 8
jmp 0x41ccdf
push esi
mov dword [esp + 0x18], 8
call dword [0x45204c]
add esp, 4
jmp 0x41ccdf
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x45204c]
push esi
call dword [0x45204c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x41ccef
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x41cd19
mov eax, dword [esp + 0xc]
push eax
call fcn.0041cb40
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x41cd32
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x41e450
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00404252
add esp, 0x18
test eax, eax
je 0x41e473
cmp eax, 0xffffffff
jne 0x41e475
xor eax, eax
ret
Function at 0x427de0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
jne 0x427e20
cmp ebp, ebx
jne 0x427e20
mov eax, dword [esp + 0x334]
call fcn.00427dc0
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x427e3b
mov esi, edi
call fcn.00421580
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
cmp ebx, 0xffffffff
je 0x427e6f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x228], eax
cmp ebp, 0xffffffff
je 0x427eb3
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x427e9c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x427e9c
inc eax
cmp eax, ecx
jb 0x427e91
cmp eax, ecx
jne 0x427ead
cmp ecx, 0x40
jae 0x427ead
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x427eb3
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, eax
xor eax, eax
cmp edi, eax
jle 0x427ef5
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x427eff
jne 0x427eff
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x427f69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x427f32
cmp eax, 0x2714
jne 0x427f6d
test edi, edi
jle 0x427ec4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00421580
push edx
push eax
call fcn.004215b0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x427ec4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x427f7b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x427f8a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x427fc1
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x427faf
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x427fc1
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x427ff4
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x427fe2
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x427ff4
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x428010
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00421580
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x12c]
push ecx
mov ecx, dword [esi + 0x128]
push ecx
push edx
push eax
call fcn.004215b0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x4280ca
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00427de0
add esp, 0xc
test eax, eax
jle 0x4280ed
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.0041b3d0
add esp, 0x10
cmp eax, 0x51
je 0x4280a9
test eax, eax
jne 0x4280f0
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4280d7
test eax, eax
je 0x4280ed
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.00421580
mov ecx, dword [esi + 0x12c]
push ecx
mov ecx, dword [esi + 0x128]
push ecx
push edx
push eax
call fcn.004215b0
add esp, 0x10
cmp eax, ebx
jle 0x428060
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x429870
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x42987f
jmp dword [ecx*4 + 0x4298d4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x429a60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x451424]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0040fbc7
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x429ac5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x429ac5
lea edx, [esp]
push edx
call dword [0x452054]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00402ab3
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00402ab3
add esp, 0x108
ret
jmp 0x429a60
Function at 0x429ae0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x451424]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0040fbc7
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x429ac5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x429ac5
lea edx, [esp]
push edx
call dword [0x452054]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00402ab3
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00402ab3
add esp, 0x108
ret
jmp 0x429a60

Function at 0x42c940
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x42e630
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x42e65d
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x42e646
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push ebx
push 1
push edi
call ecx
mov edi, eax
add esp, 0x10
cmp edi, ebx
jbe 0x42e692
xor edi, edi
jmp 0x42e696
cmp dword [esi + 8], 0
jne 0x42e680
mov ecx, dword [eax + 8]
push 0x443380
push ecx
call fcn.00404bc5
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x42e680
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push ebx
push 1
push edi
call fcn.00404e7c
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x42e6b3
mov eax, dword [esi + 8]
test eax, eax
je 0x42e6ad
push eax
call fcn.00405c00
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x436b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push str.CONIN_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x436bcf
or eax, 0xffffffff
jmp 0x436c62
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x436bed
push 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436c14
cmp dword [ebp - 4], 1
jne 0x436c14
movzx eax, byte [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xa
jne 0x436c41
push 0
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436c41
cmp dword [ebp - 4], 1
jne 0x436c41
movzx ecx, byte [ebp - 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0xffffffff
je 0x436c55
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x436fc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x437024
push 0
push 0
push 0x12
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x2328
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43700b
push 0x8ae
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x437770
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4377dc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x437370
push 0
push 0
call fcn.00404252
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
push 0x1388
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4377da
push str.Error_starting_SplashThread_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4377ef
push 0
push 2
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov esp, ebp
pop ebp
ret

Function at 0x437cb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
push 0x128
call fcn.0040397d
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x437ced
xor al, al
jmp 0x437d68
mov ecx, dword [ebp - 8]
mov dword [ecx], 0x128
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x437d49
mov ecx, dword [ebp - 8]
add ecx, 0x24
push ecx
call fcn.00437b10
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
add eax, 0x24
push eax
call fcn.00401020
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x437d38
mov byte [ebp - 1], 1
jmp 0x437d49
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x437d07
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403936
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x437d70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x451424]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004037a0
add esp, 0xc
mov byte [ebp - 0x230], 0
push 0x103
push 0
lea ecx, [ebp - 0x22f]
push ecx
call fcn.004037a0
add esp, 0xc
mov dword [ebp - 0x280], 0
push 0x44
push 0
lea edx, [ebp - 0x278]
push edx
call fcn.004037a0
add esp, 0xc
mov dword [ebp - 0x278], 0x44
push 0x10
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.004037a0
add esp, 0xc
mov dword [ebp - 4], 0x8000000
push str..exe
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401020
add esp, 8
mov dword [ebp - 0x118], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00403080
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x118]
push eax
call fcn.00403080
add esp, 4
sub esi, eax
push esi
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.004035b0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00403080
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.00403080
add esp, 4
sub esi, eax
mov byte [ebp + esi - 0x230], 0
mov dword [ebp - 0x114], 0
jmp 0x437e8b
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
lea eax, [ebp - 0x230]
push eax
call fcn.00403080
add esp, 4
cmp dword [ebp - 0x114], eax
jae 0x437ec3
mov ecx, dword [ebp - 0x114]
movsx edx, byte [ebp + ecx - 0x230]
cmp edx, 0x5c
jne 0x437ec1
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x27c], eax
jmp 0x437e7c
mov ecx, dword [ebp - 0x27c]
mov byte [ebp + ecx - 0x230], 0
mov edx, dword [ebp + 8]
push edx
call fcn.00403080
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x118]
push eax
call fcn.00403080
add esp, 4
sub esi, eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00403080
add esp, 4
sub esi, eax
sub esi, 1
push esi
lea edx, [ebp - 0x230]
push edx
call fcn.00403080
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 1]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.004035b0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x278]
push edx
lea eax, [ebp - 0x230]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0
jne 0x437f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.run_process_error:_d_n
call fcn.004036d4
add esp, 8
or eax, 0xffffffff
jmp 0x437f9c
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402ab3
mov esp, ebp
pop ebp
ret
Function at 0x438260
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x451424]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x438298
push str.WSAStartup_____failed_n
call fcn.004036d4
add esp, 4
jmp 0x4382a3
call fcn.00437fb0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ab3
mov esp, ebp
pop ebp
ret