joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
and eax, 3
cmp al, 3
jne 0x10010e4f
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10010e44
cmp dword [esi + 0x54], 0
je 0x10010e44
cmp eax, 2
jne 0x10010e44
cmp ebx, 3
jne 0x10010e44
push 6
push str.about:
push dword [esi + 0x4c]
call fcn.1004cf95
add esp, 0xc
test eax, eax
je 0x10010e44
push edi
push 0x308
call fcn.1003c31d
mov edi, eax
add esp, 4
test edi, edi
je 0x10010e43
push 0x308
push 0
push edi
call fcn.100415b0
add esp, 0xc
mov dword [edi], 1
push dword [esi + 0x4c]
call fcn.1003bb50
mov ebx, eax
test ebx, ebx
je 0x10010e04
push ebx
lea ecx, [edi + 4]
push 0x200
push ecx
call fcn.1004b287
add esp, 0xc
push 0
push 0
push edi
push 0x10010e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10010e25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10010e33
push 0x308
push edi
call fcn.1003c651
add esp, 8
test ebx, ebx
je 0x10010e40
push ebx
call fcn.1003c350
add esp, 4
mov ebx, dword [ebp + 0xc]
pop edi
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], eax
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1001d950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dl, byte [eax]
inc eax
test dl, dl
je 0x1001da53
push ebx
push esi
push edi
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
cmp cl, 0x2d
jne 0x1001d9d5
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov dword [ebp + 0xc], eax
test cl, cl
je 0x1001da16
movsx ebx, dl
movsx edx, cl
mov dword [ebp - 8], edx
cmp ebx, edx
jg 0x1001da05
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
nop dword [eax + eax]
movzx edi, bl
mov ecx, edi
and edi, 0x3f
shr ecx, 6
lea esi, [edx + ecx*8]
xor ecx, ecx
xor edx, edx
bts ecx, edi
cmp edi, 0x20
cmovae edx, ecx
xor ecx, edx
cmp edi, 0x40
cmovae edx, ecx
or dword [esi], ecx
or dword [esi + 4], edx
inc ebx
mov edx, dword [ebp - 0xc]
cmp ebx, eax
jle 0x1001d9a0
mov eax, dword [ebp + 0xc]
jmp 0x1001da02
mov ecx, dword [ebp + 8]
movzx edi, dl
mov edx, dword [ecx]
mov ecx, edi
shr ecx, 6
and edi, 0x3f
lea esi, [edx + ecx*8]
xor ecx, ecx
xor edx, edx
bts ecx, edi
cmp edi, 0x20
cmovae edx, ecx
xor ecx, edx
cmp edi, 0x40
cmovae edx, ecx
or dword [esi], ecx
or dword [esi + 4], edx
mov cl, byte [ebp - 1]
mov dl, cl
test cl, cl
jne 0x1001d967
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
movzx esi, dl
mov eax, esi
and esi, 0x3f
shr eax, 6
mov ecx, dword [ebx]
pop edi
lea edx, [ecx + eax*8]
xor eax, eax
bts eax, esi
xor ecx, ecx
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
pop esi
cmovae ecx, eax
or dword [edx], eax
or dword [edx + 4], ecx
mov ecx, dword [ebx]
pop ebx
mov eax, dword [ecx]
or dword [ecx + 4], 0x2000
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x10024930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100648f3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100850a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.1000cab0
mov eax, dword [ebp + 8]
mov dword [ebx], vtable.boost::asio::basic_streambuf_class_std::allocator_char__.0
mov dword [ebx + 0x38], eax
mov dword [ebp - 4], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov esi, eax
mov byte [ebp - 4], 1
mov eax, 0x80
mov ecx, 1
cmp esi, eax
cmova esi, eax
cmp esi, ecx
mov eax, esi
cmovb eax, ecx
lea ecx, [ebx + 0x3c]
push eax
call fcn.10039c00
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x3c]
add esi, edx
sub esi, edx
mov dword [ecx], edx
mov ecx, dword [ebx + 0x20]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x30]
mov dword [ecx], 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 8
Function at 0x100267f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065020
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100850a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea eax, [edi + 4]
xorps xmm0, xmm0
mov dword [edi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call fcn.100436fd
add esp, 8
mov dword [edi], vtable.boost::spirit::classic::parser_error_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::_Vector_iterator_class_std::_Vector_val_struct_std::_Simple_types_char____.0
lea ecx, [edi + 0x10]
mov eax, dword [ebx + 0xc]
lea edx, [ebx + 0x10]
mov dword [edi + 0xc], eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x1002686c
mov eax, dword [ecx]
jmp 0x1002686e
mov eax, ecx
push 0xffffffffffffffff
push 0
push edx
mov byte [eax], 0
call fcn.10013c40
lea esi, [edi + 0x28]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x2c]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1002689d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x10], eax
mov eax, edi
mov dword [edi], 0x1006c73c
mov dword [esi], 0x1006c748
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 0x100268e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065048
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100850a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea eax, [edi + 4]
xorps xmm0, xmm0
mov dword [edi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call fcn.100436fd
add esp, 8
mov dword [edi], vtable.boost::spirit::classic::parser_error_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::_Vector_iterator_class_std::_Vector_val_struct_std::_Simple_types_char____.0
lea ecx, [edi + 0x10]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [esi + 0x10]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.10013c40
mov dword [edi + 0x28], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xffffffff
mov dword [edi], 0x1006c73c
mov dword [edi + 0x28], 0x1006c748
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100276f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 4], edi
lea ecx, [edi + 0xc]
mov dword [edi], 0
lea eax, [edi + 0x1c]
mov dword [edi + 8], 0
cmp eax, ecx
mov dword [edi + 4], 0
sbb esi, esi
and esi, 0xfffffffc
add esi, 4
cmp ecx, eax
ja 0x10027733
inc edx
mov dword [ecx], 0
lea ecx, [ecx + 4]
cmp edx, esi
jne 0x10027725
push 0x20
push 0x1006abd8
push eax
call fcn.10042820
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10027750
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100652bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1a4], esi
push 0x1008fc78
mov dword [ebp - 0x1ac], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x100277b6
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x1008fc7c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0x1008fc7c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, eax
test edi, edi
je 0x100277ff
xorps xmm0, xmm0
movq qword [ebp - 0x1a8], xmm0
call fcn.10041550
mov dword [ebp - 0x1a4], eax
mov eax, fcn.100092e0
mov dword [ebp - 0x1a8], edi
test eax, eax
je 0x100277ff
push str.winsock
lea eax, [ebp - 0x1a8]
push eax
call fcn.10035590
push 0x20
mov dword [ebp - 4], 0
call fcn.1003c31d
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10027836
push 0xffffffffffffffff
xorps xmm0, xmm0
mov ecx, eax
push 0
movups xmmword [eax], xmm0
push esi
movups xmmword [eax + 0x10], xmm0
call fcn.1001ae30
jmp 0x10027838
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [eax + 0x1c]
mov eax, esi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x10027bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065381
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x100850a0]
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 dword [ebp - 0x130], edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x138], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
push 0x11c
lea eax, [ebp - 0x12c]
mov dword [edi + 0x18], 0
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.100415b0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
mov dword [ebp - 0x128], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.100346a0
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x134], xmm0
call fcn.10041550
mov dword [ebp - 0x130], eax
mov ecx, fcn.100092e0
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove ecx, eax
test ecx, ecx
je 0x10027cf4
push str.mutex
lea eax, [ebp - 0x134]
push eax
call fcn.10035590
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
or eax, 0xffffffff
mov byte [ebp - 4], 5
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 0x10027d63
xorps xmm0, xmm0
movq qword [ebp - 0x134], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x134], esi
call fcn.10041550
mov dword [ebp - 0x130], eax
test esi, esi
je 0x10027d63
push str.iocp
lea eax, [ebp - 0x134]
push eax
call fcn.10035590
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.1003beb5
mov esp, ebp
pop ebp
ret 8
Function at 0x10030c80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], esi
je 0x10030d8d
cmp byte [ebp + 0x10], bl
je 0x10030cf8
test byte [esi], 8
je 0x10030cf8
xor eax, eax
mov dword [ebp - 8], eax
call fcn.10041550
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp + 8]
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.10041550
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x10030cfb
call fcn.10041550
jmp 0x10030cfb
mov ebx, dword [ebp + 8]
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.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x10030d8d
call fcn.10041550
cmp dword [edi + 4], eax
jne 0x10030d34
cmp dword [edi], 0x2733
je 0x10030d46
call fcn.10041550
cmp dword [edi + 4], eax
jne 0x10030d89
cmp dword [edi], 0x4d5
jne 0x10030d89
mov ebx, dword [ebp + 8]
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.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x10030d9b
call fcn.10041550
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.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x10032c40
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10032c62
call fcn.10041550
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop esi
pop ebp
ret
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.10041550
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
jne 0x10032c9e
call fcn.10041550
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x10033570
Capabilities:
Create thread

