joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006fe50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100de388
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
push dword [esp + 0x24]
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
push dword [ebp + 0xc]
mov dword [esp + 0x28], 0
push dword [ebp + 8]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10070780
mov dword [esp + 0xc0], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x68]
call fcn.10070390
mov byte [esp + 0xc0], 1
lea ecx, [esp + 0x80]
mov edx, dword [edi]
push eax
add edx, 0x18
call fcn.1006f580
add esp, 4
mov byte [esp + 0xc0], 2
lea ecx, [esp + 0x30]
push eax
call fcn.1006f5e0
mov byte [esp + 0xc0], 3
mov eax, dword [edi]
mov eax, dword [eax + 0x50]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x18]
add ecx, 9
je 0x1006ff20
lea eax, [ecx - 9]
jmp 0x1006ff22
xor eax, eax
lea edx, [esp + 0x30]
push edx
push dword [eax + 4]
lea eax, [esp + 0x30]
push eax
call fcn.1006f6f0
mov byte [esp + 0xc0], 4
lea eax, [esp + 0x48]
mov dword [esp + 0x24], eax
mov byte [esp + 0xc0], 6
mov esi, dword [esp + 0x60]
mov dword [esp + 0x28], esi
test esi, esi
je 0x1006ff84
mov byte [esp + 0xc0], 7
lea ecx, [esi + 9]
call fcn.1002c480
mov byte [esp + 0xc0], 6
push dword [esi + 4]
call fcn.100ab3c9
add esp, 4
push esi
call fcn.100ab3c9
add esp, 4
mov byte [esp + 0xc0], 4
cmp dword [esp + 0x5c], 0x10
jb 0x1006ff9f
push dword [esp + 0x48]
call fcn.100ab3c9
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0xc0], 2
cmp dword [esp + 0x44], 0x10
jb 0x1006ffcf
push dword [esp + 0x30]
call fcn.100ab3c9
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0xc0], 1
lea ecx, [esp + 0x80]
call fcn.1006eff0
mov byte [esp + 0xc0], 8
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x28], esi
test esi, esi
je 0x10070038
mov byte [esp + 0xc0], 9
lea ecx, [esi + 9]
call fcn.1002c480
mov byte [esp + 0xc0], 8
push dword [esi + 4]
call fcn.100ab3c9
add esp, 4
push esi
call fcn.100ab3c9
add esp, 4
mov byte [esp + 0xc0], 0
cmp dword [esp + 0x78], 0x10
jb 0x10070053
push dword [esp + 0x64]
call fcn.100ab3c9
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
mov dword [esp + 0xc0], 0xffffffff
cmp dword [esp + 0x20], 0x10
jb 0x10070086
push dword [esp + 0xc]
call fcn.100ab3c9
add esp, 4
mov eax, dword [edi]
add eax, 0x18
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x100700af
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [edi]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x100700c3
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10073660
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100decc6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10001840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
lea ecx, [esi + 0x18]
push 0xffffffffffffffff
mov dword [esi], 0xffffffff
lea eax, [ebp + 0x1c]
mov dword [esi + 4], 8
mov dword [esi + 8], 0xf
mov dword [esi + 0xc], 8
mov dword [esi + 0x10], 0
mov word [esi + 0x14], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10010000
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x34]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10010000
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x4c], eax
mov byte [ebp - 4], 0
cmp dword [ebp + 0x30], 0x10
jb 0x10073723
push dword [ebp + 0x1c]
call fcn.100ab3c9
add esp, 4
mov dword [ebp + 0x30], 0xf
mov dword [ebp + 0x2c], 0
mov byte [ebp + 0x1c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x48], 0x10
jb 0x1007374d
push dword [ebp + 0x34]
call fcn.100ab3c9
add esp, 4
mov dword [ebp + 0x48], 0xf
mov eax, esi
mov dword [ebp + 0x44], 0
mov byte [ebp + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x10073b30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dee00
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
cmp dword [ecx + 0x14], 0x10
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
movlpd qword [ebp - 0xd4], xmm0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x88], 0x6a09e667
mov dword [ebp - 0x84], 0xbb67ae85
mov dword [ebp - 0x80], 0x3c6ef372
mov dword [ebp - 0x7c], 0xa54ff53a
mov dword [ebp - 0x78], 0x510e527f
mov dword [ebp - 0x74], 0x9b05688c
mov dword [ebp - 0x70], 0x1f83d9ab
mov dword [ebp - 0x6c], 0x5be0cd19
jb 0x10073bc0
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp - 0xd4]
call fcn.10098af0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xd4]
call fcn.10098cf0
mov edx, 0xf
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], edx
cmp edx, 0x10
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x4c], ecx
movzx eax, word [ebp - 0x30]
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x4c]
cmovae eax, ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], 6
mov byte [eax + 6], 0
mov dword [ebp - 4], 0
cmp edx, 0x10
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x2e]
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x64], ecx
movzx eax, word [ebp - 0x2a]
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x64]
cmovae eax, ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x54], 6
mov byte [eax + 6], 0
mov byte [ebp - 4], 1
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.10073a90
mov edx, edi
lea ecx, [ebp - 0x64]
call fcn.10073a90
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], 0x10
jb 0x10073c91
push dword [ebp - 0x64]
call fcn.100ab3c9
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], 0x10
jb 0x10073cbb
push dword [ebp - 0x4c]
call fcn.100ab3c9
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
Function at 0x10076750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dfa5b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10001840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
call fcn.10076a70
mov dword [ebp - 4], 0
lea ebx, [edi + 0x18]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x100767b0
cmp esi, 0xffffffff
ja 0x100767ab
push esi
call fcn.100aba71
add esp, 4
test eax, eax
jne 0x100767b0
call fcn.100a6fe5
mov dword [ebx], eax
mov eax, esi
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov byte [ebp - 4], 2
mov dword [edi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
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 0x10080720
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x10001840]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10080765
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.100cda90
mov dword [esp + 0x10], eax
test esi, esi
jne 0x10080778
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
mov edx, 0x100fe58c
lea ecx, [esp + 0xc]
call fcn.10080510
int3

