joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007000
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x10007520
test edx, edx
je 0x10007520
call fcn.10007017
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x10007560
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.10007000
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x100075d1
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x10007596
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x10007ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp ebp, 0x80
je 0x10007f64
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp ebp, 0xc0
je 0x10007f3c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
jmp 0x10007f44
mov ecx, eax
mov edx, ebx
not ecx
not edx
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
nop
call fcn.10007f69
Function at 0x10043d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x10043e6a
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x10043dfd
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10043540
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10043dc3
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10043f33
call fcn.10043e0f
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x10043eca
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10043960
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10043e7b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10043f33
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.10043960
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x10043f2e
jmp 0x10043f33
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1004a0c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004a107
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0x1026c678
movq qword [ebp - 0x10], xmm0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1004a118
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
mov edx, 0x1026aadc
lea ecx, [ebp - 0x10]
call fcn.10049f90
int3
Function at 0x1004a2e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [0x10295998]
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [esi + 3]
shr ebx, 2
test eax, eax
je 0x1004a32a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1004a32a
mov eax, dword [ecx]
test eax, eax
je 0x1004a32a
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x1004a321
mov byte [eax + esi], dl
pop esi
pop ebx
pop ebp
ret
push eax
call fcn.100e4769
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.100e430a
add esp, 4
movzx ecx, bl
xor edx, edx
cmp ebx, 0xff
cmova ecx, edx
mov byte [eax + esi], cl
pop esi
pop ebx
pop ebp
ret

Function at 0x1004a350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x10295998]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1004a368
mov edx, dword [eax + 4]
jmp 0x1004a36a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x1004a389
test edx, edx
je 0x1004a389
cmp dword [edx], 0
jne 0x1004a389
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.100e4769
add esp, 4
pop ebp
ret
Function at 0x1004a990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], 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 [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x1004a9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
test esi, esi
mov dword [ebp - 8], edi
xorps xmm0, xmm0
mov dword [ebp - 8], 0x1026c678
movq qword [ebp - 0x10], xmm0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x1004aae6
mov esi, dword [ebp - 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 0x1004aa4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
test esi, esi
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0x1026c678
movq qword [ebp - 0x10], xmm0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x1004aaf3
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push ebx
push 0x1004ab10
push 0
push 0
call fcn.100efc85
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1004aac3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp - 0x1c], eax
call dword [edx]
test edi, edi
je 0x1004aa90
push edi
call esi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x1004aa9d
push eax
call esi
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
test eax, eax
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x1026c678
test eax, eax
jne 0x1004ab00
test edi, edi
je 0x1004aad3
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e40d6
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [ebp - 0x10]
call fcn.10049f90
mov edx, str.thread.exit_event
lea ecx, [ebp - 0x10]
call fcn.10049f90
mov edx, str.thread
lea ecx, [ebp - 0x10]
call fcn.10049f90
int3

Function at 0x1004ab90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x10284f40]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, 1
lock xadd dword [0x1029592c], eax
inc eax
cmp eax, 1
jne 0x1004abd0
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x10295930
xchg dword [ecx], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
Function at 0x1004acd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db0be
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x10284f40]
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, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.1004b9f0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.1004a5c0
test eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
setne byte [ebp - 0x1c]
mov dword [ebp - 0x18], 0x1026c678
test eax, eax
jne 0x1004ae98
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], eax
push 0xffffffffffffffff
push eax
push eax
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1004adfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
setne byte [ebp - 0x1c]
mov dword [ebp - 0x18], 0x1026c678
test eax, eax
jne 0x1004aea5
cmp byte [ebx + 0x10], 0
je 0x1004ae76
lock inc dword [edi]
push 0xc
call fcn.100e430a
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100e430a
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
push eax
mov ecx, edi
movups xmmword [eax], xmm0
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.1004a990
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004ae73
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x24]
call fcn.100e476e
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
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.100e40d6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov edx, str.mutex
lea ecx, [ebp - 0x20]
call fcn.10049f90
mov edx, str.iocp
lea ecx, [ebp - 0x20]
call fcn.10049f90
int3
Function at 0x1004af00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10284f40]
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 esi, ecx
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
je 0x1004b00e
mov edx, 1
lea eax, [esi + 0x1c]
mov ecx, edx
xchg dword [eax], ecx
test ecx, ecx
jne 0x1004af99
lea eax, [esi + 0x20]
xchg dword [eax], edx
test edx, edx
jne 0x1004af99
push edx
push edx
push edx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1004af99
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0x1026c678
movq qword [ebp - 0x24], xmm0
setne byte [ebp - 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1004b06d
mov ebx, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 8]
call edi
xor eax, eax
mov ecx, 0x10295828
lock xadd dword [ecx], eax
mov ecx, dword [ebx + 4]
push 0
push ecx
test eax, eax
je 0x1004afda
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1004aff0
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x1004b007
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.100e476e
add esp, 8
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x54]
call fcn.10062090
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1004b02a
push eax
call edi
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x1004b041
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.100e476e
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004b04b
push eax
call edi
mov dword [esi], vtable.boost::asio::execution_context::service.0
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.100e40d6
mov esp, ebp
pop ebp
ret
mov edx, str.pqcs
lea ecx, [ebp - 0x24]
call fcn.10049f90
int3
Function at 0x1004b3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db175
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10284f40]
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 esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x1004b455
mov edx, 1
lea eax, [esi + 0x1c]
mov ecx, edx
xchg dword [eax], ecx
test ecx, ecx
jne 0x1004b433
lea eax, [esi + 0x20]
xchg dword [eax], edx
test edx, edx
jne 0x1004b433
push edx
push edx
push edx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1004b433
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x1026c678
movq qword [ebp - 0x20], xmm0
setne byte [ebp - 0x1c]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1004b553
mov dword [ebp - 0x20], 0
xor eax, eax
mov byte [ebp - 0x1c], 0
movq xmm0, qword [ebp - 0x20]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x1026c678
jmp 0x1004b535
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 0
push eax
call fcn.100e1f89
add esp, 4
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x10295998]
neg ecx
mov dword [ebp - 0x24], 0
lea eax, [esi + 0x14]
xorps xmm0, xmm0
sbb ecx, ecx
movq qword [ebp - 0x2c], xmm0
and ecx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x10295998]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esi
xor edi, edi
call fcn.1004b6a0
test eax, eax
je 0x1004b4fc
nop dword [eax]
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push ecx
mov ecx, esi
call fcn.1004b6a0
test eax, eax
jne 0x1004b4e0
push dword [ebp - 0x24]
push dword [0x10295998]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x44]
test eax, eax
je 0x1004b521
push eax
call fcn.100e4769
add esp, 4
inc esi
cmp esi, 3
jl 0x1004b510
lea eax, [ebp - 0x34]
push eax
call fcn.100e2074
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret 4
mov edx, str.pqcs
lea ecx, [ebp - 0x20]
call fcn.10049f90
int3

