joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41abf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6068
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d0084]
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 eax, ecx
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov edi, dword [ebp + 8]
lea esi, [eax + 0x4c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 4
nop dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41ac7f
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi]
mov ecx, dword [esi - 0x10]
lea edx, [eax + edx*8]
mov eax, dword [edx]
cmp eax, ecx
je 0x41ac82
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x41ac7f
cmp dword [eax + 8], edi
je 0x41ac9c
mov eax, dword [eax]
cmp eax, ecx
jne 0x41ac74
mov ecx, dword [esi - 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
push ecx
lea ecx, [esi - 0x14]
call fcn.0041a9a0
test al, al
jne 0x41aca0
test bl, bl
jne 0x41aca0
jmp 0x41aca2
mov ecx, eax
jmp 0x41ac82
mov bl, 1
add esi, 0x1c
sub dword [ebp - 0x1c], 1
jne 0x41ac50
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [esi + 0x14]
call fcn.0041ab10
test bl, bl
je 0x41ad24
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 1
call fcn.00473ff0
mov esi, dword [esi + 0x34]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.00473ff0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x41ad16
cmp eax, 0x4d2
jne 0x41ad1b
call fcn.00473ff0
test esi, esi
jne 0x41ad24
call fcn.00473ff0
lea ecx, [ebp - 0x28]
call fcn.0041a910
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.004785e6
mov esp, ebp
pop ebp
ret 8
Function at 0x41ad50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d0084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x41ae5f
cmp byte [ebp + 8], bl
je 0x41adcb
test byte [esi], 8
je 0x41adcb
xor eax, eax
mov dword [ebp - 8], eax
call fcn.00473ff0
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00473ff0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x41adcd
call fcn.00473ff0
jmp 0x41adcd
mov ebx, eax
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.00473ff0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x41ae5f
call fcn.00473ff0
cmp dword [edi + 4], eax
jne 0x41ae06
cmp dword [edi], 0x2733
je 0x41ae18
call fcn.00473ff0
cmp dword [edi + 4], eax
jne 0x41ae5b
cmp dword [edi], 0x4d5
jne 0x41ae5b
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x10]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.00473ff0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x41ae6d
call fcn.00473ff0
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.004785e6
mov esp, ebp
pop ebp
ret

Function at 0x41b3a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6138
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d0084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 4]
mov dword [edi], vtable.std::exception.0
xorps xmm0, xmm0
push eax
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call fcn.0047a06a
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
call fcn.0041cfd0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6200
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d0084]
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.0047a06a
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.0041cfd0
lea esi, [edi + 0x2c]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x41b882
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x10], eax
mov eax, edi
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.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 0x41bb90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6298
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d0084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
lea eax, [edi + 4]
push eax
mov dword [edi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call fcn.0047a06a
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
call fcn.0041cfd0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c0c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6360
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d0084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call fcn.0047a06a
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x14]
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.0041cfd0
mov dword [esi], vtable.boost::thread_resource_error.0
lea edi, [esi + 0x2c]
mov dword [ebp - 4], 1
mov dword [edi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], edi
mov dword [edi + 4], ecx
test ecx, ecx
je 0x41c158
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_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 0x41e260
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x4d0084]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
push 0x4d6350
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x41e2a6
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x4d6354
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 8], 0
je 0x41e2bd
push 0
push 0x4d6354
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x41e2d4
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004785e6
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 8], eax
call fcn.00473ff0
mov edx, str.winsock
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.0041b020
int3
Function at 0x42d530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7304
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x4d0084]
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::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x14]
mov dword [edi + 0xc], 0
mov ecx, esi
mov dword [edi + 0x10], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042d080
mov dword [esi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x42d5fb
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x40]
call fcn.0041c650
push eax
mov byte [ebp - 4], 4
call fcn.0041c480
int3

Function at 0x42dda0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6298
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d0084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
lea eax, [edi + 4]
push eax
mov dword [edi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call fcn.0047a06a
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
call fcn.0041cfd0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e1e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6360
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d0084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call fcn.0047a06a
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x14]
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.0041cfd0
mov dword [esi], vtable.boost::lock_error.0
lea edi, [esi + 0x2c]
mov dword [ebp - 4], 1
mov dword [edi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], edi
mov dword [edi + 4], ecx
test ecx, ecx
je 0x42e278
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi], vtable.boost::exception_detail::error_info_injector_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 0x4314a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a78d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d0084]
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 - 0x18], 0
call fcn.00473ff0
mov edi, dword [esi + 8]
mov dword [ebp - 0x14], eax
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x431509
mov ecx, edi
call fcn.0042dc50
xor edi, edi
call fcn.00473ff0
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 0x14], eax
jmp 0x4315a8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push dword [0x53aa64]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x53aa64]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, edi
xor esi, esi
call fcn.004311e0
test eax, eax
je 0x43157f
cmp esi, 0xffffffff
lea eax, [esi + 1]
cmove eax, esi
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, edi
call fcn.004311e0
test eax, eax
jne 0x431564
push dword [ebp - 0x20]
push dword [0x53aa64]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4315a5
push eax
call fcn.00478ba0
add esp, 4
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x4315c9
mov eax, esi
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.004785e6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.0041b920
int3
Function at 0x443c10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8a58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d0084]
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 edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 8]
mov dword [edx + 8], 0
mov dword [ebp - 0x18], eax
mov dword [edx + 4], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
lea esi, [ecx + 0x14]
mov dword [ebp - 0x30], eax
push 0x34
mov dword [ebp - 0x24], esi
call fcn.00411df0
mov edi, eax
add esp, 8
mov dword [ebp - 0x2c], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x444f00
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
call fcn.00473ff0
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [edi + 0x30], eax
mov byte [ebx + 8], 1
mov esi, dword [esi + 0x18]
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], edi
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x443d15
push ecx
push edi
mov ecx, esi
call fcn.004461c0
jmp 0x443d59
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x34], 1
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xc]
push edi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.00445500
lea ecx, [esi + 0x18]
mov bl, al
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test bl, bl
je 0x443d4f
mov ecx, esi
call fcn.00431110
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.00444e60
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x443da8
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x443da8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
cmp edi, 1
jne 0x443da8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
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.004785e6
mov esp, ebp
pop ebp
ret 8
Function at 0x4452f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d0084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
lea edi, [esi + 0x14]
mov dword [ebp - 0x20], esi
push edi
push 0x54
call fcn.00411df0
mov ebx, eax
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0x445680
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [ecx]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x24], eax
mov eax, dword [esi]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x10]
mov esi, dword [ebp - 8]
mov dword [ebx + 0x38], eax
mov eax, dword [edi]
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], 0
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
mov dword [ebx + 0x44], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x50], eax
cmp dword [esi + 4], 0
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
jne 0x4453db
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 4], eax
jmp 0x4453ed
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x4453ed
mov dword [esi + 4], 0xffffffff
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [esi], 0xffffffff
jne 0x445412
mov ecx, dword [edi]
push 0
push 0x2719
push ebx
call fcn.004124a0
jmp 0x44547b
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x445425
mov ecx, dword [edi]
push eax
push eax
push ebx
call fcn.004124a0
jmp 0x44547b
push ebx
lea ecx, [ebp - 8]
mov dword [ebx + 8], 0
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebx + 0xc], 0
push dword [esi]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x445473
cmp eax, 0x3e5
je 0x445473
cmp eax, 0xea
je 0x445473
push dword [ebp - 8]
mov ecx, dword [edi]
push eax
push ebx
call fcn.004124a0
jmp 0x44547b
mov ecx, dword [edi]
push ebx
call fcn.00412520
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.004455e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004785e6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x445ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4d0084]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x445b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x10], esi
call fcn.00473ff0
mov dword [esp + 0x14], eax
test esi, esi
jne 0x445be4
mov esi, dword [esp + 0xc]
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 0x445b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x10], esi
call fcn.00473ff0
mov dword [esp + 0x14], eax
test esi, esi
jne 0x445bf2
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push ebx
push 0x445a00
push 0x10000
push 0
call fcn.0048c80a
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x445bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test edi, edi
je 0x445b9d
push edi
call esi
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x445bab
push eax
call esi
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.00473ff0
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x445c00
test edi, edi
je 0x445bd0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004785e6
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.0041b020
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.0041b020
mov edx, str.thread
lea ecx, [esp + 0x10]
call fcn.0041b020
int3