joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10127930
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10127961
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.101dfef0
mov dword [esp + 0xc], eax
test esi, esi
jne 0x10127969
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x10252154
lea ecx, [esp + 8]
call fcn.10127780
int3

Function at 0x10127980
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x102a8158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x101279c2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x101279c2
mov eax, dword [ecx]
test eax, eax
je 0x101279c2
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x101279b9
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.101b452d
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.101b4ab7
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x101279e3
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x101279f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x102a8158]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10127a08
mov edx, dword [eax + 4]
jmp 0x10127a0a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x10127a29
test edx, edx
je 0x10127a29
cmp dword [edx], 0
jne 0x10127a29
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.101b452d
add esp, 4
pop ebp
ret

Function at 0x10127d00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
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 eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x102a8030
lock xadd dword [ecx], eax
push 0
push dword [esi + 4]
test eax, eax
je 0x10127d4d
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.100a55b0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10127d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10127dc5
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.101dfef0
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x10127e8c
mov esi, dword [esp + 0x10]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x10127e08
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.101dfef0
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x10127e9a
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push ebx
push 0x10127ec0
push dword [ebp + 0xc]
push 0
call fcn.101c8d92
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10127e73
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 0x10127e50
push edi
call esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x10127e5e
push eax
call esi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.101dfef0
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x10127ea8
test edi, edi
je 0x10127e83
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
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
call fcn.10127780
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
call fcn.10127780
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.10127780
int3
Function at 0x10128110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f13bf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10285124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.10128ae0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], 0
call fcn.10127a50
mov esi, eax
call fcn.101dfef0
mov dword [ebp - 0x14], eax
mov ecx, fcn.100a5110
xor eax, eax
mov dword [ebp - 0x18], esi
test esi, esi
cmove ecx, eax
test ecx, ecx
je 0x101281da
mov edx, str.mutex
lea ecx, [ebp - 0x18]
call fcn.10127780
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
or ecx, 0xffffffff
mov byte [ebp - 4], 5
cmp dword [ebp + 0xc], 0xffffffff
cmovb ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10128236
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.101dfef0
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10128236
mov edx, str.iocp
lea ecx, [ebp - 0x18]
call fcn.10127780
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10128490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f1420
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10285124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor edx, edx
lea eax, [edi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x101284f3
call fcn.101285a0
call fcn.101dfef0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [0x102a8158]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x102a8158]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
xor esi, esi
push ebx
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.10128880
test eax, eax
je 0x10128558
nop
cmp esi, 0xffffffff
lea eax, [esi + 1]
push ebx
cmove eax, esi
push ecx
mov ecx, edi
mov esi, eax
call fcn.10128880
test eax, eax
jne 0x10128540
push dword [ebp - 0x14]
push dword [0x102a8158]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10128577
push ecx
call fcn.101b452d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101295d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x101296d5
cmp byte [ebp + 8], bl
je 0x10129641
test byte [esi], 8
je 0x10129641
xor eax, eax
mov dword [ebp - 8], eax
call fcn.101dfef0
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.101dfef0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x10129643
call fcn.101dfef0
jmp 0x10129643
mov ebx, eax
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x101296d5
call fcn.101dfef0
cmp dword [edi + 4], eax
jne 0x1012967c
cmp dword [edi], 0x2733
je 0x1012968e
call fcn.101dfef0
cmp dword [edi + 4], eax
jne 0x101296d1
cmp dword [edi], 0x4d5
jne 0x101296d1
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0xc]
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 ebx, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x101296e3
call fcn.101dfef0
mov dword [edi], 0
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101296f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
cmp esi, 0xffffffff
jne 0x1012971d
call fcn.101dfef0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
js 0x10129714
call fcn.101dfef0
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [ebx], 0
pop esi
or byte [eax], 2
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101297e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x10129809
call fcn.101dfef0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x10129841
call fcn.101dfef0
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret

Function at 0x10129850
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
mov eax, dword [ebx]
cmp eax, 0x4cf
jg 0x1012989c
je 0x1012988f
cmp eax, 0x79
je 0x10129882
cmp eax, 0x4c9
jne 0x101298b1
call fcn.101dfef0
mov dword [ebx], 0x274d
jmp 0x101298ae
call fcn.101dfef0
mov dword [ebx], 0x274c
jmp 0x101298ae
call fcn.101dfef0
mov dword [ebx], 0x2743
jmp 0x101298ae
cmp eax, 0x4d0
jne 0x101298b1
call fcn.101dfef0
mov dword [ebx], 0x2751
mov dword [ebx + 4], eax
cmp dword [ebx], 0
jne 0x1012990f
cmp esi, 0xffffffff
jne 0x101298d0
call fcn.101dfef0
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0x7010
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x1012990f
call fcn.101dfef0
mov dword [ebx], edi
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 1
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x10129b22
call fcn.101dfef0
mov dword [edi], 0x2746
jmp 0x10129b34
cmp eax, 0x4d2
jne 0x10129b37
call fcn.101dfef0
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x10129b45
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.101dfef0
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10129be0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x10129c39
call fcn.101dfef0
mov dword [edi], 0x2746
jmp 0x10129c4b
cmp eax, 0x4d2
jne 0x10129c4e
call fcn.101dfef0
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x10129c5c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.101dfef0
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10129f10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x10129f3c
call fcn.101dfef0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0xc]
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp + 0x10]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 4]
mov dword [ebx], eax
test esi, esi
js 0x10129f97
call fcn.101dfef0
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0
cmp dword [eax], 0
je 0x10129f94
or byte [edi], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and byte [edi], 0xfc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10129fa0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test ebx, ebx
jne 0x1012a00c
test ecx, ecx
jne 0x1012a00c
test edi, edi
jne 0x1012a00c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1012a02d
mov eax, 0x10624dd3
imul dword [esi + 4]
imul eax, dword [esi], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.101dfef0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1012a02d
cmp dword [esi], 0
jne 0x1012a02d
mov eax, dword [esi + 4]
test eax, eax
jle 0x1012a02d
cmp eax, 0x3e8
jge 0x1012a02d
mov dword [esi + 4], 0x3e8
push esi
push edi
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.101dfef0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x1012a063
call fcn.101dfef0
mov dword [edi], 0
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1012ab80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10273588
push 0x101b9280
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x10285124]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
push 0x80
lea eax, [ebp - 0x120]
push eax
call fcn.100a8350
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x124], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test edi, edi
jne 0x1012ac08
call ebx
jmp 0x1012aca6
cmp eax, 0xb7
jne 0x1012ac18
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi], 0
jne 0x1012ac5e
mov dword [ebp - 4], 0
push closesocket
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1012ac54
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1012aca6
mov dword [ebp - 4], 0xfffffffe
mov byte [esi], 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1012aca6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101b451c
mov esp, ebp
pop ebp
ret
Function at 0x1012b690
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f16ba
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10285124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call fcn.1012acd0
mov edi, dword [ebp + 0xc]
add ebx, 8
mov dword [ebp - 4], 0
mov dword [ebp + 8], ebx
mov ecx, dword [edi + 4]
call fcn.1014f290
lea esi, [ebx + 8]
mov dword [ebx], eax
mov ecx, esi
mov dword [ebp + 0xc], esi
call fcn.1012b550
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push esi
mov byte [ebp - 4], 1
call fcn.1013d860
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x10]
add ebx, 0x30
mov dword [ebp + 8], ebx
mov ecx, dword [edi + 4]
call fcn.1014f290
lea esi, [ebx + 8]
mov dword [ebx], eax
mov ecx, esi
mov dword [ebp + 0xc], esi
call fcn.1012b550
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push esi
mov byte [ebp - 4], 3
call fcn.1013d860
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x10]
push ecx
lea ecx, [edi + 0x58]
call fcn.1013a160
mov byte [ebp - 4], 5
mov ecx, 0
mov edx, dword [edi + 0x5c]
sub edx, dword [edi + 0x58]
cmovne ecx, dword [edi + 0x58]
mov dword [edi + 0x64], ecx
push ecx
lea ecx, [edi + 0x6c]
mov dword [edi + 0x68], edx
call fcn.1013a160
mov byte [ebp - 4], 6
mov ecx, 0
mov edx, dword [edi + 0x70]
sub edx, dword [edi + 0x6c]
cmovne ecx, dword [edi + 0x6c]
mov dword [edi + 0x78], ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x7c], edx
mov edx, 1
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
call fcn.1013c170
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 8]
call fcn.101390a0
mov edx, 1
lea ecx, [ebp - 0x18]
call fcn.1013c170
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.101390a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1012c0d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x10285124]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0x400
lea eax, [esp + 0x24]
mov dword [esp + 0x18], esi
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
call fcn.101dfef0
mov ecx, dword [esi]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
sub esp, 8
call fcn.10129ac0
add esp, 0xc
test eax, eax
setg bl
cmp eax, 0x400
jne 0x1012c1a7
mov edi, dword [sym.imp.WS2_32.dll_WSARecv]
nop dword [eax]
mov esi, dword [esi]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0
push eax
push 1
lea eax, [esp + 0x34]
push eax
push esi
call edi
mov esi, eax
call fcn.101dfef0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1012c18b
cmp eax, 0x4d2
jne 0x1012c190
call fcn.101dfef0
test esi, esi
jne 0x1012c1a7
call fcn.101dfef0
cmp dword [esp + 0x10], 0x400
mov esi, dword [esp + 0x1c]
je 0x1012c140
mov ecx, dword [esp + 0x42c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b451c
mov esp, ebp
pop ebp
ret