Function at 0x1004b5a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x10295998]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1004b5cb
nop dword [eax]
cmp dword [eax], esi
je 0x1004b5cd
mov eax, dword [eax + 8]
test eax, eax
jne 0x1004b5c0
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1004b5cb
pop esi
jmp fcn.1004a1a0
Function at 0x1004bfc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], edx
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x1004c0d7
cmp byte [ebp + 8], 0
je 0x1004c02b
mov al, byte [edx]
test al, 8
je 0x1004c02b
or al, 8
mov dword [ebp - 0xc], 0x1026c678
push 4
mov byte [edx], al
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push 0x80
push 0xffff
xorps xmm0, xmm0
push ebx
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x14]
setne dl
call fcn.1004bf30
push esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.1004bf30
test esi, esi
je 0x1004c063
mov eax, dword [edi]
cmp eax, 0x2733
jne 0x1004c076
mov eax, dword [edi + 8]
cmp dword [eax + 8], 0x25c5e09b
jne 0x1004c063
cmp dword [eax + 0xc], 0x8fafd21e
je 0x1004c092
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
cmp eax, 0x4d5
jne 0x1004c063
mov eax, dword [edi + 8]
cmp dword [eax + 8], 0x25c5e09b
jne 0x1004c063
cmp dword [eax + 0xc], 0x8fafd21e
jne 0x1004c063
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x18]
push ebx
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.1004bf30
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
Function at 0x1004c270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push 0
push 0
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [ebp - 0x14], eax
setne byte [ebp - 0x10]
movq xmm0, qword [ebp - 0x14]
movq qword [esi], xmm0
mov dword [esi + 8], 0x1026c678
mov eax, dword [esi]
cmp eax, 0x40
jne 0x1004c2d2
mov dword [ebp - 0x14], 0x2746
jmp 0x1004c2e0
cmp eax, 0x4d2
jne 0x1004c2f4
mov dword [ebp - 0x14], 0x274d
mov byte [ebp - 0x10], 1
movq xmm0, qword [ebp - 0x14]
movq qword [esi], xmm0
mov dword [esi + 8], 0x1026c678
test edi, edi
je 0x1004c30b
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 8]
mov dword [esi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x1004c329
cmp eax, 0x8fafd21e
je 0x1004c338
cmp ecx, 0x257edf0d
jne 0x1004c33c
cmp eax, 0xb2ab117a
jne 0x1004c33c
xor al, al
jmp 0x1004c347
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebp - 4]
mov dword [esi + 8], edi
xor ecx, ebp
mov byte [esi + 4], al
mov eax, dword [ebp - 8]
pop edi
pop esi
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
Function at 0x1004c360
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov byte [ebp - 0x109], dl
mov dword [ebp - 0x110], eax
push esi
mov esi, dword [ebp + 0x18]
cmp ebx, 0xffffffff
jne 0x1004c3c4
mov dword [ebp - 0x11c], 0x2719
xor eax, eax
mov byte [ebp - 0x118], 1
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x1026c678
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
push edi
je 0x1004c43c
test dl, 0x10
je 0x1004c43c
mov edi, dword [esi + 8]
mov dword [esi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x1004c3ee
cmp eax, 0x8fafd21e
je 0x1004c3fd
cmp ecx, 0x257edf0d
jne 0x1004c418
cmp eax, 0xb2ab117a
jne 0x1004c418
xor al, al
mov dword [esi + 8], edi
pop edi
mov byte [esi + 4], al
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov dword [esi + 8], edi
pop edi
mov byte [esi + 4], al
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
push esi
push ecx
push dword [ebp + 0xc]
mov edx, eax
call fcn.1004c270
add esp, 0xc
test eax, eax
jns 0x1004c555
mov al, byte [ebp - 0x109]
and al, 1
mov byte [ebp - 0x109], al
test al, al
jne 0x1004c553
mov eax, dword [esi]
cmp eax, 0x2733
je 0x1004c47d
cmp eax, 0x4d5
jne 0x1004c553
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0x25c5e09b
jne 0x1004c553
cmp dword [eax + 0xc], 0x8fafd21e
jne 0x1004c553
push 0
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x104], ebx
push eax
push 0
lea eax, [ebx + 1]
mov dword [ebp - 0x108], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1004c52b
mov edi, dword [esi + 8]
mov dword [esi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x1004c4e3
cmp eax, 0x8fafd21e
je 0x1004c4f2
cmp ecx, 0x257edf0d
jne 0x1004c4f6
cmp eax, 0xb2ab117a
jne 0x1004c4f6
xor al, al
jmp 0x1004c501
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov edx, dword [ebp - 0x110]
push esi
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
mov byte [esi + 4], al
mov dword [esi + 8], edi
call fcn.1004c270
add esp, 0xc
test eax, eax
jns 0x1004c555
mov al, byte [ebp - 0x109]
jmp 0x1004c461
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [ebp - 0x11c], eax
setne byte [ebp - 0x118]
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x1026c678
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e40d6
mov esp, ebp
pop ebp
ret