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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5bc324]
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 0x491e48
cmp dword [edi + 0x250], 0
jne 0x491e41
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 0x491d1b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0048cc00
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004909c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
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 0x491d70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0048cc00
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004909c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.00491c30
add esp, 4
test eax, eax
jne 0x491dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0048cc00
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004909c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x108]
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 + 0x11c]
push eax
call fcn.00491c30
add esp, 4
test eax, eax
jne 0x491e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0048cc00
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004909c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00491b70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
Function at 0x492440
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5c3398]
mov dword [ebp - 0x130], 0x4020
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x134], 4
push esi
mov esi, ecx
test eax, eax
jne 0x4924ee
push 0x114
push eax
lea eax, [ebp - 0x120]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x4924e2
mov dword [0x5c3398], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov dword [0x5c3398], 1
jmp 0x4924f3
cmp eax, 2
je 0x49253e
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x492524
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x130]
jg 0x49253e
push 4
lea eax, [ebp - 0x130]
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.00523a6a
mov esp, ebp
pop ebp
ret
Function at 0x492bb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, ecx
mov dword [ebp - 0xc], edx
push ebx
push esi
push edi
mov ebx, dword [eax + 0x600]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x492c83
mov eax, dword [eax + 0x44]
test eax, eax
je 0x492c83
mov eax, dword [eax + 0x30]
test eax, eax
je 0x492c76
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004a2710
test eax, eax
je 0x492c76
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 8], edx
nop dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test eax, eax
je 0x492c2d
nop dword [eax + eax]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
cmp ecx, ebx
je 0x492c8d
test eax, eax
jne 0x492c20
test edi, edi
je 0x492c3a
mov eax, dword [edi + 8]
mov edi, eax
test eax, eax
jne 0x492c70
mov eax, dword [ebp - 0x1c]
mov ecx, edx
mov esi, dword [eax + 0x10]
cmp ecx, esi
jge 0x492c6c
mov eax, dword [eax]
lea edx, [eax + ecx*4]
nop dword [eax + eax]
mov eax, dword [edx]
inc ecx
mov eax, dword [eax]
test eax, eax
jne 0x492c65
add edx, 4
cmp ecx, esi
jl 0x492c50
mov edx, dword [ebp - 8]
jmp 0x492c6c
mov edx, ecx
mov edi, eax
mov dword [ebp - 8], edx
test edi, edi
je 0x492c76
mov eax, dword [edi]
test eax, eax
jne 0x492c10
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x600], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x492c96
mov dword [esi], ebx
cmp dword [ebx + 0x17c], 0
mov esi, dword [ebx + 0x154]
jne 0x492cb8
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x492c83
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a290
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
mov eax, 0x493e0
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], eax
mov ebx, edx
xor eax, eax
mov ecx, dword [esi + 0x220]
test ecx, ecx
mov edx, dword [esi + 0x224]
setg al
push edi
test edx, edx
jle 0x49a2c9
or eax, 2
sub eax, 1
je 0x49a2e9
sub eax, 1
je 0x49a2e4
sub eax, 1
jne 0x49a2ec
cmp ecx, edx
mov eax, ecx
cmovge eax, edx
mov dword [ebp - 4], eax
jmp 0x49a2ec
mov dword [ebp - 4], edx
jmp 0x49a2ec
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov esi, dword [esi + 0x570]
mov eax, 0x10624dd3
mul ecx
mov edi, edx
mov edx, dword [ebp - 0xc]
shr edi, 6
imul eax, edi, 0x3e8
sub esi, edi
sub ecx, eax
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
sub ecx, dword [edx + 0x574]
imul ecx
imul eax, esi, 0x3e8
mov esi, dword [ebp - 4]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
add esi, eax
mov eax, 0xffffffff
cmove esi, eax
cmp dword [ebx + 0x250], 0
je 0x49a360
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
lea eax, [ebx + 0x90]
push eax
mov ecx, edi
call fcn.00498450
mov eax, dword [ebx + 0xa8]
add esp, 4
test eax, eax
je 0x49a421
cmp byte [eax], 0
je 0x49a421
lea eax, [ebx + 0xa0]
mov ecx, edi
push eax
call fcn.00498450
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
js 0x49a48c
mov edx, dword [ebx + 0xa8]
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xb0]
mov ecx, ebx
call fcn.00493ab0
add esp, 8
cmp eax, 1
jne 0x49a3e3
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
je 0x49a48c
cmp dword [ebp - 4], 0
jne 0x49a493
push dword [ebx + 0xac]
push str.Couldnt_resolve_proxy__s
push edi
call fcn.004909c0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 5
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb0], eax
mov dword [ebp - 4], 0
test esi, esi
js 0x49a48c
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, ebx
call fcn.00493ab0
add esp, 8
cmp eax, 1
je 0x49a3ca
cmp eax, 0xfffffffe
je 0x49a48c
cmp dword [ebp - 4], 0
jne 0x49a493
push dword [ebx + 0x9c]
push str.Couldnt_resolve_host__s
push edi
call fcn.004909c0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 6
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0x1c
mov eax, dword [ebp - 4]
pop edi
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b2d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x574]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x570]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.0049df90
movsd qword [ebx + 0x538], xmm0
add esp, 0x10
mov eax, dword [edi + 0x2c0]
test byte [eax + 0x40], 0x10
mov eax, dword [esp + 0xc]
je 0x49b33f
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax], 0
mov dword [edi + 0x2a4], 0
mov eax, dword [ebx + 0x42c]
test eax, eax
je 0x49b3a1
mov ecx, dword [edi + 0x2d8]
test ecx, ecx
je 0x49b37d
push ecx
call dword [0x5bcc7c]
mov dword [edi + 0x2d8], 0
add esp, 4
mov eax, dword [ebx + 0x42c]
push eax
push str.User_Agent:__s_r_n
call fcn.004a0b20
add esp, 8
mov dword [edi + 0x2d8], eax
test eax, eax
jne 0x49b3a1
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
cmp dword [edi + 0x154], 0xffffffff
jne 0x49b403
mov dword [edi + 0x270], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.004929d0
test eax, eax
je 0x49b4a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x574]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x570]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.0049df90
add esp, 0x10
movsd qword [ebx + 0x540], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x574]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x570]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.0049df90
mov eax, dword [esp + 0x1c]
add esp, 0x10
movsd qword [ebx + 0x548], xmm0
mov ecx, edi
mov dword [edi + 0x270], 1
mov dword [eax], 1
mov edx, dword [edi + 0x154]
call fcn.00491c90
mov ecx, edi
call fcn.004982a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aac30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4aada9
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4aad95
push esi
nop dword [eax + eax]
cmp dword [edi + 4], 2
jne 0x4aad28
cmp dword [edi + 0x18], 0
je 0x4aad28
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4aad28
cmp eax, 0x10
jb 0x4aad28
push 0x20
call dword [0x5bcc74]
mov esi, eax
add esp, 4
test esi, esi
je 0x4aad8a
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 [0x5bcc74]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4aad79
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4aad16
push eax
call dword [0x5bcc80]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4aad5f
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4aad25
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4aac70
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4aad45
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4aad91
mov ecx, ebx
call fcn.004aabf0
mov eax, dword [ebp + 0xc]
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 [0x5bcc7c]
push esi
call dword [0x5bcc7c]
add esp, 8
jmp 0x4aad36
push esi
mov edi, 8
call dword [0x5bcc7c]
add esp, 4
jmp 0x4aad36
mov edi, 8
jmp 0x4aad36
test ebx, ebx
jne 0x4aada1
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af470
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
nop dword [eax]
mov esi, dword [ecx]
xor eax, eax
mov dword [ebp - 0xc], esi
mov ebx, 0x493e0
mov ecx, dword [esi + 0x220]
test ecx, ecx
mov edx, dword [esi + 0x224]
setg al
test edx, edx
jle 0x4af4b4
or eax, 2
sub eax, 1
je 0x4af4d0
sub eax, 1
je 0x4af4cc
sub eax, 1
jne 0x4af4d2
cmp ecx, edx
mov ebx, ecx
cmovge ebx, edx
jmp 0x4af4d2
mov ebx, edx
jmp 0x4af4d2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov esi, dword [esi + 0x570]
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub esi, edi
sub ecx, eax
mov eax, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
sub ecx, dword [eax + 0x574]
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 0x4af5b4
test ebx, ebx
js 0x4af5b4
mov edi, dword [ebp - 0x10]
or edx, 0xffffffff
push ebx
push 0xffffffffffffffff
mov ecx, edi
call fcn.00492e70
add esp, 8
test eax, eax
jle 0x4af5aa
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 0x4af570
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4af58d
mov ecx, dword [ebp - 8]
jmp 0x4af490
cmp ebx, eax
je 0x4af599
test eax, eax
je 0x4af5aa
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 0x4af490
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 0x4b2d70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5bc324]
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 0x4b2e00
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b2e33
push str.Received_too_short_packet
push edi
call fcn.004909c0
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.00523a6a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4b2e54
jmp dword [ecx*4 + 0x4b2f8c]
cmp edx, 4
jle case.0x4b2e54.4
mov ebx, dword [esi + 0x15c]
movzx ecx, byte [ebx + 2]
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4b2e54.4
mov ecx, dword [ebp - 0x90]
lea eax, [edx - 4]
push eax
lea eax, [ebx + 4]
mov edx, 1
push eax
call fcn.00490e50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b2ec7
mov edx, 5
mov ecx, esi
call fcn.004b2a90
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
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 ecx, dword [edi + 0x74]
mov dword [edi + 0x4f8], eax
mov dword [edi + 0x4fc], ecx
jmp case.0x4b2e54.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x596e34
push edi
call fcn.00490900
jmp 0x4b2f54
lea eax, [edx - 2]
mov ecx, esi
mov edx, dword [esi + 0x15c]
push eax
add edx, 2
call fcn.004b1cc0
add esp, 4
test eax, eax
je case.0x4b2e54.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x5931f0
push edi
call fcn.004909c0
add esp, 0xc
mov ecx, dword [ebp - 0x90]
call fcn.004a99c0
test eax, eax
je 0x4b2e20
mov edx, 5
mov ecx, esi
call fcn.004b2a90
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
Function at 0x4b65b0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5bc324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x10
push edi
lea ecx, [ebp - 0x1c]
or edi, 0xffffffff
push ecx
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x14]
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b6607
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov edx, dword [ebp - 0x18]
mov ecx, esi
call fcn.00492cd0
cmp edi, 0xffffffff
jne 0x4b663a
push str.Error_accept__ing_server_connect
push ebx
call fcn.004909c0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.00490900
add esp, 8
mov dword [esi + 0x158], 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 + 0x168], 1
mov eax, dword [ebx + 0x1f0]
test eax, eax
je 0x4b66b4
push 1
push edi
push dword [ebx + 0x1f4]
call eax
add esp, 0xc
test eax, eax
je 0x4b66b4
mov edx, edi
mov ecx, esi
call fcn.00492cd0
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523a6a
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.00523a6a
mov esp, ebp
pop ebp
ret
Function at 0x4b8aa0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [edx - 0xc8]
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov ecx, dword [ebx]
cmp eax, 0x64
jb 0x4b8ad2
push str.Couldnt_set_desired_mode
push ecx
call fcn.004909c0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 0xc8
je 0x4b8ae9
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00490900
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x4b8b01
mov ecx, ebx
call fcn.004b7a40
mov esi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x14
jne 0x4b8c25
mov esi, dword [ebx]
xor edi, edi
cmp dword [esi + 0x310], 2
jne 0x4b8b78
mov eax, dword [esi + 0x8f48]
test eax, eax
je 0x4b8b78
cmp byte [eax], 0
je 0x4b8b78
push 0x2f
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x4b8b78
push dword [esi + 0x8f48]
call dword [0x5bcc80]
mov edi, eax
add esp, 4
test edi, edi
je 0x4b8bcf
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8b54
sub ecx, edx
cmp byte [ecx + edi - 1], 0x2f
je 0x4b8b78
push 0x2f
push edi
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x4b8b78
mov byte [eax + 1], 0
mov ecx, dword [esi + 0x3d8]
test ecx, ecx
jne 0x4b8b96
cmp dword [esi + 0x334], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x590df6
test edi, edi
mov eax, edx
cmovne eax, edi
push eax
mov eax, 0x591494
cmove eax, edx
push eax
push ecx
push str._s_s_s
call fcn.004a0b20
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b8bdd
test edi, edi
je 0x4b8bcf
push edi
call dword [0x5bcc7c]
add esp, 4
mov esi, 0x1b
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebx + 0x4d0]
push 0x5931f0
push eax
call fcn.004cba20
add esp, 0xc
mov esi, eax
test edi, edi
je 0x4b8c02
push edi
call dword [0x5bcc7c]
add esp, 4
push dword [ebp - 4]
call dword [0x5bcc7c]
add esp, 4
test esi, esi
jne 0x4b8c46
mov dword [ebx + 0x544], 0x1f
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x15
jne 0x4b8c2e
push 0xd
jmp 0x4b8c35
cmp eax, 0x16
jne 0x4b8c46
push 0xe
mov edx, 1
mov ecx, ebx
call fcn.004b7f10
add esp, 4
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 2], al
push 3
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xff
push eax
push dword [esi + 0x154]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 3], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4bca89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004909c0
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.004bc930
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret