joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006350
Capabilities:
Delete file
Get common file path

Disassembly:
sub rsp, 0xa68
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rsp + 0xa50], rax
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x9d8
call fcn.1400306a0
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [rsp + 0x70], 0
jne 0x1400063b9
xor al, al
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.140012860
add rsp, 0xa68
ret
lea rax, [rsp + 0x70]
sub rax, 2
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400063c2
mov ecx, dword [0x140032cd0]
xor edx, edx
movups xmm0, xmmword [str.Free_Download_Managerupdates]
mov qword [rsp + 0x30], rdx
movups xmm1, xmmword [0x140032ca8]
mov dword [rsp + 0x38], 3
movups xmmword [rax], xmm0
mov dword [rsp + 0x54], edx
movups xmm0, xmmword [0x140032cb8]
mov qword [rsp + 0x58], rdx
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x140032cc8]
movsd qword [rax + 0x30], xmm0
mov dword [rax + 0x38], ecx
movzx ecx, word [0x140032cd4]
mov word [rax + 0x3c], cx
lea rax, [rsp + 0x70]
lea rcx, [0x140032a08]
mov qword [rsp + 0x40], rax
mov eax, 0x414
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x30]
mov word [rsp + 0x50], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
setne al
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.140012860
add rsp, 0xa68
ret
Function at 0x1400064d0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push rbx
mov eax, 0x4e70
call fcn.140012800
sub rsp, rax
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400065aa
cmp qword [rcx + 0x18], 7
jbe 0x140006509
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400065fe
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x140006525
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400065fe
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140010700
cmp qword [rsp + 0x38], 7
lea rdx, [rsp + 0x20]
mov rcx, rbx
cmova rdx, qword [rsp + 0x20]
cmp qword [rbx + 0x18], 7
jbe 0x14000655e
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rsp + 0x38]
test eax, eax
jne 0x1400065c5
cmp rdx, 7
jbe 0x1400065aa
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065a5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006648
call fcn.1400123c8
xor al, al
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.140012860
add rsp, 0x4e70
pop rbx
ret
cmp rdx, 7
jbe 0x1400065fe
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006648
call fcn.1400123c8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x4e20
call fcn.1400306a0
mov r8d, 0x2710
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp qword [rbx + 0x18], 7
jbe 0x14000662d
mov rbx, qword [rbx]
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
jmp 0x1400065ac
call fcn.14001955c
int3
Function at 0x14000c480
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x90], 0
mov rdi, rcx
mov sil, 1
jne 0x14000c557
mov rax, qword [rcx + 0x68]
sub rax, qword [rcx + 0x60]
sar rax, 5
sub eax, 1
movsxd rbp, eax
js 0x14000c4f9
mov rbx, rbp
shl rbx, 5
mov rcx, qword [rdi + 0x60]
add rcx, rbx
cmp qword [rcx + 0x18], 7
jbe 0x14000c4d3
mov rcx, qword [rcx]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edx, edx
mov ecx, eax
test ecx, ecx
movzx eax, sil
cmovne edx, eax
sub rbx, 0x20
sub rbp, 1
movzx esi, dl
jns 0x14000c4c2
mov rax, qword [rdi + 0x80]
sub rax, qword [rdi + 0x78]
sar rax, 5
sub eax, 1
movsxd rbp, eax
js 0x14000c557
mov rbx, rbp
shl rbx, 5
nop word [rax + rax]
mov rcx, qword [rdi + 0x78]
add rcx, rbx
cmp qword [rcx + 0x18], 7
jbe 0x14000c531
mov rcx, qword [rcx]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edx, edx
mov ecx, eax
test ecx, ecx
movzx eax, sil
cmovne edx, eax
sub rbx, 0x20
sub rbp, 1
movzx esi, dl
jns 0x14000c520
mov rbx, qword [rdi + 0x60]
mov rbp, qword [rdi + 0x68]
cmp rbx, rbp
je 0x14000c57d
mov rcx, rbx
call fcn.140005430
add rbx, 0x20
cmp rbx, rbp
jne 0x14000c564
mov rax, qword [rdi + 0x60]
mov qword [rdi + 0x68], rax
mov rbx, qword [rdi + 0x78]
mov rbp, qword [rdi + 0x80]
cmp rbx, rbp
je 0x14000c5ac
nop dword [rax]
mov rcx, rbx
call fcn.140005430
add rbx, 0x20
cmp rbx, rbp
jne 0x14000c590
mov rcx, qword [rdi + 0x78]
mov qword [rdi + 0x80], rcx
mov rbx, qword [rsp + 0x30]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c5d0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x68]
xor r12d, r12d
sub rsi, qword [rcx + 0x60]
mov r14, rcx
sar rsi, 5
sub esi, 1
js 0x14000c6e5
movsxd r15, esi
shl r15, 5
mov rcx, qword [r14 + 0x60]
add rcx, r15
cmp qword [rcx + 0x18], 7
jbe 0x14000c621
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000c6d8
mov rbp, qword [r14 + 0x68]
movsxd rbx, esi
shl rbx, 5
add rbx, qword [r14 + 0x60]
lea rdi, [rbx + 0x20]
cmp rdi, rbp
je 0x14000c6c6
cmp rbx, rdi
je 0x14000c6b9
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000c68b
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000c686
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c813
mov rcx, r8
call fcn.1400123c8
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
add rbx, 0x20
add rdi, 0x20
cmp rdi, rbp
jne 0x14000c647
mov rcx, qword [r14 + 0x68]
sub rcx, 0x20
call fcn.140005430
add qword [r14 + 0x68], 0xffffffffffffffe0
sub r15, 0x20
sub esi, 1
jns 0x14000c610
mov rsi, qword [r14 + 0x80]
sub rsi, qword [r14 + 0x78]
sar rsi, 5
sub esi, 1
js 0x14000c7f4
movsxd r15, esi
shl r15, 5
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r14 + 0x78]
add rcx, r15
cmp qword [rcx + 0x18], 7
jbe 0x14000c721
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14000c7e7
mov rbp, qword [r14 + 0x80]
movsxd rbx, esi
shl rbx, 5
add rbx, qword [r14 + 0x78]
lea rdi, [rbx + 0x20]
cmp rdi, rbp
je 0x14000c7cf
nop
cmp rbx, rdi
je 0x14000c7c2
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000c794
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000c78f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c813
mov rcx, r8
call fcn.1400123c8
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
add rbx, 0x20
add rdi, 0x20
cmp rdi, rbp
jne 0x14000c750
mov rcx, qword [r14 + 0x80]
sub rcx, 0x20
call fcn.140005430
add qword [r14 + 0x80], 0xffffffffffffffe0
sub r15, 0x20
sub esi, 1
jns 0x14000c710
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
call fcn.14001955c
int3
Function at 0x14000c820
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rcx
mov rsi, qword [rcx + 0x68]
sub rsi, qword [rcx + 0x60]
sar rsi, 5
sub esi, 1
js 0x14000c9c3
movsxd r14, esi
shl r14, 5
xor r12d, r12d
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
movsxd rdi, esi
shl rdi, 5
mov rcx, qword [r15 + 0x60]
add rcx, rdi
call fcn.140010ed0
test al, al
jne 0x14000c976
mov rdx, qword [r15 + 0x60]
add rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140010700
nop
cmp qword [rsp + 0x38], 0
je 0x14000c985
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
mov rcx, qword [r15 + 0x60]
add rcx, r14
cmp qword [rcx + 0x18], 7
jbe 0x14000c8cb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000c938
mov rcx, qword [r15 + 0x60]
add rcx, r14
lea rax, [rsp + 0x28]
cmp rcx, rax
je 0x14000c938
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova r9, qword [rsp + 0x28]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x14000c92e
mov rbp, rcx
cmp rax, 7
jbe 0x14000c911
mov rbp, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
mov rdx, r9
mov rcx, rbp
call fcn.140030000
mov word [rdi + rbp], r12w
jmp 0x14000c938
movzx r8d, bl
call fcn.140001a60
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14000c976
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c971
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c9e9
call fcn.1400123c8
sub r14, 0x20
sub esi, 1
jns 0x14000c870
jmp 0x14000c9c3
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14000c9c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c9be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c9e9
call fcn.1400123c8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140012860
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.14001955c
int3
Function at 0x14000d0a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x4e80
call fcn.140012800
sub rsp, rax
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rsp + 0x4e70], rax
mov qword [rsp + 0x38], rdx
mov rbx, rdx
mov r9d, dword [rcx + 0x48]
lea rdx, [rcx + 0x28]
or r9d, 0x20019
xor edi, edi
cmp qword [rdx + 0x18], 7
jbe 0x14000d0e8
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x20]
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d11d
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
jmp 0x14000d1c1
xor edx, edx
mov dword [rsp + 0x30], 0x4e20
mov r8d, 0x4e20
lea rcx, [rsp + 0x50]
call fcn.1400306a0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Inno_Setup:_App_Path
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x14000d180
test rax, rax
je 0x14000d1b4
movzx ecx, word [rsp + rax*2 + 0x4e]
cmp cx, 0x5c
je 0x14000d19f
cmp cx, 0x2f
jne 0x14000d1b4
lea rax, [rax*2 - 2]
cmp rax, 0x4e20
jae 0x14000d1e5
mov word [rsp + rax + 0x50], di
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002050
mov rax, rbx
mov rcx, qword [rsp + 0x4e70]
xor rcx, rsp
call fcn.140012860
mov rbx, qword [rsp + 0x4ea0]
add rsp, 0x4e80
pop rdi
ret
call fcn.140012990
int3

Function at 0x14000d1f0
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x40], 7
lea rdx, [rcx + 0x28]
jbe 0x14000d202
mov rdx, qword [rdx]
mov r8d, dword [rcx + 0x48]
xor r9d, r9d
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x14000d690
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rax, vtable.vmsWinOsVersion.0
mov qword [rcx], rax
xor edx, edx
mov r8d, 0x11c
add rcx, 8
call fcn.1400306a0
mov dword [rbx + 8], 0x11c
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbx + 8]
test rax, rax
je 0x14000d6f3
call rax
test eax, eax
sete al
jmp 0x14000d6fe
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
setne al
test al, al
je 0x14000d71a
cmp dword [rbx + 0xc], 0xa
jne 0x14000d721
cmp dword [rbx + 0x14], 0x55f0
jb 0x14000d721
mov dword [rbx + 0xc], 0xb
jmp 0x14000d721
mov dword [rbx + 0xc], 0
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e5a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, vtable.vmsWinOsVersion.0
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x28]
call fcn.1400306a0
mov dword [rsp + 0x28], 0x11c
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x28]
test rax, rax
je 0x14000e60f
call rax
test eax, eax
sete al
jmp 0x14000e61a
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
setne al
test al, al
je 0x14000e638
mov eax, dword [rsp + 0x2c]
cmp eax, 0xa
jne 0x14000e63a
cmp dword [rsp + 0x34], 0x55f0
jb 0x14000e63a
mov eax, 0xb
jmp 0x14000e63a
xor eax, eax
cmp eax, 6
setae al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140012860
add rsp, 0x168
ret
Function at 0x1400130f4
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140027324
xor eax, eax
jmp 0x1400273e7
mov rbp, rbx
cmp word [rax], si
je 0x140027349
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140027330
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002732c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140025bc0
movsxd r14, eax
test eax, eax
jne 0x140027387
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002731d
mov rcx, r14
call fcn.140021ff8
mov rdi, rax
test rax, rax
jne 0x1400273a0
xor ecx, ecx
call fcn.140021c30
jmp 0x14002737c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140025bc0
test eax, eax
jne 0x1400273d1
mov rcx, rdi
call fcn.140021c30
jmp 0x1400273db
xor ecx, ecx
call fcn.140021c30
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002a2c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140021858
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002a365
cmp ebx, dword [rsp + 0x30]
je 0x14002a35e
test esi, esi
je 0x14002a35e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002a339
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002a346
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002a323
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002a34a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002a367
mov eax, 1
jmp 0x14002a367
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002fcd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002fcf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002fcf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005ad0
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 0x140005af8
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 0x140005b1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005b20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005b79
test ecx, ecx
jle 0x140005b59
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 0x140005b79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005b79
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 0x140005ba0
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 0x140005bc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005bd8
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 0x140005bf4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005bf6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005c32
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 0x140005cce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005c6d
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 0x140005cae
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 0x140005cce
cmp rbx, rax
ja 0x140005c80
test rbx, rbx
je 0x140005cce
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 0x140006140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14008f0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000616d
xor eax, eax
jmp 0x1400062d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400061a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400061a7
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 0x1400062d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400062cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400061ea
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 0x140006215
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 0x1400062d1
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 0x140006284
sub eax, 1
je 0x140006284
cmp eax, 2
jne 0x1400062cc
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 0x1400062d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400062b2
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 0x1400062cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400062d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006e7f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret