joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fee
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x00425200]
test rax, rax
je 0x403001
call rax
mov ecx, 2
call qword [fcn.004174e0]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x406e30
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
sub rsp, 0x38
movaps xmm0, xmmword [0x0041c490]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call fcn.00406aee
nop
add rsp, 0x38
ret
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r9d, 0x40
mov r8d, 0x1000
mov rsi, rdx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memmove
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
xor r9d, r9d
mov r8, rbx
mov edx, 2
mov rcx, rax
call qword [sym.imp.GDI32.dll_EnumObjects]
nop
sub rsp, 0x28
call fcn.00402e90
nop
add rsp, 0x28
jmp 0x406e04
Function at 0x410b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00425844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x410c88
mov rax, qword [0x00425848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x410b4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x410bd5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x410b30
mov rcx, rbx
call fcn.004117a0
test rax, rax
mov r12, rax
je 0x410cbd
mov rax, qword [0x00425848]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004118d0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00425848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410ca0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x410bce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x410c30
add dword [0x00425844], 1
cmp edi, 8
jae 0x410c03
test dil, 4
jne 0x410c74
test edi, edi
je 0x410bf8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x410c8f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x410bf8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x410c1c
jmp 0x410bf8
add rsi, qword [0x00425848]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x410bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00419d70
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x410bf8
xor esi, esi
jmp 0x410b57
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x410bf8
mov rax, qword [0x00425848]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00419d70
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00419d70
nop
nop dword [rax]

Function at 0x411410
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00425b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00425b00]
test rbx, rbx
je 0x411464
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41145b
test rsi, rsi
je 0x41145b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x411440
lea rcx, [0x00425b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4117a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0041f2c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41180d
mov rcx, r8
call fcn.00411680
test eax, eax
je 0x41180d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x41180d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x411804
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41180f
add rax, 0x28
cmp rax, r9
jne 0x4117f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x412560
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x00425b80], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x00425b88], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4125b0
lea rdx, [0x00412480]
mov ecx, eax
mov dword [0x00425b78], eax
call fcn.00417790
test eax, eax
jne 0x4125ba
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4125ab
call sub.msvcrt.dll_abort
nop
Function at 0x4125c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0041f1a0]
mov r11d, dword [rbx]
mov rdi, rcx
test r11d, r11d
jne 0x4125f4
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x412650
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x412660
mov ebx, dword [0x00425b78]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
call r12
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x4126d1
mov rbp, qword [rbx]
cmp rbp, rsi
jb 0x412711
lea rbx, [rbx + rsi*8]
mov rax, qword [rbx]
test rax, rax
jne 0x4125e7
mov rcx, rdi
call fcn.004124c0
mov qword [rbx], rax
jmp 0x4125e7
call fcn.004124c0
mov qword [rdi + 0x10], rax
jmp 0x4125e7
mov r10d, dword [rbx]
test r10d, r10d
je 0x412772
mov r9d, dword [0x0041a450]
test r9d, r9d
je 0x4127a0
lock add dword [0x00425b80], 1
jne 0x4127d0
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x41277f
mov eax, dword [rbx]
test eax, eax
je 0x4125fd
mov eax, 0xffffffff
lock xadd dword [0x00425b80], eax
sub eax, 1
js 0x4125fd
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x00425b88]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x4125fd
lea rcx, [rsi + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rbp, [rsi + 0x20]
test rax, rax
mov rbx, rax
je 0x4127f7
mov qword [rax], rbp
mov rdx, rbx
mov ecx, dword [0x00425b78]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x412637
call r12
jmp 0x412637
lea r13, [rbp + rbp]
mov rcx, rbx
lea rax, [rsi + 0x20]
cmp rsi, r13
cmova r13, rax
lea rdx, [r13*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rbx, rax
je 0x4127f7
mov qword [rax], r13
lea rcx, [rax + rbp*8 + 8]
sub r13, rbp
xor edx, edx
lea r8, [r13*8]
call sub.msvcrt.dll_memset
jmp 0x4126f2
call fcn.00412560
mov dword [0x0041a450], 1
mov edx, dword [rbx]
test edx, edx
jne 0x41267c
mov rsi, qword [rdi + 0x10]
test rsi, rsi
jne 0x4125fd
mov rax, qword [0x00425b70]
lea rsi, [rax + 1]
mov qword [0x00425b70], rsi
mov qword [rdi + 0x10], rsi
jmp 0x412697
lock add dword [0x0041a454], 1
je 0x412759
mov r8d, dword [0x0041a450]
lea rsi, [0x0041a450]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x412768
xor ecx, ecx
call rbp
mov ecx, dword [rsi]
test ecx, ecx
je 0x4127c4
jmp 0x412768
mov edx, 0xffffffff
mov rcx, qword [0x00425b88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41268a
lock sub dword [0x00425b80], 1
jmp 0x41268a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x412810
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x41281a
mov qword [rcx + 8], r8
test r9, r9
je 0x412824
cmp qword [rcx], rdx
je 0x412825
ret
mov qword [rcx + 0x18], r9
ret

Function at 0x4199d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x0041a580]
jmp fcn.004125c0
Function at 0x419d70
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004174e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004174e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400038a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400038d7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400038f8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400038fa
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003953
test ecx, ecx
jle 0x140003933
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003953
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003953
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140003980
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400039a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400039b8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400039d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400039d6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140003a10
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140003ab7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140003a4b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140003a91
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140003ad0
cmp rbx, rax
ja 0x140003a60
mov r8, rdi
test rdi, rdi
je 0x140003ab7
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140003aba
Function at 0x140003ed0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001d110]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003efd
xor eax, eax
jmp 0x140004052
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140003f28
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140003f28
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140004052
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004045
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140003f6b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003f96
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000404a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004005
sub eax, 1
je 0x140004005
cmp eax, 2
jne 0x140004045
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000404a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004033
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140004045
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000404a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140015390
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400049a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001d110]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004a73
cmp byte [rcx + 0x71], 0
je 0x140004a73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004a6f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004a34
sub eax, 1
je 0x140004a38
cmp eax, 2
jne 0x140004a6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015390
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004a66
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004a6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004a1c
xor al, al
jmp 0x140004a1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015390
add rsp, 0x60
pop rbx
ret

Function at 0x140005cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140005f40
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x140005e0a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140005d54
mov rax, qword [0x14001d008]
cmp qword [rsp + 0x20], rax
ja 0x140005d54
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140005d16
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140005d85
jmp 0x140005e0a
cmp dword [rsp + 0x50], 0x10000
jne 0x140005ded
cmp qword [rsp + 0x48], 0x10000
jb 0x140005ded
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140005dcb
mov rax, qword [rsp + 0x28]
jmp 0x140005e0c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140005ddb
xor eax, eax
jmp 0x140005e0c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140005e05
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140005f40
mov qword [rsp + 0x20], rax
jmp 0x140005d16
xor eax, eax
add rsp, 0x68
ret
Function at 0x140005e20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.140005f80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140005f36
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140005e7b
mov rax, qword [0x14001d008]
cmp qword [rsp + 0x20], rax
ja 0x140005e7b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140005e3d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140005eac
jmp 0x140005f36
cmp dword [rsp + 0x50], 0x10000
jne 0x140005f14
cmp qword [rsp + 0x48], 0x10000
jb 0x140005f14
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140005ef2
mov rax, qword [rsp + 0x28]
jmp 0x140005f38
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140005f02
xor eax, eax
jmp 0x140005f38
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140005f31
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140005f80
mov qword [rsp + 0x20], rax
jmp 0x140005e3d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140005fd0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140006560
mov qword [rsp + 0x28], 0
cmp qword [0x14001d578], 0
jne 0x140006018
cmp qword [0x14001d570], 0
je 0x140006018
mov rax, qword [0x14001d570]
mov qword [0x14001d578], rax
cmp qword [0x14001d578], 0
je 0x1400060be
mov rax, qword [0x14001d578]
cmp qword [rax + 0x10], 0
je 0x1400060be
mov rax, qword [0x14001d578]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400060be
mov rax, qword [0x14001d578]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400060be
mov rax, qword [0x14001d578]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140006084
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14000608b
xor eax, eax
jmp 0x140006235
mov rax, qword [0x14001d578]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x140006235
mov rax, qword [0x14001d570]
mov qword [0x14001d578], rax
jmp 0x1400060e0
mov rax, qword [0x14001d578]
mov rax, qword [rax + 8]
mov qword [0x14001d578], rax
cmp qword [0x14001d578], 0
je 0x14000612d
cmp qword [0x14001d578], 0
je 0x14000612b
mov rax, qword [0x14001d578]
cmp qword [rax + 0x10], 0
je 0x14000612b
mov rax, qword [0x14001d578]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000612b
mov rax, qword [0x14001d578]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000612b
jmp 0x14000605c
jmp 0x1400060ce
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140006240
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140006233
mov rax, qword [rsp + 0x48]
mov qword [0x14001d578], rax
mov rax, qword [0x14001d578]
mov dword [rax], 0x52727464
mov rax, qword [0x14001d578]
mov qword [rax + 0x10], 0
mov rax, qword [0x14001d578]
mov rcx, qword [0x14001d570]
mov qword [rax + 8], rcx
mov rax, qword [0x14001d578]
mov qword [0x14001d570], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x14001d578]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1400061e4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14000621e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1400061da
mov rax, qword [0x14001d578]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000605c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140006f50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140006f97
xor al, al
jmp 0x140007039
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140006fc1
xor al, al
jmp 0x140007039
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x140007031
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x140007031
mov al, 1
jmp 0x140007039
jmp 0x140007037
xor al, al
add rsp, 0x78
ret

Function at 0x140007340
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14001d570]
mov qword [rsp + 0x28], rax
jmp 0x140007360
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000738f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14000738d
call sub.KERNEL32.dll_GetLastError
jmp 0x140007391
jmp 0x140007352
xor eax, eax
add rsp, 0x38
ret