joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a07b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, r9
mov r14, r8
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1401a07ff
mov rdx, qword [r8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401a085f
xor edi, edi
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov r8d, 0xd
lea rdx, str.ERROR_READREG
mov rcx, rbx
call fcn.1400d07a0
nop
mov rcx, r14
call fcn.1400c3c60
nop
mov rcx, rsi
call fcn.1400c3c60
jmp 0x1401a09d4
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401a086c
mov rdx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401a08a1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401a0821
cmp dword [rsp + 0x38], 1
jne 0x1401a0894
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401a08c7
mov rdx, qword [rsi]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401a0894
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1401a0911
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400d07a0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x1401a097a
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401a0975
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401a09f4
mov rcx, r8
call fcn.1401c72f8
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1401a09c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1401a09c0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401a09fa
mov rcx, r8
call fcn.1401c72f8
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401c7850
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3
Function at 0x1401a0a00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x68], 8
cmp qword [r8 + 0x18], 8
mov qword [rsp + 0x58], rbx
jb 0x1401a0a1f
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401a0a29
mov rdx, qword [rdx]
lea rax, [rsp + 0x68]
or r9d, 0x40
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
cmove rbx, qword [rsp + 0x58]
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x1401a0a60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x68], ebx
jb 0x1401a0a7e
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401a0a88
mov rdx, qword [rdx]
lea rax, [rsp + 0x58]
or r9d, 0x10
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
cmove ebx, dword [rsp + 0x68]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1401a0ac0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], r9
mov r9d, dword [rsp + 0xa0]
mov eax, VariantTimeToDosDateTime
test r9d, r9d
cmove r9d, eax
cmp qword [r8 + 0x18], 8
jb 0x1401a0b00
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401a0b0a
mov rdx, qword [rdx]
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1401a0b41
mov rcx, rbx
call fcn.1400c3c60
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401c7850
add rsp, 0x70
pop rbx
ret
mov r8d, eax
lea rdx, str.Cannot_set_DWORD64_to_registry
lea rcx, [rsp + 0x38]
call fcn.1401a0270
lea rdx, [0x1402da2c8]
lea rcx, [rsp + 0x38]
call fcn.1401fe4dc
int3

Function at 0x1401a0b70
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x30], r9d
mov r9d, dword [rsp + 0xa0]
mov eax, 4
test r9d, r9d
cmove r9d, eax
cmp qword [r8 + 0x18], 8
jb 0x1401a0bb0
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401a0bba
mov rdx, qword [rdx]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1401a0bed
mov rcx, rbx
call fcn.1400c3c60
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401c7850
add rsp, 0x70
pop rbx
ret
mov r8d, eax
lea rdx, str.Cannot_set_DWORD_to_registry
lea rcx, [rsp + 0x38]
call fcn.1401a0270
lea rdx, [0x1402da2c8]
lea rcx, [rsp + 0x38]
call fcn.1401fe4dc
int3
Function at 0x1401a0c20
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], rdx
mov rdi, r8
mov qword [rsp + 0x58], r8
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov rsi, rcx
mov dword [rsp + 0x50], r9d
jb 0x1401a0c4a
mov rdx, qword [rdx]
lea rax, [rsp + 0x58]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401a0ca9
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401a0c74
mov rdx, qword [rbx]
xor ecx, ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401a0ceb
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1401a0cb6
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1401a0d05
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
mov eax, 1
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x1401a0d30
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x50], rdx
mov rdi, r9
mov qword [rsp + 0x50], r8
mov rsi, r8
mov qword [rsp + 0x50], r9
mov rbx, rdx
cmp qword [rdx + 0x18], 8
mov rbp, rcx
jb 0x1401a0d5e
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401a0dbd
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401a0d88
mov rdx, qword [rbx]
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1401a0e0d
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x1401a0dca
mov rcx, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x1401a0dd7
mov rdx, qword [rsi]
mov eax, dword [rdi + 0x10]
mov r9d, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1401a0e30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400c3c60
mov rcx, rsi
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.1400c3c60
mov rcx, rsi
call fcn.1400c3c60
mov rcx, rdi
call fcn.1400c3c60
mov eax, 1
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401a8010
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
sub rsp, 0x28
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x1401a8033
lea rcx, [0x140277ec0]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir
lea rcx, str.C:ProgramData_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401a804c
shr eax, 4
and al, 1
jne 0x1401a8058
lea rcx, str.C:ProgramData_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, str.C:ProgramDataASUS_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401a8071
shr eax, 4
and al, 1
jne 0x1401a807d
lea rcx, str.C:ProgramDataASUS_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401a8096
shr eax, 4
and al, 1
jne 0x1401a80a2
lea rcx, str.C:ProgramDataASUSASUS_System_Control_Interface_
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, [0x140277ec0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401a80bb
shr eax, 4
and al, 1
jne 0x1401a80c7
lea rcx, [0x140277ec0]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir
lea rcx, str.C:ProgramDataASUSASUS_System_Control_InterfaceAsusSystemAnalysis_
add rsp, 0x28
jmp fcn.1401b00d0

Function at 0x1401a80e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401a80f6
xor al, al
add rsp, 0x28
ret
shr eax, 4
and al, 1
add rsp, 0x28
ret
Function at 0x1401b4a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1401b4ae8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1401b4ae8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1401b4ad5
nop
cmp rbx, rcx
jae 0x1401b4ae8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1401b4ac0
cmp rbx, rcx
jae 0x1401b4ae8
cmp word [rbx], 0
je 0x1401b4ae8
lfence
mov rax, rbx
jmp 0x1401b4aea
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x141389d50
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141389d5a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141389d83
pop rbp
sub rbp, 0x33
sub rbp, 0x1389d50
sub rsp, 0x20
jmp 0x141389da2
mov rax, 0x1389d50
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffd59bb1c8
xor byte [rax], dl
inc rax
dec rcx
jne 0x141389dc1
jmp 0x141389dd8
add byte [rcx + 0x21], 0x43
hlt
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140009c50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140013ee0], rbx
je 0x140009c9c
cmp rax, rbx
jne 0x140009c8f
mov ebx, 1
mov esi, ebx
jmp 0x140009ca1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009c74
mov ebx, 1
mov eax, dword [0x140013ee8]
cmp eax, ebx
jne 0x140009cb7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140009d1c
mov eax, dword [0x140013ee8]
test eax, eax
jne 0x140009d16
mov dword [0x140013ee8], ebx
lea r15, [0x14000b650]
lea rdi, [0x14000b638]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009d08
test eax, eax
jne 0x140009d0c
cmp qword [rdi], 0
je 0x140009cfd
mov rax, qword [rdi]
mov rcx, qword [0x14000b618]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009cde
test eax, eax
je 0x140009d1c
mov eax, 0xff
jmp 0x140009df8
mov dword [0x140013084], ebx
mov eax, dword [0x140013ee8]
cmp eax, ebx
jne 0x140009d43
lea rdx, [0x14000b630]
lea rcx, [0x14000b620]
call sub.msvcrt.dll__initterm
mov dword [0x140013ee8], 2
test esi, esi
jne 0x140009d50
xor eax, eax
xchg qword [0x140013ee0], rax
cmp qword [0x140013ef0], 0
je 0x140009d84
lea rcx, [0x140013ef0]
call fcn.14000a020
test eax, eax
je 0x140009d84
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140013ef0]
mov r9, qword [0x14000b618]
call r9
mov r8, qword [0x140013098]
mov rdx, qword [0x140013090]
mov ecx, dword [0x140013088]
call fcn.1400044dc
mov dword [0x140013080], eax
cmp dword [0x1400130a0], 0
jne 0x140009db4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140013084], 0
jne 0x140009dc9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140013080]
jmp 0x140009df8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14018a000
add rsp, 0x28
jmp 0x140009c50

Function at 0x140009f0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009f58
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009f50
cmp dword [rcx + 0x3c], edx
jl 0x140009f50
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009f50
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140009f58
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400020e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002108
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000212e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002130
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002189
test ecx, ecx
jle 0x140002169
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002189
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002189
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400021b0
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 0x1400021d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400021e8
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 0x140002204
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002206
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002242
mov qword [rsp + 0x20], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400022de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000227d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400022be
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400022de
cmp rbx, rax
ja 0x140002290
test rbx, rbx
je 0x1400022de
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000276d
xor eax, eax
jmp 0x1400028d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400027a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400027a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400028d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400028cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400027ea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140002815
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 0x1400028d1
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 0x140002884
sub eax, 1
je 0x140002884
cmp eax, 2
jne 0x1400028cc
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 0x1400028d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400028b2
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 0x1400028cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400028d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003210
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002b20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002bf3
cmp byte [rcx + 0x71], 0
je 0x140002bf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002bef
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 0x140002bb4
sub eax, 1
je 0x140002bb8
cmp eax, 2
jne 0x140002bef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003210
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002be6
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 0x140002bef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002b9c
xor al, al
jmp 0x140002b9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003210
add rsp, 0x60
pop rbx
ret

Function at 0x140003b90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003bda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003bda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003bda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003bda
cmp dword [rcx + 0x84], 0xe
jbe 0x140003bda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003bdc
xor al, al
add rsp, 0x28
ret
Function at 0x1400408a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400408f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400408f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400408f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400408f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400408f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400408f4
xor al, al
add rsp, 0x28
ret