joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038670
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fe8d
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x244], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100387d2
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100387d2
push 4
lea ecx, [ebp - 0x18]
call fcn.10005e70
call fcn.1002d630
add eax, 0xd8
mov ecx, eax
call fcn.10003db0
push eax
lea ecx, [ebp - 0x18]
call fcn.10019f60
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.10005e70
call fcn.1002d630
add eax, 0xc0
mov ecx, eax
call fcn.10003db0
push eax
lea ecx, [ebp - 0x14]
call fcn.10019f60
lea ecx, [ebp - 0x18]
call fcn.100196a0
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.100abebf
add esp, 8
test eax, eax
je 0x1003877e
lea ecx, [ebp - 0x14]
call fcn.100196a0
push eax
lea edx, [ebp - 0x220]
push edx
call fcn.100abebf
add esp, 8
test eax, eax
jne 0x100387b6
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x24c], ecx
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10019f40
mov eax, dword [ebp - 0x24c]
jmp 0x100387e5
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10019f40
jmp 0x100386db
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
Function at 0x10039f00
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x10039f22
cmp dword [ebp + 0xc], 0
je 0x10039f22
cmp dword [ebp + 0x10], 0
jne 0x10039f27
jmp 0x10039fe5
mov dword [ebp - 0x10], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10039f4c
jmp 0x10039fe5
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10039f70
jmp 0x10039fe5
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10039f8a
jmp 0x10039fe5
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x10039fab
jmp 0x10039fe5
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp + 0x14], 0
je 0x10039fcf
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret

Function at 0x1003a070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov byte [ebp - 0x1c], 0x30
mov byte [ebp - 0x1b], 0x31
mov byte [ebp - 0x1a], 0x32
mov byte [ebp - 0x19], 0x33
mov byte [ebp - 0x18], 0x34
mov byte [ebp - 0x17], 0x35
mov byte [ebp - 0x16], 0x36
mov byte [ebp - 0x15], 0x37
mov byte [ebp - 0x14], 0x38
mov byte [ebp - 0x13], 0x39
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x62
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x66
push 1
mov eax, dword [ebp + 0xc]
lea ecx, [eax + eax + 1]
push ecx
call fcn.1003a000
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1003a0d5
xor eax, eax
jmp 0x1003a138
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x1003a0f7
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003a135
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
sar eax, 4
and eax, 0xf
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dl, byte [ebp + eax - 0x1c]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
and ecx, 0xf
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov al, byte [ebp + ecx - 0x1c]
mov byte [edx + 1], al
jmp 0x1003a0e5
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1003b140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x1003b149
cmp dword [ebp + 0xc], 0
je 0x1003b15c
mov dword [ebp - 0xc], 1
jmp 0x1003b163
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x1003b176
mov eax, 0xd
jmp 0x1003b1cb
xor edx, edx
jne 0x1003b14d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x1003b189
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1003bb10
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40000001
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
jne 0x1003bb63
push 0
mov ecx, dword [ebp + 8]
call fcn.1003c8b0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
jmp 0x1003bbe1
push 4
lea ecx, [ebp - 8]
call fcn.10005e70
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.1003c940
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.100196a0
push eax
push 0x40000001
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
jne 0x1003bbc1
push 0
mov ecx, dword [ebp + 8]
call fcn.1003c8b0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
call fcn.1003c780
mov eax, dword [ebp + 8]
jmp 0x1003bbe1
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1003c8e0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 8]
call fcn.1003c780
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
Function at 0x1003bbf0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018046d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x38], 4
push 4
lea ecx, [ebp - 0x14]
call fcn.10005e70
lea ecx, [ebp - 0x14]
call fcn.1003c9c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0x101dd19c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jl 0x1003bd0f
mov dword [ebp - 0x18], 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jl 0x1003bd03
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jl 0x1003bcf9
push 4
lea eax, [ebp - 0x28]
push eax
call fcn.1003c9f0
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1003ca70
lea ecx, [ebp - 0x28]
call fcn.1003c780
lea ecx, [ebp - 0x14]
call fcn.100196a0
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
push 0
push 0x10
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jge 0x1003bcf9
push 0
lea ecx, [ebp - 0x14]
call fcn.1003c810
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1003c8e0
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1003c780
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.100531cc
mov esp, ebp
pop ebp
ret
Function at 0x100608d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10060920
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1006091a
shr eax, 8
cmp al, 2
jne 0x1006091a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
Function at 0x10067720
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 0x10067769
mov al, byte [esi]
push eax
call fcn.10074de0
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 0x10067747
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x10068980
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1006899e
cmp dword [esi + 0x6c], 0
je 0x1006899e
push 2
push 3
push esi
call fcn.10075380
add esp, 0xc
push dword [ebp + 0xc]
call fcn.100757f0
add esp, 4
test esi, esi
je 0x100689be
cmp dword [esi + 0x6c], 0
je 0x100689be
push 3
push esi
call fcn.100753c0
add esp, 8
pop esi
pop ebp
ret
Function at 0x10072c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.10073180
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x10072ce4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10072cbc
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.10098080
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.100728c0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48d4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x10073180
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 + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10073248
cmp dword [ebx + ecx*4 + 0x1bc], 0x10072bb0
jne 0x10073248
cmp dword [esi], 0
je 0x100731c9
test edi, edi
je 0x10073248
mov eax, dword [ebx + ecx*4 + 0x1a8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.100723f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x10073248
test al, 1
je 0x10073248
mov ecx, dword [esi]
test ecx, ecx
jne 0x10073223
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x101e907c]
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 0x10073241
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 0x10073248
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 0x10073330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x10073350
push eax
call fcn.1006b8b0
add esp, 4
test eax, eax
jne 0x1007336e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1007334c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1007334c
mov al, 1
pop ebp
ret
Function at 0x10073ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101f3660]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10073b31
push 3
push 2
push eax
push 6
call fcn.10098a80
add esp, 0x10
test al, al
je 0x10073b25
mov dword [0x101f3660], 2
mov esp, ebp
pop ebp
ret
mov dword [0x101f3660], 1
jmp 0x10073b36
cmp eax, 2
je 0x10073b76
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 0x10073b5d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10073b76
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 0x10073c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10073ca8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10098080
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100729a0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100729a0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x10073de0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x10073fdb
cmp byte [ebx + 0x282], 0
push esi
jne 0x10073fd1
cmp byte [ebx + 0x29e], 0
jne 0x10073fd1
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10073e7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10098080
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.100728c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.1009f7e0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10073ee7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10098080
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.100728c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10073530
add esp, 0xc
test al, al
jne 0x10073f44
call fcn.100a896b
mov esi, dword [eax]
call fcn.100a896b
push esi
push ebx
mov edi, eax
call fcn.10098080
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.100728c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
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, [ebp - 0x84]
push eax
call fcn.10073530
add esp, 0xc
test al, al
jne 0x10073fd1
call fcn.100a896b
mov esi, dword [eax]
call fcn.100a896b
push esi
push ebx
mov edi, eax
call fcn.10098080
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.100728c0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10073a00
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100531cc
mov esp, ebp
pop ebp
ret
Function at 0x10074850
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x65c], al
setne al
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 0x100748ad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100729a0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret
push dword [esi + 0x660]
mov dword [ebp - 0x10], 1
call fcn.10074a80
push dword [esi + 0x664]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10074a80
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 0x1007491d
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.100729a0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100531cc
mov esp, ebp
pop ebp
ret
Function at 0x10081160
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100812db
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x100812c7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x10081258
cmp dword [edi + 0x18], 0
je 0x10081258
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10081258
cmp eax, 0x10
jb 0x10081258
push 0x20
call dword [0x101e907c]
mov esi, eax
add esp, 4
test esi, esi
je 0x100812bc
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x101e907c]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100812ab
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10081246
push eax
call dword [0x101e9088]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x10081291
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10081255
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100811a0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x10081275
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x100812c3
push ebx
call fcn.10081120
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x101e9080]
push esi
call dword [0x101e9080]
add esp, 8
jmp 0x10081266
push esi
mov edi, 8
call dword [0x101e9080]
add esp, 4
jmp 0x10081266
mov edi, 8
jmp 0x10081266
test ebx, ebx
jne 0x100812d3
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10081510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.100a8801
add esp, 0x18
test eax, eax
je 0x10081532
cmp eax, 0xffffffff
jne 0x10081534
xor eax, eax
pop ebp
ret