joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d199
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24c
mov eax, 0x591bad
call fcn.005892d1
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and dword [ebp - 0x250], 0
push 0x208
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x24c], esi
call fcn.00434140
add esp, 0xc
call fcn.0041cd9c
test al, al
je 0x42d203
pop ebp
pop ecx
push esi
push ebp
pop eax
pop esi
pop edx
push ebx
push edx
pop esi
pop edi
push ecx
pop esp
push eax
pop ebp
push eax
push ebx
push ecx
pop edi
push ebx
pop ecx
pop edx
pop ebp
push eax
push esp
pop ebx
push esi
pop esi
push edi
mov esi, dword [ebp - 0x24c]
push 0x104
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
push ebx
jmp 0x42d33f
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42d331
call fcn.0041cccd
test al, al
je 0x42d257
pop ecx
pop ecx
pop esp
pop esp
pop esi
pop edx
push esi
push ebp
pop ebp
push esi
pop esi
pop edx
push esi
pop edx
pop edi
push esi
pop ebx
pop esi
pop esi
push edx
mov esi, dword [ebp - 0x24c]
call fcn.0041cf7f
test al, al
je 0x42d27b
pop ebx
pop edx
pop ecx
push edi
push edi
pop ecx
push ebp
pop ebx
push esi
pop esp
push ebx
push edx
push edi
push ebx
push esi
pop esp
push ebp
pop eax
push ebx
push edx
pop edx
pop ebx
push esp
push ebx
push edx
pop edi
pop eax
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x42d2ab
lea eax, [ebp - 0x218]
push eax
call fcn.00443739
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403020
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0042c50b
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00402ec0
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call fcn.0042aa70
pop ecx
pop ecx
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.004032b0
mov ebx, dword [ebp - 0x254]
push 0x104
lea eax, [ebp - 0x218]
inc ebx
push eax
push ebx
push esi
mov dword [ebp - 0x254], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x42d217
call fcn.0058928c
ret
Function at 0x42df80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov byte [ebp - 1], 0
push ebx
push esi
push edi
lea ecx, [eax + 0x210]
mov dword [ebp - 0x14], eax
mov esi, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp esi, dword [eax + 0x214]
je 0x42e037
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], edi
lea ecx, [eax + 0xa8]
add eax, 0x28
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ecx
call ebx
push 0x593518
call ebx
sub edi, 0xffffff80
push edi
call ebx
push 0x593518
call ebx
push dword [ebp - 0xc]
call ebx
push 0x593518
call ebx
push dword [ebp - 8]
call ebx
push 0x593518
call ebx
push edi
push dword [ebp - 0x10]
call fcn.00443b40
mov edi, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x42e017
push edi
push dword [ebp - 0xc]
call fcn.00443b40
pop ecx
pop ecx
test eax, eax
je 0x42e033
mov eax, 0x1b0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x42e037
mov ecx, dword [ebp - 0x10]
jmp 0x42dfc7
mov byte [ebp - 1], 1
call fcn.0041cb2f
test al, al
je 0x42e05a
push ecx
pop ebp
push ecx
push ecx
pop ebx
push edx
pop edx
pop esi
push edx
push ebx
push esi
pop edx
pop eax
push edx
pop edi
pop ebp
pop ebx
push ebx
pop edx
push esi
pop eax
push ebp
push ebp
pop edx
pop ebx
push esi
call fcn.0041d093
test al, al
je 0x42e07e
push esp
push ebx
push ebp
pop edx
pop edi
push esi
pop edi
pop ebx
pop esi
push edx
push eax
push ebx
pop eax
push edx
push ebp
pop esi
push edi
push esi
push ecx
pop esp
push ecx
pop esi
push ecx
pop eax
push edi
push ebx
pop edi
cmp byte [ebp - 1], 0
jne 0x42e0a5
mov esi, dword [ebp + 8]
lea edx, [esi + 0xa8]
push edx
call fcn.00443d20
pop ecx
test eax, eax
je 0x42e0a5
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0042ee22
mov al, 1
jmp 0x42e0a7
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ecfb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6160b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x210]
push ebx
push esi
push edi
mov dword [ebp - 0x11c], ecx
mov dword [ecx + 0x214], eax
call fcn.0041cf3a
test al, al
je 0x42ed3f
pop esp
push edx
pop edx
pop esi
pop ebx
pop edx
push eax
pop edx
push edx
push ebp
push edx
push esi
pop eax
push ecx
push ebp
push eax
pop eax
pop esp
pop edi
call fcn.0041d162
test al, al
je 0x42ed63
push esi
pop eax
pop esp
pop esi
push edi
pop edx
push eax
push ecx
pop esi
pop edi
push ecx
push ebp
push edi
pop esi
push ecx
pop eax
push ecx
push ebx
pop esp
push esp
pop eax
push eax
pop edx
pop esp
push eax
pop esp
pop esp
call fcn.0041caa5
test al, al
je 0x42ed83
pop ebx
push esp
pop ecx
pop ebx
pop ebp
pop esp
pop eax
pop ecx
pop edx
push ebp
pop edx
push esi
push esp
push esi
pop esp
push esp
push ebp
push esp
push edx
push edi
push edi
push eax
push ebx
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00434140
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
mov esi, dword [ebp - 0x11c]
jne 0x42edc6
mov ecx, esi
call fcn.0042e563
jmp 0x42eddb
mov edi, ebx
test ebx, ebx
jne 0x42eddb
mov ecx, esi
call fcn.0042e3c6
inc edi
mov ebx, eax
cmp edi, 0xa
jl 0x42edc8
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144d9
mov esp, ebp
pop ebp
ret

Function at 0x448a9b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044891a

Function at 0x44a19a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00449e5a
Function at 0x456b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x456b3c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x456b2d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x456b70
cmp dword [esi + 8], 0
jne 0x456b60
push 0x593520
push dword [eax + 8]
call fcn.0043f7b4
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x456b60
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0043fc66
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x456b92
mov eax, dword [esi + 8]
test eax, eax
je 0x456b8c
push eax
call fcn.0043f59b
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x456fb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6160b8]
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 0x457000
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x456ffa
shr eax, 8
cmp al, 2
jne 0x456ffa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
Function at 0x458060
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468e60

Function at 0x459090
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
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.00459370
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 0x459114
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4590ec
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.00457100
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00458d50
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x248]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x459420
cmp dword [ecx + edx*4 + 0x17c], 0x458fe0
jne 0x459420
cmp dword [esi], 0
je 0x4593b8
test edi, edi
je 0x459420
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00467440
add esp, 0x10
cmp eax, 0xffffffff
je 0x459420
test al, 1
je 0x459420
cmp dword [esi], 0
jne 0x459409
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x616a84]
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 0x459409
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 ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x459420
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x459430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x459459
push dword [esi + 0x11c]
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 0x45948f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x59f618
push 2
push eax
call fcn.0044449b
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0044449b
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x45f420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45f43e
cmp dword [esi + 0x48], 0
je 0x45f43e
push 2
push 3
push esi
call fcn.0046ceb0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0046d690
add esp, 4
test esi, esi
je 0x45f45e
cmp dword [esi + 0x48], 0
je 0x45f45e
push 3
push esi
call fcn.0046cef0
add esp, 8
pop esi
pop ebp
ret
Function at 0x467990
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x578]
test esi, esi
je 0x4679e4
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x4679b1
cmp dword [edi + 0x40], eax
je 0x4679e4
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x4679bf
mov eax, dword [edi + 0x40]
push 0x4687d0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.004720d0
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x4679ed
mov dword [edi + 0x578], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4679f6
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x467a1b
push esi
call fcn.00458060
add esp, 4
test eax, eax
jne 0x467a33
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x467a33
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4679e4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x467e80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x61c400]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x467ed1
push 3
push 2
push eax
push 6
call fcn.004874d0
add esp, 0x10
test al, al
je 0x467ec5
mov dword [0x61c400], 2
mov esp, ebp
pop ebp
ret
mov dword [0x61c400], 1
jmp 0x467ed6
cmp eax, 2
je 0x467f16
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 0x467efd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x467f16
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 0x467fe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x468028
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00457100
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00458df0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00458df0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x468110
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6160b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x4682ea
cmp byte [edi + 0x21a], 0
push esi
jne 0x4682e0
cmp byte [edi + 0x234], 0
jne 0x4682e0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4681a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00457100
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00458d50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00434140
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 0x468211
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00457100
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00458d50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004687f0
add esp, 0xc
test al, al
jne 0x468262
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00457100
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00458d50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004687f0
add esp, 0xc
test al, al
jne 0x4682e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00457100
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00458d50
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
push edi
call fcn.00467dc0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004144d9
mov esp, ebp
pop ebp
ret
Function at 0x468b70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6160b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x3ec], al
setne al
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 0x468bcd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00458df0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3f0]
mov dword [ebp - 0x10], 1
call fcn.0046cf50
push dword [esi + 0x3f4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0046cf50
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
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 0x468c3d
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.00458df0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004144d9
mov esp, ebp
pop ebp
ret

Function at 0x46cf30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0046cf60
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00448452
Function at 0x474eb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
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 0x47502b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x475017
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x474fa8
cmp dword [edi + 0x18], 0
je 0x474fa8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x474fa8
cmp eax, 0x10
jb 0x474fa8
push 0x20
call dword [0x616a84]
mov esi, eax
add esp, 4
test esi, esi
je 0x47500c
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 [0x616a84]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x474ffb
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x474f96
push eax
call dword [0x616a90]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x474fe1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x474fa5
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x474ef0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x474fc5
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x475013
push ebx
call fcn.00474e70
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 [0x616a88]
push esi
call dword [0x616a88]
add esp, 8
jmp 0x474fb6
push esi
mov edi, 8
call dword [0x616a88]
add esp, 4
jmp 0x474fb6
mov edi, 8
jmp 0x474fb6
test ebx, ebx
jne 0x475023
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 0x475250
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.0058a201
add esp, 0x18
test eax, eax
je 0x475272
cmp eax, 0xffffffff
jne 0x475274
xor eax, eax
pop ebp
ret
Function at 0x47a430
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6160b8]
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 0x47a47d
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00458d50
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x47a4a5
shr eax, 8
test al, al
jne 0x47a4a5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144d9
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00458d50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.004144d9
mov esp, ebp
pop ebp
ret

Function at 0x47acd0
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
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x168]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47ad18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00458d50
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.0047a5c0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x47adf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x114]
jne 0x47af46
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x47ae27
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x47ae32
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x47ae3d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [ebp - 0x14], ax
cmp ecx, edi
jae 0x47ae6d
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x47ae7a
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x47ae87
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x47ae94
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x47ae9f
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x47aeaa
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 4]
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.0047a6c0
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47af02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00458d50
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.0047ad30
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x47af45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00458d50
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret