joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001cd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000adcd
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1bc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x1bc]
cmp dword [edx + 0xc], 0xffffffff
jne 0x10001d5c
mov byte [ebp - 0x1b5], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003070
mov al, byte [ebp - 0x1b5]
jmp 0x10001e37
push 4
call fcn.10009308
add esp, 4
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c0]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x10]
mov dword [eax], 0
mov ecx, 2
mov word [ebp - 0x24], cx
movzx edx, word [ebp + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.10003020
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0xffffffff
jne 0x10001dfa
mov byte [ebp - 0x1b6], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003070
mov al, byte [ebp - 0x1b6]
jmp 0x10001e37
mov dword [ebp - 0x14], 1
push 4
lea ecx, [ebp - 0x14]
push ecx
push 1
push 6
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x1b7], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003070
mov al, byte [ebp - 0x1b7]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100092fa
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x100070b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000b0dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.10001a50
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.10008370
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x100083d0
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.10004580
push eax
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x1000713c
lea ecx, [ebp - 0x14]
call fcn.10007c40
jmp 0x1000714e
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10007ca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100092fa
mov esp, ebp
pop ebp
ret 8

Function at 0x100071f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000b11d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.10001a50
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.10008480
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x100084e0
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.10004580
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10007278
lea ecx, [ebp - 0x14]
call fcn.10007c40
jmp 0x1000728a
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10007c60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100092fa
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000b39e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.10001a50
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.10001870
mov byte [ebp - 4], 1
push str..dll
lea ecx, [ebp - 0x74]
call fcn.10002300
mov ecx, eax
call fcn.10001fb0
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x98]
call fcn.10001540
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
push eax
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.10004800
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.10003070
lea ecx, [ebp - 0x34]
call fcn.10003020
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1000a69a
push 0x1000c240
lea ecx, [ebp - 0x34]
call fcn.10003020
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x1000a69a
lea ecx, [ebp - 0x1c]
call fcn.10002d20
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x1c]
call fcn.10002de0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push 1
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.10003020
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1000a73a
push str.process
lea ecx, [ebp - 0x80]
call fcn.100021b0
mov ecx, eax
call fcn.10001fb0
push eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x1000e408
call fcn.10002bf0
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x1000e408
call fcn.10002bf0
cmp dword [eax], 0
je 0x1000a704
mov byte [ebp - 0x39], 1
jmp 0x1000a708
mov byte [ebp - 0x39], 0
mov al, byte [ebp - 0x39]
mov byte [ebp - 0x3a], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10003070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10002e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001eb0
mov al, byte [ebp - 0x3a]
jmp 0x1000a768
mov byte [ebp - 0x3b], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10003070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10002e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001eb0
mov al, byte [ebp - 0x3b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100092fa
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4017de
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x406ea8
call fcn.00402470
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
and dword [ebp - 0x18], 0
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
movzx edx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x18], eax
jge 0x401925
mov eax, dword [ebp - 0x14]
push 0x407740
cmp dword [eax + 0x10], 0
jne 0x401873
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x36
call fcn.0040248f
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x40186d
mov esi, dword [ebp - 0x14]
push 4
push 0x1000
push edi
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.00402810
add esp, 0xc
mov eax, 0x401912
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call fcn.0040248f
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, 0x4018ad
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40735f
pop dword [ebp - 0x3c]
mov eax, 0x4eac1924
sub eax, 0x4e6ba5c5
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3e6ea
push 0
mov eax, 0xa8df71d9
add eax, 0x5762e03f
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xb4a76854
add ecx, 0x4b58e262
xor edx, edx
add edx, eax
mov esi, 0x3118d05
sub esi, 0x2ce3905
add esi, dword [ebp - 0x3c]
mov ebx, 0xf61bbf14
add dword [ebp - 0x20], 0xf0a9f0c5
mov edi, dword [esi]
sub dword [ebp - 0x20], 0x351f0193
xor edi, ebx
add dword [ebp - 0x28], ebx
mov dword [edx], edi
sub dword [ebp - 0x1c], 0x13aa0811
add edx, 4
add esi, 0xb1ef8213
add esi, 0x4e107df1
loop 0x4073ba
add eax, 0x6fa326e4
sub eax, 0x6fa20939
mov ebx, eax
add eax, 0x59c83671
add eax, 0xa637c994
mov ecx, 0xb5e8f7e5
sub ecx, 0xb5a8f7e5
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x1000e521
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x1001e2c0]
mov edx, dword [0x1001e29c]
mov ecx, dword [0x1001e2e4]
sub eax, edx
mov dword [0x1001e2ac], eax
mov eax, dword [0x1001e2cc]
lea edx, [eax + ecx]
test edx, edx
je 0x1000e550
sub eax, dword [0x1001e2a0]
mov dword [0x1001e290], eax
mov eax, dword [0x1001e2bc]
mov ecx, dword [0x1001e2a4]
Function at 0x4030b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x41314c]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x412018], 0
jne 0x40310f
mov eax, dword [0x414a04]
call fcn.0040471c
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x412099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x412018], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x3c], 0x3c
lea edx, [ebp - 0x3c]
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [ebp - 0x23], 0
mov dword [ebp - 0x38], 1
test bl, bl
je 0x403164
and dword [ebp - 0x34], 0xbfffffff
or dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 0xa0
or dword [ebp - 0x38], 0x40000000
lea ecx, [ebp - 0x3c]
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x4031b8
or dword [ebp - 0x34], 0x40000000
and dword [ebp - 0x34], 0xfffffffe
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4120c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403ea4
Capabilities:
Hide graphical window

Disassembly:
mov dword [0x41315c], 1
cmp dword [0x41314c], 0
je 0x403ecf
mov eax, 0x7d
call fcn.00402c0c
push eax
push 1
push dword [0x41314c]
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x413160], edx
mov dword [0x413164], 1
cmp dword [0x41314c], 0
je 0x403f2d
push 1
push dword [0x41314c]
call sub.USER32.DLL_ShowWindow
cmp dword [0x412054], 0
jne 0x403f24
cmp byte [0x412018], 0
jne 0x403f24
push 0
push 1
push 0x111
push dword [0x41314c]
call sub.USER32.DLL_SendMessageA
jmp 0x403f24
call fcn.00402c88
cmp dword [0x413154], 2
jne 0x403f1f
cmp byte [0x4128c0], 0
je 0x403f3b
call fcn.00402969
ret
Function at 0x401440
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x403a67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [esp + 8], 0
push 0x407340
lea ecx, [esp + 4]
mov dword [esp + 0x18], 1
call fcn.0040339c
mov eax, dword [esp + 0x20]
mov byte [esp + 0x14], 2
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4014b7
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x4014b7
push 4
lea edx, [esp + 8]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator
push esi
mov esi, dword [esp + 0x20]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x401500
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x64
lea eax, [esp]
push ebx
push 0x64
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 4]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
je 0x401554
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x401554
push esi
push edi
mov edi, dword [esp + 0x74]
xor esi, esi
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
mov eax, dword [edi + 8]
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [ebx + 0xc]
add esi, 4
mov eax, dword [ecx + esi]
test eax, eax
jne 0x401531
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x401560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403ac7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov dword [esp + 0x18], 0
push 0x407340
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 1
call fcn.0040339c
push 0
push 0
push 0
push 0
push 1
push str.HttpClient
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CInternetSession::CInternetSession
push str.http:__
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.0040339c
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x3c], 4
call fcn.00403408
mov ecx, dword [esp + 0xc]
push 0
push 0
push 1
push 1
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CInternetSession::OpenURL
mov esi, eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [esp + 0x10], 0xc8
jne 0x40167e
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 5
call dword [eax + 0x60]
test eax, eax
je 0x401667
lea edx, [esp + 4]
push 0x40706c
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 6
call fcn.00403408
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
lea eax, [esp + 4]
push eax
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jne 0x401626
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 4]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
test esi, esi
je 0x401692
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CInternetSession::Close
mov esi, dword [esp + 0x40]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004033ea
lea ecx, [esp + 8]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x402608
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x403ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x407170
call fcn.0040339c
lea eax, [esi + 0x104]
push eax
call fcn.00402ed0
add esp, 8
cmp eax, 0xffffffff
jne 0x40275e
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0
push ecx
push 0x3ea
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::GetWindowTextA
push str.___TS__tomcat6
lea ecx, [esp + 0x10]
call fcn.0040339c
push str.tomcat5.exe
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x402697
push 0x407150
push 0x40714c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x20]
push 0
push 0x407340
push edx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [esi + 0x164]
lea edx, [esp + 0x18]
inc edi
push 0xa
mov eax, edi
push edx
push eax
mov dword [esi + 0x164], edi
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push 0x3ed
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x10]
push ecx
call fcn.00402fc0
add esp, 4
lea edi, [esi + 0x168]
push eax
mov ecx, edi
mov byte [esp + 0x38], 2
call fcn.00403408
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
push 0x40706c
mov ecx, edi
call fcn.004033b4
mov edi, dword [edi]
mov ecx, esi
push edi
push 0x3ee
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x30
ret
Function at 0x402ae0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x278
push ebx
mov ebx, dword [esp + 0x280]
push ebp
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CStringArray::SetSize
mov ebp, dword [esp + 0x290]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetSize
push 0x407340
lea ecx, [esi + 0xe0]
call sub.MFC42.DLL_CString::operator
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], 0
push eax
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x402b5b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x278
ret 8
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402c1e
mov ecx, dword [esp + 0x64]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [esp + 0x1c]
mov esi, eax
push edx
lea eax, [esp + 0x18]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x184]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [ebp + 8]
lea edx, [esp + 0x184]
push edx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.memory:_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
lea ecx, [esp + 0x34]
push 0x28
push ecx
push esi
call sub.PSAPI.DLL_GetProcessMemoryInfo
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x5c]
inc eax
push edx
push edi
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402b76
mov esi, dword [esp + 0x18]
jmp 0x402c2c
push str.Process32First___Error_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0xa
push eax
push ebx
mov dword [esi + 0x154], ebx
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x15c]
call sub.MFC42.DLL_CString::operator
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x278
ret 8