joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b0cc
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 [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, rdx
mov r14, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
jne 0x14002b13e
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.14002a0f0
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14002b5ec
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 0x14002b188
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.14000867c
add rbx, 0x20
cmp rbx, r15
jne 0x14002b16d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rdi]
mov qword [rdi + 8], rax
test esi, esi
je 0x14002b2a1
mov ebx, 0x3fff
dec esi
mov dword [rsp + 0x40], 0x4000
cmp rcx, rbx
jb 0x14002b1cb
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 0x14002b1de
xor r8d, r8d
mov rdx, rbx
sub rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140008974
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 0x14002b270
mov edx, dword [rsp + 0x40]
cmp rdx, qword [rsp + 0x60]
ja 0x14002b243
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 0x14002b255
xor r8d, r8d
sub rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140008974
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140023814
test esi, esi
je 0x14002b2a1
mov rcx, qword [rsp + 0x60]
jmp 0x14002b19c
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.140029e44
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000867c
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140121d80
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 0x14002b2dc
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 [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x30], rsi
je 0x14002b39d
cmp qword [rdx + 0x10], 0x3fff
ja 0x14002b3c5
mov rcx, qword [r8 + 8]
mov eax, 0xffffffff
sub rcx, qword [r8]
cmp rcx, rax
ja 0x14002b3f1
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, qword [r8]
cmp qword [rbx + 0x18], 8
jb 0x14002b351
mov rax, qword [rbx]
jmp 0x14002b354
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 0x14002b424
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140121d80
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.140029a64
lea rdx, [0x1401e3810]
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.14002a174
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x1401e3810]
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.140029ae8
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002c1b8
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 0x14002c1ed
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
add r10, r10
je 0x14002c21c
movzx eax, byte [r8 + rcx]
xor rdx, rax
movabs r11, 0x100000001b3
imul rdx, r11
inc rcx
cmp rcx, r10
jb 0x14002c1fe
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 0x14002c239
mov rdi, rax
jmp 0x14002c241
mov rdi, qword [rdi + rsi*8 + 8]
mov rdi, qword [rdi]
mov rax, qword [r14 + 0x18]
cmp rdi, qword [rax + rsi*8]
je 0x14002c293
mov rdi, qword [rdi + 8]
lea r9, [rdi + 0x10]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14002c261
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
mov r8, qword [rbx + 0x10]
xor edx, edx
mov rcx, rbx
call fcn.140012674
nop
test eax, eax
je 0x14002c283
mov r9b, byte [rsp + 0x88]
jmp 0x14002c241
mov qword [r15], rdi
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x14002c343
mov r8, rbx
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.14002c134
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
cmp rdi, rax
je 0x14002c2e3
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 0x14002c300
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x14002c32f
cmp rax, rdi
jne 0x14002c30b
mov qword [rdx + rsi*8], rbx
jmp 0x14002c32f
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x14002c32f
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.14002c7ec
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 0x14002c350
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 0x14002c38d
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
add r9, r9
je 0x14002c3bc
movzx eax, byte [r8 + rcx]
xor rdx, rax
movabs r10, 0x100000001b3
imul rdx, r10
inc rcx
cmp rcx, r9
jb 0x14002c39e
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 0x14002c3d9
mov rdi, rax
jmp 0x14002c3e1
mov rdi, qword [rdi + rsi*8 + 8]
mov rdi, qword [rdi]
mov rax, qword [r14 + 0x18]
cmp rdi, qword [rax + rsi*8]
je 0x14002c463
mov rdi, qword [rdi + 8]
lea r9, [rdi + 0x10]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14002c401
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
mov r8, qword [r15 + 0x10]
xor edx, edx
mov rcx, r15
call fcn.140012674
nop
mov rbx, qword [rsp + 0x88]
test eax, eax
jne 0x14002c3e1
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.14000867c
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 0x14002c502
mov qword [rsp + 0x80], rbx
mov rax, qword [rbx]
cmp rdi, rax
je 0x14002c4a0
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 0x14002c4bd
mov qword [rdx + rsi*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rbx
jmp 0x14002c4ec
cmp rax, rdi
jne 0x14002c4c8
mov qword [rdx + rsi*8], rbx
jmp 0x14002c4ec
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rbx
je 0x14002c4ec
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.14002c7ec
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 0x14002c998
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 0x14002c9c7
mov r8, qword [r8]
xor ecx, ecx
movabs r10, 0xcbf29ce484222325
add rdx, rdx
je 0x14002c9f6
movzx eax, byte [r8 + rcx]
movabs r11, 0x100000001b3
xor r10, rax
inc rcx
imul r10, r11
cmp rcx, rdx
jb 0x14002c9d8
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r10
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x14002ca2e
cmp qword [rcx + rdx*8], rdi
jne 0x14002ca28
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 0x14002ca3b
mov rax, qword [rdi + 8]
jmp 0x14002ca21
cmp qword [rcx + rdx*8], rdi
jne 0x14002ca40
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.14000867c
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 0x14002d33c
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x3e0
mov rax, qword [0x1401d4618]
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 0x14002d36e
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 0x14002d3a1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140121d80
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.140021748
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002d3d8
Capabilities:
Check os version

Disassembly:
sub rsp, 0x4e8
mov rax, qword [0x1401d4618]
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 0x14002d468
cmp dword [rsp + 0x24], 6
jne 0x14002d45d
mov eax, dword [rsp + 0x28]
cmp eax, 1
jne 0x14002d429
cmp byte [rsp + 0x13a], al
setne cl
lea eax, [rcx + 1]
jmp 0x14002d445
cmp eax, 2
jne 0x14002d43e
cmp byte [rsp + 0x13a], 1
setne cl
lea eax, [rcx + 3]
jmp 0x14002d445
jbe 0x14002d464
mov eax, 5
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x4e8
ret
cmp dword [rsp + 0x24], 7
jae 0x14002d440
xor eax, eax
jmp 0x14002d445
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.14002cc9c
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x140]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14002d4a0
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 0x14002e388
Capabilities:
Copy file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x3f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401d4618]
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 0x14002e3c7
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14002e3d1
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 0x14002e476
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002e43b
mov r8b, 1
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140023770
cmp qword [rbx + 0x18], 8
jb 0x14002e410
mov rdx, qword [rbx]
jmp 0x14002e413
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x14002e41f
mov rcx, qword [rdi]
jmp 0x14002e422
mov rcx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14002e476
jmp 0x14002e43b
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.14002d720
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x3f0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002e9b8
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 [0x1401d4618]
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 0x14002e9fd
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14002ea07
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 0x14002ea5c
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.14002d8e8
lea rdx, [0x1401e3810]
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 0x14002ea8f
lea rcx, [rbp + 0x2f0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14002ea83
mov rbx, rax
mov r8, rbx
lea rdx, [rbp + 0x2f0]
lea rcx, [rsp + 0x38]
call fcn.140008bbc
nop
lea rax, [rsp + 0x38]
cmp r14, rax
je 0x14002eac9
xor r8d, r8d
mov dl, 1
mov rcx, r14
call fcn.14000867c
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.14000841c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.14000867c
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x610
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14002eba4
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.140010638
test al, al
jne 0x14002ebcb
xor al, al
jmp 0x14002ec20
cmp qword [rbx + 0x18], 8
jb 0x14002ebd7
mov rcx, qword [rbx]
jmp 0x14002ebda
mov rcx, rbx
lea rdx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14002ebc7
mov edx, edi
mov rcx, rsi
call fcn.140020570
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb r9, r9
and r9, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14002ec0e
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 0x14002ede0
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 [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov rbx, rdx
mov rdi, rcx
mov esi, 8
call fcn.140030e34
xor r14d, r14d
test al, al
jne 0x14002eeda
mov rcx, rbx
call fcn.140030e34
test al, al
jne 0x14002eeda
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.14003091c
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14003091c
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.140012674
nop
lea ecx, [rsi + 2]
test eax, eax
cmovne esi, ecx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.14000867c
or esi, 1
cmp qword [rbx + 0x18], 8
jb 0x14002eee9
mov rdx, qword [rbx]
jmp 0x14002eeec
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x14002eef8
mov rcx, qword [rdi]
jmp 0x14002eefb
mov rcx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14002ef85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002ef4c
mov r8b, 1
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140023770
cmp qword [rbx + 0x18], 8
jb 0x14002ef2d
mov rdx, qword [rbx]
jmp 0x14002ef30
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x14002ef3c
mov rcx, qword [rdi]
jmp 0x14002ef3f
mov rcx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14002ef85
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.14002d660
lea rdx, [0x1401e3810]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002efb0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x328]
sub rsp, 0x410
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x38], esi
mov rcx, qword [rcx + 0x30]
cmp rcx, 0xffffffffffffffff
jne 0x14002f023
lea r8, str.trying_to_read_from_a_file_thats_not_open
lea edx, [rsi + 0x15]
lea rcx, [rsp + 0x70]
call fcn.1400097cc
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r14d, 7
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
jmp 0x14002f07b
cmp dword [rsp + 0x34], 2
jne 0x14002f11d
movzx r8d, word [rsp + 0x30]
cmp r8w, 0xa
je 0x14002f11d
cmp r8w, 0xd
je 0x14002f0a3
mov eax, 0xfeff
cmp r8w, ax
je 0x14002f077
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140008974
mov rcx, qword [rdi + 0x30]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x34], esi
lea r9, [rsp + 0x34]
mov r8d, 2
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002f03a
jmp 0x14002f12c
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002f102
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14002f11d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.read_from_file_failed
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.1400162b4
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp word [rsp + 0x30], 0xa
je 0x14002f11d
mov rdx, 0xfffffffffffffffe
lea r8d, [rdx + 3]
mov rcx, rdi
call fcn.14002f30c
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jmp 0x14002f143
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x14002f172
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x10], rsi
cmp r14, 8
jb 0x14002f14a
mov rax, qword [rbx]
jmp 0x14002f14d
mov rax, rbx
mov word [rax], si
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14000841c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.14000867c
mov rax, rbx
jmp 0x14002f1a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.read_from_file_failed
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.1400162b4
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret