joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x302a460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x302a860]
xor edx, dword [ebx*4 + 0x302ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x302a460]
add ecx, 4
xor edx, dword [eax*4 + 0x302b060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x302a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x302ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x302a460]
add ecx, 4
xor eax, dword [edx*4 + 0x302b060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x302a860]
xor edx, dword [ebx*4 + 0x302ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x302a460]
xor edx, dword [eax*4 + 0x302b060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x302a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x302ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x302a460]
xor eax, dword [edx*4 + 0x302b060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x302a860]
xor edx, dword [ebx*4 + 0x302ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x302a460]
xor edx, dword [eax*4 + 0x302b060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x302a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x302ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x302a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x302b060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x302a860]
xor edx, dword [ebx*4 + 0x302ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x302a460]
add ecx, 4
xor edx, dword [eax*4 + 0x302b060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x302a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x302ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x302a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x302b060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x302a860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x302ac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x302a460]
and eax, 0xff
xor edi, dword [eax*4 + 0x302b060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x302a460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x10014240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, edi
je 0x1001426e
mov edx, ecx
mov eax, ecx
shr eax, 2
shl edx, 6
add edx, eax
movsx eax, byte [esi]
add eax, 0x9e3779b9
inc esi
add eax, edx
xor ecx, eax
cmp esi, edi
jne 0x10014251
mov eax, 3
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffffff
pop edi
pop esi
sub ecx, eax
or ecx, 0x40000000
mov eax, ecx
pop ebp
ret
Function at 0x10018c30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x101cd100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov eax, 1
lock xadd dword [0x101d7074], eax
inc eax
mov edi, 0x101d7078
cmp eax, 1
jne 0x10018c70
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [edi], eax
cmp byte [ebp + 8], 0
je 0x10018cd6
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
je 0x10018cd6
push 0x101ad288
push eax
lea ecx, [ebp - 0x1a0]
call fcn.1001be50
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x1b0], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_detail_impl_winsock_init.ipp
mov dword [ebp - 0x1ac], str.throw_on_error
mov dword [ebp - 0x1a8], 0x48
mov dword [ebp - 0x1a4], 0x1d
test al, 1
je 0x10018cd6
cmp eax, 1
jne 0x10018cea
cmp dword [ebp - 0x1a0], 0
setne al
test al, al
jne 0x10018cea
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10132a90
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x1b0]
push eax
push str.winsock
lea eax, [ebp - 0x1a0]
push eax
call fcn.1002ce50
int3

Function at 0x1001a0b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10159588
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101cd100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], vtable.boost_sb::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
lea eax, [ebx + 8]
xorps xmm0, xmm0
mov dword [ebx + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
call fcn.10134025
mov dword [ebx + 4], vtable.boost_sb::system::system_error.0
add esp, 8
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
lea edi, [ebx + 0x1c]
mov byte [ebp - 4], 1
mov dword [edi], vtable.boost_sb::exception.0
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], eax
mov dword [edi + 4], eax
test eax, eax
je 0x1001a154
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x101653ec]
mov ecx, dword [ebp - 0x10]
call esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x14], eax
mov eax, ebx
mov dword [ebx], vtable.boost_sb::wrapexcept_class_boost_sb::system::system_error_.0
mov dword [ebx + 4], vtable.boost_sb::wrapexcept_class_boost_sb::system::system_error_.1.0
mov dword [edi], vtable.boost_sb::wrapexcept_class_boost_sb::system::system_error_.2.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
Function at 0x1001a250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10159588
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101cd100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], vtable.boost_sb::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
lea eax, [ebx + 8]
xorps xmm0, xmm0
mov dword [ebx + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
call fcn.10134025
mov dword [ebx + 4], vtable.boost_sb::system::system_error.0
add esp, 8
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov dword [ebx + 4], vtable.boost_sb::thread_resource_error.0
lea edi, [ebx + 0x1c]
mov byte [ebp - 4], 1
mov dword [edi], vtable.boost_sb::exception.0
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], eax
mov dword [edi + 4], eax
test eax, eax
je 0x1001a2fb
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x101653ec]
mov ecx, dword [ebp - 0x10]
call esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x14], eax
mov eax, ebx
mov dword [ebx], vtable.boost_sb::wrapexcept_class_boost_sb::thread_resource_error_.0
mov dword [ebx + 4], vtable.boost_sb::wrapexcept_class_boost_sb::thread_resource_error_.1.0
mov dword [edi], vtable.boost_sb::wrapexcept_class_boost_sb::thread_resource_error_.2.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
Function at 0x1001ab30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101597d3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x101cd100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
push dword [ebp + 0xc]
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.Drill::SSLChannelContext.0
call fcn.1001b730
push dword [ebp + 0x14]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.10017170
mov byte [ebp - 4], 2
mov byte [esi + 0x30], 1
call sub.libcrypto_3.dll_ERR_clear_error
push dword [esi + 0xc]
call sub.libssl_3.dll_SSL_CTX_set_default_verify_paths
add esp, 4
cmp eax, 1
je 0x1001abe2
call sub.libcrypto_3.dll_ERR_get_error
mov ecx, eax
test eax, eax
jns 0x1001abc9
sar ecx, 0x1f
and ecx, 0x7f800000
add ecx, 0x7fffff
and ecx, eax
mov eax, 0x101ad288
jmp 0x1001abce
mov eax, 0x101ad318
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001be50
movq xmm0, qword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
jmp 0x1001abe7
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x14], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x2c], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_ssl_impl_context.ipp
mov dword [ebp - 0x28], str.set_default_verify_paths
mov dword [ebp - 0x24], 0x25b
mov dword [ebp - 0x20], 0x1b
test al, 1
je 0x1001ac27
cmp eax, 1
jne 0x1001acbc
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x1001acbc
mov eax, dword [ebp + 0x18]
cdq
push edx
or eax, 0x82000850
push eax
push dword [esi + 0xc]
call sub.libssl_3.dll_SSL_CTX_set_options
push dword [esi + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_ssl_impl_context.ipp
mov dword [ebp - 0x28], str.set_options
mov dword [ebp - 0x24], 0x1de
mov dword [ebp - 0x20], 0x1b
call sub.libssl_3.dll_SSL_CTX_get_verify_callback
push eax
push dword [ebp + 0x10]
push dword [esi + 0xc]
call sub.libssl_3.dll_SSL_CTX_set_verify
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
add esp, 0x1c
mov dword [ebp - 0x2c], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_ssl_impl_context.ipp
mov eax, esi
mov dword [ebp - 0x28], str.set_verify_mode
mov dword [ebp - 0x24], 0x1f9
mov dword [ebp - 0x20], 0x1b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp - 0x2c]
push eax
push str.set_default_verify_paths
lea eax, [ebp - 0x1c]
push eax
call fcn.1002ce50
int3
Function at 0x1001cea0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10159aae
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x101cd100]
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 [edi], vtable.boost_sb::asio::detail::win_iocp_io_context.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
lea esi, [edi + 0x18]
mov dword [edi + 0x1c], 0
mov dword [esi], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
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.1001d080
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x60], 0
or eax, 0xffffffff
mov byte [ebp - 4], 6
test ecx, ecx
cmovns eax, ecx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x1001cfd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x101ad288
push eax
lea ecx, [ebp - 0x24]
call fcn.1001be50
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], str.C:jkpackagey_artifact_library_boost1.84.0_basew2016_vs2022_release32mtinclude_boost_asio_detail_impl_win_iocp_io_context.ipp
mov dword [ebp - 0x30], str.win_iocp_io_context
mov dword [ebp - 0x2c], 0x66
mov dword [ebp - 0x28], 0x1d
test al, 1
je 0x1001cfd3
cmp eax, 1
jne 0x1001d06a
cmp dword [ebp - 0x24], 0
setne al
test al, al
jne 0x1001d06a
cmp byte [ebp + 0x10], 0
je 0x1001d054
lock inc dword [esi]
push 0xc
call fcn.10132688
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x1001d034
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10132688
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001d027
push 0
push eax
mov ecx, esi
mov dword [eax], vtable.boost_sb::asio::detail::win_thread::func_struct_boost_sb::asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], edi
call fcn.100403d0
jmp 0x1001d036
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.100403d0
jmp 0x1001d036
xor esi, esi
mov ebx, dword [edi + 0x60]
test ebx, ebx
je 0x1001d051
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push ebx
call fcn.101326bd
add esp, 8
mov dword [edi + 0x60], esi
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 0xc
lea eax, [ebp - 0x34]
push eax
push str.iocp
lea eax, [ebp - 0x24]
push eax
call fcn.1002ce50
int3
Function at 0x100275c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x100277af
cmp byte [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
je 0x1002761b
mov al, byte [ebx]
test al, 8
je 0x1002761b
or al, 8
xor ecx, ecx
push 4
mov byte [ebx], al
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1002761b
push 0x101ad288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.1001be50
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x10027640
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
pop ebx
pop edi
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov eax, ecx
mov esp, ebp
pop ebp
ret
push esi
push 0x101ad288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.1001be50
mov ecx, dword [ebp + 0x14]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [0x101ad290]
mov esi, dword [0x101ad294]
cmp eax, 0x257edfd1
jne 0x10027680
cmp esi, 0xb2ab117a
je 0x1002768f
cmp eax, 0x257edfd0
jne 0x10027693
cmp esi, 0xb2ab117a
jne 0x10027693
mov al, 1
jmp 0x100276b8
mov eax, dword [0x101ad288]
push 0x2733
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
mov esi, dword [0x101ad294]
mov ecx, dword [ebp + 0x14]
movzx eax, al
add eax, 2
mov dword [ebp - 0x10], 0x2733
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x101ad288
movq xmm0, qword [ebp - 0x10]
push eax
push ecx
movq qword [ebp - 0x10], xmm0
call fcn.10020280
add esp, 8
test al, al
jne 0x1002776f
mov eax, dword [0x101ad290]
cmp eax, 0x257edfd1
jne 0x10027702
cmp esi, 0xb2ab117a
je 0x10027711
cmp eax, 0x257edfd0
jne 0x10027715
cmp esi, 0xb2ab117a
jne 0x10027715
mov al, 1
jmp 0x10027731
mov eax, dword [0x101ad288]
push 0x4d5
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
movzx eax, al
add eax, 2
mov dword [ebp - 0x10], 0x4d5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x101ad288
movq xmm0, qword [ebp - 0x10]
push eax
push dword [ebp + 0x14]
movq qword [ebp - 0x10], xmm0
call fcn.10020280
add esp, 8
test al, al
jne 0x1002776f
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebx], 0xfc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test esi, esi
setne al
movzx eax, al
push eax
push dword [ebp + 0x14]
call fcn.10030000
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10027be0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push esi
cmp eax, 0xffffffff
jne 0x10027c63
mov ecx, dword [0x101ad290]
mov eax, dword [0x101ad294]
cmp ecx, 0x257edfd1
jne 0x10027c09
cmp eax, 0xb2ab117a
je 0x10027c18
cmp ecx, 0x257edfd0
jne 0x10027c1c
cmp eax, 0xb2ab117a
jne 0x10027c1c
mov al, 1
jmp 0x10027c38
mov eax, dword [0x101ad288]
push 0x2719
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
movzx ecx, al
mov eax, dword [ebp + 0x14]
add ecx, 2
mov dword [ebp - 0xc], 0x2719
mov dword [ebp - 8], 0x101ad288
movq xmm0, qword [ebp - 0xc]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test esi, esi
jne 0x10027c88
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
pop esi
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret
push 0x101ad288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.1001be50
mov ecx, dword [ebp + 0x14]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10030f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015ae1d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101cd100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.10132688
mov esi, eax
add esp, 4
test esi, esi
je 0x10030fbd
push 1
mov dword [ebp - 4], 0
call fcn.10131824
add esp, 4
mov dword [esi + 4], eax
jmp 0x10030fbf
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101653ec]
mov ecx, edi
call esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
call fcn.10016720
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x101653ec]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003104e
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x101653ec]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x1003104b
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x101653ec]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x1003106a
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x1003108d
cmp byte [ebp + 0xc], 0
je 0x10031079
push ebx
call fcn.10131d50
add esp, 4
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
test cl, 4
je 0x10031099
mov esi, str.ios_base::badbit_set
jmp 0x100310a9
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.10032d00
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.1001bf50
push 0x1019e0bc
lea eax, [ebp - 0x30]
push eax
call fcn.10134106
int3
Function at 0x10032140
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, 0x101d706c
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
test eax, eax
push 0
setne al
push ecx
test al, al
je 0x10032193
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
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 0x1003d850
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
push 0x101ad288
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001be50
mov edi, dword [ebp + 0x18]
mov dword [ebp - 4], 0x1ffff7
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov ebx, eax
mov dword [edi + 8], eax
cmp ebx, 1
je 0x1003d8bd
mov eax, dword [edi]
mov ecx, eax
jmp 0x1003d8cf
mov eax, dword [edi + 4]
xor edx, edx
div dword [ebp - 4]
mov ecx, dword [edi]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x40
jne 0x1003d930
mov ecx, dword [0x101ad290]
mov eax, dword [0x101ad294]
cmp ecx, 0x257edfd1
jne 0x1003d8ee
cmp eax, 0xb2ab117a
je 0x1003d8fd
cmp ecx, 0x257edfd0
jne 0x1003d90b
cmp eax, 0xb2ab117a
jne 0x1003d90b
mov al, 1
mov dword [ebp - 0x1c], 0x2746
jmp 0x1003d9a0
mov eax, dword [0x101ad288]
push 0x2746
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
mov dword [ebp - 0x1c], 0x2746
jmp 0x1003d9a0
cmp ebx, 1
je 0x1003d939
mov eax, ecx
jmp 0x1003d949
mov eax, dword [edi + 4]
xor edx, edx
div dword [ebp - 4]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x4d2
jne 0x1003d9bb
mov ecx, dword [0x101ad290]
mov eax, dword [0x101ad294]
cmp ecx, 0x257edfd1
jne 0x1003d96a
cmp eax, 0xb2ab117a
je 0x1003d979
cmp ecx, 0x257edfd0
jne 0x1003d97d
cmp eax, 0xb2ab117a
jne 0x1003d97d
mov al, 1
jmp 0x1003d999
mov eax, dword [0x101ad288]
push 0x274d
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
mov dword [ebp - 0x1c], 0x274d
movzx eax, al
mov dword [ebp - 0x18], 0x101ad288
add eax, 2
movq xmm0, qword [ebp - 0x1c]
movq qword [edi], xmm0
mov dword [edi + 8], eax
jmp 0x1003d9fc
cmp ebx, 1
je 0x1003d9c4
mov eax, ecx
jmp 0x1003d9d4
mov eax, dword [edi + 4]
xor edx, edx
div dword [ebp - 4]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x2738
je 0x1003da0c
cmp ebx, 1
jne 0x1003d9f4
mov eax, dword [edi + 4]
xor edx, edx
mov ebx, 0x1ffff7
div ebx
imul eax, edx, 0x3e8
add ecx, eax
cmp ecx, 0xea
je 0x1003da0c
cmp dword [ebp - 0x10], 0
je 0x1003da0c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret