joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100c7070]
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 dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
cmp dword [eax], 0xffffffff
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], ecx
je 0x100198da
call fcn.10004200
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [ebx], 1
jmp 0x10019a1c
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp - 0x24]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x24], eax
call fcn.10047860
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x24]
mov dword [edi], eax
cmp esi, 0xffffffff
jne 0x10019919
or esi, esi
mov dword [ebp - 0x24], esi
jmp 0x10019945
cmp dword [ebp - 0x14], 0x17
jne 0x10019937
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.10047860
mov dword [edi], 0
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x1001995d
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
jmp 0x10019a1c
mov eax, dword [ebp - 0x28]
push 0
push 0
mov eax, dword [eax + 4]
push dword [eax + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x10019989
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10047860
mov dword [edi], esi
mov esi, dword [ebp - 0x24]
jmp 0x10019994
call fcn.10047860
mov dword [edi], 0
cmp dword [edi], 0
mov dword [edi + 4], eax
mov dword [ebp - 0x28], eax
je 0x100199d9
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebx], eax
mov eax, dword [edi + 4]
movq qword [ebp - 0x1c], xmm0
mov dword [ebx + 4], eax
mov dword [ebp - 0x1c], 0
call fcn.10047860
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x1d]
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1d], 0
push eax
push 1
mov ecx, esi
call fcn.10018ad0
add esp, 8
jmp 0x10019a1f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], 0xffffffff
mov dword [eax], esi
sub ecx, 1
je 0x100199fe
sub ecx, 1
je 0x100199f8
mov byte [eax + 4], 0
jmp 0x10019a02
mov byte [eax + 4], 0x20
jmp 0x10019a02
mov byte [eax + 4], 0x10
push dword [ebp - 0x18]
push ecx
lea ecx, [eax + 8]
call fcn.1001f340
xor esi, esi
call fcn.10047860
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebx], esi
mov dword [ebx + 4], eax
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.10044baf
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100271d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ea8c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100c7070]
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 - 0x14], edi
mov dword [ebp - 0x1c], edi
sub esp, 0x14
mov dword [ebp - 4], 0
mov ax, word [ebp + 0x10]
mov esi, esp
mov word [esi], ax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
mov dword [esi + 8], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.10028060
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov byte [edi + 0x30], 0
cmp eax, ecx
je 0x10027293
cmp dword [edi], 0
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
je 0x10027271
push ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.10027010
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
jmp 0x10027273
mov edx, ecx
mov eax, dword [edi + 0x2c]
cmp edx, eax
jne 0x10027287
cmp ecx, eax
jne 0x10027287
cmp dword [edi + 0x24], eax
jne 0x10027287
mov byte [edi + 0x30], 1
mov eax, dword [edi + 0x28]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov dword [edi + 0x28], ecx
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100272b2
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x100272b2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
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.10044baf
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10031380
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov esi, ecx
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10031390
xor edi, edi
mov dword [ebp - 4], edi
mov eax, edi
mov bl, byte [edi + esi]
cdq
idiv dword [ebp + 8]
mov eax, dword [ebp - 8]
movzx ecx, bl
movzx eax, byte [edx + eax]
add eax, dword [ebp - 4]
add ecx, eax
and ecx, 0x800000ff
jns 0x100313c8
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov dword [ebp - 4], ecx
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x100313a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100313f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [ebp - 4], ecx
xor edi, edi
cmp dword [ebp + 8], ebx
jbe 0x10031462
nop word [eax + eax]
inc esi
and esi, 0x800000ff
jns 0x10031421
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + ecx]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x10031439
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [edi + ecx]
mov byte [esi + ecx], al
mov byte [edi + ecx], dl
movzx ecx, byte [esi + ecx]
movzx eax, dl
mov edx, dword [ebp - 8]
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 4]
movzx eax, byte [eax + ecx]
xor byte [ebx + edx], al
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x10031410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100469d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0b8e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100c7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100c7090]
cmp eax, 0xffffffff
jne 0x10046a06
xor ebx, ebx
jmp 0x10046a0f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
mov dword [ebp - 4], 0
setne cl
test cl, cl
je 0x10046a5b
lea edi, [ebx + 0x14]
cmp dword [edi + 4], 0
mov esi, dword [ebx + 0xc]
sete al
test al, al
je 0x10046a9a
test esi, esi
jne 0x10046aa0
push 0x10046650
push 0x100ca5c8
call fcn.10046340
mov eax, dword [0x100c7090]
add esp, 8
cmp eax, 0xffffffff
je 0x10046a5b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10046a88
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10046a88
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10046ae5
nop
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10046acb
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10046aa0
lea edi, [ebx + 0x14]
cmp dword [ebx + 0x18], 0
je 0x10046a25
nop
mov esi, dword [edi]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10046b08
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10046b08
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.10011e70
cmp dword [ebx + 0x18], 0
jne 0x10046af0
jmp 0x10046a25
Function at 0x10046b20
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10046b80
push 0
push 0
call fcn.10058b06
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x10046b49
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x10046b67
cmp eax, 0xffffffff
je 0x10046b67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret

Function at 0x10048700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1002
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100c7070]
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]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x10048741
mov eax, dword [edi]
jmp 0x10048743
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x10048762
push esi
push edi
push ebx
call fcn.10048570
add esp, 0xc
jmp 0x1004885e
test eax, 0x400
je 0x1004881d
cmp dword [edi + 0x14], 8
jb 0x10048777
mov eax, dword [edi]
jmp 0x10048779
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.10047ce0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10001f30
cmp esi, 0xffffffff
jne 0x100487d2
push dword [ebp - 0x34]
push edi
push ebx
call fcn.10048570
add esp, 0xc
jmp 0x1004885e
push edi
call fcn.100480d0
add esp, 4
test al, al
jne 0x10048805
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.100481b0
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004885e
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1004882f
mov dword [esi], 0
call fcn.10047860
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x10048846
mov dword [ebp - 0x30], 2
call fcn.100481b0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
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.10044baf
mov esp, ebp
pop ebp
ret

Function at 0x100644c0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10064180
Function at 0x100665bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006643e

Function at 0x1006fb10
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x3d8], 2
je fcn.1006fac0
mov al, 1
ret
Function at 0x10071390
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.100737e0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100713d5
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x10071409
cmp byte [edi + 0x4740], al
jne 0x10071409
lea edx, [esp + 8]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x100713f4
mov byte [edi + 0x4740], 1
cmp byte [edi + 0x390], 0
je 0x10071443
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x1007149b
mov eax, dword [edi + 0x1d0]
mov byte [esp + esi + 8], 0
test eax, eax
je 0x1007145a
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10044baf
add esp, 0x108
ret
push dword [edi + 0x158]
push 1
push 2
push 0x100b0918
call fcn.100591ae
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.100591ae
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop edi
pop esi
xor ecx, esp
call fcn.10044baf
add esp, 0x108
ret
call fcn.100458eb
int3

Function at 0x100714b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x10071579
cmp byte [edi + 0x390], 0
je 0x10071579
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.100737e0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10071510
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x1007154e
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.10044baf
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x100b0918
call fcn.100591ae
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.100591ae
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.10044baf
add esp, 0x808
ret
Function at 0x100717d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.10071c20
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x10071856
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1007182e
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.1006d960
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10071390
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4744], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x3d0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10071cd8
cmp dword [ebx + ecx*4 + 0x1bc], 0x10071730
jne 0x10071cd8
cmp dword [esi], 0
je 0x10071c6c
test edi, edi
je 0x10071cd8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.10070d00
add esp, 0x14
cmp eax, 0xffffffff
je 0x10071cd8
test al, 1
je 0x10071cd8
cmp dword [esi], 0
jne 0x10071cc1
mov eax, dword [ebx]
mov eax, dword [eax + 0x350]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100c79f0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x10071cc1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10071cd8
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10071ce0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x10071d09
push dword [esi + 0x15c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x10071d42
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x100b0918
push 2
push eax
call fcn.100591ae
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.100591ae
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x10071e2d
push eax
call fcn.100164d0
add esp, 4
test eax, eax
jne 0x10071e4f
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x10071e2a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10071e4f
xor al, al
ret
mov al, 1
ret
Function at 0x10072750
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10072798
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1006d960
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100714b0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100714b0
add esp, 8
pop edi
pop esi
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
cmp dword [ebx + 0x94], 2
mov ebp, dword [ebx]
je 0x10072a89
cmp byte [ebx + 0x38e], 0
push esi
push edi
jne 0x10072a7e
cmp byte [ebx + 0x3aa], 0
jne 0x10072a7e
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10072963
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1006d960
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.10071390
add esp, 0x18
jmp 0x10072a87
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.1004c3c0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100729b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1006d960
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.10071390
add esp, 0x18
jmp 0x10072a87
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.10072f70
add esp, 0xc
test al, al
jne 0x10072a06
call fcn.10050937
mov esi, eax
call fcn.10050937
push dword [esi]
mov edi, eax
push ebx
call fcn.1006d960
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.10071390
add esp, 0x18
jmp 0x10072a87
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10072f70
add esp, 0xc
test al, al
jne 0x10072a7e
call fcn.10050937
mov esi, eax
call fcn.10050937
push dword [esi]
mov edi, eax
push ebx
call fcn.1006d960
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.10071390
add esp, 0x18
jmp 0x10072a87
push ebx
call fcn.100724e0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.10044baf
add esp, 0x108
ret
Function at 0x100732f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x100c7070]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x4e0], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10073350
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100714b0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10044baf
add esp, 0x18
ret
push dword [esi + 0x4e4]
mov dword [esp + 0x14], 1
call fcn.1007a0b0
push dword [esi + 0x4e8]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.1007a0b0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100733c7
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.100714b0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.10044baf
add esp, 0x18
ret
Function at 0x1007aef0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x100b2040
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1007af0a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x100b205c
push esi
call fcn.1005c180
add esp, 8
test eax, eax
je 0x1007af52
test ebp, ebp
je 0x1007af43
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x1007af78
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007af78
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1007b02f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007af95
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x100c79f0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007b025
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1007b025
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007afc7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007afe0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1007aff0
test ebp, ebp
je 0x1007b01c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x100c79f4]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100c79f4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret