joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0xd], 0x642e6c6c
mov word [ebp - 0xf], 0x6474
mov word [ebp - 8], 0x6c
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 9], 0x6c
mov dword [ebp - 0x24], 0x6554744e
mov dword [ebp - 0x1b], 0x72506574
mov dword [ebp - 0x15], 0x737365
mov dword [ebp - 0x20], 0x6e696d72
mov byte [ebp - 0x1c], 0x61
mov word [ebp - 0x17], 0x636f
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10021ce7
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100b2840], eax
test eax, eax
je 0x10021ce7
push esi
push edi
call eax
mov ecx, 1
test eax, eax
cmove esi, ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
Function at 0x100220c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100833f8
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x100af440]
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 - 4], 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x17], 0x6c6c64
mov dword [ebp - 0x1b], 0x2e32336c
mov dword [ebp - 0x1f], 0x656e7265
mov byte [ebp - 0x20], 0x4b
mov dword [ebp - 0x26], 0x747865
mov word [ebp - 0x29], 0x3233
mov dword [ebp - 0x2e], 0x7365636f
mov byte [ebp - 0x2a], 0x73
mov byte [ebp - 0x27], 0x4e
mov word [ebp - 0x30], 0x7250
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x10022158
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x10022167
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.1000c400
xor eax, eax
jmp 0x100221f3
push 0
push 2
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100221de
lea eax, [ebp - 0x158]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x100221d7
nop
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp + 8]
call fcn.1000ce50
push eax
call fcn.10061f0f
add esp, 8
test eax, eax
je 0x100221cd
lea eax, [ebp - 0x158]
push eax
push esi
call edi
cmp eax, 1
je 0x100221a0
jmp 0x100221d7
mov dword [ebp - 0x15c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.1000c400
mov eax, dword [ebp - 0x15c]
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.10061e3f
mov esp, ebp
pop ebp
ret
Function at 0x10022210
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083448
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x100af440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
call fcn.1000c2e0
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.10012f50
push 0x40
lea eax, [ebp - 0x74]
push 0
push eax
mov dword [ebp - 0x78], 0x44
call fcn.10064860
add esp, 0x1c
mov eax, 1
push 0x10099dc5
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.1000c340
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.1000ced0
push eax
lea ecx, [ebp - 0x10]
call fcn.1000ceb0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10022305
push 0x3e8
call edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x30]
mov dword [ecx], eax
call esi
push dword [ebp - 0x34]
call esi
jmp 0x10022310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
xor esi, esi
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.1000c300
call fcn.100220c0
add esp, 4
test eax, eax
jne 0x10022337
push 0xc8
call edi
inc esi
cmp esi, 0xa
jl 0x10022312
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.1000c300
call fcn.100220c0
add esp, 4
test eax, eax
jne 0x10022361
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, 5
jl 0x100222b2
jmp 0x10022368
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x20]
call fcn.1000c400
lea ecx, [ebp - 0x10]
call fcn.1000c400
lea ecx, [ebp + 8]
call fcn.1000c400
lea ecx, [ebp + 0xc]
call fcn.1000c400
lea ecx, [ebp + 0x10]
call fcn.1000c400
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10023820
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10023873
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1002386d
shr eax, 8
cmp al, 2
jne 0x1002386d
call fcn.10028790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.10061e3f
mov esp, ebp
pop ebp
ret

