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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], edi
test edi, edi
jne 0x4102cb
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x627038
push esi
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov eax, dword [ebp - 0xc]
test al, 1
je 0x4102c5
cmp eax, 1
jne 0x4103b7
cmp dword [ebp - 0x14], 0
setne al
test al, al
jne 0x4103b7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov dword [ebx + 8], eax
cmp dword [ecx + 8], 0
jne 0x410321
call esi
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x627038
push esi
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov eax, dword [ebp - 0xc]
test al, 1
je 0x410321
cmp eax, 1
jne 0x4103c4
cmp dword [ebp - 0x14], 0
setne al
test al, al
jne 0x4103c4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push ebx
push 0x4103e0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 4]
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ecx + 4], eax
test eax, eax
jne 0x41039e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp + 8], eax
call dword [edx]
test edi, edi
je 0x41036a
push edi
call esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x410377
push eax
call esi
push 0x627038
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004033f0
mov eax, dword [ebp - 0xc]
test al, 1
je 0x41039e
cmp eax, 1
jne 0x4103d1
cmp dword [ebp - 0x14], 0
setne al
test al, al
jne 0x4103d1
test edi, edi
je 0x4103ae
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [ebp - 0x14]
call fcn.00403c30
mov edx, str.thread.exit_event
lea ecx, [ebp - 0x14]
call fcn.00403c30
mov edx, str.thread
lea ecx, [ebp - 0x14]
call fcn.00403c30
int3
Function at 0x4105e0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bdce
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62700c]
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], 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.00411210
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.0040fef0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4106ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x627038
push eax
lea ecx, [ebp - 0x1c]
call fcn.004033f0
mov eax, dword [ebp - 0x14]
test al, 1
je 0x4106ee
cmp eax, 1
jne 0x41076c
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x41076c
cmp byte [ebp + 0x10], 0
je 0x410756
lock inc dword [edi]
push 0xc
call fcn.0045afb5
mov edi, eax
add esp, 4
mov dword [ebp + 0x10], edi
mov byte [ebp - 4], 7
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0045afb5
add esp, 4
mov dword [ebp + 8], eax
mov ecx, edi
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
push 0
push eax
mov dword [eax + 0xc], esi
call fcn.00410260
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x410753
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push ebx
call fcn.0045b34b
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
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.00403c30
int3
Function at 0x410ad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59be35
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
lea eax, [esi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x410b33
call fcn.00410c50
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
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
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
add esp, 4
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x6325ac]
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x6325ac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push ebx
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.00410db0
test eax, eax
je 0x410bd0
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push ecx
mov ecx, esi
call fcn.00410db0
test eax, eax
jne 0x410bb4
push dword [ebp - 0x10]
push dword [0x6325ac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x4c]
test eax, eax
je 0x410bf2
push eax
call fcn.0045b42d
add esp, 4
inc esi
cmp esi, 0xa
jl 0x410be1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void__]
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 esp, ebp
pop ebp
ret 4
Function at 0x4113a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 8], eax
cmp edi, 0xffffffff
je 0x41148e
cmp byte [ebp + 8], 0
je 0x4113fd
mov cl, byte [eax]
test cl, 8
je 0x4113fd
or cl, 8
xor edx, edx
push 4
mov byte [eax], cl
xorps xmm0, xmm0
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x80
push 0xffff
push edi
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x14]
setne dl
call fcn.00411300
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
mov ecx, ebx
setne dl
call fcn.00411300
test esi, esi
je 0x411485
push ecx
push 0x2733
lea ecx, [ebp - 0x14]
call fcn.00414550
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.0040f9b0
test al, al
jne 0x411453
push ecx
push 0x4d5
lea ecx, [ebp - 0x14]
call fcn.00414550
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.0040f9b0
test al, al
je 0x411485
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push edi
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, ebx
test esi, esi
setne dl
call fcn.00411300
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 0x411760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
push 0
push 0
push 0
push eax
push 1
push edx
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSASend]
push 0x627038
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.004033f0
mov dword [ebp + 0x10], 0x1ffff7
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
cmp ecx, 1
je 0x4117bd
mov eax, dword [esi]
mov edi, eax
jmp 0x4117cf
mov eax, dword [esi + 4]
xor edx, edx
div dword [ebp + 0x10]
mov edi, dword [esi]
imul eax, edx, 0x3e8
add eax, edi
cmp eax, 0x40
jne 0x411826
mov ecx, dword [0x627040]
mov eax, dword [0x627044]
cmp ecx, 0x257edfd1
jne 0x4117ee
cmp eax, 0xb2ab117a
je 0x4117fd
cmp ecx, 0x257edfd0
jne 0x41180a
cmp eax, 0xb2ab117a
jne 0x41180a
mov al, 1
mov dword [esi], 0x2746
jmp 0x41188a
mov eax, dword [0x627038]
mov ecx, 0x627038
push 0x2746
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0x2746
jmp 0x41188a
cmp ecx, 1
jne 0x41183b
mov eax, dword [esi + 4]
xor edx, edx
div dword [ebp + 0x10]
imul eax, edx, 0x3e8
add edi, eax
cmp edi, 0x4d2
jne 0x41189a
mov ecx, dword [0x627040]
mov eax, dword [0x627044]
cmp ecx, 0x257edfd1
jne 0x41185d
cmp eax, 0xb2ab117a
je 0x41186c
cmp ecx, 0x257edfd0
jne 0x411870
cmp eax, 0xb2ab117a
jne 0x411870
mov al, 1
jmp 0x411884
mov eax, dword [0x627038]
mov ecx, 0x627038
push 0x274d
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0x274d
movzx ecx, al
add ecx, 2
mov dword [esi + 4], 0x627038
mov dword [esi + 8], ecx
test ebx, ebx
je 0x4118a8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x4118b3
mov edi, 0x627038
jmp 0x4118c0
mov edi, 0x627020
cmp ecx, 1
je 0x4118c0
mov edi, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x257edfd1
jne 0x4118d5
cmp eax, 0xb2ab117a
je 0x4118e4
cmp ecx, 0x257edfd0
jne 0x4118e8
cmp eax, 0xb2ab117a
jne 0x4118e8
xor al, al
jmp 0x4118f3
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0
movzx eax, al
mov dword [esi + 4], edi
add eax, 2
pop edi
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412c10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c0ad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ecx + 8]
mov dword [ebp - 0x10], eax
lea ebx, [ecx + 0x28]
mov eax, dword [ecx]
push esi
push 0x58
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esi
call fcn.0040fd50
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
mov dword [edi + 0x14], 0
xorps xmm0, xmm0
mov dword [edi + 0x18], 0x416660
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
movq qword [edi + 0x20], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov eax, dword [esi]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 4]
push ebx
mov dword [edi + 0x34], eax
sub esp, 8
mov eax, dword [esi + 8]
mov dword [edi + 0x38], eax
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.004168b0
mov ecx, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x18], edi
lea eax, [ecx + 0xc]
mov byte [ecx + 8], 1
push eax
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + 0x14]
mov ecx, dword [ecx + 0x34]
push eax
call fcn.00416a80
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.004165c0
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 0x4153f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b3a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::exception_detail::clone_base.0
mov ebx, dword [ebp + 8]
lea eax, [edi + 8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 8]
push eax
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
mov dword [edi + 4], vtable.boost::system::system_error.0
add esp, 8
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov dword [edi + 4], vtable.boost::lock_error.0
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x20]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x415487
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x14], eax
mov eax, edi
mov dword [edi], vtable.boost::wrapexcept_class_boost::lock_error_.0
mov dword [edi + 4], vtable.boost::wrapexcept_class_boost::lock_error_.2.0
mov dword [esi], vtable.boost::wrapexcept_class_boost::lock_error_.1.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 0x416ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c4cf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], 0
mov dword [ebp - 4], 0
lea esi, [ebx + 0x14]
mov dword [ebx], vtable.boost::asio::detail::deadline_timer_service_struct_boost::asio::time_traits_class_boost::posix_time::ptime__.0
mov dword [esi + 4], 0
mov dword [esi], vtable.boost::asio::detail::timer_queue_struct_boost::asio::time_traits_class_boost::posix_time::ptime__.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], vtable.boost::asio::detail::timer_queue_struct_boost::asio::detail::forwarding_posix_time_traits_.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
call fcn.00415c20
mov edi, eax
mov dword [ebx + 0x34], edi
lea eax, [edi + 0x38]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x20], 1
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x50]
mov dword [esi + 4], eax
mov dword [edi + 0x50], esi
cmp dword [edi + 0x30], 0
jne 0x416ccf
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x416ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x627038
push eax
lea ecx, [ebp - 0x30]
call fcn.004033f0
mov eax, dword [ebp - 0x28]
test al, 1
je 0x416ca9
cmp eax, 1
jne 0x416d5a
cmp dword [ebp - 0x30], 0
setne al
test al, al
jne 0x416d5a
push 0
push 0
push 0
push 0x493e0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4d2fa200
push eax
push dword [edi + 0x30]
mov dword [ebp - 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp dword [edi + 0x2c], 0
jne 0x416d3a
push 0xc
call fcn.0045afb5
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0045afb5
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, esi
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::timer_thread_function_.0
push 0x10000
push eax
mov dword [eax + 0xc], edi
call fcn.00410260
mov ebx, dword [edi + 0x2c]
test ebx, ebx
je 0x416d34
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push ebx
call fcn.0045b34b
add esp, 8
mov ebx, dword [ebp - 0x14]
mov dword [edi + 0x2c], esi
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.timer
lea ecx, [ebp - 0x30]
call fcn.00403c30
int3
Function at 0x417060
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c51d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
add eax, 0x18
push eax
push 0x80
call fcn.0040fd50
add esp, 8
mov edi, eax
mov esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4170c0
mov edx, dword [esi + 8]
mov eax, ecx
mov dword [ebp + 8], eax
lock inc dword [ecx + 8]
mov dword [edi + 0x14], 0
lea ecx, [eax + 8]
mov dword [edi + 0x18], 0x417880
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x41711a
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], eax
lock inc dword [ecx]
jmp 0x41711d
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x2c], ecx
lea ecx, [edi + 0x30]
mov dword [edi + 0x28], eax
call fcn.00417c50
push dword [ebp + 0x18]
lea ecx, [edi + 0x60]
sub esp, 8
call fcn.004168b0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41715c
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41715c
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esi + 4], 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
je 0x41717b
mov byte [ebp + 0x17], 1
test ecx, ecx
je 0x41717f
mov byte [ebp + 0x17], 0
cmp dword [esi + 0x14], 0
jne 0x417190
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x14], eax
jmp 0x4171a2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
je 0x4171a2
mov dword [esi + 0x14], 0xffffffff
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x17], 0
push 0
je 0x4171c0
mov ecx, dword [ebx + 4]
push 0
push edi
call fcn.00410d30
jmp 0x41722b
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4171d7
mov ecx, dword [ebx + 4]
push 0x2719
push edi
call fcn.00410d30
jmp 0x41722b
push edi
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push ecx
push 1
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x417222
cmp eax, 0x3e5
je 0x417222
push dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.00410d30
jmp 0x41722b
mov ecx, dword [ebx + 4]
push edi
call fcn.00410cc0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.004177e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x417cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c665
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
jne 0x417d33
push dword [0x6325ac]
and eax, 0xfffffffc
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x417d33
cmp dword [eax], esi
je 0x417d51
mov eax, dword [eax + 8]
test eax, eax
jne 0x417d28
push dword [0x6325ac]
lea eax, [edi + 1]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x417de5
mov ecx, dword [eax + 4]
jmp 0x417de7
cmp dword [eax + 4], 0
je 0x417d33
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov dword [ecx], 0
mov dword [ebp - 4], 0
nop
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.00418400
add esp, 8
nop
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x417e64
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
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
xor ecx, ecx
push ecx
push dword [ebp + 8]
mov edx, 0x28
call fcn.00414290
mov ecx, dword [ebp + 8]
mov edx, eax
add esp, 4
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x418350
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ecx]
mov dword [edx + 0x20], eax
mov dword [ecx], 0
mov ecx, dword [edi + 4]
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + 8]
call fcn.00410510
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.00418090
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