joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495870
Capabilities:
Create shortcut via ishelllink
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push eax
push 0x68a97c
push 1
push 0
push 0x68a9bc
call esi
test eax, eax
jns 0x4958c9
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x68a97c
push 1
push 0
push 0x68a9bc
call esi
test eax, eax
jns 0x4958c9
push str.create_shortcut_interface_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4958e6
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x68a96c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4958c0
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 2
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x4958c0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ecx
mov ecx, esp
push esi
call fcn.004178d0
push reloc.WS2_32.dll_bind
call fcn.00495940
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x495d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635462
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 0
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x495e31
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
push 0x1a
push 0
mov dword [ebp - 0x224], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x495e13
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.005feb40
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495dc6
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00401e40
push 0x3d
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
mov ecx, esi
call fcn.00417970
mov ecx, dword [esi]
call fcn.0047fa40
push 1
push 0x6a2f8c
mov ecx, esi
call fcn.00417970
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401f90
int3
Function at 0x496e50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x6ce488]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], 0
mov eax, dword [edi + 4]
or eax, 0x2001f
mov dword [esp + 0x1c], 0
push eax
push ecx
push dword [edi]
lea ecx, [esp + 0x20]
call fcn.00416a30
mov esi, eax
test esi, esi
jne 0x49700a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x496f1d
nop dword [eax + eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00496e50
mov esi, eax
test esi, esi
jne 0x49700a
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x496ee0
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x496f36
push eax
call ebx
mov dword [esp + 0x14], 0
mov esi, dword [edi + 8]
mov dword [esp + 0x18], 0
test esi, esi
je 0x496fa0
cmp dword [esi], 0
mov edi, dword [edi]
je 0x496f8b
push 0x6a2efc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x496f65
mov esi, 1
jmp 0x497010
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x496f5b
push 0
push dword [esi]
push 0
push 0
push dword [esp + 0x1c]
push edi
call eax
mov esi, eax
jmp 0x497010
cmp dword [esi + 4], 0
je 0x496f5b
push dword [esp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x497010
cmp byte [0x6d95c4], 0
jne 0x496fe0
push 0x6a2efc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x496fd2
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6d95c0], eax
mov byte [0x6d95c4], 1
jmp 0x496fe5
mov eax, dword [0x6d95c0]
mov byte [0x6d95c4], 1
jmp 0x496fe5
mov eax, dword [0x6d95c0]
test eax, eax
je 0x496ffa
push 0
push dword [edi + 4]
push dword [esp + 0x14]
push dword [edi]
call eax
mov esi, eax
jmp 0x497010
push dword [esp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x497010
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49701b
push eax
call ebx
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 4
Function at 0x4971d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635629
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test ebx, ebx
je 0x49738e
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x10], al
inc ecx
mov ah, byte [ebp - 0xe]
inc esi
mov dl, byte [ebp - 0xf]
mov dh, byte [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x17], ah
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], dh
cmp esi, 3
jne 0x4972c5
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x14], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x13], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], al
xor esi, esi
nop dword [eax]
cmp dword [0x6cf324], 0x10
mov ecx, 0x6cf310
movzx eax, byte [ebp + esi - 0x14]
cmovae ecx, dword [0x6cf310]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004785f0
inc esi
cmp esi, 4
jl 0x497290
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dl, byte [ebp - 0x15]
mov dh, byte [ebp - 0x16]
test ebx, ebx
jne 0x497234
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x49738e
mov eax, esi
cmp esi, 3
jge 0x4972fe
cmp eax, 3
jae 0x4973a4
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 3
jl 0x4972e2
mov cl, byte [ebp - 0xe]
mov dl, byte [ebp - 0xf]
mov dh, byte [ebp - 0x10]
jmp 0x497301
mov cl, byte [ebp - 0x17]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 0x14], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x13], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x11], cl
lea eax, [esi + 1]
mov byte [ebp - 0x12], dl
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x49736c
mov esi, eax
nop dword [eax]
cmp dword [0x6cf324], 0x10
mov ecx, 0x6cf310
movzx eax, byte [ebp + ebx - 0x14]
cmovae ecx, dword [0x6cf310]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.004785f0
inc ebx
cmp ebx, esi
jl 0x497340
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x49738e
mov ebx, 3
sub ebx, esi
nop dword [eax + eax]
push 0x3d
mov ecx, edi
call fcn.004785f0
sub ebx, 1
jne 0x497380
mov eax, edi
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
call fcn.005c3ac2
int3
Function at 0x4b7920
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4b7969
mov al, byte [esi]
push eax
call fcn.004c4f40
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x4b7947
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x4b8ac0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c0], 2
jne 0x4b8ad5
pop ebp
jmp fcn.004b8a70
mov al, 1
pop ebp
ret

