joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029880
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.140030ac0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140029a08
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400f2228]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140029a3b
lea rdx, [0x1400f2278]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029a2a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x140102e80]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x1400299a2
test r12d, r12d
js 0x140029a31
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140061abc
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x140029a28
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.140019af0
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14002997b
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140029570
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400299c9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140029a08
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x140029a00
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x140029a28
cmp byte [rdi + 0x17], 0
jns 0x1400299f4
mov rcx, qword [rdi]
call fcn.140061af8
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x1400299e1
mov rcx, rsi
call fcn.140061af8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140062e50
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
xor ebx, ebx
jmp 0x14002992f
lea rcx, [rsp + 0x20]
call fcn.140099840
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002992c
Function at 0x14002cc40
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140098660
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002cccb
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002ce30
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002ccb8
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14007c2e8
test eax, eax
je 0x14002cdc5
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002cd22
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002ce3e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002cd0f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14007c2e8
test eax, eax
je 0x14002cdf7
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002cd75
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002ce4c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002cd66
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14007c2e8
test eax, eax
je 0x14002cd96
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140062e50
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002cda7
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002cd77
jb 0x14002ce5a
test al, al
jns 0x14002cdbb
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x14002cd75
jmp 0x14002cd77
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002cdd6
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002cd77
jb 0x14002ce5a
mov rcx, rsi
test al, al
jns 0x14002cde9
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002cccb
jmp 0x14002cd77
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002ce08
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002cd77
jb 0x14002ce5a
mov rcx, rsi
test al, al
jns 0x14002ce1f
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002cd22
jmp 0x14002cd77
dec r14
jne 0x14002cc9f
jmp 0x14002cccb
dec r14
jne 0x14002ccf6
jmp 0x14002cd22
dec r14
jne 0x14002cd4d
jmp 0x14002cd75
ud2
Function at 0x14002ee10
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140120228]
mov ecx, dword [0x14011ccc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002ee70
lea rsi, [0x140120220]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140062e50
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140120228]
call fcn.140061b3c
cmp dword [0x140120228], 0xffffffff
jne 0x14002ee4c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140098660
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140061abc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140120270]
mov ecx, dword [0x14011ccc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002ef47
lea rcx, [0x140120270]
call fcn.140061b3c
cmp dword [0x140120270], 0xffffffff
jne 0x14002ef47
xorps xmm0, xmm0
movups xmmword [0x140120260], xmm0
movups xmmword [0x140120250], xmm0
movups xmmword [0x140120240], xmm0
lea rcx, [0x140120240]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140120270]
call fcn.140061bf0
lea r8, [0x140120240]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002f050
mov qword [0x140120220], rsi
lea rcx, [0x140120228]
call fcn.140061bf0
jmp 0x14002ee4c

Function at 0x14002efa0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140120270]
mov ecx, dword [0x14011ccc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002f00b
lea rcx, [0x140120270]
call fcn.140061b3c
cmp dword [0x140120270], 0xffffffff
jne 0x14002f00b
xorps xmm0, xmm0
movups xmmword [0x140120260], xmm0
movups xmmword [0x140120250], xmm0
movups xmmword [0x140120240], xmm0
lea rcx, [0x140120240]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140120270]
call fcn.140061bf0
movzx eax, word [0x140120240]
cmp eax, 9
jne 0x14002f021
mov eax, 1
add rsp, 0x28
ret
test eax, eax
je 0x14002f01c
cmp eax, 6
jne 0x14002f031
mov eax, 2
jmp 0x14002f01c
cmp eax, 0xc
jne 0x14002f03d
mov eax, 3
jmp 0x14002f01c
mov eax, 4
jmp 0x14002f01c
Function at 0x1400302c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1400eef60]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.140051a40
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14002fc00
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140030531
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x1400304fb
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140030423
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x140030479
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400304d0
mov rax, r14
inc rax
cmp rax, 2
jb 0x14003046e
mov qword [rsi], r14
call fcn.140051a60
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400304e9
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14003051d
test bl, 0xa
jne 0x14003050d
bt ebx, 0x15
jb 0x140030513
lea rcx, [rsp + 0x60]
call fcn.14002fc80
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140062e50
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140051a60
mov rcx, qword [rsi]
call fcn.140051a70
mov qword [rsi], 0
jmp 0x14003045a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400301c0
mov dword [rsi + 0x24], eax
jmp 0x1400304a5
bt ebx, 0x15
jb 0x14003054d
or r8d, 0x20000000
jmp 0x1400303a1
mov byte [rsi + 0x28], 1
jmp 0x14003049f
mov rcx, rdi
call fcn.1400b3d90
jmp 0x1400304a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14003049f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400b77d0
jmp 0x1400304a5
int3
Function at 0x140030660
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140030080
mov qword [rsi], 0
test rax, rax
je 0x1400306b3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400306e7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400306ab
mov qword [rsi], rbx
call fcn.140051a60
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140028740
lea rcx, [rsi + 0x20]
call fcn.140040590
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140051a60
mov rcx, qword [rsi]
call fcn.140051a70
mov qword [rsi], 0
jmp 0x140030699
Function at 0x140039290
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400eef60]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14003940c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140120b00]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.140080fac
mov rcx, rbx
call fcn.140080b58
sub r14, rax
lea rdx, [0x1400efb7a]
mov rcx, rbx
mov r8, r14
call fcn.140080fac
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140098660
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003936c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140080ff4
test eax, eax
je 0x140039430
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400393a7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140080ff4
test eax, eax
je 0x140039430
xor eax, eax
mov byte [0x1401206f9], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400fa7d4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039437
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140102e80]
test eax, eax
je 0x140039437
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140120d00], al
mov byte [0x1401206f8], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140062e50
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400393a9
xor eax, eax
jmp 0x1400393ff
Function at 0x140039620
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140039654
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003974b
bt ebx, 8
jae 0x140039670
mov eax, ebx
and eax, 0x200
jne 0x14003974b
cmp edi, 2
lea rax, [0x140120700]
lea rcx, [0x140120900]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003974b
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14003974b
bt ebx, 8
jb 0x14003974b
shr ebx, 9
and ebx, 1
or bl, byte [0x140120d00]
je 0x14003974b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14003976a
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x140039734
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14007c2e8
test eax, eax
je 0x14003976f
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140039714
cmp dword [rsp + 0x2c], 0
jne 0x1400397ea
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140062e50
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x1400396f7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14003977d
test ecx, ecx
jne 0x140039734
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400397a9
cmp dword [rsp + 0x2c], 2
jne 0x1400397ba
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x1400397ba
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x1400397d3
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1400397c0
jmp 0x1400397d6
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14003973b
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400397f6
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x14003982c
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140080b58
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.140024910
jmp 0x14003974b
ud2
Function at 0x14003a3b0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140062df0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400eef60]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140027850
test rsi, rsi
jne 0x14003a45b
cmp byte [rsp + 0x47], 0
js 0x14003a418
lea rcx, [rsp + 0x30]
jmp 0x14003a41d
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
cmp byte [rsp + 0x47], 0
jns 0x14003a43e
mov rcx, qword [rsp + 0x30]
call fcn.140061af8
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140062e50
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140098660
cmp byte [rsp + 0x47], 0
jns 0x14003a47c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14003a42d
cmp eax, 0x7fff
jae 0x14003a4ad
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.1400b4e60
jmp 0x14003a42d
int3

Function at 0x14003ac20
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14003ac47
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003ac81
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003aca0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140062e50
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14003ad80
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140062e50
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140030ca0
test al, al
je 0x14003ad6b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x265
mov r9d, 2
call fcn.1400c0b60
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140045fd0
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x14003ad03
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
test rax, rax
js 0x14003ad72
sete al
test rsi, rsi
setne cl
or cl, al
je 0x14003ad72
lea rsi, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14004ebb0
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x14003ad45
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140045fd0
cmp byte [rsp + 0x57], 0
jns 0x14003ad61
mov rcx, qword [rsp + 0x40]
call fcn.140061af8
lea rcx, [rsp + 0x58]
call fcn.1400c0bd0
xor esi, esi
jmp 0x14003ac84
ud2
Function at 0x14003ad80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x14003ada7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003ae4d
mov dil, 1
test al, 0x10
je 0x14003add9
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140062e50
mov eax, edi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140030ca0
test al, al
je 0x14003ae46
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.1400bfd90
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140045fd0
mov rcx, rax
mov rdx, rsi
call fcn.1400b5ea0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140045fd0
mov rcx, rdi
call fcn.1400c01c0
xor edi, edi
jmp 0x14003adbd
mov ecx, 2
call fcn.140030ca0
test al, al
je 0x14003ae46
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.1400c0b60
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140045fd0
mov rcx, rax
mov rdx, rsi
call fcn.1400b5ea0
mov rcx, rdi
call fcn.1400c0bd0
jmp 0x14003ae46
Function at 0x14003e940
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400eef60]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
jne 0x14003e9e4
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14003e990
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140062e50
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.140098660
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14003e987
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.1400ccd80
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14003e987

Function at 0x14003f5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003f658
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14003f642
cmp dword [rsp + 0x38], 4
jne 0x14003f642
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140062e50
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14003f642
Function at 0x14003f660
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140062df0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140098660
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003f713
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003f717
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140024b00
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140062e50
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14003f6f4
mov edi, 0x3f4
cmp eax, 2
jne 0x14003f6f4
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140098660
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14003f6f4
lea rdx, [rsp + 0x40]
jmp 0x14003f6ea