Function at 0x10029670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002968e
cmp dword [esi + 0x6c], 0
je 0x1002968e
push 2
push 3
push esi
call fcn.10040180
add esp, 0xc
push dword [ebp + 0xc]
call fcn.10038c10
add esp, 4
test esi, esi
je 0x100296ae
cmp dword [esi + 0x6c], 0
je 0x100296ae
push 3
push esi
call fcn.100401c0
add esp, 8
pop esi
pop ebp
ret
Function at 0x10033df0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
mov esi, dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10034110
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x10033e74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10033e4c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
call fcn.10042550
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10033a50
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x47e4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x470]
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ecx + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
mov dword [ebp + 8], edx
je 0x100341c8
cmp dword [ebx + ecx*4 + 0x1c0], 0x10033d40
jne 0x100341c8
cmp dword [esi], 0
je 0x1003415a
test edi, edi
je 0x100341c8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10033060
add esp, 0x14
cmp eax, 0xffffffff
je 0x100341c8
test al, 1
je 0x100341c8
cmp dword [esi], 0
jne 0x100341af
mov eax, dword [ebx]
mov eax, dword [eax + 0x388]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x100341af
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100341c8
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10034350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x10034379
push dword [esi + 0x16c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x100343af
push dword [esi + 0x168]
lea eax, [eax + eax*2]
push 1
add eax, 0x100925a8
push 2
push eax
call fcn.10066c0a
push dword [esi + 0x168]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10066c0a
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10034b20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x10034b40
push eax
call fcn.1002a080
add esp, 4
test eax, eax
jne 0x10034b60
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x10034b3c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10034b60
pop ebp
ret
mov eax, 1
pop ebp
ret

Function at 0x10034b70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b0c60]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10034bc1
push 3
push 2
push eax
push 6
call fcn.100419b0
add esp, 0x10
test eax, eax
je 0x10034bb5
mov dword [0x100b0c60], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100b0c60], 1
jmp 0x10034bc6
cmp eax, 2
je 0x10034c06
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10034bed
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10034c06
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x10034c10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x10034de9
cmp dword [ebx + 0x3c8], 0
push esi
jne 0x10034ddf
cmp dword [ebx + 0x438], 0
jne 0x10034ddf
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10034cae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10042550
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.10033a50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x108], 0x80
call fcn.10064860
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10034d17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10042550
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.10033a50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10035af0
add esp, 0xc
test eax, eax
jne 0x10034d75
call fcn.100660bc
mov esi, eax
call fcn.100660bc
push dword [esi]
mov edi, eax
push ebx
call fcn.10042550
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10033a50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
movsw word es:[edi], word [esi]
call fcn.10035af0
add esp, 0xc
test eax, eax
jne 0x10034ddf
call fcn.100660bc
mov esi, eax
call fcn.100660bc
push dword [esi]
mov edi, eax
push ebx
call fcn.10042550
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10033a50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10034e00
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
Function at 0x10034fb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10034ff8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10042550
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100339d0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100339d0
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x10035140
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [esi + 0x574], eax
push edi
mov edi, dword [ebp + 0xc]
setne al
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1003519d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100339d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
push dword [esi + 0x578]
mov dword [ebp - 0x10], 1
call fcn.1003ece0
imul eax, eax, 0x3e8
push dword [esi + 0x57c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.1003ece0
imul eax, eax, 0x3e8
add esp, 8
mov dword [ebp - 0x14], eax
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1003520d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.100339d0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
Function at 0x10041b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10041b70
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x100a7410
push esi
mov dword [ebp - 8], ebx
call fcn.10066c90
add esp, 8
test eax, eax
je 0x10041bbc
test ebx, ebx
je 0x10041bac
push 8
push 0
push esi
call ebx
pop esi
pop ebx
mov edi, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebx
mov edi, eax
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10041be5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10041be5
push 0x800
push 0
push esi
call ebx
pop esi
pop ebx
mov edi, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10041c8f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041c01
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10041c85
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10041c85
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041c32
mov ax, word [0x100a7424]
sub ecx, edx
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041c50
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x10041c60
mov eax, dword [ebp - 8]
test eax, eax
je 0x10041c7c
push 8
push 0
push ebx
call eax
jmp 0x10041c83
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100a4004]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10041ce0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10041e67
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x10041e53
push esi
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x10041de4
cmp dword [edi + 0x18], 0
je 0x10041de4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10041de4
cmp eax, 0x10
jb 0x10041de4
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x10041e48
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x10041e37
mov ecx, dword [edi + 0x18]
movq xmm0, qword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10041dd2
push eax
call dword [0x100a400c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x10041e1d
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10041de1
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10041d20
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x10041e01
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x10041e4f
push ebx
call fcn.10041ca0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x100a4004]
push esi
call dword [0x100a4004]
add esp, 8
jmp 0x10041df2
push esi
mov edi, 8
call dword [0x100a4004]
add esp, 4
jmp 0x10041df2
mov edi, 8
jmp 0x10041df2
test ebx, ebx
jne 0x10041e5f
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100430a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.10064274
add esp, 0x18
test eax, eax
je 0x100430c2
cmp eax, 0xffffffff
jne 0x100430c4
xor eax, eax
pop ebp
ret
Function at 0x10043620
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10043662
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
jne 0x1004366b
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100451f0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10045222
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x10045a20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10045a6d
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10033a50
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10045a95
shr eax, 8
test al, al
jne 0x10045a95
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10033a50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.10061e3f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
push 0
mov byte [ebp + 0xa], al
push 3
lea eax, [ebp + 8]
push eax
push dword [esi + 0x1a8]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10046028
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100aa358
push edi
call fcn.10033a50
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x100aa374
push dword [esi]
call fcn.10045e80
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret