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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x502a14
push eax
mov dword fs:[0], esp
sub esp, 0xd8
cmp dword [esi + 4], 0xffffffff
push ebx
jne 0x4478cb
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x447a70
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
jne 0x44791f
push str.CThread::Start______beginthreadex
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0xe4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x9c]
push edx
mov ebx, eax
call fcn.00451f80
push 0x54abbc
lea eax, [esp + 0x9c]
push eax
call sub.MSVCR80.dll__CxxThrowException
push str.Thread_already_running___you_can_only_call_Start___once_
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.CThread::Start__
lea ecx, [esp + 0x28]
mov dword [esp + 0xe8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0xf0], 2
call fcn.00447b60
push 0x54ab84
lea ecx, [esp + 0x60]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447c20
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xa
push ebp
push 0xe
push 0x400
mov ebx, ecx
mov dword [esi], eax
call edi
push 0xa
push ebx
push 0xf
push 0x400
mov dword [esi + 0xc], ebp
call edi
push 0xa
lea ecx, [esp + 0x10]
push ecx
push 0x12
push 0x400
mov dword [esi + 0x10], ebx
call edi
mov ebx, dword [sym.imp.MSVCR80.dll__wtol]
lea edx, [esp + 0xc]
push edx
call ebx
add esp, 4
push 0xa
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push 0x1010
push 0x400
call edi
lea ecx, [esp + 0xc]
push ecx
call ebx
add esp, 4
push 0xa
lea edx, [esp + 0x10]
push edx
push 0x10
push 0x400
mov dword [esi + 0x14], eax
call edi
mov ax, word [esp + 0xc]
test ax, ax
pop edi
pop ebp
mov dword [esi + 8], 0
lea edx, [esp + 4]
pop ebx
je 0x447ce8
movzx eax, ax
cmp ax, 0x31
jb 0x447cdc
cmp ax, 0x39
ja 0x447cdc
mov ecx, dword [esi + 8]
movzx eax, ax
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*2 - 0x30]
mov dword [esi + 8], ecx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x447cc0
add esp, 0x14
ret
Function at 0x44ae80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5036bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
push 0x2c
lea eax, [esp + 0x20]
push 0
push eax
mov esi, ecx
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push str.__d__d__d
push ecx
call dword [sym.imp.MSVCR80.dll_swscanf_s]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x78]
add esp, 0x20
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x58]
lea ebx, [esi + 0x28]
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x78]
mov eax, dword [esi + 0x84]
shl edi, 8
or edi, dword [esi + 0x7c]
movzx ecx, ax
add eax, 1
shl edi, 0x10
push ebx
or edi, ecx
mov dword [esi + 0x84], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
xor ebx, ebx
cmp dword [esp + 0x68], ebx
lea edx, [ebp + 0x2c]
setne al
push 0x30
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edx
mov word [esp + 0x44], bx
mov word [esp + 0x46], ax
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x60], eax
cmp eax, ebx
mov dword [esp + 0x50], ebx
je 0x44af79
push eax
call fcn.00452900
mov ebx, eax
push 0x2c
lea ecx, [esp + 0x20]
lea esi, [ebx + 0x14]
push ecx
mov dword [esp + 0x58], 0xffffffff
mov edi, dword [ebx + 0x28]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
cmp edi, 0x2c
jae 0x44afc3
add edi, 0x2c
cmp edi, 0x2c
jb 0x44afc3
cmp dword [esi + 0x18], 0x10
jb 0x44afae
mov esi, dword [esi + 4]
jmp 0x44afb1
add esi, 4
mov edx, dword [esi + 0x1c]
mov dword [ebx + 4], edx
mov eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0x20]
mov dword [ebx + 0xc], ecx
test ebp, ebp
jbe 0x44afd1
mov eax, dword [esp + 0x5c]
push ebp
call fcn.00452a60
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0x14
Function at 0x44aff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50369b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x48]
push edi
push 0x2c
lea eax, [esp + 0x14]
push 0
push eax
mov ebx, ecx
mov edi, edx
call sub.MSVCR80.dll_memset
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x80]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x5c]
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jne 0x44b098
lea ebx, [esi + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x78]
mov eax, dword [esi + 0x84]
shl edi, 8
or edi, dword [esi + 0x7c]
movzx edx, ax
shl edi, 0x10
add eax, 1
push ebx
or edi, edx
mov dword [esi + 0x84], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x30], edi
jmp 0x44b09c
mov dword [esp + 0x30], ebx
xor ecx, ecx
xor ebx, ebx
cmp dword [esp + 0x5c], ebx
lea eax, [ebp + 0x2c]
setne cl
push 0x30
mov dword [esp + 0x30], eax
mov word [esp + 0x38], 1
mov word [esp + 0x3a], cx
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x58], eax
cmp eax, ebx
mov dword [esp + 0x44], ebx
je 0x44b0d8
push eax
call fcn.00452900
mov ebx, eax
push 0x2c
lea edx, [esp + 0x14]
lea esi, [ebx + 0x14]
mov dword [esp + 0x48], 0xffffffff
mov edi, dword [ebx + 0x28]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
cmp edi, 0x2c
jae 0x44b122
add edi, 0x2c
cmp edi, 0x2c
jb 0x44b122
cmp dword [esi + 0x18], 0x10
jb 0x44b10d
mov esi, dword [esi + 4]
jmp 0x44b110
add esi, 4
mov eax, dword [esi + 0x1c]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x18]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0x20]
mov dword [ebx + 0xc], edx
test ebp, ebp
jbe 0x44b130
mov eax, dword [esp + 0x54]
push ebp
call fcn.00452a60
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x14
Function at 0x44e700
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x504c3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
or ebp, 0xffffffff
mov dword [edi], vtable.utils::CThread.0
mov dword [edi + 4], ebp
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 8], vtable.IPC::CIOBuffer::Allocator.0
mov dword [edi + 0xc], 0x6000
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
lea eax, [edi + 0x24]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push eax
mov dword [edi + 0x20], 0xa
call esi
lea eax, [esp + 0x10]
push eax
mov dword [edi], vtable.IPC::PipeServer.0
mov dword [edi + 8], vtable.IPC::PipeServer.1.0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x24]
add eax, eax
mov dword [edi + 0x3c], eax
lea eax, [edi + 0x40]
push eax
call esi
mov byte [esp + 0x3c], 2
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
lea esi, [edi + 0x64]
mov dword [edi + 0x60], ebp
call fcn.00453090
mov byte [esp + 0x3c], 3
mov ebp, vtable.utils::CEvent.0
push ebx
mov dword [edi + 0x68], ebp
call fcn.00447740
mov esi, vtable.utils::CManualResetEvent.0
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], esi
mov byte [esp + 0x40], 4
push ebx
mov dword [edi + 0x70], ebp
call fcn.00447740
mov dword [edi + 0x74], eax
mov dword [edi + 0x70], esi
mov byte [esp + 0x44], 5
push ebx
mov dword [edi + 0x78], ebp
call fcn.00447740
add esp, 0xc
mov dword [edi + 0x7c], eax
mov dword [edi + 0x78], esi
mov byte [esp + 0x3c], 6
push str..pipeqm_ipc_channel
lea ecx, [edi + 0x84]
mov byte [edi + 0x80], 1
mov byte [edi + 0x81], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x44e960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5034f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [edi + 0x78]
xor esi, esi
push eax
mov dword [edi + 0xb4], esi
call fcn.004476c0
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0x40]
push ebx
mov dword [esp + 0x18], ebx
call ebp
mov dword [esp + 0x20], esi
mov esi, dword [edi + 0x58]
test esi, esi
je 0x44ea22
lea esp, [esp]
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov ebx, dword [esi]
mov eax, dword [edx + 0x70]
push 2
push esi
mov dword [esp + 0x18], ebx
call eax
test al, al
je 0x44ea18
mov ecx, dword [esi + 0x3c]
lea eax, [esi + 0x3c]
push ecx
push eax
mov byte [esi + 0x40], 1
mov byte [esi + 0x41], 1
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edi, [esi + 0x18]
push edi
call ebp
push edi
call ebp
cmp dword [esi + 0x34], 0xffffffff
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x44ea09
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov esi, ebx
jne 0x44e9b0
mov ebx, dword [esp + 0x14]
push ebx
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x68]
push eax
call fcn.004476c0
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x44f480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x504b49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
xor ebx, ebx
push edi
mov edi, dword [esp + 0x98]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [esp + 0x90], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea ebp, [edi + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov byte [esp + 0x90], 3
push ebp
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], 1
mov dword [edi + 0x3c], ebx
mov byte [edi + 0x40], bl
mov byte [edi + 0x41], bl
mov byte [edi + 0x42], bl
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x34], 0xffffffff
push ebp
setne byte [esp + 0x13]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0xf], bl
jne 0x44f566
push str.Invalid_socket
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.PipeServer::Tunnel::Tunnel__
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x9c], 5
call fcn.00447b60
push 0x54ab84
lea edx, [esp + 0x50]
push edx
call sub.MSVCR80.dll__CxxThrowException
cmp byte [esp + 0xa4], bl
je 0x44f59a
push 0x24
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x90], 6
je 0x44f595
push esi
push ebp
mov esi, eax
call fcn.0044fad0
pop esi
jmp 0x44f597
xor eax, eax
mov dword [edi + 0x48], eax
mov ecx, dword [esp + 0x88]
mov eax, edi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 0x10
Function at 0x44f890
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x504af0
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x34], 0xffffffff
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x44f8d8
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov esi, dword [edi + 0x30]
add esi, 8
call fcn.00452390
mov ebx, dword [edi + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
mov al, byte [ebx + 0x81]
neg al
lea ecx, [esi + 0x38]
push ecx
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
mov dword [esi + 0x24], eax
call ebp
lea edx, [edi + 0x38]
push edx
call ebp
push esi
add ebx, 0x64
push ebx
xor edx, edx
mov ecx, edi
call fcn.004531c0
mov ecx, esi
call fcn.00452250
mov ecx, dword [esp + 0xc]
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x450120
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
mov esi, eax
lea eax, [esi + 0x38]
push eax
call ebx
lea edx, [edi + 0x38]
lea ecx, [edi + 0x44]
push edx
mov dword [edi + 0x24], 1
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], 0
call ebx
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x30]
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x34]
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45018f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x45018f
call fcn.0044f790
mov eax, esi
call fcn.0044f680
mov ecx, edi
call fcn.00452250
pop esi
pop ebx
pop ecx
ret
Function at 0x4501a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5034f8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
mov esi, ecx
lea eax, [esi + 0x38]
push eax
call ebx
mov eax, dword [edi + 0x40]
test eax, eax
mov edx, dword [edi + 0x3c]
mov dword [edi + 0x24], 3
jne 0x4501de
lea ecx, [edi + 0x44]
jmp 0x4501e4
lea ecx, [eax + edi + 0x44]
sub edx, eax
lea eax, [edi + 0x38]
push eax
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], ecx
call ebx
lea ebx, [esi + 0x18]
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x18], 0
cmp dword [esi + 0x48], 0
je 0x450218
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
lea edx, [eax + 1]
mov dword [ecx], edx
jmp 0x45021a
xor eax, eax
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x30]
push edi
mov dword [edi + 0x28], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x34]
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450261
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x450261
call fcn.0044f790
mov eax, esi
call fcn.0044f680
mov ecx, edi
call fcn.00452250
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x450280
Capabilities:
Get process heap force flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esi + 0x38]
push eax
mov ebx, ecx
call edi
mov edx, dword [ebx + 0x40]
lea eax, [ebx + 0x38]
lea ecx, [ebx + 0x44]
push eax
mov dword [ebx + 0x24], 5
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x40], 0
call edi
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4502fa
lea edi, [eax + 0x10]
mov ecx, ebx
call fcn.004527c0
mov ebx, eax
test ebx, ebx
je 0x45035c
push ebx
mov dword [esp + 0x14], 0
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x34]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450347
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x450347
call fcn.0044f790
call fcn.0044f710
mov eax, esi
call fcn.0044f680
mov ecx, ebx
call fcn.00452250
mov eax, dword [esi + 0x48]
test eax, eax
je 0x45035c
lea edi, [eax + 0x10]
call fcn.00452710
mov ebx, eax
test ebx, ebx
jne 0x4502fe
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450e30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], eax
jmp 0x450e60
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 0x4c]
jae 0x450e90
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
push ebx
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebx + 0x38]
push ecx
mov ecx, ebx
call edx
mov esi, eax
mov edi, eax
mov ecx, ebx
call fcn.004511a0
call fcn.00447830
add dword [ebp - 0x18], 1
jmp 0x450e60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea esi, [ebx + 8]
push 0
mov ecx, esi
call fcn.00447540
test al, al
jne 0x450ecf
mov eax, dword [ebx + 0x60]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebx + 0x3c]
push edx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x20]
call fcn.004532e0
push 0
mov ecx, esi
mov byte [ebp - 0x11], al
call fcn.00447540
test al, al
je 0x450ef4
mov eax, dword [ebx + 0x40]
mov ecx, ebx
call fcn.004510e0
lea ecx, [ebx + 0x18]
call fcn.004474b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x11], 0
je 0x450f4b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00450fb0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [ebx + 0x60]
jb 0x450e98
mov eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x50]
jbe 0x450e90
sub eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x58]
cmp eax, ecx
jbe 0x450e90
sub eax, ecx
shr eax, 1
add eax, 1
mov ecx, ebx
call fcn.004510e0
jmp 0x450e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x450e98
mov eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x50]
jbe 0x450e98
sub eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x58]
cmp eax, ecx
jbe 0x450e98
sub eax, ecx
shr eax, 1
add eax, 1
mov ecx, ebx
call fcn.004510e0
jmp 0x450e98

Function at 0x451110
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x5034f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea esi, [edi + 0x20]
push esi
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x451185
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebp
lea ebp, [edi + 0x40]
nop
mov eax, dword [eax + 4]
test eax, eax
je 0x451165
cmp eax, 0xffffffff
je 0x451165
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [edi + 0x5c]
push ebp
call ebx
lea eax, [edi + 0x44]
push eax
call ebx
mov ecx, edi
call fcn.00451210
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x451150
mov esi, dword [esp + 0xc]
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret