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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x63d548
mov edi, 0x63d54c
xor edx, edx
xor esi, esi
sub ebx, ecx
lea eax, [ecx + 8]
sub edi, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov edi, edi
add edx, dword [esi*4 + 0x63d548]
movzx ecx, byte [eax - 8]
sub cl, dl
mov byte [ebp + esi - 0x24], cl
mov ecx, dword [eax - 8]
sub ecx, edx
movzx edx, byte [eax - 4]
shr ecx, 0x1f
add ecx, dword [esi*4 + 0x63d54c]
mov edi, dword [eax + 4]
sub dl, cl
mov byte [ebp + esi - 0x23], dl
mov edx, dword [eax - 4]
sub edx, ecx
movzx ecx, byte [eax]
shr edx, 0x1f
add edx, dword [ebx + eax]
add esi, 4
sub cl, dl
mov byte [ebp + esi - 0x26], cl
mov ecx, dword [eax]
sub ecx, edx
mov edx, dword [ebp - 0x2c]
shr ecx, 0x1f
add ecx, dword [edx + eax]
movzx edx, byte [eax + 4]
sub dl, cl
sub edi, ecx
mov byte [ebp + esi - 0x25], dl
shr edi, 0x1f
add eax, 0x10
mov edx, edi
cmp esi, 0x20
jl 0x52fa40
mov eax, dword [ebp - 0x28]
lea ecx, [edi - 1]
xor edx, edx
mov esi, dword [eax - 8]
movzx edi, byte [ebp + edx - 0x24]
xor edi, esi
and edi, ecx
xor edi, esi
mov esi, dword [eax - 4]
mov dword [eax - 8], edi
movzx edi, byte [ebp + edx - 0x23]
xor edi, esi
and edi, ecx
xor edi, esi
mov esi, dword [eax]
mov dword [eax - 4], edi
movzx edi, byte [ebp + edx - 0x22]
xor edi, esi
and edi, ecx
xor edi, esi
mov esi, dword [eax + 4]
mov dword [eax], edi
movzx edi, byte [ebp + edx - 0x21]
xor edi, esi
and edi, ecx
xor edi, esi
mov dword [eax + 4], edi
add edx, 4
add eax, 0x10
cmp edx, 0x20
jl 0x52fab2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
Function at 0x530640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 2
sub edi, eax
mov ecx, 0x1f
lea esp, [esp]
mov dl, byte [edi + eax]
mov bl, byte [eax]
and dl, 3
add dl, dl
add dl, dl
and bl, 3
xor dl, bl
mov byte [esi - 2], dl
mov edx, dword [edi + eax]
mov ebx, dword [eax]
shr edx, 2
and dl, 3
add dl, dl
add dl, dl
shr ebx, 2
and bl, 3
xor dl, bl
mov byte [esi - 1], dl
mov edx, dword [edi + eax]
mov ebx, dword [eax]
shr edx, 4
and dl, 3
add dl, dl
add dl, dl
shr ebx, 4
and bl, 3
xor dl, bl
mov byte [esi], dl
mov edx, dword [edi + eax]
mov ebx, dword [eax]
shr edx, 6
and dl, 3
add dl, dl
shr ebx, 6
add dl, dl
and bl, 3
xor dl, bl
mov byte [esi + 1], dl
add eax, 4
add esi, 4
dec ecx
jne 0x530660
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x7c]
mov esi, dword [ebp + 0xc]
mov dl, byte [esi + 0x7c]
mov edi, dword [ebp + 8]
and cl, 3
add cl, cl
add cl, cl
and dl, 3
xor cl, dl
mov byte [edi + 0x7c], cl
mov ecx, dword [eax + 0x7c]
mov edx, dword [esi + 0x7c]
shr ecx, 2
and cl, 3
add cl, cl
add cl, cl
shr edx, 2
and dl, 3
xor cl, dl
mov byte [edi + 0x7d], cl
mov eax, dword [eax + 0x7c]
mov ecx, dword [esi + 0x7c]
shr eax, 4
and al, 3
add al, al
shr ecx, 4
add al, al
and cl, 3
xor al, cl
mov byte [edi + 0x7e], al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x530960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov ecx, 0x20
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 0x7c]
add ecx, 0x1da
add edx, 0xfe
mov dword [ebp - 0x84], ecx
mov dword [ebp - 8], edx
mov ecx, 1
jmp 0x530a10
mov edx, dword [eax + ecx*4]
add edx, 0x1fe
mov dword [ebp + ecx*4 - 0x84], edx
inc ecx
cmp ecx, 0x1f
jl 0x530a10
lea edx, [ebp - 0x84]
sub edx, eax
mov dword [ebp - 0x10c], edx
lea edx, [ebp - 0x80]
sub edx, eax
lea esi, [ebp - 0x104]
lea edi, [ebp - 0x100]
sub esi, eax
sub edi, eax
mov dword [ebp - 0x108], edx
lea ecx, [eax + 8]
xor edx, edx
push ebx
jmp 0x530a60
mov ebx, dword [ebp + edx - 0x84]
sub ebx, dword [ebp + edx - 0x104]
add edx, 0x10
mov dword [ecx - 8], ebx
mov ebx, dword [ebp + edx - 0x90]
sub ebx, dword [ebp + edx - 0x110]
add ecx, 0x10
mov dword [ecx - 0x14], ebx
mov ebx, dword [ebp - 0x10c]
mov ebx, dword [ebx + ecx - 0x10]
sub ebx, dword [esi + ecx - 0x10]
mov dword [ecx - 0x10], ebx
mov ebx, dword [ebp - 0x108]
mov ebx, dword [ebx + ecx - 0x10]
sub ebx, dword [edi + ecx - 0x10]
mov dword [ecx - 0xc], ebx
cmp edx, 0x80
jl 0x530a60
mov esi, 4
pop ebx
mov edx, dword [eax + 0x7c]
mov ecx, edx
shr ecx, 7
imul ecx, ecx, 0x13
add dword [eax], ecx
and edx, 0x7f
mov dword [eax + 0x7c], edx
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [eax + ecx*4]
mov edi, edx
movzx edx, dl
shr edi, 8
add dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, 0x1f
jl 0x530ad0
dec esi
jne 0x530ab8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
Function at 0x531a70
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x531b01
test ebx, ebx
je 0x531b01
test edi, edi
je 0x531b01
push esi
mov esi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x44]
push ecx
push 0x20
push eax
call fcn.0050ecd0
mov dl, byte [ebp - 0x25]
and byte [ebp - 0x44], 0xf8
and dl, 0x3f
lea eax, [ebp - 0xc4]
or dl, 0x40
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x25], dl
call fcn.0052fb10
add esp, 0x10
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x2c4]
call fcn.005317d0
lea ecx, [ebp - 0x2c4]
call fcn.0052f950
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
Function at 0x54d4e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6838c8], 0
jne 0x54d50c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
push edi
push 0x190
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x220], 1
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x909
call edi
mov dword [ebp - 0x220], eax
cmp eax, 0x276c
jne 0x54d61d
mov ecx, 5
push esi
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], 2
jmp 0x54d576
mov ecx, dword [ebp - 0x224]
cmp ecx, 1
jl 0x54d5d9
dec dword [ebp - 0x21c]
jns 0x54d594
dec ecx
mov dword [ebp - 0x21c], 9
mov dword [ebp - 0x224], ecx
test ecx, ecx
je 0x54d5d9
movzx edx, byte [ebp - 0x21c]
movzx eax, cl
push 0x190
shl dx, 8
lea ecx, [ebp - 0x218]
or dx, ax
push 0
push ecx
movzx esi, dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push esi
call edi
mov dword [ebp - 0x220], eax
cmp eax, 0x276c
je 0x54d570
pop esi
test eax, eax
jne 0x54d625
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
push ecx
push str.Using_ws2_32.dll_version__d__d
lea edx, [ebp - 0x88]
push 0x50
push edx
call fcn.0044d440
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
add esp, 0x14
lea ecx, [ebp - 0x88]
push ecx
push str.ws2_32_DLL_Version
mov ecx, ebx
call edx
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x54d6ab
cmp eax, 0x276b
jne 0x54d638
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x54d6a7
cmp eax, 0x276c
jne 0x54d64b
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x54d6a7
cmp eax, 0x2734
jne 0x54d65e
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x54d6a7
cmp eax, 0x2753
jne 0x54d671
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x54d6a7
cmp eax, 0x271e
jne 0x54d684
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x54d6a7
lea eax, [ebp - 0x220]
push eax
push str.WSAStartup_error:_0x_x
lea ecx, [ebp - 0x38]
push 0x32
push ecx
call fcn.0044d420
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call edx
mov edi, ebx
mov byte [0x6838c8], 0
call fcn.0054d3f0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x220], eax
pop edi
sete al
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
Function at 0x54da70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 0xd0], 0x4901fb2a
je 0x54daa0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Internal_error:_Socket_object_already_deleted.
call edx
push 0
call fcn.0040b200
add esp, 4
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp dword [ebx + 0xd8], eax
push esi
lea esi, [ebx + 0xd8]
je 0x54db1e
test eax, eax
je 0x54db1e
cmp eax, 0x1000
jb 0x54db1e
cmp eax, 0x800000
jbe 0x54dac9
mov eax, 0x800000
and eax, 0xfffff000
cmp dword [ebx + 0x294], 0xffffffff
mov dword [esi], eax
je 0x54db1e
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0x125], 0
je 0x54db03
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push str.Setting_SO_SNDBUF_size
mov ecx, edi
call edx
mov eax, dword [esi]
push eax
push str.sendBufSize
mov ecx, edi
call fcn.00459e10
mov ecx, dword [ebx + 0x294]
push 4
push esi
push 0x1001
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x54dbc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x294], 0xffffffff
je 0x54dc48
cmp byte [ebp + 8], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
je 0x54dc1c
cmp byte [ecx + 0x125], 0
je 0x54dbfe
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push str.Turning_on_TCP_NODELAY.
call edx
mov ecx, dword [esi + 0x294]
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [ecx + 0x125], 0
je 0x54dc31
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push str.Turning_off_TCP_NODELAY.
call eax
mov edx, dword [esi + 0x294]
push 4
lea ecx, [ebp - 8]
push ecx
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x54dc50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x54dc81
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], ecx
cmp byte [ebp + 8], cl
je 0x54dcd2
push ecx
push ecx
lea edx, [ebp - 0x1c]
push edx
push ecx
push ecx
push 0xc
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x98000004
push eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 0x7148
mov dword [ebp - 0xc], 0x1d0d8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [esi + 0x294]
push 4
lea edx, [ebp - 0x14]
push edx
jmp 0x54dcd8
push 4
lea ecx, [ebp - 0x18]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 8
Function at 0x54fb80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdd68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.ck_getsockname_ipv4
mov dword [ebp - 0x28], ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.0045a1b0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0044ef40
mov eax, dword [ebp - 0x28]
mov dword [ebx], 0
mov eax, dword [eax + 0x294]
cmp eax, 0xffffffff
je 0x54fc5c
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push eax
mov dword [ebp - 0x24], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x54fc3a
test eax, eax
js 0x54fc3a
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, edi
call fcn.00451510
mov ecx, dword [ebp - 0x1e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea ecx, [ebp - 0x34]
mov dword [ebx], edx
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
mov al, 1
jmp 0x54fc7b
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_getsockname
mov ecx, esi
call edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.0054dde0
add esp, 0xc
jmp 0x54fc6a
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, esi
call edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x54fca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdd98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.ck_getsockname_ipv6
mov dword [ebp - 0x34], ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0045a1b0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0044ef40
mov eax, dword [ebp - 0x34]
mov dword [ebx], 0
mov eax, dword [eax + 0x294]
cmp eax, 0xffffffff
je 0x54fd7b
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
push eax
mov dword [ebp - 0x30], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x54fd59
test eax, eax
js 0x54fd59
mov ecx, edi
call fcn.0044ef40
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.0054ce30
mov eax, dword [ebp - 0x2a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [ebx], ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
mov al, 1
jmp 0x54fd9a
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_getsockname_ipv6
mov ecx, esi
call eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.0054dde0
add esp, 0xc
jmp 0x54fd89
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, esi
call eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x550a00
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdeab
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
cmp dword [edi + 0x294], 0xffffffff
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x15c], ecx
je 0x550b14
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x550a58
cmp ecx, 0x7530
jbe 0x550a5f
mov dword [ebp + 8], 0x7530
push eax
lea ecx, [ebp - 0x158]
call fcn.004ba990
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_GetTickCount
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x20
lea edx, [ebp - 0x30]
mov esi, eax
mov eax, dword [edi + 0x294]
push edx
push eax
call ebx
test eax, eax
je 0x550ad1
cmp eax, 0xffffffff
je 0x550a9d
test eax, eax
jns 0x550aaa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x550b02
call sub.KERNEL32.dll_GetTickCount
cmp eax, esi
jae 0x550ab5
mov esi, eax
sub eax, esi
cmp eax, dword [ebp + 8]
jae 0x550b02
mov edx, dword [edi + 0x294]
push 0
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push edx
call ebx
test eax, eax
jne 0x550a94
mov ecx, dword [ebp - 0x15c]
cmp byte [ecx + 0x125], 0
je 0x550aec
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push str.TCP_connection_cleanly_closed_by_peer.
call edx
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.004baa50
mov al, 1
jmp 0x550b16
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.004baa50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x551bc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x298], 2
jne 0x551bd2
pop ebp
jmp fcn.0054fb80
pop ebp
jmp fcn.0054fca0
Function at 0x552660
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be038
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x5526a1
mov byte [esi + 0x290], 0
cmp byte [esi + 0x290], 0
je 0x5526e9
cmp byte [esi + 0xd6], 0
jne 0x5526e9
cmp byte [esi + 0xd5], 0
jne 0x552736
cmp byte [esi + 0xd4], 0
jne 0x552736
cmp byte [edi + 0x130], 0
jne 0x552736
push 2
push 1
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x5526ed
push edi
mov ecx, esi
call fcn.005506d0
xor al, al
jmp 0x552738
cmp eax, 0xffffffff
je 0x5526f6
test eax, eax
jns 0x552736
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x552736
push str.isConnected_recv_peek
push edi
lea ecx, [ebp - 0x24]
call fcn.0045a1b0
push edi
push 0
mov dword [ebp - 4], 0
call fcn.0054fb50
add esp, 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
xor al, al
jmp 0x552738
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 4
Function at 0x552760
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be070
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x68683c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x14]
push str.terminateConnection
push edi
lea ecx, [ebp - 0x20]
call fcn.0045a1b0
xor ebx, ebx
or ecx, 0xffffffff
mov dword [ebp - 4], ebx
cmp dword [esi + 0x294], ecx
jne 0x5527cc
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x20]
call fcn.0045a240
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esi + 0xd6], bl
lea eax, [esi + 0xd6]
jne 0x5527ab
push eax
lea ecx, [ebp - 0x14]
call fcn.0044d750
mov byte [ebp - 4], 1
cmp byte [ebp + 8], bl
jne 0x5527f6
push 1
call fcn.0044cc90
add esp, 4
mov byte [ebp + 0x17], 1
cmp byte [esi + 0x291], bl
jne 0x5528a9
cmp byte [ebp + 8], bl
jne 0x5528a9
cmp byte [esi + 0x292], bl
jne 0x5528a9
mov eax, dword [esi + 0x294]
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov byte [esi + 0x292], 1
cmp eax, ebx
je 0x552896
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.error_on_socket_shutdown.
mov ecx, edi
call eax
push edi
push ebx
call fcn.0054fb50
mov ecx, dword [esi + 0x294]
add esp, 8
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi + 0x294], edi
mov word [esi + 0x290], bx
mov byte [ebp - 4], bl
call fcn.0044d770
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.0045a240
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
push edx
push eax
mov ecx, esi
call fcn.00550a00
mov byte [ebp + 0x17], al
push str.AbortiveClose
lea ecx, [edi + 0x90]
call fcn.00451980
test al, al
je 0x5528e1
mov ecx, dword [esi + 0x294]
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x294]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, ebx
je 0x552914
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.error_on_closesocket.
mov ecx, edi
call edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push ebx
push eax
call fcn.0054dde0
add esp, 0xc
mov byte [ebp + 0x17], bl
mov dword [esi + 0x294], 0xffffffff
cmp byte [edi + 0x125], bl
je 0x55294f
cmp byte [esi + 0x291], bl
je 0x552935
push str.Closed_listen_socket.
jmp 0x552946
cmp byte [ebp + 0x17], bl
je 0x552941
push str.Cleanly_terminated_TCP_connection.
jmp 0x552946
push str.Terminated_TCP_connection.
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
lea ecx, [ebp - 0x14]
mov word [esi + 0x290], bx
mov byte [ebp - 4], bl
call fcn.0044d770
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
mov al, byte [ebp + 0x17]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10