joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x627a40]
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 - 0x168], edx
mov dword [ebp - 0x160], ecx
push 0x118
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x11c
push 0
inc edi
test dword [eax + 0x1cfffffe], edi
add dword [eax], eax
add byte [edx], ch
push eax
call fcn.00576f50
add esp, 0xc
call fcn.00436860
test al, al
je 0x42ba30
or al, 0x4c
cmp ebx, dword [esi - 0x31]
push eax
pop eax
xchg esp, eax
mov bl, byte [ecx + 9]
cmp ebx, esi
cmpsd dword [esi], dword es:[edi]
xor ah, bh
invalid
call fcn.00435f30
test al, al
je 0x42ba57
sub al, 0xba
neg ah
dec edi
adc bh, byte [eax - 0x56]
mov dword [0x9e5d328f], eax
in eax, dx
mov dl, 0x3a
pop ebx
xor byte [edx + 0x6ecc4635], dl
jne 0x42b9f4
mov ecx, 0x8d3f09f7
test dword [eax + 0x50fffffe], edi
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
mov dword [ebp - 0x14], 7
push eax
push 0x619488
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403d10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
mov ebx, dword [ebp - 0x144]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x15c], eax
call fcn.00436010
test al, al
je 0x42baee
or dword [eax - 0x1b0f3ef5], ebp
and dword [eax + 0x30caed75], ecx
lodsd eax, dword [esi]
cmp esi, dword [0xb09d8b89]
invalid
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42bb3a
push 0x61c418
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42bb33
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x158]
push ecx
call eax
movzx eax, word [ebp - 0x14c]
mov dword [ebp - 0x14c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00436710
test al, al
je 0x42bb55
cwde
dec ebx
lodsb al, byte [esi]
clc
xchg ecx, eax
lea ebx, ds:[0x6bfd49c]
and dword [edi + 0x6d10a418], ecx
mov ecx, dword [ebp - 0x160]
imul eax, ebx, 0xff
add eax, dword [ebp - 0x15c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x164]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42bb8c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404090
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.00570ea9
mov esp, ebp
pop ebp
ret
Function at 0x42bbb0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x627a40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00576f50
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.00436860
test al, al
je 0x42bc26
popal
add byte [esi + 0x75091901], 0xde
adc al, 0x76
xor ch, cl
pop edi
mov edx, 0x36f9d283
mov ah, 0x51
adc edx, 0xfffffff9
mov ah, 0x51
sub al, 0x10
jg 0x42bc2e
imul ebx, dword [ecx], 0xffffffb0
loopne 0x42bc83
call fcn.00435f30
test al, al
je 0x42bc4d
push ds
push ss
jae 0x42bc17
leave
sti
mov edi, 0xb4fbadce
lds edx, [ebp - 0x7493d19b]
lds ebx, [esi - 0x1148704]
hlt
mov edi, dword [ebp - 0x124]
mov esi, dword [ebp - 0x120]
call fcn.00436390
test al, al
je 0x42bc81
invalid
push ecx
adc edx, dword [edi + 0x50]
xchg edx, eax
xor ebp, dword [edx]
or byte [edx + 0x54a11071], dh
jge 0x42bbf3
arpl cx, bp
scasb al, byte es:[edi]
popfd
jns 0x42bc57
push ebp
cmpsb byte [esi], byte es:[edi]
je 0x42bc7e
arpl word [ebp - 8], sp
fisub word [edx - 6]
cmp edi, 5
jg 0x42bca1
add eax, 0xfe831b7f
add bh, byte [edi + 0x16]
cmp esi, 2
jg 0x42bca1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
Function at 0x42c370
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f67c
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x627a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.00576f50
movups xmm0, xmmword [0x619710]
mov eax, dword [0x619720]
lea ecx, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x208], eax
movups xmmword [ebp - 0x218], xmm0
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x42c3d5
mov eax, dword [0x61c5c4]
mov dword [ecx], eax
mov ax, word [0x61c5c8]
mov word [ecx + 4], ax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x64c]
call fcn.00407e90
mov dword [ebp - 4], 0
call fcn.00435ec0
test al, al
je 0x42c425
std
jmp 0xaf90f09e
cmp dword [ebp - 0x648], 0
jne 0x42c4c8
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00576f50
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00576f50
add esp, 0x18
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x61c5d4
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str.__s___s
push eax
call fcn.00408f60
add esp, 0x10
lea eax, [ebp - 0x644]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42c4f9
push 0x61c5dc
push 0
call fcn.004223f0
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x64c]
mov dword [ebp - 4], 4
call fcn.00407fd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
push 0x61c600
lea ecx, [ebp - 0x640]
call fcn.004039f0
push 2
push 0x61c5f8
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 3
call fcn.0040be00
lea edx, [ebp - 0x420]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42c530
sub edx, ecx
lea ecx, [ebp - 0x640]
sar edx, 1
cmp dword [ebp - 0x62c], 8
cmovae ecx, dword [ebp - 0x640]
lea eax, [edx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push ecx
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x61c614
push 0
call fcn.004223f0
mov eax, dword [ebp - 0x62c]
add esp, 8
mov esi, 1
cmp eax, 8
jb 0x42c5b1
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
jmp 0x42c4ca
Function at 0x437ef0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x627a40]
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 0x437f40
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x437f3a
shr eax, 8
cmp al, 2
jne 0x437f3a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
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.00570ea9
mov esp, ebp
pop ebp
ret
Function at 0x439430
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 0x43945c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x43944d
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 0x439490
cmp dword [esi + 8], 0
jne 0x439480
push 0x61964c
push dword [eax + 8]
call fcn.0057d577
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x439480
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.0057dae0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4394b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4394ac
push eax
call fcn.0057d604
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 0x43e6d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43e6ee
cmp dword [esi + 0x48], 0
je 0x43e6ee
push 2
push 3
push esi
call fcn.00453ce0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0044b580
add esp, 4
test esi, esi
je 0x43e70e
cmp dword [esi + 0x48], 0
je 0x43e70e
push 3
push esi
call fcn.00453d20
add esp, 8
pop esi
pop ebp
ret
Function at 0x43f5e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004543b0
Function at 0x4480b0
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.00448390
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 0x448134
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x44810c
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.00439500
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00447d70
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 0x448390
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 0x448440
cmp dword [ecx + edx*4 + 0x17c], 0x448000
jne 0x448440
cmp dword [esi], 0
je 0x4483d8
test edi, edi
je 0x448440
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004476e0
add esp, 0x10
cmp eax, 0xffffffff
je 0x448440
test al, 1
je 0x448440
cmp dword [esi], 0
jne 0x448429
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x624064]
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 0x448429
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 0x448440
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x448450
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 0x448479
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 0x4484af
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x5a56f0
push 2
push eax
call fcn.0057d8bc
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0057d8bc
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x448670
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 0x4486c4
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x448691
cmp dword [edi + 0x40], eax
je 0x4486c4
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x44869f
mov eax, dword [edi + 0x40]
push 0x4494b0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.0044ffc0
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x4486cd
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 0x4486d6
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x4486fb
push esi
call fcn.0043f5e0
add esp, 4
test eax, eax
jne 0x448713
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x448713
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4486c4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x448b60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x629150]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x448bb1
push 3
push 2
push eax
push 6
call fcn.004698b0
add esp, 0x10
test al, al
je 0x448ba5
mov dword [0x629150], 2
mov esp, ebp
pop ebp
ret
mov dword [0x629150], 1
jmp 0x448bb6
cmp eax, 2
je 0x448bf6
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 0x448bdd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x448bf6
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 0x448cc0
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 0x448d08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00439500
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00447e10
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00447e10
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x448df0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x627a40]
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 0x448fca
cmp byte [edi + 0x21a], 0
push esi
jne 0x448fc0
cmp byte [edi + 0x234], 0
jne 0x448fc0
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 0x448e88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00439500
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00447d70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00576f50
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 0x448ef1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00439500
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00447d70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
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.004494d0
add esp, 0xc
test al, al
jne 0x448f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00439500
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00447d70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
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.004494d0
add esp, 0xc
test al, al
jne 0x448fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00439500
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00447d70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
push edi
call fcn.00448aa0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
Function at 0x449850
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x627a40]
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 0x4498ad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00447e10
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3f0]
mov dword [ebp - 0x10], 1
call fcn.00452d70
push dword [esi + 0x3f4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00452d70
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 0x44991d
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.00447e10
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
Function at 0x452d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00452d80
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0058c063

Function at 0x453eb0
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 0x45402b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x454017
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x453fa8
cmp dword [edi + 0x18], 0
je 0x453fa8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x453fa8
cmp eax, 0x10
jb 0x453fa8
push 0x20
call dword [0x624064]
mov esi, eax
add esp, 4
test esi, esi
je 0x45400c
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 [0x624064]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x453ffb
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x453f96
push eax
call dword [0x624070]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x453fe1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x453fa5
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x453ef0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x453fc5
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x454013
push ebx
call fcn.00453e70
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 [0x624068]
push esi
call dword [0x624068]
add esp, 8
jmp 0x453fb6
push esi
mov edi, 8
call dword [0x624068]
add esp, 4
jmp 0x453fb6
mov edi, 8
jmp 0x453fb6
test ebx, ebx
jne 0x454023
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 0x454250
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.00585f23
add esp, 0x18
test eax, eax
je 0x454272
cmp eax, 0xffffffff
jne 0x454274
xor eax, eax
pop ebp
ret
Function at 0x45c830
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x627a40]
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 0x45c87d
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00447d70
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x45c8a5
shr eax, 8
test al, al
jne 0x45c8a5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00447d70
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.00570ea9
mov esp, ebp
pop ebp
ret

Function at 0x45d0d0
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 0x45d118
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00447d70
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.0045c9c0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret