joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401fe8
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401eac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401f35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401e90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40201d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402000
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401f2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401f90
add dword [0x00408624], 1
cmp edi, 8
jae 0x401f63
test dil, 4
jne 0x401fd4
test edi, edi
je 0x401f58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401fef
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 0x401f58
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 0x401f7c
jmp 0x401f58
add rsi, qword [0x00408628]
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 0x401f2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401f58
xor esi, esi
jmp 0x401eb7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401f58
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402770
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4027c4
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 0x4027bb
test rsi, rsi
je 0x4027bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027a0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402a00
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402a10
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402a20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a61
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402a58
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402a63
add rax, 0x28
cmp rax, r9
jne 0x402a44
xor eax, eax
ret

Function at 0x402b00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402b6d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b6d
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 0x402b6d
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 0x402b64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402b6f
add rax, 0x28
cmp rax, r9
jne 0x402b50
xor eax, eax
add rsp, 0x28
ret

Function at 0x402c70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053a0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402c90
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402c88
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 0x402ced
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402ce4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402cf4
add rax, 0x28
cmp rax, r9
jne 0x402cd0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402d10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004053a0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402d7e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402d7e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402d7e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402d7e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402d75
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402d85
add rcx, 0x28
cmp rcx, rax
jne 0x402d60
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402d98
jmp 0x402d7e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402da6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402d7e
test r9d, r9d
jg 0x402d90
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403030
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140003910
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140011080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 2
jge 0x140003a60
cmp dword [rsp + 0x38], 0
je 0x140003988
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x1400111c0]
shl rcx, 5
add rax, rcx
mov rdx, qword [rax + 8]
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x1400111c0]
shl rcx, 5
add rax, rcx
mov rcx, qword [rax]
mov r8d, 4
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1400039c6
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x1400111c0]
shl rcx, 5
add rax, rcx
mov rdx, qword [rax + 8]
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x1400111c0]
shl rcx, 5
add rax, rcx
mov rcx, qword [rax]
mov r8d, 0x40
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
movsxd rdx, dword [rsp + 0x34]
lea rcx, [0x1400111c0]
shl rdx, 5
add rcx, rdx
cmp rax, qword [rcx + 8]
jae 0x140003a4b
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x1400111c0]
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x28]
and rcx, 0xf
movsx r8d, byte [rax + rcx + 0x10]
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x1400111c0]
shl rcx, 5
add rax, rcx
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movsx edx, byte [rax + rcx]
xor edx, r8d
mov byte [rax + rcx], dl
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
jmp 0x1400039cf
jmp 0x140003a50
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x14000392f
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007ea0
nop
add rsp, 0x48
ret
Function at 0x1400049f0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140011260], eax
je 0x140004a0b
mov eax, 0x10dd
jmp 0x140004b30
mov rax, qword [0x140011278]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140004ab5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140004a80
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140004a80
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140007230
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.140007efc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140004a17
mov qword [0x140011278], 0
call fcn.140006b40
mov rax, qword [0x140011270]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140004b19
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.140007efc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140004ad1
mov qword [0x140011270], 0
mov dword [0x140011260], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140004ff0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x140011264], 0
je 0x14000500d
mov eax, dword [0x140011264]
jmp 0x1400050d3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140005020
xor eax, eax
jmp 0x1400050d3
mov ecx, 0x10
call fcn.140007ec0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000508e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140005073
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.140007efc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x140011264], eax
mov qword [0x140011268], 0
mov eax, dword [rsp + 0x20]
jmp 0x1400050d3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1400050a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140005049
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140011270]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x140011270], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140005760
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140011260], eax
je 0x14000578d
mov eax, 0x10dd
jmp 0x1400059a6
cmp dword [0x140011264], 0
je 0x1400057a1
mov eax, dword [0x140011264]
jmp 0x1400059a6
cmp qword [rsp + 0x78], 0
jne 0x1400057b3
mov eax, 0x57
jmp 0x1400059a6
cmp qword [rsp + 0x70], 0
jne 0x1400057c5
mov eax, 6
jmp 0x1400059a6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1400057f7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x140011264], eax
mov rax, qword [rsp + 0x70]
mov qword [0x140011268], rax
mov eax, dword [rsp + 0x20]
jmp 0x1400059a6
mov ecx, 0x30
call fcn.140007ec0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140005869
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x140011264], eax
cmp qword [rsp + 0x30], 0
je 0x140005854
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.140007efc
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x140011268], rax
mov eax, dword [rsp + 0x20]
jmp 0x1400059a6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1400059b0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1400059b0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1400058c6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1400058e3
mov dword [rsp + 0x20], 9
cmp dword [0x140011258], 0
je 0x1400058de
jmp 0x14000582a
jmp 0x140005820
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x140005910
mov dword [rsp + 0x20], 9
cmp dword [0x140011258], 0
je 0x14000590b
jmp 0x14000582a
jmp 0x140005820
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140005947
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140005820
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140011278]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x140011278], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x140005ca0
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 0x140005ce7
xor al, al
jmp 0x140005d89
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 0x140005d11
xor al, al
jmp 0x140005d89
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 0x140005d81
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 0x140005d81
mov al, 1
jmp 0x140005d89
jmp 0x140005d87
xor al, al
add rsp, 0x78
ret

Function at 0x140006ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140011248]
mov qword [rsp + 0x28], rax
jmp 0x140006b00
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140006b2f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140006b2d
call sub.KERNEL32.dll_GetLastError
jmp 0x140006b31
jmp 0x140006af2
xor eax, eax
add rsp, 0x38
ret

Function at 0x140006c40
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.140006bf0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140006d56
mov rax, qword [0x140011040]
cmp qword [rsp + 0x20], rax
jb 0x140006c9b
mov rax, qword [0x140011048]
cmp qword [rsp + 0x20], rax
ja 0x140006c9b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140006c5d
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 0x140006ccc
jmp 0x140006d56
cmp dword [rsp + 0x50], 0x10000
jne 0x140006d34
cmp qword [rsp + 0x48], 0x10000
jb 0x140006d34
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 0x140006d12
mov rax, qword [rsp + 0x28]
jmp 0x140006d58
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140006d22
xor eax, eax
jmp 0x140006d58
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140006d51
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140006bf0
mov qword [rsp + 0x20], rax
jmp 0x140006c5d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140006d60
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.140006bb0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x140006e7a
mov rax, qword [0x140011040]
cmp qword [rsp + 0x20], rax
jb 0x140006dc4
mov rax, qword [0x140011048]
cmp qword [rsp + 0x20], rax
ja 0x140006dc4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140006d86
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 0x140006df5
jmp 0x140006e7a
cmp dword [rsp + 0x50], 0x10000
jne 0x140006e5d
cmp qword [rsp + 0x48], 0x10000
jb 0x140006e5d
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 0x140006e3b
mov rax, qword [rsp + 0x28]
jmp 0x140006e7c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140006e4b
xor eax, eax
jmp 0x140006e7c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140006e75
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140006bb0
mov qword [rsp + 0x20], rax
jmp 0x140006d86
xor eax, eax
add rsp, 0x68
ret
Function at 0x140006fc0
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.140006100
mov qword [rsp + 0x28], 0
cmp qword [0x140011250], 0
jne 0x140007008
cmp qword [0x140011248], 0
je 0x140007008
mov rax, qword [0x140011248]
mov qword [0x140011250], rax
cmp qword [0x140011250], 0
je 0x1400070ae
mov rax, qword [0x140011250]
cmp qword [rax + 0x10], 0
je 0x1400070ae
mov rax, qword [0x140011250]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400070ae
mov rax, qword [0x140011250]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400070ae
mov rax, qword [0x140011250]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140007074
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14000707b
xor eax, eax
jmp 0x140007225
mov rax, qword [0x140011250]
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 0x140007225
mov rax, qword [0x140011248]
mov qword [0x140011250], rax
jmp 0x1400070d0
mov rax, qword [0x140011250]
mov rax, qword [rax + 8]
mov qword [0x140011250], rax
cmp qword [0x140011250], 0
je 0x14000711d
cmp qword [0x140011250], 0
je 0x14000711b
mov rax, qword [0x140011250]
cmp qword [rax + 0x10], 0
je 0x14000711b
mov rax, qword [0x140011250]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000711b
mov rax, qword [0x140011250]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000711b
jmp 0x14000704c
jmp 0x1400070be
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.140006e90
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140007223
mov rax, qword [rsp + 0x48]
mov qword [0x140011250], rax
mov rax, qword [0x140011250]
mov dword [rax], 0x52727464
mov rax, qword [0x140011250]
mov qword [rax + 0x10], 0
mov rax, qword [0x140011250]
mov rcx, qword [0x140011248]
mov qword [rax + 8], rcx
mov rax, qword [0x140011250]
mov qword [0x140011248], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140011250]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1400071d4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14000720e
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 0x1400071ca
mov rax, qword [0x140011250]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000704c
xor eax, eax
add rsp, 0x58
ret