joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d30c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
lea edi, [ebp - 0xe8]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x100d30f6
mov eax, dword [ebp - 8]
sub eax, 3
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x100d325f
cmp dword [ebp - 8], 3
jl 0x100d31a1
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
shl ecx, 0x10
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 1]
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 2]
or ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shr eax, 0x12
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x101768b8]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x101768b8]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
shr eax, 6
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x101768b8]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x101768b8]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x100d3248
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
shl ecx, 0x10
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 8], 2
jne 0x100d31c3
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 1]
shl ecx, 8
or ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shr eax, 0x12
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x101768b8]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x101768b8]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
cmp dword [ebp - 8], 1
jne 0x100d320f
mov dword [ebp - 0xe8], 0x3d
jmp 0x100d3225
mov eax, dword [ebp - 0x20]
shr eax, 6
and eax, 0x3f
movzx ecx, byte [eax + 0x101768b8]
mov dword [ebp - 0xe8], ecx
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0xe8]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
mov byte [eax], 0x3d
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
add eax, 3
mov dword [ebp + 0xc], eax
jmp 0x100d30ed
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100d9160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
jmp 0x100d9190
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jge 0x100d91de
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
shl ecx, 1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov byte [edx], cl
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 8], eax
jge 0x100d91dc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
and ecx, 0x80
je 0x100d91dc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
or ecx, 1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x100d9187
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
and ecx, 0x80
je 0x100d9213
mov eax, dword [ebp + 0x10]
sub eax, 0x10
neg eax
sbb eax, eax
and eax, 0xffffff94
add eax, 0x87
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x10]
movzx edx, byte [ecx - 1]
xor edx, eax
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
mov byte [eax - 1], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100daf90
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
lea edi, [ebp - 0xf4]
mov ecx, 0x3d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x14]
jne 0x100dafd9
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax]
cmp ecx, 0x6a
je 0x100db003
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax]
cmp ecx, 0x6b
je 0x100db003
mov eax, dword [0x10199f24]
add eax, 7
push eax
push 0x10179d30
push 0x89
push 0x80
push 4
call fcn.10060940
add esp, 0x14
or eax, 0xffffffff
jmp 0x100db142
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp ecx, 0x6b
jne 0x100db023
mov dword [ebp - 0xf4], 1
jmp 0x100db02d
mov dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 0
je 0x100db0ea
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
jmp 0x100db055
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jge 0x100db0b2
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x29], cl
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
movzx eax, byte [ebp - 0x29]
cmp eax, 0xba
jne 0x100db07b
jmp 0x100db0b2
movzx eax, byte [ebp - 0x29]
cmp eax, 0xbb
je 0x100db0b0
mov eax, dword [0x10199f24]
add eax, 0x16
push eax
push 0x10179d30
push 0x8a
push 0x80
push 4
call fcn.10060940
add esp, 0x14
or eax, 0xffffffff
jmp 0x100db142
jmp 0x100db04c
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x100db0e8
mov eax, dword [0x10199f24]
add eax, 0x1f
push eax
push 0x10179d30
push 0x8a
push 0x80
push 4
call fcn.10060940
add esp, 0x14
or eax, 0xffffffff
jmp 0x100db142
jmp 0x100db0f3
mov eax, dword [ebp + 0x14]
sub eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
cmp ecx, 0xcc
je 0x100db12b
mov eax, dword [0x10199f24]
add eax, 0x28
push eax
push 0x10179d30
push 0x8b
push 0x80
push 4
call fcn.10060940
add esp, 0x14
or eax, 0xffffffff
jmp 0x100db142
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10131ca0
add esp, 0xc
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
add esp, 0xf4
cmp ebp, esp
call fcn.101354d4
mov esp, ebp
pop ebp
ret
Function at 0x10103920
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1019a984]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10103972
mov eax, dword [esp]
cmp al, 2
jne 0x1010396c
shr eax, 8
cmp al, 2
jne 0x1010396c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10135c7b
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.10135c7b
add esp, 0x194
ret

Function at 0x10103b50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebp
cmp ebx, ebp
jne 0x10103b70
lea eax, [ebp + 0x2b]
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 8], ebp
je 0x10103b8e
push str.easy_handled_already_used_in_multi_handle
push ebx
call fcn.1010f7d0
add esp, 8
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
push edi
mov edi, dword [ebx + 0xc]
cmp edi, ebp
jne 0x10103bb7
push 3
push 1
call fcn.10104360
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x10103bb4
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [ebx + 0xc], edi
mov eax, dword [ebx + 0x41c]
push esi
push eax
push 6
push edi
call sym.HebcaP11X.DLL_curl_multi_setopt
push ebx
push edi
call sym.HebcaP11X.DLL_curl_multi_add_handle
mov esi, eax
add esp, 0x14
cmp esi, ebp
je 0x10103bf7
push edi
call sym.HebcaP11X.DLL_curl_multi_cleanup
add esp, 4
mov eax, esi
sub eax, 3
neg eax
pop esi
sbb eax, eax
pop edi
and eax, 0xffffffe7
pop ebp
add eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [ebx + 8], edi
jmp 0x10103c04
mov ebx, dword [esp + 0x28]
test esi, esi
jne 0x10103cd0
call fcn.1010f320
lea ecx, [esp + 0x18]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov ebp, edx
call sym.HebcaP11X.DLL_curl_multi_wait
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10103c00
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x10103cc4
cmp eax, esi
jne 0x10103c7f
call fcn.1010f320
push ebp
push ebx
push edx
push eax
call fcn.1010f350
add esp, 0x10
cmp eax, 0xa
jg 0x10103c7f
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jle 0x10103c83
imul eax, eax, 0x32
cmp eax, 0x3e8
jle 0x10103c74
mov eax, 0x3e8
push eax
call fcn.10107e50
add esp, 4
jmp 0x10103c83
mov dword [esp + 0x10], esi
lea edx, [esp + 0x1c]
push edx
push edi
call sym.HebcaP11X.DLL_curl_multi_perform
mov esi, eax
add esp, 8
test esi, esi
jne 0x10103c00
cmp dword [esp + 0x1c], eax
jne 0x10103c00
lea eax, [esp + 0x20]
push eax
push edi
call sym.HebcaP11X.DLL_curl_multi_info_read
add esp, 8
test eax, eax
je 0x10103c00
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
jmp 0x10103ccc
mov dword [esp + 0x14], 0x38
mov ebx, dword [esp + 0x28]
push ebx
push edi
call sym.HebcaP11X.DLL_curl_multi_remove_handle
mov eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10107600
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10107622
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10107616
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10107652
cmp dword [esi + 8], 0
jne 0x10107645
mov ecx, dword [eax + 8]
push 0x1017a730
push ecx
call fcn.10138636
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10107645
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.10138abd
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10107674
mov eax, dword [esi + 8]
test eax, eax
je 0x1010766e
push eax
call fcn.101384f6
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x1010f480
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1010f4b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x1010f5f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x1010f60b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x1010f63f
cmp eax, 2
jg 0x1010f63f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x10181110]
push 2
push edx
call fcn.1013806d
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.1013806d
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x134]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x1010f9cd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x1010f9a4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.1011c140
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.1010f7d0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8594], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10111520
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x410], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1011155e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1010f740
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x414]
push edx
mov dword [esp + 0xc], 1
call fcn.101151c0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x418]
push eax
call fcn.101151c0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x101115d7
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.1010f740
add esp, 0x10
add esp, 0x14
ret
Function at 0x10111be0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1019a984]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1a8], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x10111d1b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10111c5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.1011c140
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.1010f7d0
add esp, 0x18
jmp 0x10111d24
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10111c9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.1011c140
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.1010f7d0
add esp, 0x18
jmp 0x10111d24
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.10111ba0
test eax, eax
jne 0x10111cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.1011c140
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.1010f7d0
add esp, 0x18
jmp 0x10111d24
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.10111ba0
test eax, eax
jne 0x10111d1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.1011c140
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.1010f7d0
add esp, 0x18
jmp 0x10111d24
push ebp
call fcn.10111b40
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10135c7b
add esp, 0x10c
ret

Function at 0x10111d40
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10111d83
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1011c140
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1010f740
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1010f740
add esp, 8
pop esi
pop ecx
ret
Function at 0x10111da0
Capabilities:
Check os version
Set socket configuration

