joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426580
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebx, ebx
jne 0x426599
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
lea ecx, [edi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
cmp edx, 0x40000000
jae 0x426591
lea eax, [edx*4]
cmp dword [ebx], eax
jb 0x426591
mov ecx, dword [ebp + 8]
cmp edi, 2
jbe 0x426632
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
nop
movzx eax, byte [esi]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + 0x5020e0]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + 0x5020e0]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + 0x5020e0]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x5020e0]
mov byte [ecx + 3], al
add ecx, 4
dec ebx
jne 0x4265d0
mov ebx, dword [ebp + 0xc]
test edi, edi
je 0x4266a8
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + 0x5020e0]
mov byte [ecx], al
cmp edi, 1
jbe 0x42668d
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
pop edi
movzx eax, byte [eax + edx*8 + 0x5020e0]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
pop esi
movzx eax, byte [eax*4 + 0x5020e0]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
mov eax, ecx
sub eax, dword [ebp + 8]
mov dword [ebx], eax
xor eax, eax
mov byte [ecx], 0
pop ebx
pop ebp
ret
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x5020e0]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov eax, ecx
sub eax, dword [ebp + 8]
pop edi
mov dword [ebx], eax
xor eax, eax
pop esi
mov byte [ecx], 0
pop ebx
pop ebp
ret

Function at 0x4266c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x514a78], 0
jne 0x426747
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00464750
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [0x514a78], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x42bc70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42bcc0
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x42bcba
shr eax, 8
cmp al, 2
jne 0x42bcba
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
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.0045e6b1
mov esp, ebp
pop ebp
ret

Function at 0x433f00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x3dc], al
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x433f5b
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00436aa0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3e0]
mov dword [ebp - 0x14], 1
call fcn.0043fb00
mov ecx, dword [esi + 0x3e4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x10], eax
call fcn.0043fb00
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x433fc5
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.00436aa0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x434760
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x434926
cmp byte [edi + 0x1c1], 0
jne 0x43491f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4347e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004548f0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00436b20
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 8], 0x80
push 0
push eax
call fcn.00464750
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43484a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004548f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00436b20
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00434700
add esp, 4
test al, al
jne 0x43489d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004548f0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00436b20
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x88]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu 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 + 0x11c]
push eax
call fcn.00434700
add esp, 4
test al, al
jne 0x43491f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004548f0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00436b20
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00434640
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x434ca0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x2e6]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x434d03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.004548f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00436aa0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00436aa0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret

Function at 0x434d30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x514a84]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x434df5
push 0x11c
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00464750
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
mov dword [ebp - 0x12c], 6
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x434de9
mov dword [0x514a84], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov dword [0x514a84], 1
jmp 0x434dfa
cmp eax, 2
je 0x434e36
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x434e1f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jg 0x434e36
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x4352b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x538]
test esi, esi
je 0x43530e
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x4352dd
cmp dword [edi + 0x40], ecx
je 0x43530e
mov dword [ebp - 0x10], esi
mov byte [ebp - 0xc], 0
test ecx, ecx
jne 0x4352eb
mov ecx, dword [edi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0x10]
push 0x435290
call fcn.0043bc40
add esp, 4
cmp byte [ebp - 0xc], 0
jne 0x435322
mov dword [edi + 0x538], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x435328
mov dword [ebx], esi
cmp byte [esi + 0x178], 0
mov edi, dword [esi + 0x154]
jne 0x43530e
push 2
push 1
lea eax, [ebp - 5]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x436d10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x436d8e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x436d5e
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.004548f0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.00436b20
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x8574], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x437250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
test eax, eax
je 0x437276
push dword [esi + 0x11c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
cmp edx, 2
ja 0x4372aa
push dword [esi + 0x118]
lea eax, [edx*2 + 0x5021c0]
push 1
add eax, edx
push 2
push eax
call fcn.0045fef8
push dword [esi + 0x118]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fef8
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43fb10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.0041c0d0
push eax
push edx
push esi
call fcn.00470480
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x446250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
add edx, 0xfffffffd
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
cmp edx, 4
ja case.0x446266.4
jmp dword [edx*4 + 0x44648c]
lea ecx, [edi + 0x15c]
call fcn.00445b70
movzx ecx, word [edi + 0x40]
movzx esi, ax
lea eax, [ecx + 1]
and eax, 0xffff
cmp eax, esi
jne 0x446294
mov dword [edi + 0x18], 0
jmp 0x4462ab
cmp ecx, esi
jne 0x446325
push esi
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.00436aa0
add esp, 0xc
mov edx, 4
mov word [edi + 0x40], si
lea ecx, [edi + 0x160]
call fcn.00445b20
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.00445b40
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4463fb
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.0045f60b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push eax
push esi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.00436aa0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
lea ecx, [edi + 0x160]
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
lea edx, [eax + 4]
call fcn.00445b20
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.00445b40
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4463fb
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.0045f60b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00436aa0
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x4463d7
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x446468
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x10]
mov edx, eax
call fcn.004548f0
push eax
push 0x504080
push ebx
call fcn.00436b20
mov eax, 0x37
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov edx, 5
lea ecx, [edi + 0x160]
call fcn.00445b20
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.00445b40
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
ret
push str.tftp_rx:_internal_error
push 0x504080
push ebx
call fcn.00436b20
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret
Function at 0x446ac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 8], 0x80
push edi
mov dword [ebp - 0x8c], eax
mov esi, dword [eax + 0x3a0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x446b46
push dword [ebp - 8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004647e0
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x446b79
push str.Received_too_short_packet
push edi
call fcn.00436b20
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00445b60
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x446b92
jmp dword [eax*4 + 0x446cac]
cmp edx, 4
jle case.0x446b92.4
mov ecx, ebx
call fcn.00445b70
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x446b92.4
mov ecx, dword [ebp - 0x8c]
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
mov edx, 1
add eax, 4
push eax
call fcn.00437090
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x446bf9
mov edx, 5
mov ecx, esi
call fcn.00446830
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov ecx, edi
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
call fcn.004400a0
add esp, 8
jmp case.0x446b92.4
mov ecx, ebx
call fcn.00445b70
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x504334
push edi
call fcn.00436aa0
jmp 0x446c73
lea eax, [edx - 2]
mov ecx, esi
mov edx, dword [ebx]
push eax
add edx, 2
call fcn.00445c00
add esp, 4
test eax, eax
je case.0x446b92.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x504080
push edi
call fcn.00436b20
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
call fcn.00440180
test eax, eax
je 0x446b66
mov edx, 5
mov ecx, esi
call fcn.00446830
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x44a630
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0x10
push edi
lea ecx, [ebp - 8]
or edi, 0xffffffff
push ecx
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x18]
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44a687
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00435370
cmp edi, 0xffffffff
jne 0x44a6ba
push str.Error_accept__ing_server_connect
push ebx
call fcn.00436b20
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.00436aa0
add esp, 8
mov dword [esi + 0x158], edi
mov edx, 1
mov ecx, edi
call fcn.00454120
mov byte [esi + 0x165], 1
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x44a726
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x44a726
mov edx, edi
mov ecx, esi
call fcn.00435370
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
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.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x44c730
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, 0x51eb851f
imul ebx
push esi
sar edx, 5
xor esi, esi
mov eax, edx
push edi
shr eax, 0x1f
mov edi, ecx
add eax, edx
mov ecx, dword [edi]
cmp eax, 2
je 0x44c76a
push str.Couldnt_set_desired_mode
push ecx
call fcn.00436b20
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ebx, 0xc8
je 0x44c781
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00436aa0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x44c797
mov ecx, edi
call fcn.0044b870
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x44c7aa
mov ecx, edi
call fcn.0044b8c0
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x44c7bd
mov ecx, edi
call fcn.0044b9f0
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x44c7cb
mov ecx, edi
call fcn.0044ba00
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x44f100
Capabilities:
Parse pe header

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

Function at 0x44f2c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x44f30c
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00436b20
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x44f334
shr eax, 8
test al, al
jne 0x44f334
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00436b20
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x44f530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 6], al
push 3
lea eax, [ebp - 8]
mov byte [ebp - 8], 0xff
push eax
push dword [esi + 0x154]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 7], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x44f583
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00436b20
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.0044f430
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov eax, dword [ebx]
mov edi, dword [eax + 0x114]
mov eax, dword [edi + esi*4 + 8]
sub eax, 0
je 0x44f86c
sub eax, 2
je 0x44f822
dec eax
jne 0x44f84e
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x44f816
dec eax
jne 0x44f84e
mov dword [edi + esi*4 + 8], 1
mov dword [edi + esi*4 + 0x408], eax
pop edi
pop esi
pop ebx
ret
mov dword [edi + esi*4 + 8], 0
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x44f852
dec eax
jne 0x44f84e
mov dword [edi + esi*4 + 8], 3
mov dword [edi + esi*4 + 0x1008], eax
push esi
mov edx, 0xfc
call fcn.0044f530
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [edi + esi*4 + 0x1808], 1
mov dword [edi + esi*4 + 8], 1
jne 0x44f84e
pop edi
pop esi
pop ebx
jmp fcn.004501d0
cmp dword [edi + esi*4 + 0x808], 1
jne 0x44f8a2
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.0044f530
add esp, 4
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x44f84e
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.004501d0
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x44f840
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.0044f530
add esp, 4
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.004501d0