joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d302
Capabilities:
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xac
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
xor edi, edi
push 2
mov dword [ebp - 0x30], 0x4020
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 4
pop ebx
cmp dword [0x4e1d80], edi
jne 0x45d383
mov esi, 0x9c
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.0040c970
add esp, 0xc
push 3
push ebx
push edi
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x45d379
mov dword [0x4e1d80], ebx
jmp 0x45d3c5
mov dword [0x4e1d80], 1
cmp dword [0x4e1d80], ebx
je 0x45d3c5
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov edi, 0x1001
push edi
mov esi, 0xffff
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x45d3b4
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jg 0x45d3c5
push 4
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
add ebp, 0x74
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5a8]
test esi, esi
je 0x45d430
mov eax, dword [edi + 0x44]
test eax, eax
je 0x45d430
and dword [ebp - 4], 0
push 0x45d3d7
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
push dword [eax + 0x30]
call fcn.004717cc
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x45d437
and dword [edi + 0x5a8], 0
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45d440
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x45d430
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x45d430
mov eax, edi
jmp 0x45d433
Function at 0x45d56f
Capabilities:
Connect socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xdc
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
and dword [ebp - 0x60], 0
push esi
mov esi, dword [eax]
or dword [edx], 0xffffffff
mov dword [ebp - 0x64], edx
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x50]
push edx
push ecx
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], esi
call fcn.0045d4b6
add esp, 0x10
test eax, eax
je 0x45d5b7
xor eax, eax
jmp 0x45d768
push ebx
push edi
lea edi, [ebp - 0x68]
lea ebx, [ebp + 0x40]
lea esi, [ebp - 0x40]
call fcn.0045d11f
test eax, eax
jne 0x45d604
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x58]
call fcn.0045f9f4
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x5c]
call fcn.0045b1fe
add esp, 0x18
xor esi, esi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.0045d466
pop ecx
pop ecx
mov eax, esi
jmp 0x45d766
mov esi, dword [ebp - 0x5c]
lea eax, [ebp + 0x40]
push eax
push str.__Trying__s..._n
push esi
call fcn.0045b194
mov ebx, dword [ebp - 0x58]
add esp, 0xc
cmp dword [esi + 0x354], 0
je 0x45d630
push dword [ebp - 0x54]
mov edi, ebx
call fcn.0045d2ad
pop ecx
push dword [ebp - 0x54]
call fcn.0045d302
cmp dword [esi + 0x454], 0
pop ecx
je 0x45d64d
mov ebx, dword [ebp - 0x54]
call fcn.0045cbba
mov ebx, dword [ebp - 0x58]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x45d673
push 0
push dword [ebp - 0x54]
push dword [esi + 0x1b4]
call eax
add esp, 0xc
cmp eax, 2
jne 0x45d69f
mov dword [ebp - 0x60], 1
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0045cd15
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45d6ab
push dword [ebp - 0x54]
push ebx
call fcn.0045d466
lea eax, [edi - 1]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, edi
jmp 0x45d766
test eax, eax
je 0x45d673
push 0x2a
pop esi
jmp 0x45d5f0
push 1
push dword [ebp - 0x54]
call fcn.00477008
pop ecx
pop ecx
call fcn.0045ae36
cmp dword [ebx + 0x238], 1
mov dword [ebx + 0x230], eax
mov dword [ebx + 0x234], edx
jle 0x45d6df
push dword [ebx + 0x23c]
push esi
call fcn.00459735
pop ecx
pop ecx
cmp dword [ebp - 0x60], 0
jne 0x45d75c
cmp dword [ebx + 0x8c], 1
jne 0x45d75c
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x45d750
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x45d74e
cmp edi, 0x2732
jle 0x45d720
cmp edi, 0x2734
jle 0x45d74e
push edi
push ebx
call fcn.0045f9f4
push eax
lea eax, [ebp + 0x40]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.0045b194
push dword [ebp - 0x54]
mov dword [esi + 0x85e4], edi
push ebx
call fcn.0045d466
add esp, 0x20
push 7
pop edi
jmp 0x45d758
xor edi, edi
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov eax, edi
jmp 0x45d766
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.0040c660
add ebp, 0x74
leave
ret
Function at 0x45ee21
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x45ef80
push edi
mov edi, dword [ebp - 0xc]
cmp edi, ebx
je 0x45ef65
push esi
cmp dword [edi + 4], 2
jne 0x45eeff
cmp dword [edi + 0x18], ebx
je 0x45eeff
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x45eeff
cmp eax, 0x10
jb 0x45eeff
push 0x20
call dword [0x4d5af8]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x45ef0c
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
pop eax
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4d5af8]
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x45ef15
push 0x10
push dword [edi + 0x18]
push eax
call fcn.0040ba20
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x45eeea
push eax
call dword [0x4d5b04]
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x45ef25
cmp dword [ebp - 4], ebx
jne 0x45eef2
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x45eefc
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x10], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x45ee60
jmp 0x45ef3e
mov dword [ebp - 8], 8
jmp 0x45ef3e
push esi
mov dword [ebp - 8], 8
call dword [0x4d5afc]
jmp 0x45ef3d
push dword [esi + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d5afc]
push esi
call dword [0x4d5afc]
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0xc], ebx
je 0x45ef4d
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x45ef60
push dword [ebp - 4]
call fcn.0045ede5
pop ecx
mov dword [ebp - 4], ebx
jmp 0x45ef74
cmp dword [ebp - 4], ebx
jne 0x45ef74
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x466892
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
push edi
push 3
pop ebx
sub eax, ebx
mov dword [ebp - 4], edx
je 0x4669d6
dec eax
dec eax
je 0x466992
dec eax
je 0x466939
dec eax
je 0x4668d9
push str.tftp_rx:_internal_error
push 0x4b7128
push edx
call fcn.0045b1fe
add esp, 0xc
push 0x47
jmp 0x466a79
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edx
call fcn.0045b194
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x46690c
mov dword [esi + 8], 0xffffff9d
jmp 0x4669cf
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x466ab2
jmp 0x466a57
xor eax, eax
and dword [esi + 0x18], eax
mov word [esi + 0x40], ax
push 4
pop ecx
lea eax, [esi + 0x160]
call fcn.0046660a
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0046661b
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x466a57
mov dword [esi], 1
jmp 0x466a96
push 5
pop ecx
lea eax, [esi + 0x160]
call fcn.0046660a
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0046661b
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], ebx
jmp 0x466ab2
lea eax, [esi + 0x15c]
call fcn.0046663c
movzx edi, ax
movzx eax, word [esi + 0x40]
lea ecx, [eax + 1]
and ecx, 0xffff
cmp ecx, edi
jne 0x4669fb
and dword [esi + 0x18], 0
jmp 0x466a12
cmp eax, edi
jne 0x466aa2
push edi
push str.Received_last_DATA_packet_block__d_again._n
push edx
call fcn.0045b194
add esp, 0xc
push 4
pop ecx
lea eax, [esi + 0x160]
mov word [esi + 0x40], di
call fcn.0046660a
mov cx, word [esi + 0x40]
lea eax, [esi + 0x160]
call fcn.0046661b
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x466a7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0045f9f4
push eax
push 0x4b7128
push dword [ebp - 4]
call fcn.0045b1fe
add esp, 0x14
push 0x37
pop eax
jmp 0x466ab4
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x14c], eax
setl cl
lea ecx, [ecx + ecx + 1]
mov dword [esi], ecx
add esi, 0x38
push esi
call fcn.0040cfed
pop ecx
jmp 0x466ab2
push ecx
push edi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push edx
call fcn.0045b194
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46708c
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x4b76ec
push dword [eax]
call fcn.0045b194
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004664c7
test eax, eax
jne 0x4670bb
mov eax, esi
jmp fcn.00466892
ret
Function at 0x4673c6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x400]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x467444
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0040ba20
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x467477
push str.Received_too_short_packet
push ebx
call fcn.0045b1fe
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
add ebp, 0x74
leave
ret
lea eax, [esi + 0x15c]
call fcn.0046662d
movzx eax, ax
mov dword [esi + 0xc], eax
sub eax, 3
je 0x4674f8
dec eax
je 0x467563
dec eax
je 0x4674d0
dec eax
je 0x4674af
push str.Internal_error:_Unexpected_packet
push 0x4b7128
push ebx
call fcn.0045b1fe
jmp 0x467560
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add eax, 2
push eax
push esi
call fcn.004666ba
add esp, 0xc
test eax, eax
je 0x467563
jmp 0x467465
lea eax, [esi + 0x15c]
call fcn.0046663c
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x4b76ec
push ebx
call fcn.0045b194
jmp 0x467560
cmp edx, 4
jle 0x467563
lea eax, [esi + 0x15c]
call fcn.0046663c
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x467563
mov eax, dword [esi + 0x15c]
add edx, 0xfffffffc
push edx
add eax, 4
push eax
push 1
push dword [ebp - 0x18]
call fcn.0045b453
mov edi, eax
add esp, 0x10
test edi, edi
je 0x467544
push 5
mov eax, esi
call fcn.00467358
pop ecx
mov eax, edi
jmp 0x467465
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push ebx
call fcn.0047375b
add esp, 0xc
push dword [ebp - 0x18]
call fcn.004737f1
pop ecx
test eax, eax
je 0x467463
push 5
mov eax, esi
call fcn.00467358
pop ecx
push 0x2a
pop eax
jmp 0x467465

