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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14002e63e
lea r8, str.ORegistryKey.GetSubKeyNames_failure:_Cannot_get_all_sub_key_names._The_registry_is_closed_or_not_set
lea edx, [r12 + 0x3a]
lea rcx, [rsp + 0x70]
call fcn.14002d7cc
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14002eb70
mov esi, eax
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x68], 7
mov rcx, r12
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x50], r12w
mov r15, qword [rdi + 8]
mov rbx, qword [rdi]
cmp rbx, r15
je 0x14002e688
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140007a08
add rbx, 0x20
cmp rbx, r15
jne 0x14002e66d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x14002e7a1
mov ebx, 0xff
dec esi
mov dword [rsp + 0x40], 0x100
cmp rcx, rbx
jb 0x14002e6cb
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + 0x1fe], r12w
jmp 0x14002e6de
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140007d00
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r8d, eax
test eax, eax
jne 0x14002e770
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x14002e743
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + rdx*2], r12w
jmp 0x14002e755
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140007d00
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14002678c
test esi, esi
je 0x14002e7a1
mov rcx, qword [rsp + 0x60]
jmp 0x14002e69c
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.GetSubKeyNames_failure:_Cannot_get_all_sub_key_names__for_registry__s
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.14002d4b4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140007a08
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002e7dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14002e84e
lea r8, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names._The_registry_is_closed_or_not_set
lea edx, [r12 + 0x3a]
lea rcx, [rsp + 0x70]
call fcn.14002d6a8
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14002ecfc
mov esi, eax
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x68], 7
mov rcx, r12
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x50], r12w
mov r15, qword [rdi + 8]
mov rbx, qword [rdi]
cmp rbx, r15
je 0x14002e898
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140007a08
add rbx, 0x20
cmp rbx, r15
jne 0x14002e87d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x14002e9b1
mov ebx, 0x3fff
dec esi
mov dword [rsp + 0x40], 0x4000
cmp rcx, rbx
jb 0x14002e8db
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + 0x7ffe], r12w
jmp 0x14002e8ee
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140007d00
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov edx, esi
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r8d, eax
test eax, eax
jne 0x14002e980
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x14002e953
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
mov word [rax + rdx*2], r12w
jmp 0x14002e965
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140007d00
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14002678c
test esi, esi
je 0x14002e9b1
mov rcx, qword [rsp + 0x60]
jmp 0x14002e8ac
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.GetValueNames_failure:_Cannot_get_all_value_names_for_registry__s
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.14002d3fc
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140007a08
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002e9ec
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x30], rsi
je 0x14002eaad
cmp qword [rdx + 0x10], 0x3fff
ja 0x14002ead5
mov rcx, qword [r8 + 8]
mov eax, 0xffffffff
sub rcx, qword [r8]
cmp rcx, rax
ja 0x14002eb01
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, qword [r8]
cmp qword [rbx + 0x18], 8
jb 0x14002ea61
mov rax, qword [rbx]
jmp 0x14002ea64
mov rax, rbx
mov dword [rsp + 0x28], ecx
mov r9d, 3
mov rcx, qword [rdi + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14002eb34
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x408]
add rsp, 0x3d0
pop rdi
pop rsi
pop rbp
ret
lea r8, str.ORegistryKey.SetValue_failure:_Registry_key_is_not_initialized
mov edx, 0x3a
lea rcx, [rsp + 0x30]
call fcn.14002d01c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, [rcx + 0x10]
mov edx, 0x1d
lea rcx, [rsp + 0x30]
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_binary_into_registry_key__s._The_value_name_is_too_long
call fcn.14002d72c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x1401df028]
mov dword [rsp + 0x30], 0x5d
lea rcx, [rsp + 0x30]
mov dword [rbp + 0x134], esi
mov word [rbp + 0x238], si
mov word [rbp + 0x138], si
mov word [rsp + 0x34], si
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x28], rcx
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set_binary___s__reg_value__s.
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov edx, 0xf
call fcn.14002d0a0
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002fd38
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov r10, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14002fd6d
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
add r10, r10
je 0x14002fd9c
movzx eax, byte [r8 + rcx]
xor rdx, rax
movabs r11, 0x100000001b3
imul rdx, r11
inc rcx
cmp rcx, r10
jb 0x14002fd7e
mov rsi, qword [r14 + 0x30]
and rsi, rdx
mov rax, qword [r14 + 8]
add rsi, rsi
mov rdi, qword [r14 + 0x18]
cmp qword [rdi + rsi*8], rax
jne 0x14002fdb9
mov rdi, rax
jmp 0x14002fdc1
mov rdi, qword [rdi + rsi*8 + 8]
mov rdi, qword [rdi]
mov rax, qword [r14 + 0x18]
cmp rdi, qword [rax + rsi*8]
je 0x14002fe13
mov rdi, qword [rdi + 8]
lea r9, [rdi + 0x10]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14002fde1
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
mov r8, qword [rbx + 0x10]
xor edx, edx
mov rcx, rbx
call fcn.140014650
nop
test eax, eax
je 0x14002fe03
mov r9b, byte [rsp + 0x88]
jmp 0x14002fdc1
mov qword [r15], rdi
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x14002fec3
mov r8, rbx
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.14002fcb4
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
cmp rdi, rax
je 0x14002fe63
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r14 + 8]
jne 0x14002fe80
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x14002feaf
cmp rax, rdi
jne 0x14002fe8b
mov qword [rdx + rsi*8], rbx
jmp 0x14002feaf
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x14002feaf
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.140030460
nop
mov qword [r15], rbx
mov byte [r15 + 8], 1
mov rax, r15
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002fed0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, r9
mov r15, r8
mov r12, rdx
mov r14, rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14002ff0d
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
add r9, r9
je 0x14002ff3c
movzx eax, byte [r8 + rcx]
xor rdx, rax
movabs r10, 0x100000001b3
imul rdx, r10
inc rcx
cmp rcx, r9
jb 0x14002ff1e
mov rsi, qword [r14 + 0x30]
and rsi, rdx
mov rax, qword [r14 + 8]
add rsi, rsi
mov rdi, qword [r14 + 0x18]
cmp qword [rdi + rsi*8], rax
jne 0x14002ff59
mov rdi, rax
jmp 0x14002ff61
mov rdi, qword [rdi + rsi*8 + 8]
mov rdi, qword [rdi]
mov rax, qword [r14 + 0x18]
cmp rdi, qword [rax + rsi*8]
je 0x14002ffe3
mov rdi, qword [rdi + 8]
lea r9, [rdi + 0x10]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14002ff81
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
mov r8, qword [r15 + 0x10]
xor edx, edx
mov rcx, r15
call fcn.140014650
nop
mov rbx, qword [rsp + 0x88]
test eax, eax
jne 0x14002ff61
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [r8], rax
mov r8, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [r8 + 8], rax
dec qword [r14 + 0x10]
lea rcx, [rbx + 0x10]
xor r8d, r8d
mov dl, 1
call fcn.140007a08
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r12], rdi
mov byte [r12 + 8], 0
mov rax, r12
jmp 0x140030082
mov qword [rsp + 0x80], rbx
mov rax, qword [rbx]
cmp rdi, rax
je 0x140030020
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r14 + 8]
jne 0x14003003d
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x14003006c
cmp rax, rdi
jne 0x140030048
mov qword [rdx + rsi*8], rbx
jmp 0x14003006c
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x14003006c
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.140030460
nop
mov qword [r12], rbx
mov byte [r12 + 8], 1
mov rax, r12
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140030eb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rdx, qword [r8 + 0x20]
add r8, 0x10
mov r9, rcx
cmp qword [r8 + 0x18], 8
jb 0x140030edf
mov r8, qword [r8]
xor ecx, ecx
movabs r10, 0xcbf29ce484222325
add rdx, rdx
je 0x140030f0e
movzx eax, byte [r8 + rcx]
movabs r11, 0x100000001b3
xor r10, rax
inc rcx
imul r10, r11
cmp rcx, rdx
jb 0x140030ef0
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r10
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x140030f46
cmp qword [rcx + rdx*8], rdi
jne 0x140030f40
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140030f53
mov rax, qword [rdi + 8]
jmp 0x140030f39
cmp qword [rcx + rdx*8], rdi
jne 0x140030f58
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rdi, qword [rsp + 0x40]
mov rax, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov dl, 1
mov qword [rax], rbx
mov r8, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [r8 + 8], rax
xor r8d, r8d
dec qword [r9 + 0x10]
call fcn.140007a08
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140031854
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x3e0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
and dword [rsp + 0x30], 0
xor eax, eax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov dword [rsp + 0x34], eax
jb 0x140031886
mov rcx, qword [rcx]
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400318b9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3e0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_check_free_space_in_drive___s_
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x40]
mov edx, 0xf
call fcn.14002414c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400318f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x4e8
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
test eax, eax
je 0x140031980
cmp dword [rsp + 0x24], 6
jne 0x140031975
mov eax, dword [rsp + 0x28]
cmp eax, 1
jne 0x140031941
cmp byte [rsp + 0x13a], al
setne cl
lea eax, [rcx + 1]
jmp 0x14003195d
cmp eax, 2
jne 0x140031956
cmp byte [rsp + 0x13a], 1
setne cl
lea eax, [rcx + 3]
jmp 0x14003195d
jbe 0x14003197c
mov eax, 5
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x4e8
ret
cmp dword [rsp + 0x24], 7
jae 0x140031958
xor eax, eax
jmp 0x14003195d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_retrieve_version_information_about_the_current_operation_system.
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x140]
call fcn.1400311b4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x140]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400319b8
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x58
ret

Function at 0x140032af8
Capabilities:
Copy file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x3f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
cmp qword [rdx + 0x18], 8
jb 0x140032b37
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140032b41
mov rcx, qword [rcx]
xor esi, esi
test r8b, r8b
sete sil
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140032be6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140032bab
mov r8b, 1
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.1400264dc
cmp qword [rbx + 0x18], 8
jb 0x140032b80
mov rdx, qword [rbx]
jmp 0x140032b83
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x140032b8f
mov rcx, qword [rdi]
jmp 0x140032b92
mov rcx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140032be6
jmp 0x140032bab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea r9, str.Failed_to_copy_file_src:__s__dest:__s
mov edx, 0xf
lea rcx, [rsp + 0x50]
call fcn.140031d5c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3f0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140033128
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov r14, r9
mov al, r8b
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x18], 8
jb 0x14003316d
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140033177
mov rcx, qword [rcx]
xor ebx, ebx
mov r8d, ebx
test al, al
sete r8b
lea r9, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1400331cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r9, str.Cannot_get_temp_file_name_in_path__s_with_prefix__s
mov r8d, eax
lea edx, [rbx + 0xf]
lea rcx, [rsp + 0x60]
call fcn.140031f24
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
cmp word [rbp + 0x2f0], bx
je 0x1400331ff
lea rcx, [rbp + 0x2f0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400331f3
mov rbx, rax
mov r8, rbx
lea rdx, [rbp + 0x2f0]
lea rcx, [rsp + 0x38]
call fcn.140007f48
nop
lea rax, [rsp + 0x38]
cmp r14, rax
je 0x140033239
xor r8d, r8d
mov dl, 1
mov rcx, r14
call fcn.140007a08
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.1400077b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140007a08
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x610
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140033314
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x40], 0
mov rsi, rdx
mov rbx, rcx
call fcn.140011cf0
test al, al
jne 0x14003333b
xor al, al
jmp 0x140033390
cmp qword [rbx + 0x18], 8
jb 0x140033347
mov rcx, qword [rbx]
jmp 0x14003334a
mov rcx, rbx
lea rdx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x140033337
mov edx, edi
mov rcx, rsi
call fcn.140021cb4
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb r9, r9
and r9, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14003337e
mov rbx, qword [rbx]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140033550
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x338]
sub rsp, 0x420
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov rbx, rdx
mov rdi, rcx
mov esi, 8
call fcn.1400357e0
xor r14d, r14d
test al, al
jne 0x14003364a
mov rcx, rbx
call fcn.1400357e0
test al, al
jne 0x14003364a
lea eax, [rsi - 1]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
mov r8b, 1
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140035394
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140035394
nop
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r9, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x68]
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140014650
nop
lea ecx, [rsi + 2]
test eax, eax
cmovne esi, ecx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.140007a08
or esi, 1
cmp qword [rbx + 0x18], 8
jb 0x140033659
mov rdx, qword [rbx]
jmp 0x14003365c
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x140033668
mov rcx, qword [rdi]
jmp 0x14003366b
mov rcx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400336f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400336bc
mov r8b, 1
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.1400264dc
cmp qword [rbx + 0x18], 8
jb 0x14003369d
mov rdx, qword [rbx]
jmp 0x1400336a0
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x1400336ac
mov rcx, qword [rdi]
jmp 0x1400336af
mov rcx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400336f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea r9, str.Failed_to_move_file_src:__s__dst:__s
mov edx, 0xf
lea rcx, [rbp - 0x80]
call fcn.140031c18
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret