joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052b40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r12d, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rbp, [rsp + 0x60]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x15a
call fcn.1400d95e0
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
mov eax, r12d
and eax, 1
neg eax
and eax, 3
test r12b, 2
mov edx, 1
cmove edx, eax
test r12b, 4
mov ecx, 4
cmovne edx, ecx
test r12b, 8
mov ebp, 2
cmove ebp, edx
test r12b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x140052d99
mov edx, r12d
and edx, 0x40
shl edx, 0x18
test r12b, r12b
cmovns ecx, edx
mov edx, r12d
rol edx, 0x1a
mov edi, r12d
shl edi, 0xb
and edi, 0x20000000
mov esi, r12d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r12d
shr ecx, 8
and ecx, 3
mov r8d, r12d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r12d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r12d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r12d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r12d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r12d
shl ecx, 8
mov ebx, ecx
and ebx, 0x2000000
or ebx, ebp
and ecx, 0x8000000
or ecx, ebx
cmp byte [r14 + 0x17], 0
jns 0x140052ca9
mov r14, qword [r14]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r15], rax
je 0x140052d05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jae 0x140052d80
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140052cfa
mov qword [r15], rbx
call fcn.1400d9600
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r15]
inc rbx
cmp rbx, 2
jb 0x140052d5b
shr edi, 0xa
mov dword [r15 + 0x24], 0
mov byte [r15 + 0x29], dil
test r12b, 4
jne 0x140052d6e
test r12b, 0xa
je 0x140052d2e
mov byte [r15 + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.1400e5c10
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401013e0
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052a10
mov dword [r15 + 0x24], eax
jmp 0x140052d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
jmp 0x140052d2e
call fcn.1400d9600
mov rcx, qword [r15]
call fcn.1400e0e60
mov qword [r15], 0
jmp 0x140052ce6
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x140052d2e
Function at 0x140052ea0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140052ee8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140052ef1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140052ed8
mov qword [rdi], rsi
call fcn.1400d9600
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d9600
mov rcx, qword [rdi]
call fcn.1400e0e60
mov qword [rdi], 0
jmp 0x140052ec6
Function at 0x140053d00
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r12, rdx
mov r14, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 0x28
call fcn.140100528
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], 0
test r12, r12
je 0x140053dba
lea r15, [rsp + 0x38]
mov qword [r15], 0xffffffffffffffff
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rbx
mov rsi, rax
call rbx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0x400
mov rcx, rax
mov rdx, r12
mov r8, rsi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rsi, qword [r15]
cmp qword [rdi], rsi
je 0x140053dba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140053ddb
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140053db2
mov qword [rdi], rsi
call fcn.1400d9600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [r14], rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401013e0
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400d9600
mov rcx, qword [rdi]
call fcn.1400e0e60
mov qword [rdi], 0
jmp 0x140053da0
Function at 0x1400544d0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.140100528
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x1400548f0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140054571
test rbp, rbp
je 0x14005459c
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14005458a
mov ebp, eax
cmp eax, 0x5af
je 0x14005458a
cmp ebp, 0xe
jne 0x1400545a7
mov rcx, r15
call fcn.140179d30
mov rcx, r14
call fcn.140100564
jmp 0x14005454f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005454f
mov eax, dword [0x14021b388]
mov ecx, dword [0x140216fcc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140054616
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.14004d260
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x14021b380]
call fcn.1400ed500
cmp byte [rsi + 0x17], 0
jns 0x140054592
mov rcx, qword [rsp + 0x38]
call fcn.140100564
jmp 0x140054592
lea rcx, [0x14021b388]
call fcn.140100680
cmp dword [0x14021b388], 0xffffffff
jne 0x1400545c8
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14007d7a0
mov qword [0x14021b380], rax
lea rcx, [0x14021b388]
call fcn.140100718
jmp 0x1400545c8

Function at 0x140054ed0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140055240
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400552b3
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400552b3
cmp dword [rsp + 0x38], 4
jne 0x1400552b3
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400552d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add rsp, 0x38
ret

Function at 0x140055300
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140101370
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140103d70
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], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400553b3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400553b7
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.1400d5f20
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140055394
cmp eax, 2
jne 0x1400553fc
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140103d70
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x140055403
lea rdx, [rsp + 0x40]
jmp 0x14005538a
mov edi, 0x3f4
jmp 0x140055394
mov edi, 0xea
jmp 0x140055394

Function at 0x140055410
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140055470
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14011bf14
add eax, eax
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140055a50
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x70], rax
or r9d, 0x20019
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140055b2a
lea rdi, [rsp + 0x60]
mov dword [rdi], 0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x58], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140055b21
mov edx, dword [rsp + 0x60]
dec edx
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140055b31
test edx, edx
js 0x140055b31
lea r9, [rsp + 0x6c]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
lea r8, [rsi + 0xc]
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140055b37
jmp 0x140055b31
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi], 0
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401013e0
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140055bf0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 8]
lea edx, [rax - 1]
mov dword [rcx + 8], edx
test eax, eax
jle 0x140055c5e
mov rcx, qword [rsi]
test rcx, rcx
je 0x140055c5e
lea r9, [rsp + 0x54]
mov dword [r9], 0x104
movabs r8, 0xaaaaaaaaaaaaaaaa
lea rax, [rsp + 0x48]
mov qword [rax], r8
lea r8, [rsi + 0xc]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140055c64
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401013e0
nop
add rsp, 0x60
pop rsi
ret
Function at 0x14005cfe0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x198], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
movaps xmmword [rsp + 0x170], xmm0
mov dword [rsp + 0x190], 0
cmp byte [rcx + 0x17], 0
jns 0x14005d026
mov rcx, qword [rsi]
lea r8, [rsp + 0x170]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14005d0d4
mov rcx, rsi
call fcn.140051350
movzx r8d, al
xor r8d, 5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005d05a
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test eax, eax
je 0x14005d139
lea rcx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
mov edx, 0x3a
call fcn.1400d9640
test eax, eax
jle 0x14005d1af
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x5e
mov r9d, 0xffffffff
call fcn.14004a520
lea rcx, [rsp + 0x38]
lea rdx, str.Scheduled_for_deletion:
mov r8d, 0x18
call fcn.1400cf4f0
mov rcx, rax
mov rdx, rsi
call fcn.14004b410
mov rcx, rbx
call fcn.14004a9c0
jmp 0x14005d1af
mov ecx, 1
call fcn.1400d9610
test al, al
je 0x14005d135
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x3f
mov r9d, 1
call fcn.140158e40
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.14004b410
lea rdx, str._does_not_exist.
mov r8d, 0x10
mov rcx, rax
call fcn.1400cf4f0
mov rcx, rdi
call fcn.140158f30
xor esi, esi
jmp 0x14005d1b5
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x14005d1af
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x4a
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x38]
lea rdx, str.Could_not_schedule
mov r8d, 0x13
call fcn.1400cf4f0
mov rcx, rax
mov rdx, rsi
call fcn.14004b410
lea rdx, str._for_deletion.
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rax
call fcn.1400cf4f0
mov rcx, rbx
call fcn.140158f30
test edi, edi
setne sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140061910
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x238], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call fcn.14006d5f0
test al, al
je 0x140061a3c
mov rcx, rsi
call fcn.140061a70
test al, al
je 0x14006197c
call fcn.1400585f0
mov rax, qword [rax + 8]
mov r8, qword [rax + 0x10]
mov rcx, rdi
mov rdx, rsi
xor r9d, r9d
call fcn.140064f00
test al, al
jne 0x140061a3c
lea rbx, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rbx
mov dl, 0xaa
call fcn.140103d70
lea rdx, [rsp + 0x2c]
mov dword [rdx], 0x100
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400619ff
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x1400619ff
mov rcx, rsi
call fcn.140031930
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.140031ab0
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400d60e0
call fcn.1400585f0
mov rax, qword [rax + 8]
mov r8, qword [rax + 0x10]
mov rcx, rdi
mov rdx, rsi
xor r9d, r9d
call fcn.140064f00
test al, al
jne 0x140061a3c
cmp byte [rsi + 0x17], 0
jns 0x140061a5a
mov rax, qword [rsi]
mov word [rax], 0
mov qword [rsi + 8], 0
call fcn.1400585f0
mov rax, qword [rax + 8]
mov r8, qword [rax + 0x10]
mov rcx, rdi
mov rdx, rsi
xor r9d, r9d
call fcn.140064f00
test al, al
jne 0x140061a3c
mov rcx, rsi
call fcn.140061a70
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
mov word [rsi], 0
mov byte [rsi + 0x17], 0
jmp 0x140061a15

Function at 0x140061d30
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.140103d70
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edi, eax
mov ebx, dword [rbx]
test eax, eax
je 0x140061db9
test ebx, ebx
je 0x140061db9
mov rcx, rsi
mov rdx, rbx
call fcn.140031930
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.140031ab0
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400d60e0
test ebx, ebx
setne al
test edi, edi
setne bl
and bl, al
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x14006de00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 0x918
jg 0x14006de40
cmp edi, 0x691
je 0x14006de59
cmp edi, 0x7d5
jne 0x14006de7d
lea rdi, [0x1401ec440]
jmp 0x14006de69
cmp edi, 0x919
je 0x14006de62
cmp edi, 0xdd8
jne 0x14006de7d
lea rdi, [0x1401ec470]
jmp 0x14006de69
lea rdi, [0x1401ec450]
jmp 0x14006de69
lea rdi, [0x1401ec460]
call fcn.1400585f0
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov edi, dword [rdi + rax*4]
mov rcx, qword [0x14021b498]
test rcx, rcx
je 0x14006deb1
mov rax, qword [rcx]
mov rdx, rsi
mov r8d, edi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140168090
add edi, dword [rax + 0x30]
mov r14, qword [0x140216fe8]
mov eax, edi
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14006df91
mov r15, rax
mov rcx, r14
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14006df91
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14006df91
mov rbx, rax
mov rcx, r14
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
je 0x14006df4e
and edi, 0xf
je 0x14006df4e
mov ecx, eax
mov rax, rbx
add rax, rcx
dec edi
movzx ecx, word [rbx]
lea rbx, [rbx + rcx*2]
add rbx, 2
add edi, 0xffffffff
setb dl
cmp rbx, rax
setb cl
jae 0x14006df4e
test dl, dl
jne 0x14006df31
xor eax, eax
mov edx, 0
mov edi, 0
test cl, cl
je 0x14006df97
xor eax, eax
test rbx, rbx
je 0x14006df93
movzx ecx, word [rbx]
mov edx, 0
mov edi, 0
test cx, cx
je 0x14006df97
movzx r14d, cx
add rbx, 2
cmp r14w, 0xb
jae 0x14006dfa7
lea rdi, [rsp + 0x20]
mov byte [rdi + 0x17], r14b
jmp 0x14006dfcf
xor eax, eax
xor edx, edx
xor edi, edi
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rdi
jmp 0x14006de95
lea r15d, [r14 + 8]
and r15d, 0xfffffff8
lea rcx, [r15 + r15]
call fcn.140100528
mov rdi, rax
mov qword [rsp + 0x20], rax
bts r15, 0x3f
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
lea r8, [r14 + r14]
mov rcx, rdi
mov rdx, rbx
call fcn.140103960
mov word [rdi + r14*2], 0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
jmp 0x14006df97
Function at 0x140070aa0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140070ac7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140070b01
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140070b20
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401013e0
mov rcx, rsi
add rsp, 0x1a8
pop rdi
pop rsi
jmp fcn.140070be0
mov sil, 1
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x140070bd7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x25e
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400cf4f0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140070bb1
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
cmp byte [rsp + 0x57], 0
jns 0x140070bcd
mov rcx, qword [rsp + 0x40]
call fcn.140100564
lea rcx, [rsp + 0x58]
call fcn.140158f30
xor esi, esi
jmp 0x140070b04
Function at 0x140070be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp byte [rcx + 0x17], 0
jns 0x140070c07
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140070c39
mov dil, 1
test al, 0x10
je 0x140070cf5
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x1b8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x140070db8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x68]
mov r8d, 0x249
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x78]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400cf4f0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x40]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140070cca
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
cmp byte [rsp + 0x67], 0
jns 0x140070ce6
mov rcx, qword [rsp + 0x50]
call fcn.140100564
lea rcx, [rsp + 0x68]
call fcn.140158f30
jmp 0x140070db8
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x140070db8
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x68]
mov r8d, 0x24d
mov r9d, 2
call fcn.14004a520
lea rcx, [rsp + 0x78]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400cf4f0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140070d7d
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400cf4f0
cmp byte [rsp + 0x67], 0
jns 0x140070dae
mov rcx, qword [rsp + 0x50]
call fcn.140100564
lea rcx, [rsp + 0x68]
call fcn.14004a9c0
xor edi, edi
jmp 0x140070c1d