Function at 0x468a62
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x468a99
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0045b1fe
add esp, 0xc
jmp 0x468ac6
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp byte [ebp - 0x194], 2
jne 0x468ab9
mov eax, dword [ebp - 0x194]
shr eax, 8
test al, al
jne 0x468ab9
xor eax, eax
jmp 0x468ac9
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0045b1fe
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c660
leave
ret
Function at 0x468c00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov al, byte [ebp + 8]
push 0
mov byte [ebp - 3], al
push 3
lea eax, [ebp - 4]
mov esi, ecx
mov edi, dword [esi]
push eax
push dword [esi + 0x154]
mov byte [ebp - 4], 0xff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x468c47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0045b1fe
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, ebx
mov ebx, str.SENT
call fcn.00468b37
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4693d3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x890]
sub esp, 0x910
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x88c], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
push esi
mov esi, dword [ecx + 0x128]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
push edi
add eax, 2
push eax
push 0x3c
lea eax, [esi + 0x1cb0]
push ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ecx
call fcn.00468ebd
mov eax, dword [esi + 0x1eb0]
movzx ecx, byte [eax]
add esp, 0xc
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x46955e
cmp ecx, 0x23
je 0x46953d
cmp ecx, 0x27
jne 0x4695de
push 0
push ecx
push 0xfa
mov edi, 0xff
push edi
push str._c_c_c_c
lea eax, [ebp - 0x74]
push 0x800
push eax
call fcn.0045e1af
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
push 4
pop ebx
jmp 0x4694dd
push dword [esi]
call fcn.0040b990
inc eax
add eax, ebx
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, 0x7fa
jae 0x4694da
lea eax, [ebp + 0x80c]
push eax
lea eax, [ebp + 0x78c]
push eax
push str._127_____127s
push dword [esi]
call fcn.00410d3e
lea eax, [ebp + 0x80c]
push eax
push 1
lea eax, [ebp + 0x78c]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push str._c_s_c_s
push eax
lea eax, [ebp + ebx - 0x74]
push eax
call fcn.0045e1af
mov ebx, dword [ebp - 0x80]
add esp, 0x2c
mov esi, dword [esi + 4]
test esi, esi
jne 0x46947c
push 0xf0
push edi
mov eax, 0x800
sub eax, ebx
push 0x4be12c
push eax
lea eax, [ebp + ebx - 0x74]
push eax
call fcn.0045e1af
add esp, 0x14
push esi
add ebx, 2
push ebx
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x469534
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x78]
call fcn.0045b1fe
add esp, 0xc
add ebx, 0xfffffffe
push ebx
jmp 0x4695ce
add esi, 0x1c28
push esi
mov dword [ebp - 0x7c], esi
call fcn.0040b990
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x23
jmp 0x46957d
add esi, 0x1c08
push esi
mov dword [ebp - 0x7c], esi
call fcn.0040b990
push 0xf0
mov edi, 0xff
push edi
push esi
push 0
push 0x18
push 0xfa
push edi
push str._c_c_c_c_s_c_c
lea esi, [eax + 6]
lea eax, [ebp - 0x74]
push 0x800
push eax
call fcn.0045e1af
add esp, 0x2c
push 0
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebx + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4695ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0x78]
call fcn.0045b1fe
add esp, 0xc
add esi, 0xfffffffe
push esi
push 0x3e
push dword [ebp - 0x78]
lea eax, [ebp - 0x72]
call fcn.00468ebd
add esp, 0xc
mov ecx, dword [ebp + 0x88c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
add ebp, 0x890
leave
ret
Function at 0x46970d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x46985a
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea esi, [ebx + 0x1eb0]
mov dword [esi], edi
cmp edi, esi
jae 0x469743
mov byte [edi], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x46974e
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x469759
mov byte [eax], 0x1f
inc dword [esi]
movzx eax, word [ebx + 0x1ca8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x46978b
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x469798
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4697a2
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4697ac
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4697b7
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4697c2
mov byte [eax], 0xf0
inc dword [esi]
mov ecx, dword [esi]
mov eax, ecx
sub eax, edi
sub eax, 2
push eax
push 0x3e
push dword [ebp - 4]
lea eax, [ebx + 0x1cb2]
mov dword [ebx + 0x1eb4], ecx
mov dword [esi], edi
call fcn.00468ebd
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x154]
call esi
test eax, eax
jns 0x469818
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.0045b1fe
add esp, 0xc
lea eax, [ebx + 0x1cb3]
push 4
push eax
call fcn.004695f6
pop ecx
pop ecx
push 0
push 2
add ebx, 0x1cb7
push ebx
mov eax, edi
push dword [eax + 0x154]
call esi
pop edi
pop esi
test eax, eax
jns 0x46985a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 4]
call fcn.0045b1fe
add esp, 0xc
pop ebx
leave
ret
Function at 0x46a125
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x158]
push ebx
push edi
mov edi, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x46a179
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push dword [ebp - 0x1c]
push esi
call fcn.0045d466
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x46a19b
push str.Error_accept__ing_server_connect
push edi
call fcn.0045b1fe
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x46a1f1
push str.Connection_accepted_from_server_n
push edi
call fcn.0045b194
push 1
push ebx
mov dword [esi + 0x158], ebx
call fcn.00477008
xor ecx, ecx
inc ecx
mov dword [esi + 0x168], ecx
mov eax, dword [edi + 0x1b0]
add esp, 0x10
test eax, eax
je 0x46a1ef
push ecx
push ebx
push dword [edi + 0x1b4]
call eax
add esp, 0xc
test eax, eax
je 0x46a1ef
push ebx
push esi
call fcn.0045d466
or dword [esi + 0x158], 0xffffffff
pop ecx
pop ecx
push 0x2a
jmp 0x46a198
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040c660
leave
ret
Function at 0x46d1a7
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [esp + 0xc]
push edi
push 0x64
cdq
pop edi
idiv edi
mov ecx, dword [ebx]
xor esi, esi
cmp eax, 2
je 0x46d1d1
push str.Couldnt_set_desired_mode
push ecx
call fcn.0045b1fe
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x46d229
cmp dword [esp + 0x10], 0xc8
je 0x46d1ed
push dword [esp + 0x10]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.0045b194
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, 0x13
jne 0x46d1ff
push ebx
call fcn.0046d143
pop ecx
jmp 0x46d225
cmp eax, 0x14
jne 0x46d20b
call fcn.0046a9e5
jmp 0x46d225
cmp eax, 0x15
jne 0x46d219
mov eax, ebx
call fcn.0046d18f
jmp 0x46d225
cmp eax, 0x16
jne 0x46d227
mov eax, ebx
call fcn.0046d19b
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x472c15
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x472c22
jmp dword [eax*4 + 0x472c7d]
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, byte [esp + 4]
ret

Function at 0x47702a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x477043
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.0045ae36
push edx
push eax
call fcn.0045ae4c
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x47708c
push dword [ebx + 0x148]
push dword [ebx + 0x144]
call fcn.0045ae36
push edx
push eax
call fcn.0045ae4c
mov edi, dword [edi + 0x1e0]
sub edi, eax
add esp, 0x10
cmp esi, edi
jl 0x47708c
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

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

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