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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x38]
mov rbx, r8
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140039ef8
cmp dword [rsp + 0x34], 4
jne 0x140039ef8
mov eax, dword [rsp + 0x38]
mov dword [rbx], eax
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009bde0
add rsp, 0x50
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009bde0
add rsp, 0x50
pop rbx
ret

Function at 0x140039f10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, r8
mov dword [rbp - 0x30], 0xa
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003a08b
cmp dword [rbp - 0x2c], 1
jne 0x14003a08b
mov eax, dword [rbp - 0x30]
cmp rax, 0xb
jae 0x14003a0a7
mov byte [rbp + rax - 0x20], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x20]
mov r8, 0xffffffffffffffff
mov rdi, r8
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140039fa0
movabs rsi, 0x7fffffffffffffff
cmp rdi, rsi
ja 0x14003a0ad
mov qword [rbp - 0x38], 0xf
cmp rdi, 0x10
jae 0x140039fe5
mov qword [rbp - 0x40], rdi
mov r8, rdi
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x50]
call fcn.14009e510
mov byte [rbp + rdi - 0x50], 0
jmp 0x14003a036
mov rax, rdi
or rax, 0xf
cmp rax, rsi
ja 0x14003a000
mov rsi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rsi, rcx
mov rdx, rsi
add rdx, 1
cmovb rdx, r8
lea rcx, [rbp - 0x50]
call fcn.1400081d0
mov rbx, rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov r8, rdi
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.14009e510
mov byte [rbx + rdi], 0
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.140055b90
movzx ebx, al
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14003a07d
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a078
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0b3
call fcn.14009b94c
test bl, bl
je 0x14003a08b
mov eax, dword [rbp - 0x28]
mov dword [r14], eax
mov al, 1
jmp 0x14003a08d
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14009bde0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14009bf48
int3
call fcn.140008150
int3
call fcn.1400ad228
int3
Function at 0x140056d30
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140059730
push rbx
sub rsp, 0x150
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmova r8d, ebx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005977b
mov rax, 0xffffffffffffffff
jmp 0x1400597da
mov dword [rsp + 0x30], ebx
cmp dword [rsp + 0x138], ebx
jne 0x1400597d3
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x138]
call fcn.1400343a0
test rax, rax
je 0x1400597d3
mov qword [rsp + 0x20], rax
mov r9d, 0x65
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned___int64_
lea rcx, [rsp + 0x38]
call fcn.14005b490
lea rcx, [rsp + 0x38]
call fcn.14005b620
mov eax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14009bde0
add rsp, 0x150
pop rbx
ret

Function at 0x140056ea0
Capabilities:
Check os version
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
movzx esi, dl
mov rbx, rcx
test dl, dl
je 0x140056efa
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x140056efa
xor ecx, ecx
mov qword [rsp + 0x40], 0x18
mov dword [rsp + 0x54], edi
call fcn.140056f80
mov qword [rsp + 0x48], rax
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x50], 1
cmp qword [rbx + 0x18], 8
jb 0x140056f04
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov r9d, 2
mov edx, esi
mov dword [rsp + 0x30], 0
shl edx, 0x13
mov rcx, rbx
or edx, 3
mov dword [rsp + 0x28], 0x200
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009bde0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400576d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x150], edi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov r9, rcx
lea r8, [0x1400577a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140057777
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 4
lea r9d, [rdi + 0x1b]
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_thread_thread_win.cc
lea rdx, str.void___cdecl_crashpad::Thread::Start_void_
lea rcx, [rsp + 0x30]
call fcn.14005b5a0
nop
mov edi, 2
mov dword [rsp + 0x150], edi
lea rdx, str.Check_failed:_platform_thread_
mov rcx, rax
call fcn.140001300
mov rcx, rax
lea rdx, [0x14013f2b4]
call fcn.140001300
mov rcx, rax
lea rdx, [0x140147978]
call fcn.140001300
nop
test dil, 2
je 0x140057787
lea rcx, [rsp + 0x30]
call fcn.14005b8e0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret

Function at 0x140059530
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
xor r9d, r9d
lea r8, [rsp + 0x140]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400595c3
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0xf1
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::LoggingSeekFile_void____int64_int_
lea rcx, [rsp + 0x38]
call fcn.14005b5a0
nop
mov dword [rsp + 0x30], 4
lea rdx, [0x14014bfe8]
mov rcx, rax
call fcn.140001300
nop
lea rcx, [rsp + 0x38]
call fcn.14005b8e0
xor al, al
jmp 0x140059633
cmp qword [rsp + 0x140], 0
jne 0x14005962d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140059631
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0xfb
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_file_io_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingTruncateFile_void__
lea rcx, [rsp + 0x38]
call fcn.14005b5a0
nop
mov dword [rsp + 0x30], 1
lea rdx, [0x14014c000]
mov rcx, rax
call fcn.140001300
nop
lea rcx, [rsp + 0x38]
call fcn.14005b8e0
xor al, al
jmp 0x140059633
mov al, 1
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14009bde0
add rsp, 0x150
pop rbx
ret
Function at 0x140059730
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140059730
push rbx
sub rsp, 0x150
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmova r8d, ebx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005977b
mov rax, 0xffffffffffffffff
jmp 0x1400597da
mov dword [rsp + 0x30], ebx
cmp dword [rsp + 0x138], ebx
jne 0x1400597d3
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x138]
call fcn.1400343a0
test rax, rax
je 0x1400597d3
mov qword [rsp + 0x20], rax
mov r9d, 0x65
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned___int64_
lea rcx, [rsp + 0x38]
call fcn.14005b490
lea rcx, [rsp + 0x38]
call fcn.14005b620
mov eax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14009bde0
add rsp, 0x150
pop rbx
ret

Function at 0x140059920
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov ebp, 0xffffffff
mov qword [rsp + 0x20], r14
cmp r8, rbp
lea r9, [rsp + 0x138]
cmova edi, ebp
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140059a14
nop word [rax + rax]
mov dword [rsp + 0x30], ebp
cmp dword [rsp + 0x138], ebp
jne 0x1400599d8
lea r8, str.bytes_read___static_cast_DWORD___1_
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x138]
call fcn.1400343a0
test rax, rax
je 0x1400599d8
mov r9d, 0x7e
mov qword [rsp + 0x20], rax
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::ReadFile_void__void__unsigned___int64_
lea rcx, [rsp + 0x38]
call fcn.14005b490
lea rcx, [rsp + 0x38]
call fcn.14005b620
cmp dword [rsp + 0x138], 0
jne 0x140059a40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140059a40
lea r9, [rsp + 0x138]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140059980
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb rax, rax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14009bde0
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rsp + 0x138]
jmp 0x140059a22
Function at 0x14005b620
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x14018a048]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov rax, qword [rcx]
movsxd rcx, dword [rax + 4]
mov rax, qword [rcx + rdi + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x38], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x30]
call fcn.140002af0
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov dl, 0xa
mov rcx, rax
call r8
movzx ebx, al
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005b69c
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x14005b69c
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, bl
mov rcx, rdi
call fcn.14005c3c0
mov rcx, rdi
call fcn.14005c2c0
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.140009b70
mov rax, qword [0x14018deb0]
test rax, rax
je 0x14005b76a
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9, qword [rdi + 0xf0]
mov r8d, dword [rdi + 0xf8]
mov rdx, qword [rdi + 0xe8]
mov ecx, dword [rdi + 0xfc]
call rax
test al, al
je 0x14005b76a
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x14005b740
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b73b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005b8cf
call fcn.14009b94c
mov rcx, rdi
call fcn.1400044e0
nop
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009bde0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
mov eax, dword [0x14018a010]
test al, 4
je 0x14005b7c2
lea rbx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rbx, qword [rsp + 0x80]
mov ecx, 2
call fcn.1400ad600
mov r8, rbx
lea rdx, [0x14014c288]
mov rcx, rax
call fcn.140009ea0
mov ecx, 2
call fcn.1400ad600
mov rcx, rax
call fcn.1400ea9d8
mov eax, dword [0x14018a010]
test al, 2
je 0x14005b876
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14005caf0
cmp qword [rax + 0x18], 8
jb 0x14005b81a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14005b861
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b85c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005b8c9
call fcn.14009b94c
movdqa xmm0, xmmword [0x1401489d0]
movdqu xmmword [rsp + 0x60], xmm0
xor eax, eax
mov word [rsp + 0x50], ax
cmp dword [rdi + 0xfc], 4
jne 0x14005b882
int3
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x14005b740
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b73b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005b8cf
jmp 0x14005b73b
call fcn.1400ad228
int3
call fcn.1400ad228
int3
Function at 0x14009ced0
Capabilities:
Parse pe header

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

Function at 0x1400f52dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400f5064
Function at 0x1401075a4
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 0x1401075d4
xor eax, eax
jmp 0x140107697
mov rbp, rbx
cmp word [rax], si
je 0x1401075f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401075e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401075dc
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.1401031b4
movsxd r14, eax
test eax, eax
jne 0x140107637
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401075cd
mov rcx, r14
call fcn.1400fd450
mov rdi, rax
test rax, rax
jne 0x140107650
xor ecx, ecx
call fcn.1400fad60
jmp 0x14010762c
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.1401031b4
test eax, eax
jne 0x140107681
mov rcx, rdi
call fcn.1400fad60
jmp 0x14010768b
xor ecx, ecx
call fcn.1400fad60
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 0x1401076b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14010773b
mov rsi, rbx
cmp word [rax], bp
je 0x1401076fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401076e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401076e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400fd450
mov rdi, rax
test rax, rax
je 0x140107728
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009e510
mov rbp, rdi
xor ecx, ecx
call fcn.1400fad60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14010b50c
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.1400f9c24
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 0x14010b5ad
cmp ebx, dword [rsp + 0x30]
je 0x14010b5a6
test esi, esi
je 0x14010b5a6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14010b581
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14010b58e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14010b56b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14010b592
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14010b5af
mov eax, 1
jmp 0x14010b5af
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14010f774
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14010f78a
mov al, 1
jmp 0x14010f7ea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14010f79b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14010f7e8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140108a54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14010f7e8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14010f7e8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14010f7e8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14010f7ea
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401144e4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400db338
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14011456e
cmp byte [rbp - 0x21], r15b
je 0x140114569
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401145a4
call fcn.1400fc1a4
test eax, eax
jne 0x140114590
cmp byte [rbp - 0x21], r15b
je 0x140114588
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401145a4
cmp byte [rbp - 0x21], r15b
je 0x1401145a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400f0320
test eax, eax
jne 0x140114644
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400db338
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401145e3
cmp byte [rbp - 0x21], r15b
je 0x140114618
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140114618
call fcn.1400fc1a4
test eax, eax
jne 0x140114604
cmp byte [rbp - 0x21], r15b
je 0x1401145fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140114618
cmp byte [rbp - 0x21], r15b
je 0x140114615
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400f0320
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140114644
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140114647
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140114655
mov rcx, rdi
call fcn.1400fad60
cmp byte [rbp + 0x3f], r15b
je 0x140114664
mov rcx, qword [rbp + 0x27]
call fcn.1400fad60
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140118ed0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbx
sub rsp, 0x180
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140118eee
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140118f05
mov al, 1
add rsp, 0x180
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140119006
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140118f23
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14005cc60
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x265
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::CreateDirectoryIfNecessary_const_class_base::FilePath__
lea rcx, [rsp + 0x70]
call fcn.14005b5a0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.CreateDirectory
mov rcx, rax
call fcn.140001300
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140118fab
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400021e0
nop
lea rcx, [rsp + 0x70]
call fcn.14005b8e0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140118ffb
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140118ff6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140119016
call fcn.14009b94c
xor al, al
add rsp, 0x180
pop rbx
ret
mov rcx, rbx
add rsp, 0x180
pop rbx
jmp fcn.140119280
call fcn.1400ad228
int3