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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rbx, rcx
mov r9d, dword [0x14009bdb0]
mov esi, r8d
mov ecx, 0x10
mov rbp, rdx
mov r9, qword [rax + r9*8]
mov eax, dword [rcx + r9]
cmp dword [0x14009c650], eax
jg 0x140051aa0
cmp qword [0x14009c648], 0
mov r8d, esi
mov rdx, rbp
jge 0x140051a09
lea rcx, [rbx + 0x38]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.1400408a0
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rdi
mov rcx, rdi
call fcn.1400408a0
test al, al
je 0x140051a8b
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rbx + 0x34], ecx
cmp eax, ecx
je 0x140051a8b
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rdi
jne 0x140051a86
lea rax, [rbx + 0x38]
mov edx, 0x88
cmp rdi, rax
mov ecx, 0x38
cmove ecx, edx
lea rdi, [rcx + rbx]
mov rcx, rdi
call fcn.14004b410
mov rcx, rdi
call fcn.140052570
test al, al
je 0x140051a7e
xchg qword [rbx + 0xd8], rdi
mov rcx, rbx
call fcn.140055800
xor eax, eax
xchg dword [rbx + 0x34], eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14009c650]
call fcn.14003f220
cmp dword [0x14009c650], 0xffffffff
jne 0x1400519e1
mov rax, qword [rbx + 0x18]
lea rcx, [0x14009c650]
mov qword [0x14009c648], rax
call fcn.14003f1c0
jmp 0x1400519e1
Function at 0x140055800
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov edx, dword [0x14009bdb0]
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x14009c5c8], edx
jg 0x1400559c6
mov rcx, qword [0x14009c5c0]
cmp rcx, 2
jl 0x1400559a5
movsxd rax, dword [rbx + 0x30]
sub rax, rcx
sub rax, 1
js 0x1400559a5
mov r8d, eax
lea rdx, [rsp + 0x48]
lea rcx, [rbx + 0x38]
call fcn.140050130
mov rdi, rax
lea rdx, [rsp + 0x28]
lea rcx, [rbx + 0x38]
call fcn.140050640
nop
mov r9, rdi
mov r8, rax
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.140048b40
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400558e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400558e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400558e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], ax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140055943
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005593e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005593e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x1400559a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400559a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400559a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003edd0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003edb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
lea rcx, [0x14009c5c8]
call fcn.14003f220
cmp dword [0x14009c5c8], 0xffffffff
jne 0x140055849
mov rax, qword [rbx + 0x20]
mov qword [0x14009c5c0], rax
lea rcx, [0x14009c5c8]
call fcn.14003f1c0
jmp 0x140055849
Function at 0x140057a40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x2080
call fcn.140074280
sub rsp, rax
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, rdx
lea rbx, [rsp + 0x70]
mov ebp, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r9d, edi
lea rdx, [0x14007d540]
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400482d0
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140057acd
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x70]
sub rcx, rdx
nop dword [rax]
nop dword [rax + rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rcx + rbx]
test al, al
jne 0x140057ac0
test rsi, rsi
je 0x140057aed
movzx eax, byte [rsi]
test al, al
je 0x140057aed
sub rsi, rbx
nop dword [rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rsi + rbx]
test al, al
jne 0x140057ae0
mov rax, qword [rsp + 0x20c0]
lea rdi, [0x14007d554]
test rax, rax
lea rsi, [rsp + 0x206e]
lea r14, [rsp + 0x20c8]
cmovne rdi, rax
sub rsi, rbx
mov qword [rsp + 0x20c0], rdi
call fcn.140004180
mov qword [rsp + 0x30], r14
mov r8, rsi
mov qword [rsp + 0x28], 0
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rdi, 0xffffffffffffffff
mov rcx, qword [rax]
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
test eax, eax
cmovs eax, edi
mov rdi, qword [0x14009c198]
cdqe
cmp rax, rsi
cmovbe rsi, rax
mov word [rbx + rsi], 0xa
mov rax, qword [rdi]
mov ebx, dword [rax]
cmp ebp, 8
jne 0x140057b7d
cmp dword [rdi + 0x10], 2
je 0x140057b7d
or ebx, 2
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140057ee0
mov esi, eax
test bl, 1
je 0x140057b9c
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
je 0x140057bb1
mov r8d, esi
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400519a0
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x2080
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140057bd0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2088
call fcn.140074280
sub rsp, rax
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, r8
lea rbx, [rsp + 0x70]
mov ebp, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r9d, edi
lea rdx, [0x14007d540]
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400482d0
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140057c5d
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x70]
sub rcx, rdx
nop dword [rax]
nop dword [rax + rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rcx + rbx]
test al, al
jne 0x140057c50
test rsi, rsi
je 0x140057c7d
movzx eax, byte [rsi]
test al, al
je 0x140057c7d
sub rsi, rbx
nop dword [rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rsi + rbx]
test al, al
jne 0x140057c70
mov rax, qword [rsp + 0x20d8]
lea rdi, [0x14007d554]
test rax, rax
lea rsi, [rsp + 0x206e]
lea r15, [rsp + 0x20e0]
cmovne rdi, rax
sub rsi, rbx
mov qword [rsp + 0x20d8], rdi
call fcn.140004180
mov qword [rsp + 0x30], r15
mov r8, rsi
mov qword [rsp + 0x28], 0
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rdi, 0xffffffffffffffff
mov rcx, qword [rax]
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
test eax, eax
cmovs eax, edi
cdqe
cmp rax, rsi
cmovbe rsi, rax
mov word [rbx + rsi], 0xa
mov rax, qword [r14]
mov ebx, dword [rax]
cmp ebp, 8
jne 0x140057d07
cmp dword [r14 + 0x10], 2
je 0x140057d07
or ebx, 2
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140057ee0
mov edi, eax
test bl, 1
je 0x140057d26
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
je 0x140057d3b
mov r8d, edi
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400519a0
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x2088
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140057ee0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 8]
mov rdi, rcx
test rbx, rbx
je 0x140057f4f
cmp dword [rbx], 0
je 0x140057f4f
mov rax, qword gs:[0x58]
mov edx, dword [0x14009bdb0]
mov ecx, 0x10
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x14009c5b0], eax
jg 0x140057f5c
movzx ecx, byte [rdi]
mov rax, rdi
test cl, cl
je 0x140057f42
nop dword [rax + rax]
xor cl, byte [0x14009c5ac]
mov byte [rax], cl
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x140057f30
sub eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
lea rcx, [0x14009c5b0]
call fcn.14003f220
cmp dword [0x14009c5b0], 0xffffffff
jne 0x140057f1e
movzx eax, byte [rbx + 1]
lea rcx, [0x14009c5b0]
sub al, byte [rbx + 3]
sub al, byte [rbx + 2]
add al, byte [rbx]
mov byte [0x14009c5ac], al
call fcn.14003f1c0
jmp 0x140057f1e
Function at 0x140059b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rsi, rcx
mov r9, qword [rdx + 0x10]
mov r8, rdx
jb 0x140059ba3
mov r8, qword [rdx]
xor ecx, ecx
movabs rdi, 0xcbf29ce484222325
add r9, r9
je 0x140059bd4
movabs r10, 0x100000001b3
nop
movzx eax, byte [rcx + r8]
inc rcx
xor rdi, rax
imul rdi, r10
cmp rcx, r9
jb 0x140059bc0
mov r8, rdx
mov r9, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140041dc0
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140059c77
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x18]
and rcx, rdi
shl rcx, 4
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x140059c2b
cmp rax, rbx
jne 0x140059c21
mov rax, qword [rsi + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x140059c36
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x140059c36
cmp rax, rbx
jne 0x140059c36
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
lea rcx, [rbx + 0x10]
dec qword [rsi + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.140005340
mov edx, 0x30
mov rcx, rbx
call fcn.14003edd0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14005b820
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005b8e8
lea edi, [rax + 1]
mov ecx, edi
mov eax, 2
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.1400740a0
mov rbp, rax
mov qword [rsp + 0x28], rax
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005b8d6
inc rsi
cmp word [rbp + rsi*2], 0
jne 0x14005b894
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140002a90
nop
test rbp, rbp
je 0x14005b906
mov edx, 2
mov rcx, rbp
call fcn.14003edd0
jmp 0x14005b906
test rbp, rbp
je 0x14005b8e8
mov edx, 2
mov rcx, rbp
call fcn.14003edd0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003edb0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14006fc50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14006fd45
nop dword [rax]
cmp rbx, qword [0x140099190]
jb 0x14006fcae
cmp rbx, qword [0x140099198]
ja 0x14006fcae
sub rbx, 0x8000000
jmp 0x14006fd3c
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14006fd45
cmp dword [rsp + 0x40], 0x10000
jne 0x14006fd20
cmp qword [rsp + 0x38], 0x10000
jb 0x14006fd20
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14006fd47
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14006fd45
sub rbx, 0x10000
jmp 0x14006fd3c
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x14006fc90
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003edb0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14006fd60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x14006fd91
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x14006fe57
nop word [rax + rax]
cmp rbx, qword [0x140099190]
jb 0x14006fdbe
cmp rbx, qword [0x140099198]
ja 0x14006fdbe
add rbx, 0x8000000
jmp 0x14006fe4e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14006fe57
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x14006fe33
cmp rcx, 0x10000
jb 0x14006fe33
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14006fe59
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14006fe57
add rbx, 0x10000
jmp 0x14006fe4e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14006fe4e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x14006fda0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003edb0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14006fe80
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x14006fe9e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x14006feba
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x14006fed1
cmp byte [rcx + 1], 0x25
jne 0x14006ff15
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x14006fedd
cmp al, 0xe9
jne 0x14006ff15
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x14006ff00
cmp rcx, 0xffffffff80000000
jae 0x14006fef7
lea rdi, [rcx + 0x7ff80000]
jmp 0x14006ff15
mov rdi, 0xfffffffffff80000
jmp 0x14006ff15
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x14006ff15
mov ebx, 0x80000
mov rax, qword [0x14009c698]
mov rcx, qword [0x14009c690]
test rax, rax
jne 0x14006ff37
test rcx, rcx
je 0x14006ff4e
mov rax, rcx
mov qword [0x14009c698], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14006ff4e
cmp rdx, rbx
jb 0x14006ff4e
cmp rdx, rdi
jbe 0x14006fff9
mov qword [0x14009c698], rcx
mov rax, rcx
test rcx, rcx
je 0x14006ff89
test rcx, rcx
je 0x14006ff79
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14006ff79
cmp rcx, rbx
jb 0x14006ff79
cmp rcx, rdi
jbe 0x14006fff9
mov rax, qword [rax + 8]
mov qword [0x14009c698], rax
test rax, rax
jne 0x14006ff62
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.140070050
test rax, rax
je 0x14007003c
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x14009c698], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x14009c690]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x14009c690], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x14006ffe1
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x14007003c
cmp rdx, rdi
ja 0x14007003c
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x14007fc00]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140070370
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1400703ac
xor al, al
jmp 0x1400703fb
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1400703bd
xor al, al
jmp 0x1400703fb
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1400703e4
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1400703e4
mov al, 1
jmp 0x1400703fb
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x60
pop rbx
ret
Function at 0x140070960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14009c6a8], eax
je 0x140070993
mov eax, 0x10dd
jmp 0x140070abc
mov eax, dword [0x14009c6ac]
test eax, eax
jne 0x140070abc
test rbp, rbp
jne 0x1400709ae
lea eax, [rbp + 0x57]
jmp 0x140070abc
test rsi, rsi
je 0x1400709ca
cmp qword [rsi], 0
jne 0x1400709d4
mov dword [0x14009c6ac], 6
mov qword [0x14009c6b0], rsi
mov eax, 6
jmp 0x140070abc
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.14003edd8
mov rbx, rax
test rax, rax
jne 0x1400709f8
lea edi, [rax + 8]
jmp 0x140070a91
mov rcx, qword [rsi]
xor edx, edx
call fcn.1400708b0
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.1400708b0
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x140070a83
mov edx, ecx
cmp rcx, 0x1e
ja 0x140070a83
cmp qword [rdi + 0x50], rax
jne 0x140070a83
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140070a54
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x140070a91
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x14009c6c0]
mov qword [rbx], rax
xor eax, eax
mov qword [0x14009c6c0], rbx
jmp 0x140070ab2
cmp dword [0x14009c6a0], 0
mov edi, 9
jne 0x140070a9c
mov dword [0x14009c6ac], edi
test rbx, rbx
je 0x140070aa9
mov edx, 0x30
mov rcx, rbx
call fcn.14003edd0
mov qword [0x14009c6b0], rsi
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x140070ad0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x28], rax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14009c6a8], eax
je 0x140070b07
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x14009c6c0]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x140070ba4
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rbx + 8], esi
jne 0x140070b8c
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x140070b8c
xorps xmm0, xmm0
mov rcx, rdx
movups xmmword [rdx], xmm0
and rcx, 0xffffffffffff0000
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.14003edd0
mov rbx, rdi
test rdi, rdi
jne 0x140070b30
mov qword [0x14009c6c0], rsi
call fcn.140070410
mov rdi, qword [0x14009c6b8]
test rdi, rdi
je 0x140070be1
nop dword [rax]
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.14003edd0
mov rdi, rbx
test rbx, rbx
jne 0x140070bc0
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x14009c6b8], rsi
mov dword [0x14009c6a8], esi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x38
ret

Function at 0x140070c20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x14009c6a8], 0
jne 0x140070ce2
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x14009c6a8], ecx
jne 0x140070ce2
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x14009c690]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x14009c6c0], rdi
mov qword [0x14009c6b8], rdi
mov qword [0x14009c6b0], rdi
test rbx, rbx
je 0x140070cbe
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x140070cb7
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140070c90
jmp 0x140070cbe
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x14009c6ac], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003edb0
add rsp, 0x38
ret
Function at 0x1400712a0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x14009c6ac]
mov rdi, rcx
test eax, eax
jne 0x140071340
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x1400712c9
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.14003edd8
mov rbx, rax
test rax, rax
jne 0x1400712e5
lea edi, [rax + 8]
jmp 0x140071306
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x140071324
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.14003edd0
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x14009c6ac], edi
mov qword [0x14009c6b0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x14009c6b8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x14009c6b8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret