joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a5a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018adef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebx + 0x40]
mov dword [esp + 0x14], ebx
mov dword [ebx + 4], 0x101e580c
call fcn.100107e0
mov ebp, dword [esp + 0x40]
push ecx
mov dword [esp + 0x3c], 0
push ebp
mov ecx, ebx
mov dword [esp + 0x18], 1
call fcn.1001a5f0
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 4]
mov dword [ebx], vtable.log4cplus::Win32ConsoleAppender.0
mov eax, dword [eax + 4]
lea esi, [ebx + 0x38]
mov dword [eax + ebx + 4], vtable.log4cplus::Win32ConsoleAppender.1.0
lea edi, [ebx + 0x39]
add ebx, 0x3c
push 0x101e54bc
lea ecx, [esp + 0x1c]
mov byte [esi], 1
mov byte [edi], 0
mov dword [ebx], 0
call fcn.10003850
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x40], 2
call fcn.10022180
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.100039c0
push str.logToStdErr
lea ecx, [esp + 0x1c]
call fcn.10003850
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x40], 3
call fcn.10022180
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.100039c0
push str.TextColor
lea ecx, [esp + 0x1c]
call fcn.10003850
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, ebp
mov byte [esp + 0x40], 4
call fcn.10022e50
lea ecx, [esp + 0x18]
call fcn.100039c0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x1003a860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018ae50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea ecx, [esp + 0x34]
push dword [ebp + 0xc]
call fcn.1000e4b0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0
call fcn.100289a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.10003770
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.10003750
mov ebx, eax
xor esi, esi
push 0
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003a8f1
add esi, dword [esp + 0x10]
cmp esi, edi
jne 0x1003a8c2
jmp 0x1003a92c
mov ecx, dword [0x1020611c]
test ecx, ecx
jne 0x1003a906
call fcn.1001f460
mov ecx, dword [0x1020611c]
push 0
lea eax, [esp + 0x18]
push eax
push str.log4cplus:ERROR
push 0x1001ba80
push 0x10205d58
add ecx, 4
mov dword [esp + 0x28], str.Win32ConsoleAppender::write_handle__WriteFile_has_failed.
call fcn.1001bdc0
lea ecx, [esp + 0x18]
call fcn.100034a0
lea ecx, [esp + 0x30]
call fcn.100039c0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003aea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1018aeb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], 0x101e5b38
call fcn.100107e0
mov ebx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x6c], 0
push ebx
mov ecx, ebp
mov dword [esp + 0x18], 1
call fcn.1001a5f0
mov dword [esp + 0x68], 1
mov eax, dword [ebp + 4]
mov dword [ebp], vtable.log4cplus::Log4jUdpAppender.0
mov eax, dword [eax + 4]
mov dword [eax + ebp + 4], vtable.log4cplus::Log4jUdpAppender.1.0
mov dword [ebp + 0x3c], 0xffffffff
mov dword [ebp + 0x40], 1
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x38], vtable.log4cplus::helpers::Socket.0
lea ecx, [ebp + 0x48]
mov byte [esp + 0x68], 2
call fcn.10003820
lea edi, [ebp + 0x60]
mov byte [esp + 0x68], 3
push str.localhost
lea ecx, [esp + 0x34]
mov dword [edi], 0x1388
call fcn.10003850
push str.host
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call fcn.10003850
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
mov byte [esp + 0x74], 5
call fcn.10021dc0
push eax
lea ecx, [ebp + 0x48]
call fcn.100038e0
lea ecx, [esp + 0x48]
call fcn.100039c0
lea ecx, [esp + 0x18]
call fcn.100039c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.100039c0
push str.port
lea ecx, [esp + 0x34]
call fcn.10003850
lea eax, [esp + 0x30]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0x70], 6
call fcn.10022cf0
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.100039c0
mov ecx, ebp
call fcn.1003b060
mov eax, ebp
pop edi
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8
Function at 0x1003b9a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018b080
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x38]
mov eax, dword [eax + 8]
mov ecx, edi
call eax
test al, al
jne 0x1003ba91
movzx edx, word [esi + 0x60]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x30], 0
push 0
lea ecx, [esi + 0x48]
mov dword [esp + 0x18], vtable.log4cplus::helpers::Socket.0
call fcn.100306e0
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1003ba4b
push 4
lea ecx, [esp + 0x10]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1003ba56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1016380f
mov dword [eax], esi
call fcn.1016380f
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], 1
cmp eax, edi
je 0x1003ba79
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.log4cplus::helpers::AbstractSocket.0
cmp eax, 0xffffffff
je 0x1003ba91
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003c06e
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1018b058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
movzx edx, word [ecx - 0x34]
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 4], 0
lea eax, [edi + 8]
mov dword [edi + 4], 0xffffffff
mov dword [eax], 1
mov dword [edi + 0xc], 0
push eax
mov dword [esp + 0x14], 0
push 0
add ecx, 0xffffffb4
mov dword [edi], vtable.log4cplus::helpers::Socket.0
call fcn.100306e0
add esp, 8
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x1003bda1
push 4
lea ecx, [esp + 0x1c]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1003bdab
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1016380f
mov dword [eax], esi
pop esi
call fcn.1016380f
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 8]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
sub ecx, dword [ecx - 4]
jmp 0x1003bd10
Function at 0x10046410
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x101f9e50]
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 0x10046460
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1004645a
shr eax, 8
cmp al, 2
jne 0x1004645a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101604df
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.101604df
mov esp, ebp
pop ebp
ret
Function at 0x1004d3a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x1004d3d6
mov al, byte [esi]
push eax
call fcn.10059df0
movsx ecx, al
mov eax, ebx
shl eax, 5
add eax, ebx
xor ecx, eax
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x1004d3b8
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x1004e6f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004e70e
cmp dword [esi + 0x6c], 0
je 0x1004e70e
push 2
push 3
push esi
call fcn.1005a3b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1005d230
add esp, 4
test esi, esi
je 0x1004e72e
cmp dword [esi + 0x6c], 0
je 0x1004e72e
push 3
push esi
call fcn.1005a3f0
add esp, 8
pop esi
pop ebp
ret

Function at 0x1004f2d0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x358], 2
jne 0x1004f2e5
pop ebp
jmp fcn.1004f280
mov eax, 1
pop ebp
ret
Function at 0x100577a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x618], 0
je 0x100577e4
push esi
push 1
push edi
call fcn.10049820
push dword [edi + 0x5a4]
mov eax, dword [edi + 0x618]
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.10049820
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1005781a
push dword [edi + 0x5a0]
lea eax, [eax + eax*2]
push 1
add eax, 0x1018e9b0
push 2
push eax
call fcn.101624dc
push dword [edi + 0x5a0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.101624dc
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x10057bb0
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
mov esi, dword [edi + eax*4 + 0x1a8]
push edi
call fcn.100580c0
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 0x10057c34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10057c0c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
call fcn.1007f1d0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10057820
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0xde0], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x350]
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ecx + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
mov dword [ebp + 8], edx
je 0x10058178
cmp dword [ebx + ecx*4 + 0x1c0], 0x10057b00
jne 0x10058178
cmp dword [esi], 0
je 0x1005810a
test edi, edi
je 0x10058178
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10057300
add esp, 0x14
cmp eax, 0xffffffff
je 0x10058178
test al, 1
je 0x10058178
cmp dword [esi], 0
jne 0x1005815f
mov eax, dword [ebx]
mov eax, dword [eax + 0x940]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
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 0x1005815f
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10058178
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10058260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x10058280
push eax
call fcn.100517a0
add esp, 4
test eax, eax
jne 0x100582a0
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1005827c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100582a0
pop ebp
ret
mov eax, 1
pop ebp
ret

Function at 0x100589e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10202070]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10058a31
push 3
push 2
push eax
push 6
call fcn.1007fc70
add esp, 0x10
test eax, eax
je 0x10058a25
mov dword [0x10202070], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10202070], 1
jmp 0x10058a36
cmp eax, 2
je 0x10058a76
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 0x10058a5d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10058a76
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 0x10058ba0
Capabilities:
Set socket configuration

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101f9e50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x10058f29
cmp dword [ebx + 0x2a4], 0
push esi
jne 0x10058f1f
cmp dword [ebx + 0x314], 0
jne 0x10058f1f
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10058dee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1007f1d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.10057820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101604df
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x108], 0x80
call fcn.10161f10
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 0x10058e57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1007f1d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.10057820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101604df
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x134]
push eax
lea esi, [ebx + 0x106]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10058470
add esp, 0xc
test eax, eax
jne 0x10058eb5
call fcn.1016380f
mov esi, eax
call fcn.1016380f
push dword [esi]
mov edi, eax
push ebx
call fcn.1007f1d0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10057820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101604df
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x168]
push eax
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x84]
push eax
movsw word es:[edi], word [esi]
call fcn.10058470
add esp, 0xc
test eax, eax
jne 0x10058f1f
call fcn.1016380f
mov esi, eax
call fcn.1016380f
push dword [esi]
mov edi, eax
push ebx
call fcn.1007f1d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10057820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101604df
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10058960
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.101604df
mov esp, ebp
pop ebp
ret
Function at 0x10059840
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101f9e50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [esi + 0xb40], eax
push edi
mov edi, dword [ebp + 0xc]
setne al
push 4
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 0x1005989d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10057900
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101604df
mov esp, ebp
pop ebp
ret
push dword [esi + 0xb44]
mov dword [ebp - 0x10], 1
call fcn.10059aa0
imul eax, eax, 0x3e8
push dword [esi + 0xb48]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10059aa0
imul eax, eax, 0x3e8
add esp, 8
mov dword [ebp - 0x14], eax
push 0
push 0
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 0x1005990d
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.10057900
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101604df
mov esp, ebp
pop ebp
ret
Function at 0x10066380
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10066514
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x10066500
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x100663cf
mov eax, 0x10
jmp 0x100663dd
cmp eax, 0x17
jne 0x10066491
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], eax
je 0x10066491
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10066491
cmp ecx, eax
jb 0x10066491
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x100664f5
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]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100664e4
push dword [ebp - 4]
push dword [edi + 0x18]
push eax
call fcn.10162560
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x1006647f
push eax
call dword [0x101f400c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100664ca
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x1006648e
mov dword [eax + 0x1c], esi
mov dword [ebp - 8], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100663c0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x100664ae
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x100664fc
push ebx
call fcn.10066340
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 [0x101f4004]
push esi
call dword [0x101f4004]
add esp, 8
jmp 0x1006649f
push esi
mov edi, 8
call dword [0x101f4004]
add esp, 4
jmp 0x1006649f
mov edi, 8
jmp 0x1006649f
test ebx, ebx
jne 0x1006650c
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 0x100668c0
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.10164d0b
add esp, 0x18
test eax, eax
je 0x100668e2
cmp eax, 0xffffffff
jne 0x100668e4
xor eax, eax
pop ebp
ret
Function at 0x100675c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x101f9e50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102021b0], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x168], ebx
jne 0x100675f9
call fcn.1006a0c0
test eax, eax
je 0x1006760a
mov dword [0x102021b0], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101604df
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xaa8]
test eax, eax
je 0x1006762b
push 0x400
push eax
call fcn.100912b0
add esp, 8
call fcn.1006a0c0
test eax, eax
jne 0x100675f9
push esi
push edi
lea ecx, [ecx]
mov esi, 2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], 4
mov edi, edi
lea eax, [ebp - 0x1c0]
push eax
call fcn.1005ce50
movq xmm0, qword [eax]
movq qword [ebp - 0x160], xmm0
movq xmm0, qword [eax + 8]
push 1
movq qword [ebp - 0x158], xmm0
call fcn.10057740
add esp, 8
lea eax, [esi - 1]
push dword [ebp - 0x15c]
push dword [ebp - 0x160]
push 0
push eax
call fcn.10164300
imul esi, dword [ebp - 0x158]
mov ebx, eax
lea eax, [ebp - 0x1a0]
push eax
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x170], esi
call fcn.1005ce50
mov eax, dword [eax + 8]
cdq
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov edi, edx
call fcn.1005ce50
mov edx, dword [ebp - 0x148]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 8
inc edx
push 0
add ecx, esi
push edx
adc eax, edi
push eax
push ecx
mov dword [ebp - 0x16c], edx
call fcn.10164300
shld edx, eax, 8
shl eax, 8
xor ebx, eax
mov eax, dword [ebp - 0x164]
xor eax, edx
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x1b0]
push eax
mov dword [ebp - 0x160], ebx
call fcn.1005ce50
lea esi, [eax + 8]
lea eax, [ebp - 0x190]
push eax
call fcn.1005ce50
mov ecx, dword [esi]
add ecx, dword [eax]
mov eax, dword [ebp - 0x148]
movq xmm0, qword [ebp - 0x160]
mov esi, dword [ebp - 0x16c]
add eax, 2
imul ecx, eax
mov eax, dword [ebp - 0x170]
shl ecx, 0x10
xor eax, ecx
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x150]
add eax, 0x10
movq qword [eax - 0x10], xmm0
movq xmm0, qword [ebp - 0x158]
movq qword [eax - 8], xmm0
add esp, 8
dec dword [ebp - 0x14c]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x150], eax
jne 0x10067650
movsd xmm0, qword [0x10192200]
sub esp, 8
lea eax, [ebp - 0x44]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.10090ff0
add esp, 0x10
call fcn.1006a0c0
test eax, eax
je 0x10067630
lea eax, [ebp - 0x144]
push 0x100
push eax
mov byte [ebp - 0x144], 0
call fcn.100911e0
add esp, 8
cmp byte [ebp - 0x144], 0
pop edi
pop esi
je 0x100677fd
lea eax, [ebp - 0x144]
push 0x400
push eax
call fcn.100912b0
add esp, 8
call fcn.1006a0c0
test eax, eax
jne 0x100675f9
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [ebp - 0x168]
call fcn.10057900
add esp, 8
call fcn.1006a0c0
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xffffffdd
xor ecx, ebp
add eax, 0x23
pop ebx
call fcn.101604df
mov esp, ebp
pop ebp
ret