joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de030
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4de042
xor al, al
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x10]
call fcn.00401c90
cmp eax, 0x20
jne 0x4de066
lea eax, [esi + 0x30]
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.00401c90
cmp eax, 0xc
jae 0x4de06f
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
lea ecx, [esi + 0x10]
call fcn.00414910
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.00414910
mov dword [ebx], 0x61707865
mov edi, eax
mov dword [ebx + 4], 0x3320646e
mov dword [ebx + 8], 0x79622d32
mov dword [ebx + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [ebx + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x19]
or ecx, eax
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], ecx
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x34], ecx
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x38], ecx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
pop edi
or ecx, eax
mov al, 1
pop esi
mov dword [ebx + 0x3c], ecx
pop ebx
pop ebp
ret 8
Function at 0x4e01f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f97e0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6baac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e02fc
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4e0234
cmp ebx, 1
jne 0x4e02fc
mov edi, dword [ebp + 0xc]
cmp edi, 4
ja 0x4e02fc
push 0xfa74
mov dword [ebp - 4], 0
call sub.mfc140.dll_Ordinal_1507
add esp, 4
test eax, eax
je 0x4e02e3
mov dword [eax], esi
mov dword [esi + 0x20], eax
mov dword [eax + 4], 0xa
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc64], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [eax + 0x28], bl
mov dword [eax + 0xc54], 0
mov dword [eax + 0xc50], 0
mov dword [eax + 0xc4c], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4eb180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eed38
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6baac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00420610
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.MimeHeader.0
mov dword [esi + 8], 0
call fcn.00440c10
mov byte [esi + 0x28], 1
mov eax, esi
mov dword [esi + 0x2c], vtable.MimeControl.0
mov word [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ef530
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa3be
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x6baac0]
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, ecx
mov dword [ebp - 0xcc], edi
lea ecx, [edi + 8]
mov dword [ebp - 0xd0], edi
mov dword [edi], vtable.HttpControl.0
call fcn.004118f0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
call fcn.00411a70
lea ecx, [edi + 0x54]
mov byte [ebp - 4], 1
mov byte [edi + 0x50], 0
call fcn.00505160
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 2
call fcn.004a4740
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 3
mov byte [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0x7d0
call fcn.00420e20
lea ecx, [edi + 0x118]
mov byte [ebp - 4], 4
mov byte [edi + 0x10c], 1
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0
call fcn.004eb180
lea ecx, [edi + 0x158]
mov byte [ebp - 4], 5
mov word [edi + 0x154], 0x101
call fcn.00420e20
lea ecx, [edi + 0x1cc]
mov byte [ebp - 4], 6
call fcn.00420e20
lea ecx, [edi + 0x240]
mov byte [ebp - 4], 7
call fcn.00407810
lea ecx, [edi + 0x358]
mov byte [ebp - 4], 8
call fcn.00407810
lea ecx, [edi + 0x470]
mov byte [ebp - 4], 9
call fcn.005051e0
lea ecx, [edi + 0xdbc]
mov byte [ebp - 4], 0xa
call fcn.00407810
lea ecx, [edi + 0xed8]
mov byte [ebp - 4], 0xb
mov byte [edi + 0xed4], 1
call fcn.00420e20
lea ecx, [edi + 0xf6c]
mov byte [ebp - 4], 0xc
mov word [edi + 0xf4c], 0x101
mov dword [edi + 0xf50], 0x7d0
mov dword [edi + 0xf58], 0
mov dword [edi + 0xf5c], 0
mov dword [edi + 0xf60], 0xea60
mov dword [edi + 0xf64], 0xffff
mov byte [edi + 0xf68], 1
call fcn.00420e20
lea ecx, [edi + 0xfe4]
mov byte [ebp - 4], 0xd
mov byte [edi + 0xfe0], 0
call fcn.00420e20
mov byte [ebp - 4], 0xe
mov word [edi + 0x1058], 0
push 0xb8
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc8]
call fcn.00432420
mov byte [ebp - 4], 0xf
mov byte [edi + 0x148], 1
call fcn.00446330
mov dword [edi + 0x74], eax
lea ecx, [edi + 0x118]
lea eax, [ebp - 0xc8]
push eax
push str.text_html_application_xhtmlxml_application_xml_q0.9___q0.8
push str.Accept
call fcn.004ee690
lea eax, [ebp - 0xc8]
push eax
push str.keep_alive
push str.Connection
lea ecx, [edi + 0x118]
call fcn.004ee690
lea eax, [ebp - 0xc8]
push eax
push str.Mozilla_5.0__Windows_NT_6.3__WOW64__rv:49.0__Gecko_20100101_Firefox_49.0
push str.User_Agent
lea ecx, [edi + 0x118]
call fcn.004ee690
lea eax, [ebp - 0xc8]
push eax
push str.en_us_en_q0.5
push str.Accept_Language
lea ecx, [edi + 0x118]
call fcn.004ee690
lea ecx, [ebp - 0xc8]
call fcn.00432440
mov eax, edi
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.005ebe04
mov esp, ebp
pop ebp
ret
Function at 0x4fc170
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x990]
test eax, eax
je 0x4fc185
mov ecx, eax
pop ebp
jmp fcn.00531430
cmp dword [ecx + 0x99c], 2
jne 0x4fc19a
add ecx, 0x164
pop ebp
jmp fcn.00528ab0
add ecx, 0x640
pop ebp
jmp fcn.0050a910

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, ecx
mov byte [eax], 0
cmp byte [edi + 8], 0
jne 0x4fc941
mov ecx, dword [ebp + 0x1c]
push dword [0x6b1f18]
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x4fc98c
push dword [ebp + 0x1c]
mov ecx, dword [esi + 0x918]
push edi
test ecx, ecx
je 0x4fc95e
call fcn.00531430
jmp 0x4fc97f
cmp dword [esi + 0x924], 2
jne 0x4fc974
lea ecx, [esi + 0xec]
call fcn.00528ab0
jmp 0x4fc97f
lea ecx, [esi + 0x5c8]
call fcn.0050a910
test al, al
je 0x4fca5c
mov ebx, 0x7530
mov ecx, dword [ebp + 8]
call fcn.00401c90
push dword [ebp + 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [esi - 0x78]
mov esi, dword [ebp + 8]
mov ecx, eax
push edi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
call fcn.004fc650
mov byte [ebp + 0x1b], al
test al, al
je 0x4fca5c
mov ecx, esi
call fcn.00401c90
cmp eax, dword [ebp + 0x10]
jbe 0x4fc9e0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp + 0x14]
pop ebx
pop edi
pop esi
mov byte [ecx], al
mov al, 1
mov esp, ebp
pop ebp
ret 0x18
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 8], eax
xor esi, esi
nop word [eax + eax]
mov ecx, dword [ebp + 8]
call fcn.00401c90
cmp eax, dword [ebp + 0x10]
jne 0x4fca31
cmp esi, ebx
jae 0x4fca31
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fc650
mov byte [ebp + 0x1b], al
call sub.KERNEL32.dll_GetTickCount
mov esi, eax
mov eax, dword [ebp - 8]
cmp esi, eax
jb 0x4fca5c
sub esi, eax
cmp esi, ebx
jae 0x4fca4b
cmp byte [ebp + 0x1b], 0
jne 0x4fc9f0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp + 0x14]
pop ebx
pop edi
pop esi
mov byte [ecx], al
mov al, byte [ebp + 0x1b]
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
push str.Timed_out......
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [edi + 0x10], 1
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x500c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fbcc6
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x6baac0]
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 edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x100]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x108], eax
push ecx
push 0
push edi
push eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, eax
xor al, al
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x101], al
test ecx, ecx
jne 0x500de0
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x500e4c
push ecx
call fcn.0040f690
mov edi, eax
add esp, 4
test edi, edi
jne 0x500cca
xor al, al
jmp 0x500e4c
lea eax, [ebp - 0x100]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x500d6a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x100]
cmp eax, 4
jne 0x500d25
cmp ecx, 4
jne 0x500d4c
push dword [edi]
mov ecx, esi
call fcn.00421090
push edi
mov byte [ebp - 0x101], 1
call sub.mfc140.dll_Ordinal_266
add esp, 4
jmp 0x500e46
cmp eax, 1
je 0x500d2f
cmp eax, 2
jne 0x500d4c
push edi
mov ecx, esi
call fcn.00421120
push edi
mov byte [ebp - 0x101], 1
call sub.mfc140.dll_Ordinal_266
add esp, 4
jmp 0x500e46
push ecx
push edi
mov ecx, esi
call fcn.004214b0
push edi
mov byte [ebp - 0x101], 1
call sub.mfc140.dll_Ordinal_266
add esp, 4
jmp 0x500e46
push 0x74
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.00420e20
push dword [ebp - 0x108]
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.004217b0
mov esi, dword [ebx]
lea ecx, [ebp - 0x88]
call fcn.00414900
push eax
push str.RegistryQueryError2
mov ecx, ebx
call dword [esi + 0x2c]
push dword [ebp - 0x10c]
mov eax, dword [ebx]
mov ecx, ebx
push str.ValueName
call dword [eax + 0x2c]
lea ecx, [ebp - 0x88]
call fcn.00420e70
push edi
call sub.mfc140.dll_Ordinal_266
add esp, 4
jmp 0x500e46
push 0x74
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xfc]
call fcn.00420e20
push dword [ebp - 0x110]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 1
call fcn.004217b0
mov esi, dword [ebx]
lea ecx, [ebp - 0xfc]
call fcn.00414900
push eax
push str.RegistryQueryError
mov ecx, ebx
call dword [esi + 0x2c]
mov edx, dword [ebx]
mov ecx, ebx
push edi
push str.ValueName
call dword [edx + 0x2c]
lea ecx, [ebp - 0xfc]
call fcn.00420e70
mov al, byte [ebp - 0x101]
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.005ebe04
mov esp, ebp
pop ebp
ret
Function at 0x5067f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x298], 2
jne 0x506802
pop ebp
jmp fcn.005076c0
pop ebp
jmp fcn.005077e0
Function at 0x506fb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6baac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x294]
cmp eax, 0xffffffff
jne 0x506fdd
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 8], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
push 4
jne 0x506ff9
lea ecx, [ebp - 0xc]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 8

Function at 0x5076c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6baac0]
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, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv4
push edi
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.00430cc0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00426950
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x50779d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x50777d
test eax, eax
js 0x50777d
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, ebx
call fcn.00425470
push dword [ebp - 0x2e]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x34]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x5077ab
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.0050abb0
add esp, 0xc
jmp 0x5077a9
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00430db0
mov al, bl
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.005ebe04
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5077e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc628
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6baac0]
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, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv6
push edi
mov dword [ebp - 0x40], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.00430cc0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00426950
mov eax, dword [ebp - 0x40]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x5078c0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1c
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x5078a0
test eax, eax
js 0x5078a0
mov ecx, ebx
call fcn.00426950
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00509da0
add esp, 8
push dword [ebp - 0x3a]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x5078ce
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname_ipv6
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.0050abb0
add esp, 0xc
jmp 0x5078cc
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00430db0
mov al, bl
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.005ebe04
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50aa70
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc94b
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x6baac0]
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 edi, ecx
cmp dword [edi + 0x294], 0xffffffff
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x15c], ebx
jne 0x50aabc
xor al, al
jmp 0x50ab8c
mov eax, dword [ebp + 8]
mov edx, 0x7530
test eax, eax
mov ecx, edx
push 0x124
cmovne ecx, eax
lea eax, [ebp - 0x154]
cmp ecx, edx
push 0
cmova ecx, edx
push eax
mov dword [ebp - 0x158], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x154]
push esi
call fcn.004efb00
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_GetTickCount
push 0
mov esi, eax
lea eax, [ebp - 0x30]
push 0x20
push eax
push dword [edi + 0x294]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x50ab68
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
je 0x50ab2d
test eax, eax
jns 0x50ab36
call ebx
cmp eax, 0x2733
jne 0x50abaa
call sub.KERNEL32.dll_GetTickCount
cmp eax, esi
cmovb esi, eax
sub eax, esi
cmp eax, dword [ebp - 0x158]
jae 0x50abaa
push 0
push 0x20
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x294]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x50ab24
mov ebx, dword [ebp - 0x15c]
cmp byte [ebx + 0xad], 0
je 0x50ab7d
mov eax, dword [ebx]
mov ecx, ebx
push str.TCP_connection_cleanly_closed_by_peer.
call dword [eax + 0x18]
mov bl, 1
lea ecx, [ebp - 0x154]
call fcn.004efbd0
mov al, bl
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.005ebe04
mov esp, ebp
pop ebp
ret 0xc
xor bl, bl
jmp 0x50ab7f

Function at 0x50b1c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6baac0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x294], 0xffffffff
je 0x50b234
cmp byte [ebp + 8], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
je 0x50b20b
cmp byte [ecx + 0xad], 0
je 0x50b206
mov eax, dword [ecx]
push str.Turning_on_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 8]
jmp 0x50b221
cmp byte [ecx + 0xad], 0
je 0x50b21e
mov eax, dword [ecx]
push str.Turning_off_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 0xc]
push 4
push eax
push 1
push 6
push dword [esi + 0x294]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 8
Function at 0x50b2e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0xd0], 0x4901fb2a
je 0x50b30e
mov ecx, dword [ebp + 0xc]
push str.Internal_error:_Socket_object_already_deleted.
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0
call fcn.0040c4e0
add esp, 4
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
cmp dword [esi + 0xd8], ecx
push edi
lea edi, [esi + 0xd8]
je 0x50b387
test ecx, ecx
je 0x50b387
cmp ecx, 0x1000
jb 0x50b387
mov eax, 0x800000
cmp ecx, eax
cmovbe eax, ecx
and eax, 0xfffff000
cmp dword [esi + 0x294], 0xffffffff
mov dword [edi], eax
je 0x50b387
push ebx
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 0xad], 0
je 0x50b36d
mov eax, dword [ebx]
mov ecx, ebx
push str.Setting_SO_SNDBUF_size
call dword [eax + 0x18]
push dword [edi]
mov ecx, ebx
push str.sendBufSize
call fcn.00431470
push 4
push edi
push 0x1001
push 0xffff
push dword [esi + 0x294]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6baac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x294]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x50b3d1
mov byte [esi + 0x290], 0
cmp byte [esi + 0x290], 0
je 0x50b410
cmp byte [esi + 0xd6], 0
jne 0x50b410
cmp byte [esi + 0xd5], 0
jne 0x50b465
cmp byte [esi + 0xd4], 0
jne 0x50b465
push 2
push 1
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x50b414
push edi
mov ecx, esi
call fcn.0050a780
xor al, al
jmp 0x50b467
cmp eax, 0xffffffff
je 0x50b41d
test eax, eax
jns 0x50b465
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x50b465
push str.isConnected_recv_peek
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.00430cc0
push edi
push 0
mov dword [ebp - 4], 0
call fcn.0050b020
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.00430db0
xor al, al
jmp 0x50b467
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.005ebe04
mov esp, ebp
pop ebp
ret 4