Function at 0x4b95a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
test eax, eax
je 0x4b95eb
push 0
push 0x80
push 3
push 0
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b95eb
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b9810
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
jne 0x4b9825
lea eax, [edi + 0x2b]
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.004b9660
mov ebx, dword [ebp + 0xc]
add esp, 4
test ebx, ebx
je 0x4b98dc
push 4
push ebx
call fcn.006211ca
test eax, eax
mov ecx, 0x1a
push ebx
cmovne edi, ecx
call dword [0x6c4018]
add esp, 0xc
mov dword [esi + 0x10], eax
test eax, eax
mov dword [esi + 0x40], 0xffffffff
mov ecx, 0x1b
mov dword [esi + 0x44], 0xffffffff
cmove edi, ecx
test edi, edi
jne 0x4b9896
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4b9896
push ebx
call fcn.004b95a0
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x18], 0x4b9c50
push ebx
mov dword [esi + 0x14], 0x4b9c10
mov dword [esi + 0x1c], 0x4b9bd0
mov dword [esi + 0xc], 2
call fcn.004ba5c0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4b98c6
mov edi, 0x1b
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.004b98f0
test eax, eax
push ebx
cmovne edi, eax
call dword [0x6c4010]
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4c0c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x4c0c84
push esi
push 1
push edi
call fcn.004b42f0
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004b42f0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4c0cba
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x63de80
push 2
push eax
call fcn.00619267
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00619267
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1b8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.004c15b0
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4c110a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4c10cc
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004a2e80
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.004c0cc0
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c358e
mov esp, ebp
pop ebp
ret
Function at 0x4c15b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x1dc]
add esi, eax
mov eax, dword [ebx + 0x2b8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4c1678
cmp dword [ebx + ecx*4 + 0x1cc], 0x4c0f60
jne 0x4c1678
cmp dword [esi], 0
je 0x4c15f9
test edi, edi
je 0x4c1678
mov eax, dword [ebx + ecx*4 + 0x1b8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.004c07f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4c1678
test al, 1
je 0x4c1678
mov ecx, dword [esi]
test ecx, ecx
jne 0x4c1653
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6c400c]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x4c1671
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4c1678
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x208], 1
je 0x4c1780
push eax
call fcn.004bafa0
add esp, 4
test eax, eax
jne 0x4c179e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1b8]
cmp eax, 0xffffffff
je 0x4c177c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c177c
mov al, 1
pop ebp
ret

Function at 0x4c1f10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6d5060]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4c1f61
push 3
push 2
push eax
push 6
call fcn.004c3490
add esp, 0x10
test al, al
je 0x4c1f55
mov dword [0x6d5060], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6d5060], 1
jmp 0x4c1f66
cmp eax, 2
je 0x4c1fa6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4c1f8d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4c1fa6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x4c21e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x90], 2
je 0x4c23f4
mov eax, dword [esi + 0x294]
push ebx
push edi
test al, 2
jne 0x4c23e9
test eax, 0x8000000
jne 0x4c23e9
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x188]
mov ebx, dword [esi]
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4c2282
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004a2e80
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004c0cc0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.005feb40
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c22f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004a2e80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004c0cc0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x138]
push eax
lea edi, [esi + 0x10a]
lea eax, [ebp - 0x184]
push edi
push eax
call fcn.004c29b0
add esp, 0xc
test al, al
jne 0x4c2359
call fcn.00607092
mov esi, dword [eax]
call fcn.00607092
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004a2e80
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004c0cc0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x5c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x6c], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x7c], xmm0
mov dword [esi + 0x84], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x88], ax
lea eax, [esi + 0x16c]
push eax
lea eax, [esi + 0x13c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004c29b0
add esp, 0xc
test al, al
jne 0x4c23e9
call fcn.00607092
mov esi, dword [eax]
call fcn.00607092
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004a2e80
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004c0cc0
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push esi
call fcn.004c1e30
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c358e
mov esp, ebp
pop ebp
ret
Function at 0x4c2de0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 4
mov eax, dword [esi + 0xa90]
shr eax, 0xb
and eax, 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4c2e3e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004c0da0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.004c30b0
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004c30b0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4c2eae
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.004c0da0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005c358e
mov esp, ebp
pop ebp
ret

Function at 0x4c2ec0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x88], 1
mov esi, dword [eax]
lea eax, [ebp - 0x88]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4c2f33
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2e80
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004c0da0
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004c0da0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.005c358e
mov esp, ebp
pop ebp
ret

Function at 0x4c3090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004c30d0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00621775
Function at 0x4c3320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c3340
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x63e2e0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x63e2f0
push esi
mov dword [ebp - 8], ebx
call fcn.0061a29a
add esp, 8
test eax, eax
je 0x4c338c
test ebx, ebx
je 0x4c337c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4c33b5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c33b5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4c3478
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c33d1
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x6c400c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c346e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4c346e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3410
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3430
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4c3445
mov eax, dword [ebp - 8]
test eax, eax
je 0x4c3465
push 8
push 0
push ebx
call eax
jmp 0x4c346c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x6c4010]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret