joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ef10
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x2000000
push 3
push esi
push 5
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003ef66
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1003ef5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003f290
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f329
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x101fd398]
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
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0
call fcn.10007cc0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
mov ebx, 1
call fcn.1003f210
push 0x101e9620
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10005370
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.10005520
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], bl
call fcn.10009c10
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x264]
call fcn.100055d0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003f33c
jmp 0x1003f3be
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x234], 0x2e
je 0x1003f3a5
test byte [ebp - 0x260], 0x10
je 0x1003f3b5
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10005370
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.10005520
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.10009c10
push ecx
lea eax, [ebp - 0x264]
mov ecx, esp
push eax
call fcn.10009bf0
call fcn.1003f290
add esp, 4
lea eax, [ebp - 0x260]
push eax
push esi
call edi
test eax, eax
jne 0x1003f342
jmp 0x1003f3b7
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x264]
call fcn.10009c10
lea ecx, [ebp + 8]
call fcn.10009c10
mov eax, ebx
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.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1003f3f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f387
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x101fd398]
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 dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
call fcn.10007cc0
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call fcn.10007cc0
lea ecx, [esi + 8]
call fcn.10007cc0
push 0
push 0
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10155d20
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1003f523
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x1003f4b3
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1000aee0
mov ecx, esi
call fcn.1003f210
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
call ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10155d20
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1003f523
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x1003f51b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
call fcn.1000aee0
push dword [ebp - 0x21c]
call ebx
mov eax, esi
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.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x1003f580
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 0x101db7f0
push 1
push 0
push 0x101db800
call esi
test eax, eax
jns 0x1003f5d9
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x101db7f0
push 1
push 0
push 0x101db800
call esi
test eax, eax
jns 0x1003f5d9
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 + 0x10]
test edx, edx
je 0x1003f5f6
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1003f607
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1003f618
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x1003f62b
mov eax, dword [ebp - 4]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x101db810
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x1003f5d0
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 0x1003f5d0
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.1000af00
push reloc.WS2_32.dll_bind
call fcn.1003f8d0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1003f690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x101fd398]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.1000a8b0
xor ecx, ecx
mov edx, 2
lea ebx, [eax + 2]
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10153b9b
add esp, 4
mov dword [ebp - 0x14], 0
mov edi, eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
push edi
call fcn.10040180
xor eax, eax
mov byte [ebp - 4], 1
push ebx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
push edi
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov word [ebp - 0x18], ax
call fcn.10155d20
add esp, 0xc
mov dword [ebp - 0x34], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x30], 3
xor esi, esi
call fcn.1000a8b0
test eax, eax
je 0x1003f76e
test esi, esi
js 0x1003f7bf
lea ecx, [ebp + 8]
call fcn.1000a8b0
cmp esi, eax
jg 0x1003f7bf
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov ax, word [eax + esi*2]
mov word [edi + esi*2], ax
inc esi
call fcn.1000a8b0
cmp esi, eax
jne 0x1003f746
xor eax, eax
mov dword [edi + ebx*2 - 4], eax
mov eax, 0x14
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ebx, ebx
test eax, eax
sete bl
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1003f7a1
call fcn.1001f360
lea ecx, [ebp + 8]
call fcn.10009c10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.1000afc0
int3
Function at 0x10045b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.100044f0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.1016c81c

Function at 0x1004b000
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 0x1004b049
mov al, byte [esi]
push eax
call fcn.100563e0
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 0x1004b027
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x1004c260
Capabilities:
Create udp socket

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