Disassembly:
sub esp, 0x124
mov eax, dword [0x1019a984]
xor eax, esp
mov dword [esp + 0x120], eax
cmp dword [0x101a0aac], 0
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
jne 0x10111e2f
push 0x114
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10131950
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
mov dword [0x101a0aac], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10111e2f
cmp dword [esp + 0x10], 6
jb 0x10111e2f
mov dword [0x101a0aac], 2
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.10135c7b
add esp, 0x124
ret
cmp dword [0x101a0aac], 2
je 0x10111e82
push esi
mov esi, dword [esp + 0x12c]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10111e69
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x10111e81
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.10135c7b
add esp, 0x124
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x558]
test esi, esi
je 0x10111f0d
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10111f0d
push 0x10111ea0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x64]
push ecx
push edx
call fcn.10113170
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x10111f16
mov dword [edi + 0x558], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10111f20
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
jne 0x10111f0d
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10111f0d
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x10112520
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + ebx*4 + 0x134]
mov ebp, dword [edi]
mov dword [eax], 0
cmp dword [edi + ebx*4 + 0x1c8], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0
je 0x10112568
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
call fcn.1010f320
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x28], edx
call fcn.101115e0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jge 0x101125a8
push str.Connection_time_out
push ebp
call fcn.1010f7d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x10
ret
mov eax, esi
call fcn.101116a0
cmp eax, 1
jne 0x101125f2
mov ecx, dword [edi + 0x20c]
mov edx, dword [edi + 0x208]
mov eax, dword [esp + 0x1c]
mov ebx, dword [edi + 0x214]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.1010f350
add esp, 0x10
cmp eax, ebx
jl 0x1011255e
push ebx
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.1010f740
add esp, 0xc
jmp 0x101126ae
test eax, eax
jne 0x1011265e
push esi
lea esi, [esp + 0x28]
call fcn.10111ad0
add esp, 4
test eax, eax
je 0x10112699
push edi
call fcn.10109cc0
add esp, 4
test eax, eax
jne 0x1011270d
mov edx, dword [esp + 0x2c]
mov dword [edi + ebx*4 + 0x1c8], 1
mov dword [edx], 1
test ebx, ebx
jne 0x10112640
push 2
push ebp
call fcn.101159e0
add esp, 8
push edi
call fcn.10109e00
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.10111be0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp eax, 2
jne 0x10112689
push esi
lea esi, [esp + 0x28]
call fcn.10111ad0
mov esi, dword [esp + 0x28]
push esi
push edi
call fcn.1011c140
push eax
push 0x10176d14
push ebp
call fcn.1010f740
add esp, 0x18
jmp 0x1011269d
push str.Connection_failed_n
push ebp
call fcn.1010f740
add esp, 8
jmp 0x101126ae
mov esi, dword [esp + 0x24]
test esi, esi
je 0x101126ae
push esi
mov dword [ebp + 0x8594], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + 0x1c], 0
mov eax, dword [esp + 0x10]
je 0x101126c0
cdq
sub eax, edx
sar eax, 1
mov ebx, dword [esp + 0x2c]
mov dword [edi + 0x214], eax
mov eax, dword [esp + 0x28]
mov esi, edi
call fcn.10112490
mov esi, eax
test esi, esi
je 0x1011270b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
mov dword [ebp + 0x8594], eax
call fcn.1011c140
mov edx, dword [edi + 0x98]
push eax
mov eax, dword [edi + 0x80]
push edx
push eax
push str.Failed_connect_to__s:_ld___s
push ebp
call fcn.1010f7d0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1011b280
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x1011b431
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x1011b40f
push esi
jmp 0x1011b2d0
cmp dword [edi + 4], 2
jne 0x1011b388
cmp dword [edi + 0x18], ebx
je 0x1011b388
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x1011b388
cmp eax, 0x10
jb 0x1011b388
push 0x20
call dword [0x1019a89c]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1011b395
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x1019a89c]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x1011b39f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x1011b375
push eax
call dword [0x1019a8a8]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x1011b3b3
cmp dword [esp + 0x10], ebx
jne 0x1011b37f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x1011b386
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x1011b2d0
jmp 0x1011b3cf
mov dword [esp + 0x14], 8
jmp 0x1011b3cf
push esi
mov dword [esp + 0x18], 8
call dword [0x1019a8a0]
add esp, 4
jmp 0x1011b3cf
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x1019a8a0]
push esi
call dword [0x1019a8a0]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x1011b3df
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x1011b409
mov eax, dword [esp + 0xc]
push eax
call fcn.1011b230
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x1011b422
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x101231c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x10176d14
push ecx
call fcn.1010f740
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10122370
test eax, eax
jne 0x101231f0
mov eax, esi
jmp fcn.10122800
ret