joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4edb00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5796f1
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0xa0], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.0043d4c0
movzx eax, al
test eax, eax
je 0x4edb4a
mov eax, 1
jmp 0x4edd4c
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4edd4a
push 1
lea ecx, [ebp - 0x9c]
call fcn.00405390
mov dword [ebp - 4], 0
push 0x40
push 0x20
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
lea ecx, [ebp - 0x9c]
call fcn.00405440
lea ecx, [ebp - 0x9c]
call fcn.00405500
movzx ecx, al
test ecx, ecx
je 0x4edd38
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x114]
call fcn.00567910
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x114]
call fcn.00567830
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.00401830
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.00569590
add esp, 8
mov byte [ebp - 4], 2
push 0x4c026f
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00401590
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.004015c0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00401590
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.0044d3e0
add esp, 0x20
push 0x4c026f
lea ecx, [ebp - 0x174]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00401590
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004015c0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x184]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00401590
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18c]
push ecx
call fcn.0044d3e0
add esp, 0x20
lea ecx, [ebp - 0x130]
call fcn.004048a0
push eax
lea ecx, [ebp - 0x14c]
call fcn.004048a0
push eax
call fcn.004c0320
add esp, 8
test eax, eax
jne 0x4edd1a
mov dword [ebp - 0x190], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.00404950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00405330
mov eax, dword [ebp - 0x190]
jmp 0x4edd4c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.00404950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00405330
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xa0]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret
Function at 0x4efec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579b60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, dword [0x5e8720]
jae 0x4eff1c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [0x5edb44]
test eax, eax
je 0x4eff1a
jmp 0x4eff1c
jmp 0x4efef4
mov ecx, dword [ebp - 0x44]
mov dl, byte [ebp + 8]
mov byte [ecx + 0x120], dl
mov eax, dword [ebp - 0x44]
mov cl, byte [ebp + 0xc]
mov byte [eax + 0x121], cl
push 0x59c184
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x4eff5a
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x104
call fcn.004f0570
cmp dword [ebp - 0x18], eax
jae 0x4f004f
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x104
call fcn.004f0590
mov ecx, dword [eax]
cmp dword [ecx + 0x13c], 0
je 0x4effce
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x104
call fcn.004f0590
mov eax, dword [eax]
push eax
call fcn.004ebae0
add esp, 4
test eax, eax
jne 0x4effcc
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x104
call fcn.004f0590
mov edx, dword [eax]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.004ed0d0
jmp 0x4f004a
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x104
call fcn.004f0590
mov ecx, dword [eax]
cmp dword [ecx + 0x11c], 0
je 0x4f004a
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x104
call fcn.004f0590
mov ecx, dword [eax]
add ecx, 0xe0
call fcn.00401830
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00569590
add esp, 8
mov byte [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x59bb2e
call fcn.00405220
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x5eda00
call fcn.004f35e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00404950
jmp 0x4eff51
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401980
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret 8
Function at 0x4f0340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
push 0x5ed804
lea ecx, [ebp - 0x2c]
call fcn.00404910
mov dword [ebp - 4], 0
push 0
push 0x59c1b8
lea ecx, [ebp - 0x2c]
call fcn.004016a0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x4f0409
lea ecx, [ebp - 0x2c]
call fcn.00401610
cmp dword [ebp - 0x30], eax
jae 0x4f0409
mov eax, dword [ebp - 0x30]
push eax
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004016f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004048a0
push eax
lea edx, [ebp - 0x68]
push edx
call fcn.00568260
add esp, 8
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x6c]
add ecx, 0x1a4
call fcn.00401810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.004017f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404950
jmp 0x4f041c
push 0x59c1bc
mov ecx, dword [ebp - 0x6c]
add ecx, 0x1a4
call fcn.0041a5f0
push str.show0
mov edx, dword [ebp - 0x6c]
add edx, 0x1a4
push edx
call fcn.0042a090
add esp, 8
movzx eax, al
test eax, eax
je 0x4f044b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404950
jmp 0x4f047b
push 0
push 0
push 0
push 0x4eb2a0
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov ecx, dword [ebp - 0x6c]
call fcn.004ee2d0
mov dword [eax], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret
Function at 0x4f2350
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579ff6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5e5e08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp + 8]
call fcn.005638c0
movzx eax, al
test eax, eax
jne 0x4f2394
xor al, al
jmp 0x4f2575
push 0x59c2bc
lea ecx, [ebp - 0x68]
call fcn.00405220
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp + 8]
call fcn.00564790
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc4]
push ecx
mov ecx, dword [ebp - 0xbc]
call fcn.00401470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00404950
mov ecx, dword [ebp - 0xbc]
call fcn.0040bfc0
movzx edx, al
test edx, edx
je 0x4f241a
xor al, al
jmp 0x4f2575
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x59c2c4
lea ecx, [ebp - 0xa0]
call fcn.00405220
mov dword [ebp - 4], 2
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00564500
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.00404950
lea ecx, [ebp - 0x44]
call fcn.0040c280
cmp eax, 8
je 0x4f248f
mov byte [ebp - 0xa1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040c240
mov al, byte [ebp - 0xa1]
jmp 0x4f2575
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040cc10
jmp 0x4f24b4
push 0
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0041b950
lea edx, [ebp - 0xb4]
push edx
lea ecx, [ebp - 0x44]
call fcn.0040cc40
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040dab0
movzx eax, al
test eax, eax
je 0x4f24ed
lea ecx, [ebp - 0x4c]
call fcn.0041b930
mov ecx, dword [ebp - 0x10]
mov dl, byte [eax]
mov byte [ecx], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4f24a3
fld dword [0x59c30c]
fstp dword [ebp - 0x2c]
push 0
call fcn.004f3170
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x18]
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xc8], eax
fild qword [ebp - 0xcc]
fdiv dword [ebp - 0x2c]
fstp dword [ebp - 0x28]
fild dword [ebp + 0xc]
fld dword [ebp - 0x28]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4f2559
mov byte [ebp - 0xb5], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040c240
mov al, byte [ebp - 0xb5]
jmp 0x4f2575
mov byte [ebp - 0xb6], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040c240
mov al, byte [ebp - 0xb6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f5140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a4eb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x290], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004b6500
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x294]
call fcn.004f52e0
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x29c]
push edx
push str.KuaiZip_
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x254]
call fcn.00401770
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x270]
push eax
call fcn.0056a1f0
add esp, 8
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x28c]
push eax
call fcn.00403a60
add esp, 0xc
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2b4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403af0
add esp, 0xc
mov ecx, dword [ebp - 0x290]
or ecx, 1
mov dword [ebp - 0x290], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.00404950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call fcn.00404950
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call fcn.004017f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00404950
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret 4
Function at 0x4fb590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x57acc3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5e5e08]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x5edb6c
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x5edb6c
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x5ad92c
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004fd300
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x523750
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5e5e08]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x5237a5
mov eax, dword [esp]
cmp al, 2
jne 0x52379f
shr eax, 8
cmp al, 2
jne 0x52379f
call fcn.00526740
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b645d
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004b645d
add esp, 0x194
ret
Function at 0x531e30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x531e62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x531fa0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x531fbb
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x531fef
cmp eax, 2
jg 0x531fef
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5a4108]
push 2
push edx
call fcn.004b7d59
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.004b7d59
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x53237d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x532354
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00524b70
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00532180
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8624], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5340e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x480], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x53411e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.005320f0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x484]
push edx
mov dword [esp + 0xc], 1
call fcn.00536970
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x488]
push eax
call fcn.00536970
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x534197
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.005320f0
add esp, 0x10
add esp, 0x14
ret
Function at 0x534790
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5e5e08]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x534905
cmp dword [ebp + 0x270], 0
push ebx
push esi
jne 0x5348fa
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x53481c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00524b70
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00532180
add esp, 0x18
jmp 0x534903
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.004b6500
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x534869
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00524b70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00532180
add esp, 0x18
jmp 0x534903
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.00534750
test eax, eax
jne 0x5348aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00524b70
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00532180
add esp, 0x18
jmp 0x534903
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.00534750
test eax, eax
jne 0x5348fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00524b70
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00532180
add esp, 0x18
jmp 0x534903
push ebp
call fcn.005346f0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.004b645d
add esp, 0x10c
ret

Function at 0x534920
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x534963
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00524b70
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.005320f0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.005320f0
add esp, 8
pop esi
pop ecx
ret
Function at 0x534980
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x5e5e08]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x5ede8c]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x534a44
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004b6500
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x20], 0x9c
mov dword [esp + 0x24], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x534a38
mov dword [0x5ede8c], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b645d
add esp, 0xac
ret
mov dword [0x5ede8c], 1
jmp 0x534a49
cmp eax, 2
je 0x534a91
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x534a79
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x534a91
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.004b645d
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5e8]
test esi, esi
je 0x534b29
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x534aef
cmp dword [edi + 0x40], eax
je 0x534b29
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x534b02
mov eax, dword [edi + 0x40]
push 0x534ab0
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.005529a0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x534b32
mov dword [edi + 0x5e8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x534b3c
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x534b61
push esi
call fcn.00527ef0
add esp, 4
test eax, eax
jne 0x534b75
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x534b29
mov eax, edi
pop edi
pop esi
add esp, 8
ret