Function at 0x10080a70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x100e8878
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x10080ad3
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
push fcn.10010ad0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
Function at 0x10080b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x10001840]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10080b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], esi
call fcn.100cda90
mov dword [esp + 0x14], eax
test esi, esi
jne 0x10080c4c
mov esi, dword [esp + 0x18]
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 0x10080bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], esi
call fcn.100cda90
mov dword [esp + 0x14], eax
test esi, esi
jne 0x10080c5a
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push ebx
push 0x10080c80
push 0
push 0
call fcn.100ae487
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10080c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test edi, edi
je 0x10080bfc
push edi
call esi
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x10080c0a
push eax
call esi
mov ebx, dword [esp + 0x10]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.100cda90
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x10080c68
test edi, edi
je 0x10080c38
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.10080510
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.10080510
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.10080510
int3
Function at 0x10080d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1a97
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], vtable.boost::asio::io_service::service.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x1c], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::asio::detail::service_base_class_boost::asio::detail::win_iocp_io_service_.0
mov dword [ebp - 4], 1
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x34]
mov dword [edi + 0x30], 0
call fcn.10080790
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.100cda90
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10080e10
mov edx, str.mutex
lea ecx, [ebp - 0x18]
call fcn.10080510
mov byte [ebp - 4], 5
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov byte [ebp - 4], 6
or eax, 0xffffffff
cmp ebx, 0xffffffff
cmovb eax, ebx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10080e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.100cda90
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10080e76
mov edx, str.iocp
lea ecx, [ebp - 0x18]
call fcn.10080510
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret 8
Function at 0x100811f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x1008124c
mov ecx, edi
call fcn.10081310
call fcn.100cda90
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x100812e3
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push dword [0x100e9af4]
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100e9af4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 2
xor esi, esi
push ebx
push ecx
mov ecx, edi
call fcn.100814a0
test eax, eax
je 0x100812b7
cmp esi, 0xffffffff
je 0x100812aa
inc esi
push ebx
push ecx
mov ecx, edi
call fcn.100814a0
test eax, eax
jne 0x100812a4
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
push dword [0x100e9af4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100812e1
push ecx
call fcn.100ab3c9
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret 4
Function at 0x10081900
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x10081a0f
cmp byte [ebp + 8], bl
je 0x1008197b
test byte [esi], 8
je 0x1008197b
xor eax, eax
mov dword [ebp - 8], eax
call fcn.100cda90
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp - 0xc]
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.100cda90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1008197d
call fcn.100cda90
jmp 0x1008197d
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.100cda90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x10081a0f
call fcn.100cda90
cmp dword [edi + 4], eax
jne 0x100819b6
cmp dword [edi], 0x2733
je 0x100819c8
call fcn.100cda90
cmp dword [edi + 4], eax
jne 0x10081a0b
cmp dword [edi], 0x4d5
jne 0x10081a0b
mov ebx, dword [ebp - 0xc]
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 - 0x10]
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.100cda90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x10081a1d
call fcn.100cda90
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100acd5e
mov esp, ebp
pop ebp
ret

Function at 0x10081a30
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 0x10081a59
call fcn.100cda90
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.100cda90
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 0x10081a91
call fcn.100cda90
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 0x10081b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.100cda90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x10081bad
call fcn.100cda90
mov dword [ebx], 0x2746
jmp 0x10081bbf
cmp eax, 0x4d2
jne 0x10081bc2
call fcn.100cda90
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x10081bda
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
call fcn.100cda90
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.100acd5e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.100cda90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x10081d44
call fcn.100cda90
mov dword [ebx], 0x2746
jmp 0x10081d56
cmp eax, 0x4d2
jne 0x10081d59
call fcn.100cda90
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x10081d71
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
call fcn.100cda90
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
Function at 0x10081e60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.100cda90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x10081ec2
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x17
jne 0x10081ee0
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.100cda90
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, edi
mov dword [ebx], 0
pop edi
pop esi
pop ebx
call fcn.100acd5e
mov esp, ebp
pop ebp
ret

Function at 0x10081fc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10001840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10082001
call fcn.100cda90
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100acd5e
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.100cda90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x10082058
jle 0x10082066
call fcn.100cda90
mov dword [edi + 4], eax
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100acd5e
mov esp, ebp
pop ebp
ret