joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425c10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4d6750]
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 0x425dcc
cmp dword [edi + 0x24c], 0
jne 0x425dc5
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x425c9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00449440
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004280e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x425cf0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00449440
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004280e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe4]
lea esi, [edi + 0xb6]
push eax
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.00425bb0
add esp, 4
test eax, eax
jne 0x425d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00449440
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004280e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xe8]
lea ecx, [ebp - 0x108]
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 + 0x118]
push eax
call fcn.00425bb0
add esp, 4
test eax, eax
jne 0x425dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00449440
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004280e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00425af0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret
Function at 0x4261d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x38c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42621e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00449440
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00428020
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00428020
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426240
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4dcdcc]
mov dword [ebp - 0x12c], 0x4020
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 4
push esi
mov esi, ecx
test eax, eax
jne 0x4262ee
push 0x11c
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0048d420
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov dword [ebp - 0x124], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4262e2
mov dword [0x4dcdcc], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov dword [0x4dcdcc], 1
jmp 0x4262f3
cmp eax, 2
je 0x42633e
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x426324
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x12c]
jg 0x42633e
push 4
lea eax, [ebp - 0x12c]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00488366
mov esp, ebp
pop ebp
ret
Function at 0x4267e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x5e0]
test esi, esi
je 0x426827
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x426827
push ecx
mov ecx, dword [ecx + 0x30]
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0
call fcn.0042eb70
add esp, 4
cmp dword [ebp - 8], 0
jne 0x426831
mov dword [edi + 0x5e0], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x426837
mov dword [ebx], esi
cmp dword [esi + 0x178], 0
mov edi, dword [esi + 0x150]
jne 0x426859
push 2
push 1
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x426827
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4273b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x44
push 1
mov dword [ebp - 4], edx
mov esi, ecx
call dword [0x4d75d4]
mov edi, eax
add esp, 8
mov dword [esi + 0x4bc], edi
mov ebx, 8
test edi, edi
je 0x427486
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x4ac], ecx
push ecx
mov dword [esi + 0x4b4], 0
lea ecx, [edi + 0xc]
mov dword [esi + 0x4b8], 0
mov dword [esi + 0x4b0], 0
mov dword [edi], 0
call fcn.00427190
add esp, 8
test eax, eax
je 0x427486
mov eax, dword [esi + 0x4a8]
test eax, eax
je 0x42743f
push eax
call dword [0x4d75cc]
add esp, 4
mov dword [esi + 0x4a8], 0
push dword [ebp - 4]
call dword [0x4d75c8]
add esp, 4
mov dword [esi + 0x4a8], eax
test eax, eax
je 0x427486
push 0
push 0
lea eax, [edi + 0xc]
push eax
push 0x427280
push 0
push 0
call fcn.0048c761
add esp, 0x18
test eax, eax
je 0x427477
cmp eax, 0xffffffff
jne 0x427479
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x4274a1
call fcn.0048b5a8
mov ebx, dword [eax]
lea ecx, [esi + 0x4a8]
call fcn.00427310
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4281b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov ebx, dword [eax]
push edi
mov dword [ebp - 0xc0], eax
call fcn.0041f0f0
mov edx, eax
mov dword [ebp - 0xc4], edx
test edx, edx
jne 0x4281fc
lea eax, [edx + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov edi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x428201
sub edi, ecx
mov dword [ebp - 0xb4], edx
mov esi, edx
mov ecx, dword [ebp - 0xc0]
xor eax, eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0xbc], 0
cmp edx, dword [ecx + 0x154]
lea edx, [ebp - 0xbc]
push edx
push edi
sete al
push esi
push eax
push ecx
mov eax, dword [ecx + eax*4 + 0x170]
call eax
add esp, 0x14
mov dword [ebp - 0xb8], eax
test eax, eax
jns 0x428272
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x42837a
cmp eax, 0x51
jne 0x428376
mov dword [ebp - 0xb8], 0
cmp dword [ebx + 0x35c], 0
mov dword [ebp - 0xb0], 0
je 0x428357
cmp dword [ebx + 0x310], 0
je 0x428338
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x428338
push eax
push 0x4b8194
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.0041ef60
lea esi, [ebp - 0xac]
add esp, 0x18
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4282d7
mov eax, dword [ebx + 0x1e0]
sub esi, ecx
test eax, eax
je 0x428306
push dword [ebx + 0x16c]
lea ecx, [ebp - 0xac]
push esi
push ecx
push 0
push ebx
call eax
add esp, 0x14
test eax, eax
jne 0x428357
jmp 0x428332
push dword [ebx + 0x168]
push 1
push 2
push 0x4b39d4
call fcn.0048aa31
push dword [ebx + 0x168]
lea eax, [ebp - 0xac]
push 1
push esi
push eax
call fcn.0048aa31
add esp, 0x20
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebx + 0x1e0]
test eax, eax
je 0x428357
push dword [ebx + 0x16c]
push dword [ebp - 0xb8]
push esi
push 4
push ebx
call eax
add esp, 0x14
mov eax, dword [ebp - 0xb8]
cmp eax, edi
je 0x428381
mov esi, dword [ebp - 0xb4]
sub edi, eax
add esi, eax
mov dword [ebp - 0xb4], esi
jmp 0x428212
mov esi, eax
jmp 0x428387
mov esi, 0x37
jmp 0x428387
mov esi, dword [ebp - 0xb0]
push dword [ebp - 0xc4]
call dword [0x4d75cc]
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret
Function at 0x428410
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 + 0x150]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x42848e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x42845e
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.00449440
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004280e0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x861c], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x428890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x4288b6
push dword [esi + 0x16c]
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 0x4288ea
push dword [esi + 0x168]
lea eax, [edx*2 + 0x4b39d4]
push 1
add eax, edx
push 2
push eax
call fcn.0048aa31
push dword [esi + 0x168]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048aa31
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4288f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x310], 0
je case.default.0x428934
test eax, eax
je case.default.0x428934
mov edx, dword [eax + 0x9c]
test edx, edx
je case.default.0x428934
lea ecx, [edi - 1]
mov eax, str.Data
cmp ecx, 3
ja case.default.0x428934
jmp dword [ecx*4 + 0x428a08]
mov eax, str.Header
mov ecx, str.from
jmp 0x428951
mov eax, str.Header
mov ecx, 0x4b8194
push edx
push ecx
push eax
push str.__s__s__s_
lea eax, [ebp - 0xac]
push 0xa0
push eax
call fcn.0041ef60
lea ecx, [ebp - 0xac]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428976
sub ecx, edx
lea eax, [ebp - 0xac]
push ecx
push eax
xor edx, edx
mov ecx, esi
call fcn.00428890
add esp, 8
test eax, eax
jne 0x4289f7
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x4289c3
push dword [esi + 0x16c]
push dword [ebp + 0xc]
push ebx
push edi
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
cmp edi, 2
ja 0x4289f5
push dword [esi + 0x168]
lea eax, [edi*2 + 0x4b39d4]
push 1
add eax, edi
push 2
push eax
call fcn.0048aa31
push dword [esi + 0x168]
push 1
push dword [ebp + 0xc]
push ebx
call fcn.0048aa31
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret
Function at 0x436340
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov dword [eax], esi
mov ecx, dword [ecx]
xor eax, eax
mov esi, 1
mov dword [ebp - 0xc], ecx
mov ebx, 0x493e0
mov edx, dword [ecx + 0x218]
test edx, edx
mov ecx, dword [ecx + 0x21c]
cmovg eax, esi
test ecx, ecx
jle 0x436382
or eax, 2
dec eax
je 0x436398
dec eax
je 0x436394
dec eax
jne 0x43639a
cmp edx, ecx
mov ebx, ecx
cmovl ebx, edx
jmp 0x43639a
mov ebx, ecx
jmp 0x43639a
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
mov eax, dword [ebp - 0xc]
mov edi, edx
shr edi, 6
imul ecx, edi, 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
mov esi, dword [eax + 0x558]
sub esi, edi
sub ecx, dword [eax + 0x55c]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add ebx, eax
je 0x43647c
test ebx, ebx
js 0x43647c
mov edi, dword [ebp - 0x10]
or edx, 0xffffffff
push ebx
push 0xffffffffffffffff
mov ecx, edi
call fcn.00427890
add esp, 8
test eax, eax
jle 0x436472
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x436438
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x436455
mov ecx, dword [ebp - 8]
jmp 0x436359
cmp ebx, eax
je 0x436461
test eax, eax
je 0x436472
mov ecx, dword [ebp - 8]
sub ebx, eax
add esi, eax
mov dword [ebp + 0xc], ebx
add dword [ebp - 4], eax
mov dword [ebp + 8], esi
jmp 0x436359
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b720
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8f28]
cmp byte [edx], 0
jne 0x43b789
push 0x401
lea eax, [ebp - 0x408]
mov byte [ebp - 0x408], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [ebp - 8], 0
test eax, eax
jne 0x43b784
lea eax, [ebp - 0x408]
push 0x2e
push eax
call fcn.0048a160
add esp, 8
test eax, eax
je 0x43b77c
mov byte [eax], 0
lea edx, [ebp - 0x408]
jmp 0x43b789
mov edx, str.localhost
push 1
push 0
lea eax, [esi + 0x510]
push eax
push 0
call fcn.004194d0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.00488366
mov esp, ebp
pop ebp
ret
Function at 0x43da80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x8c], 0x80
push edi
mov dword [ebp - 0x90], eax
mov esi, dword [eax + 0x4d0]
mov edi, dword [eax]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
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 0x43db10
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0048d4b0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x43db43
push str.Received_too_short_packet
push edi
call fcn.004280e0
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.00488366
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x43db68
jmp dword [edx*4 + 0x43dc94]
cmp ebx, 4
jle case.0x43db68.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x43db68.4
lea eax, [ebx - 4]
add ecx, 4
push eax
push ecx
mov ecx, dword [ebp - 0x90]
mov edx, 1
call fcn.004285c0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43dbdb
mov edx, 5
mov ecx, esi
call fcn.0043d7b0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov dword [edi + 0x4e0], eax
mov eax, dword [edi + 0x74]
mov dword [edi + 0x4e4], eax
jmp case.0x43db68.4
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
lea eax, [edx + 4]
push eax
push 0x4b8364
push edi
mov dword [esi + 8], ecx
call fcn.00428020
jmp 0x43dc5c
lea eax, [ebx - 2]
lea edx, [ecx + 2]
mov ecx, esi
push eax
call fcn.0043ca50
add esp, 4
test eax, eax
je case.0x43db68.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4b80e0
push edi
call fcn.004280e0
add esp, 0xc
mov ecx, dword [ebp - 0x90]
call fcn.00433380
test eax, eax
je 0x43db30
mov edx, 5
mov ecx, esi
call fcn.0043d7b0
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret
Function at 0x440b00
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x10
push edi
or edi, 0xffffffff
mov eax, dword [esi]
mov ebx, dword [esi + 0x154]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x440b55
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x440b77
cmp ebx, dword [esi + 0x154]
jne 0x440bb2
cmp dword [esi + 0x164], 0
je 0x440bb2
mov dword [esi + 0x164], 0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, ebx
mov ecx, esi
call fcn.0041bad0
cmp edi, 0xffffffff
jne 0x440bbd
push str.Error_accept__ing_server_connect
push dword [ebp - 0x18]
call fcn.004280e0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
push ebx
push dword [esi + 0x3c]
call eax
add esp, 8
jmp 0x440b87
mov ebx, dword [ebp - 0x18]
push str.Connection_accepted_from_server_n
push ebx
call fcn.00428020
add esp, 8
mov dword [esi + 0x154], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esi + 0x164], 1
mov eax, dword [ebx + 0x1e8]
test eax, eax
je 0x440c3a
push 1
push edi
push dword [ebx + 0x1ec]
call eax
add esp, 0xc
test eax, eax
je 0x440c3a
mov edx, edi
mov ecx, esi
call fcn.00426870
mov dword [esi + 0x154], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488366
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.00488366
mov esp, ebp
pop ebp
ret
Function at 0x442ce0
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 0x442d1a
push str.Couldnt_set_desired_mode
push ecx
call fcn.004280e0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ebx, 0xc8
je 0x442d31
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00428020
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x442d47
mov ecx, edi
call fcn.00441e30
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x442d5a
mov ecx, edi
call fcn.00441eb0
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x442d63
push 0xd
jmp 0x442d6a
cmp eax, 0x16
jne 0x442d7b
push 0xe
mov edx, 1
mov ecx, edi
call fcn.004422d0
add esp, 4
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x445bc0
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x445bcb
jmp dword [eax*4 + 0x445c24]
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 0x445c90
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov bl, byte [esi]
test bl, bl
je 0x445d39
mov cl, byte [edi]
test cl, cl
je 0x445d39
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x445cb6
jmp dword [eax*4 + 0x445d58]
mov bl, 0x41
jmp case.default.0x445cb6
mov bl, 0x42
jmp case.default.0x445cb6
mov bl, 0x43
jmp case.default.0x445cb6
mov bl, 0x44
jmp case.default.0x445cb6
mov bl, 0x45
jmp case.default.0x445cb6
mov bl, 0x46
jmp case.default.0x445cb6
mov bl, 0x47
jmp case.default.0x445cb6
mov bl, 0x48
jmp case.default.0x445cb6
mov bl, 0x49
jmp case.default.0x445cb6
mov bl, 0x4a
jmp case.default.0x445cb6
mov bl, 0x4b
jmp case.default.0x445cb6
mov bl, 0x4c
jmp case.default.0x445cb6
mov bl, 0x4d
jmp case.default.0x445cb6
mov bl, 0x4e
jmp case.default.0x445cb6
mov bl, 0x4f
jmp case.default.0x445cb6
mov bl, 0x50
jmp case.default.0x445cb6
mov bl, 0x51
jmp case.default.0x445cb6
mov bl, 0x52
jmp case.default.0x445cb6
mov bl, 0x53
jmp case.default.0x445cb6
mov bl, 0x54
jmp case.default.0x445cb6
mov bl, 0x55
jmp case.default.0x445cb6
mov bl, 0x56
jmp case.default.0x445cb6
mov bl, 0x57
jmp case.default.0x445cb6
mov bl, 0x58
jmp case.default.0x445cb6
mov bl, 0x59
jmp case.default.0x445cb6
mov bl, 0x5a
call fcn.00445bc0
cmp bl, al
jne 0x445d39
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x445ca1
mov cl, byte [esi]
call fcn.00445bc0
mov cl, byte [edi]
mov dl, al
call fcn.00445bc0
xor ecx, ecx
cmp dl, al
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
ret