Disassembly:
push ebx
xor bl, bl
cmp byte [0x1008fc5d], bl
jne 0x100335a6
push 0
push 0
push 0
push 0x1002c5e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100335a6
push eax
mov byte [0x1008fc5d], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebx
ret
mov al, bl
pop ebx
ret

Function at 0x10036b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x810]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [ebp - 0x810], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10036c19
push 0x800
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.100415b0
add esp, 0xc
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0x400
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push str.DownloadPath
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10036c19
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0xc]
push esi
call fcn.1004cc95
add esp, 0xc
mov bl, 1
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x10036c2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x10036c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006680d
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x43c], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x10036cac
mov eax, dword [esi]
jmp 0x10036cae
mov eax, esi
push 6
push str.unknow
mov ecx, esi
mov byte [eax], 0
call fcn.10013d70
push 0x24
push 0x1006af68
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
call fcn.10013d70
cmp dword [ebp - 0x41c], 0x10
lea ecx, [ebp - 0x434]
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp - 0x430]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10036dbf
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.100415b0
add esp, 0xc
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push str.Version
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10036dbf
cmp byte [ebp - 0x410], al
jne 0x10036d9e
xor ecx, ecx
jmp 0x10036db0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10036da7
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.10013d70
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x10036dd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0x10
jb 0x10036dee
inc ecx
push ecx
push dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
call fcn.10014b60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x100377c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100850a0]
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 0x1008fc80
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x10037823
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
push fcn.1002ffc0
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.1003beb5
mov esp, ebp
pop ebp
ret

Function at 0x10037d60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x10037da0
call fcn.10041550
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
push ebx
push 0
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x10037e0b
call fcn.10041550
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x10037e20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x10037e65
call fcn.10041550
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.1003beb5
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [ebp - 0xc]
and bl, 1
cmove eax, ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x110]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x114]
mov dword [edi], eax
test esi, esi
jne 0x10037f12
test bl, bl
je 0x10037eee
call fcn.10041550
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x10037f1f
mov dword [ebp - 0x118], 0
call fcn.10041550
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x10037f1f
jle 0x10037f22
call fcn.10041550
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x10037f40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x10037f85
call fcn.10041550
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.1003beb5
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [ebp - 0xc]
and bl, 1
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 0x110]
push eax
push ecx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x114]
mov dword [edi], eax
test esi, esi
jne 0x10038032
test bl, bl
je 0x1003800e
call fcn.10041550
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x1003803f
mov dword [ebp - 0x118], 0
call fcn.10041550
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x1003803f
jle 0x10038042
call fcn.10041550
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003beb5
mov esp, ebp
pop ebp
ret