Function at 0x1004cd10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
test eax, eax
je 0x1004cd5b
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004cd5b
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 0x1004cf80
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 0x1004cf95
lea eax, [edi + 0x2b]
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.1004cdd0
mov ebx, dword [ebp + 0xc]
add esp, 4
test ebx, ebx
je 0x1004d04c
push 4
push ebx
call fcn.1016c271
test eax, eax
mov ecx, 0x1a
push ebx
cmovne edi, ecx
call dword [0x101f304c]
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 0x1004d006
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x1004d006
push ebx
call fcn.1004cd10
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x18], 0x1004d3c0
push ebx
mov dword [esi + 0x14], 0x1004d380
mov dword [esi + 0x1c], 0x1004d340
mov dword [esi + 0xc], 2
call fcn.1004dd30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004d036
mov edi, 0x1b
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.1004d060
test eax, eax
push ebx
cmovne edi, eax
call dword [0x101f3044]
add esp, 0xc
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100538f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x10053934
push esi
push 1
push edi
call fcn.10047990
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.10047990
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1005396a
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x10182a68
push 2
push eax
call fcn.1016384f
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1016384f
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x101fd398]
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.10054260
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 0x10053dba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10053d7c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.10040940
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.10053970
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.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x10054260
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 0x10054328
cmp dword [ebx + ecx*4 + 0x1cc], 0x10053c10
jne 0x10054328
cmp dword [esi], 0
je 0x100542a9
test edi, edi
je 0x10054328
mov eax, dword [ebx + ecx*4 + 0x1b8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.100534a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x10054328
test al, 1
je 0x10054328
mov ecx, dword [esi]
test ecx, ecx
jne 0x10054303
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x101f3040]
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 0x10054321
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 0x10054328
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 0x10054410
Capabilities:
Receive data
Receive data on socket

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

Function at 0x10054c40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101feac4]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10054c91
push 3
push 2
push eax
push 6
call fcn.10056160
add esp, 0x10
test al, al
je 0x10054c85
mov dword [0x101feac4], 2
mov esp, ebp
pop ebp
ret
mov dword [0x101feac4], 1
jmp 0x10054c96
cmp eax, 2
je 0x10054cd6
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 0x10054cbd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10054cd6
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 0x10054f10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x90], 2
je 0x10055124
mov eax, dword [esi + 0x294]
push ebx
push edi
test al, 2
jne 0x10055119
test eax, 0x8000000
jne 0x10055119
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 0x10054fb2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040940
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10053970
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.10155d20
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 0x10055026
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040940
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10053970
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
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.10055700
add esp, 0xc
test al, al
jne 0x10055089
call fcn.1015967a
mov esi, dword [eax]
call fcn.1015967a
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040940
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10053970
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
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.10055700
add esp, 0xc
test al, al
jne 0x10055119
call fcn.1015967a
mov esi, dword [eax]
call fcn.1015967a
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.10040940
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10053970
add esp, 0x1c
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push esi
call fcn.10054b60
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x10055b30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101fd398]
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 0x10055b8e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10053a50
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.10045b50
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10045b50
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 0x10055bfe
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.10053a50
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101534c8
mov esp, ebp
pop ebp
ret

Function at 0x10055c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x101fd398]
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 0x10055c83
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10040940
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10053a50
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10053a50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.101534c8
mov esp, ebp
pop ebp
ret
Function at 0x10055ff0
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 0x10056010
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x10182ec8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x10182ed8
push esi
mov dword [ebp - 8], ebx
call fcn.10167a6a
add esp, 8
test eax, eax
je 0x1005605c
test ebx, ebx
je 0x1005604c
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 0x10056085
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10056085
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 0x10056148
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100560a1
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x101f3040]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005613e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1005613e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100560e0
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 0x10056100
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 0x10056115
mov eax, dword [ebp - 8]
test eax, eax
je 0x10056135
push 8
push 0
push ebx
call eax
jmp 0x1005613c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x101f3044]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10056300
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x10056359
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10056346
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10056340
shr eax, 8
cmp al, 2
je 0x10056359
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push 0x10182e9c
call fcn.10055ff0
add esp, 4
mov dword [0x101feacc], eax
test eax, eax
je 0x1005638c
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x101feac8]
test eax, eax
cmovne ecx, eax
mov dword [0x101feac8], ecx
push 3
push 2
push 0
push 6
call fcn.10056160
add esp, 0x10
test al, al
je 0x100563c2
push 0x10202930
mov byte [0x10202928], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
mov byte [0x10202928], 0
call fcn.101534c8
mov esp, ebp
pop ebp
ret