joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405233
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4070bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x114
lea eax, [ebp - 0x324]
push esi
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140_CLR0400.dll_memset
add esp, 0xc
mov dword [ebp - 0x324], esi
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40535e
cmp dword [ebp - 0x314], 2
jne 0x40535e
cmp dword [ebp - 0x320], 6
jb 0x40535e
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.VCRUNTIME140_CLR0400.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40535e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x40535e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 0xfffffff1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x40530b
push 0x401654
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00404e23
test eax, eax
jne 0x40535e
push 0x401110
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00404e23
test eax, eax
jne 0x40535e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40535e
push edi
push 0x40112c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x405356
push ebx
push ebx
push 1
push ebx
mov ecx, edi
call dword [0x4091fc]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b30
mov esp, ebp
pop ebp
ret

Function at 0x4056f6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4070bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x405716
xor eax, eax
jmp 0x405775
push edi
xor edx, edx
mov dword [ebp - 0x104], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], edx
push eax
push edx
push edx
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x110], edx
xor edi, edi
push ecx
inc edi
push edx
mov dword [ebp - 0x108], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x40576e
cmp eax, 0xffffffff
je 0x405772
push 2
push edi
lea eax, [ebp - 0x109]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x405772
cmp eax, 0xffffffff
je 0x405772
mov eax, edi
jmp 0x405774
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405b30
mov esp, ebp
pop ebp
ret 4
Function at 0x100019c2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100019fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
call fcn.10010ac0
mov edx, 0x1002cfa0
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.10001712
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001aa9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
push 0x1003729c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10001add
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x100372a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esp, ebp
pop ebp
ret

Function at 0x10001c91
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
xor edi, edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x10037264
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x10001cdc
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10001cf2
push fcn.10001e7c
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001cf8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10001d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.10010ac0
mov edx, str.thread.entry_event
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x10001d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.10010ac0
mov edx, str.thread.exit_event
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
mov esi, dword [esp + 0x10]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push 0x10001e26
push dword [ebp + 0xc]
push 0
call fcn.10013369
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10001e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x10001ddf
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x10001dee
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.10010ac0
mov edx, str.thread
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
test edi, edi
je 0x10001e1d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100029ee
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x10002ab3
cmp byte [ebp + 8], 0
je 0x10002a39
test byte [eax], 8
je 0x10002a39
xor eax, eax
mov dword [ebp - 4], eax
call fcn.10010ac0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.10002f50
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.1000a4b7
mov edi, eax
test edi, edi
je 0x10002ab3
call fcn.10010ac0
cmp dword [esi + 4], eax
jne 0x10002a69
cmp dword [esi], 0x2733
je 0x10002a7b
call fcn.10010ac0
cmp dword [esi + 4], eax
jne 0x10002aaf
cmp dword [esi], 0x4d5
jne 0x10002aaf
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.1000a4b7
mov edi, eax
test edi, edi
jne 0x10002abe
call fcn.10010ac0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002ac7
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x10002ae8
call fcn.10010ac0
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x10002b13
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, esi
call fcn.1000a4b7
test eax, eax
jne 0x10002b16
call fcn.10010ac0
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.10010ac0
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2734
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.1000166f
test al, al
je 0x10002b50
call fcn.10010ac0
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.1000166f
test al, al
jne 0x10002b8f
mov edx, esi
mov ecx, edi
call fcn.10003027
test eax, eax
js 0x10002b8f
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push ecx
push ecx
mov ecx, edi
call fcn.10002fb4
add esp, 0x14
cmp eax, 0xffffffff
je 0x10002b8f
call fcn.10010ac0
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002b95
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x10002bc7
call fcn.10010ac0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x10002d30
cmp byte [ebp + 0x14], 0
je 0x10002bdf
test bl, 0x10
je 0x10002bdf
call fcn.10010ac0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x10002bbf
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.1000a4b7
cmp dword [esi], 0x40
mov dword [esp + 0x14], eax
jne 0x10002c2c
call fcn.10010ac0
mov dword [esi], 0x2746
jmp 0x10002c3f
cmp dword [esi], 0x4d2
jne 0x10002c46
call fcn.10010ac0
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10002c4f
or eax, 0xffffffff
jmp 0x10002c66
call fcn.10010ac0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x10002d32
test bl, 0x10
je 0x10002c73
test eax, eax
je 0x10002d22
test bl, 1
jne 0x10002d30
call fcn.10010ac0
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x2733
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.1000166f
test al, al
je 0x10002cbc
call fcn.10010ac0
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x4d5
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.1000166f
test al, al
jne 0x10002d30
xor eax, eax
mov dword [esp + 0x3c], edi
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.1000a4b7
mov edi, eax
test edi, edi
jne 0x10002d08
call fcn.10010ac0
and dword [esi], edi
mov dword [esi + 4], eax
jmp 0x10002d19
jle 0x10002d15
call fcn.10010ac0
and dword [esi], 0
mov dword [esi + 4], eax
test edi, edi
js 0x10002d30
mov edi, dword [esp + 0x18]
jmp 0x10002be2
call fcn.10001996
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002db5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x10002de4
call fcn.10010ac0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
je 0x10002dfc
test bl, 0x10
je 0x10002dfc
call fcn.10010ac0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x10002dd8
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push esi
push ecx
push dword [ebp + 0xc]
call fcn.10002d39
add esp, 0xc
test eax, eax
jns 0x10002ddd
and bl, 1
test bl, bl
jne 0x10002ddb
call fcn.10010ac0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x2733
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.1000166f
test al, al
je 0x10002e54
call fcn.10010ac0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4d5
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.1000166f
test al, al
jne 0x10002ddb
xor eax, eax
mov dword [ebp - 0x128], edi
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor ecx, ecx
lea eax, [ebp - 0x12c]
push ecx
push ecx
push eax
push ecx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.1000a4b7
mov dword [ebp - 8], eax
test eax, eax
jne 0x10002ea6
call fcn.10010ac0
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x10002ebe
jle 0x10002eb6
call fcn.10010ac0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
js 0x10002ddb
mov edx, dword [ebp + 8]
push esi
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10002d39
add esp, 0xc
test eax, eax
js 0x10002e16
jmp 0x10002ddd

Function at 0x10003027
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x1000304d
call fcn.10010ac0
mov dword [esi + 4], eax
or eax, edi
mov dword [esi], 0x2719
jmp 0x100030a8
push ebx
xor eax, eax
mov dword [ebp - 0x204], edi
inc eax
mov dword [ebp - 0x100], edi
xor ebx, ebx
mov dword [ebp - 0x208], eax
push ebx
mov dword [ebp - 0x104], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.1000a4b7
mov edi, eax
test edi, edi
js 0x100030a5
call fcn.10010ac0
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000369a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x100036b9
push 0
push 0
jmp 0x10003722
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x100036cc
push 0
push 0x2719
jmp 0x10003722
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x10003705
mov eax, 0x2746
jmp 0x10003712
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x1000372f
cmp eax, 0x3e5
je 0x1000372f
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.1000247d
jmp 0x1000373a
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.10002420
pop esi
pop ebp
ret 0x18

Function at 0x1000408a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10025c79
call fcn.100253a0
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], ebx
or dword [edi + 8], 0xffffffff
mov dword [ebp - 4], ebx
lea esi, [edi + 0x10]
mov dword [edi + 0xc], ebx
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.1000a297
mov dword [esi], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
push ebx
push 1
mov byte [ebp - 4], 3
call fcn.10003fdc
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000534d
Capabilities:
Encode data using xor
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x2000
mov dword [ebp - 4], ecx
call fcn.10012f5c
pop ecx
xor ebx, ebx
mov esi, eax
push ebx
push 0x23
push esi
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005378
mov ecx, dword [ebp - 4]
mov esi, str._save.dat
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005391
sub esi, edx
mov edx, ebx
je 0x100053bb
mov al, byte [edx + 0x1002cf00]
add ecx, ebx
xor byte [ecx], al
inc edx
xor byte [ecx], bl
xor eax, eax
mov ecx, dword [ebp - 4]
cmp edx, 0x10
cmove edx, eax
inc ebx
cmp ebx, esi
jb 0x1000539e
push 0x1002d140
push dword [ebp - 8]
call fcn.10013721
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100053e5
push edi
push 1
push esi
push dword [ebp - 4]
call fcn.100138b6
push edi
call fcn.10013a34
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 7
xor eax, eax
lea edi, [ebp - 0x24]
pop ecx
rep stosd dword es:[edi], eax
push 2
pop eax
mov word [ebp - 0x24], ax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x22], ax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x1000967d
call fcn.10010ac0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push 7
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
push 2
pop eax
mov word [edx], ax
xor eax, eax
mov word [edx + 2], ax
mov eax, edx
mov dword [edx + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x1c
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, dword [ebp + 0x10]
mov ecx, eax
mov edi, dword [ebp + 0xc]
mov edx, esi
call fcn.1000a4b7
test eax, eax
jne 0x10009657
call fcn.10010ac0
mov dword [esi], ebx
mov dword [esi + 4], eax
cmp edi, 0x80
jbe 0x100096d6
call fcn.10010ac0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x2726
mov dword [ebp - 4], eax
call fcn.100016ae
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x24]
push 7
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x10009674
Function at 0x1000979e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10025ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [esp + 0x38]
push esi
push edi
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x10], esi
push eax
mov dword [esp + 0x10], esi
call fcn.10009ee6
mov edi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x94], esi
push eax
mov ecx, ebx
call fcn.10009ec9
mov esi, eax
mov byte [esp + 0x94], 1
cmp dword [edi + 0x14], 0x10
jb 0x10009802
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x1000980a
mov esi, dword [esi]
test esi, esi
je 0x10009813
cmp byte [esi], 0
jne 0x10009815
xor esi, esi
test edi, edi
je 0x1000981e
cmp byte [edi], 0
jne 0x10009820
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0xc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.100031ba
mov edi, dword [ebp + 0x14]
push 0
push 1
mov ecx, dword [eax]
mov dword [edi], ecx
lea ecx, [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
call fcn.1000893a
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.1000893a
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x94], 2
cmp dword [edi], 0
je 0x1000989f
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
xor ebx, ebx
mov byte [esp + 0x94], 3
lea eax, [esp + 0x1c]
inc ebx
jmp 0x100098f5
lea eax, [esp + 0x70]
mov ecx, ebx
push eax
call fcn.10009ee6
mov edi, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x94], 4
push eax
mov ecx, ebx
mov dword [esp + 0x14], 2
call fcn.10009ec9
mov dword [esp + 0x94], 5
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0xc]
push edi
push eax
mov dword [esp + 0x18], 6
call fcn.10009f03
pop ecx
pop ecx
push 0xe
pop ebx
xor edi, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.1000865c
or ebx, 0x10
test bl, 8
je 0x1000991a
mov ecx, dword [esp + 0x38]
and ebx, 0xfffffff7
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x1000991a
call fcn.1000143f
test bl, 4
je 0x1000992e
push edi
push 1
lea ecx, [esp + 0x60]
and ebx, 0xfffffffb
call fcn.1000893a
test bl, 2
je 0x10009942
push edi
push 1
lea ecx, [esp + 0x78]
and ebx, 0xfffffffd
call fcn.1000893a
mov dword [esp + 0x94], 2
test bl, 1
je 0x1000995f
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1000995f
call fcn.1000143f
test esi, esi
je 0x1000996a
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10010fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10026860
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10033020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.100124c3
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.100088a6
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x10011042
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x10011080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10026888
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10033020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push esi
call fcn.100124c3
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.100088a6
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4