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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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.MapFileRegionToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x39
call fcn.14012aa00
xor ebx, ebx
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.140131050
mov rcx, rsi
call fcn.140052720
test al, al
je 0x1400535eb
test r15d, r15d
jne 0x140053617
mov ebp, 2
xor edi, edi
mov rcx, rsi
call fcn.140052730
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x140053572
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140053629
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140053566
mov qword [rsi + 0x40], rdi
call fcn.14012aa20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
inc rdi
cmp rdi, 2
jb 0x140053695
mov dword [rsp + 0x3c], 0
lea rdx, [0x14029d760]
mov rcx, r14
call fcn.14004c240
test al, al
je 0x140053644
mov rcx, rsi
call fcn.1400529b0
xor ebx, ebx
test rax, rax
jle 0x1400535eb
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
and ebp, 2
add ebp, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, ebp
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x140053695
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov bl, 1
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp r15d, 3
jne 0x14005369c
mov rcx, rsi
call fcn.1400532c0
mov ebx, eax
jmp 0x1400535eb
call fcn.14012aa20
mov rcx, qword [rsi + 0x40]
call fcn.14012dff0
mov qword [rsi + 0x40], 0
jmp 0x140053551
xor eax, eax
lea rdi, [rsp + 0x40]
mov qword [rdi], rax
lea r9, [rsp + 0x30]
mov qword [r9], rax
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r8, rdi
call fcn.140193bf0
mov rbx, qword [rdi]
test rbx, rbx
js 0x140053695
mov rcx, qword [r14 + 8]
movsxd rax, dword [rsp + 0x3c]
add rax, rcx
js 0x140053695
mov r8, rbx
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x1400535b6
xor ebx, ebx
jmp 0x1400535eb
cmp r15d, 2
jne 0x1400536b7
mov rbx, qword [r14 + 8]
mov rdi, rbx
shr rdi, 0x20
mov ebp, 4
jmp 0x140053509
cmp r15d, 1
jne 0x1400536c7
mov ebp, 4
jmp 0x140053507
xor ebp, ebp
jmp 0x140053507
Function at 0x140053fe0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
test rdx, rdx
je 0x14005408d
mov rdi, rdx
lea r14, [rsp + 0x40]
mov qword [r14], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov rbx, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0x400
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [r14]
cmp qword [rsi], rbx
je 0x14005408d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400540a9
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140054085
mov qword [rsi], rbx
call fcn.14012aa20
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14012aa20
mov rcx, qword [rsi]
call fcn.14012dff0
mov qword [rsi], 0
jmp 0x140054073
Function at 0x140054c70
Capabilities:
Create thread

Disassembly:
jmp 0x140054c70
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 [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.140142708
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, [0x140054fd0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140054d11
test rbp, rbp
je 0x140054d41
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140143020
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 0x140054d2a
mov ebp, eax
cmp eax, 0x5af
je 0x140054d2a
cmp ebp, 0xe
jne 0x140054d4c
mov rcx, r15
call fcn.1401f59c0
test r14, r14
je 0x140054cef
mov rcx, r14
call fcn.140142744
jmp 0x140054cef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140054cef
mov eax, dword [0x1402dd7e0]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140054dbb
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.1400afdf0
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 [0x1402dd7d8]
call fcn.140133140
cmp byte [rsi + 0x17], 0
jns 0x140054d32
mov rcx, qword [rsp + 0x38]
call fcn.140142744
jmp 0x140054d32
lea rcx, [0x1402dd7e0]
call fcn.140142860
cmp dword [0x1402dd7e0], 0xffffffff
jne 0x140054d6d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400b7f90
mov qword [0x1402dd7d8], rax
lea rcx, [0x1402dd7e0]
call fcn.1401428f8
jmp 0x140054d6d

Function at 0x140055490
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 0x1400554d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1402cf018]
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 0x140055543
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140055543
cmp dword [rsp + 0x38], 4
jne 0x140055543
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140143020
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140055560
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140142fb0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
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 0x140055613
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140055617
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140033750
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140143020
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400555f4
cmp eax, 2
jne 0x14005565c
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
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 0x140055663
lea rdx, [rsp + 0x40]
jmp 0x1400555ea
mov edi, 0x3f4
jmp 0x1400555f4
mov edi, 0xea
jmp 0x1400555f4

Function at 0x140055670
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1402cf018]
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.140143020
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x1400556d0
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.14015ded4
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 0x140055870
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx], 0
je 0x140055954
cmp dword [rsi + 8], 0
js 0x140055954
lea r15, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x140055976
mov ebp, dword [rsi + 0x20]
dec ebp
lea rdi, [rsp + 0x4c]
mov dword [rdi], ebp
lea r14, [rsi + 0x28]
mov eax, dword [rsi + 0x30]
mov rbx, qword [rsi + 0x28]
sub eax, ebx
add eax, 0xfffffffe
and eax, 0xfffffffe
lea r13, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r12, [rsi + 0x44]
mov edx, ebp
mov rcx, r15
call fcn.140054940
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x140055980
test eax, eax
jne 0x140055954
mov eax, dword [r13]
inc rax
and rax, 0xfffffffffffffffe
mov rcx, qword [r14]
mov word [rcx + rax], 0
mov dil, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140143020
mov eax, edi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x140055961
mov rax, qword [rax]
xor edi, edi
mov word [rax], di
mov rax, qword [rsi + 0x28]
mov word [rax], di
mov dword [rsi + 0x40], 0
jmp 0x140055934
mov ebp, 0xa
jmp 0x1400558b9
mov edx, dword [rsi + 0x40]
inc rdx
shr rdx, 1
mov rdi, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rdi
mov rcx, rax
sar rcx, 1
sub rdx, rcx
jb 0x1400559c0
lea r8, [rsp + 0x4a]
mov word [r8], 0
inc rdx
mov rcx, r14
call fcn.140055da0
mov rdi, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rdi
add eax, 0xfffffffe
and eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rbx, [rsp + 0x4c]
cmp dword [rbx], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rbx], edx
mov rcx, r15
call fcn.140054940
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x140055919
Function at 0x140055ac0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x1402cf018]
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 0x140055b9a
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 0x140055b91
mov edx, dword [rsp + 0x60]
dec edx
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x140055ba1
test edx, edx
js 0x140055ba1
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 0x140055ba7
jmp 0x140055ba1
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.140143020
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140055c60
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 8]
lea edx, [rax - 1]
mov dword [rcx + 8], edx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140055ce2
test eax, eax
jle 0x140055ce2
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
jne 0x140055ce2
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140143020
nop
add rsp, 0x60
pop rsi
ret
mov word [rsi + 0xc], 0
jmp 0x140055cce
Function at 0x14005bf00
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1402cf018]
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 0x14005bf46
mov rcx, qword [rsi]
lea r8, [rsp + 0x170]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14005bff4
mov rcx, rsi
call fcn.140051af0
movzx r8d, al
xor r8d, 5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005bf7a
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test eax, eax
je 0x14005c059
lea rcx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
mov edx, 0x3a
call fcn.14012aa30
test eax, eax
jle 0x14005c0cf
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x5e
mov r9d, 0xffffffff
call fcn.14004c600
lea rcx, [rsp + 0x40]
lea rdx, str.Scheduled_for_deletion:
mov r8d, 0x18
call fcn.140124730
mov rcx, rax
mov rdx, rsi
call fcn.14004cec0
mov rcx, rbx
call fcn.14004caa0
jmp 0x14005c0cf
mov ecx, 1
call fcn.14004c5c0
test al, al
je 0x14005c055
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x3f
mov r9d, 1
call fcn.1401944b0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14004cec0
lea rdx, str._does_not_exist.
mov r8d, 0x10
mov rcx, rax
call fcn.140124730
mov rcx, rdi
call fcn.140194530
xor esi, esi
jmp 0x14005c0d5
mov ecx, 2
call fcn.14004c5c0
test al, al
je 0x14005c0cf
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_delete_after_reboot_helper.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x4a
mov r9d, 2
call fcn.1401944b0
lea rcx, [rsp + 0x40]
lea rdx, str.Could_not_schedule
mov r8d, 0x13
call fcn.140124730
mov rcx, rax
mov rdx, rsi
call fcn.14004cec0
lea rdx, str._for_deletion.
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rax
call fcn.140124730
mov rcx, rbx
call fcn.140194530
test edi, edi
setne sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005cb20
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r15, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [rcx]
mov rbx, qword [rcx + 8]
cmp rbx, rdi
je 0x14005cb76
cmp byte [rbx - 1], 0
jns 0x14005cb5b
mov rcx, qword [rbx - 0x18]
call fcn.140142744
lea rsi, [rbx - 0x30]
cmp byte [rbx - 0x19], 0
jns 0x14005cb6e
mov rcx, qword [rbx - 0x30]
call fcn.140142744
mov rbx, rsi
cmp rsi, rdi
jne 0x14005cb4c
mov qword [r15 + 8], rdi
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rdi], xmm0
lea r8, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, rdi
mov rdx, 0xffffffff80000002
mov r9d, 1
call fcn.1400551a0
mov rdi, qword [rdi]
test rdi, rdi
je 0x14005cc5f
lea r14, [rsp + 0x5c]
mov dword [r14], 0
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov edx, 1
mov rcx, rbx
call fcn.14005d4f0
lea r9, [rsp + 0x3c]
mov dword [r9], 0xaaaaaaaa
mov rax, qword [rbx]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x14005cc66
cmp eax, 0xea
jne 0x14005cc9d
mov ebx, 0x8000ffff
cmp dword [rsp + 0x3c], 7
jne 0x14005ccab
mov edx, dword [rsp + 0x5c]
test dl, 1
jne 0x14005ccab
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
cmp rcx, rdx
jae 0x14005cc6d
sub rdx, rcx
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14005d4f0
mov rax, qword [rbx]
jmp 0x14005cc77
mov ebx, 0x80070002
jmp 0x14005ccbf
mov ebx, 0x80070002
jmp 0x14005ccab
jbe 0x14005cc77
add rdx, rax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
lea r9, [rsp + 0x3c]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14005cce7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005ccbf
mov qword [rsp + 0x48], rcx
call fcn.140142744
lea rcx, [rsp + 0x60]
call fcn.140055440
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov r8, r15
call fcn.14005c610
mov ebx, eax
jmp 0x14005ccab
Function at 0x14006d8d0
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 [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 0x918
jg 0x14006d910
cmp edi, 0x691
je 0x14006d929
cmp edi, 0x7d5
jne 0x14006d94d
lea rdi, [0x1402a24d0]
jmp 0x14006d939
cmp edi, 0x919
je 0x14006d932
cmp edi, 0xdd8
jne 0x14006d94d
lea rdi, [0x1402a24f0]
jmp 0x14006d939
lea rdi, [0x1402a24c0]
jmp 0x14006d939
lea rdi, [0x1402a24e0]
call fcn.140058430
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov edi, dword [rdi + rax*4]
mov rcx, qword [0x1402dd9f0]
test rcx, rcx
je 0x14006d981
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.140143020
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401a7000
add edi, dword [rax + 0x30]
mov r14, qword [0x1402daa18]
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 0x14006da5e
mov r15, rax
mov rcx, r14
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14006da5e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14006da5e
mov rbx, rax
mov rcx, r14
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and edi, 0xf
je 0x14006da1e
test eax, eax
je 0x14006da1e
mov ecx, eax
mov rax, rbx
add rax, rcx
dec edi
movzx ecx, word [rbx]
lea rbx, [rbx + rcx*2]
add rbx, 2
cmp rbx, rax
setb cl
add edi, 0xffffffff
jae 0x14006da1e
cmp rbx, rax
jb 0x14006da03
xor eax, eax
mov edx, 0
mov edi, 0
test cl, cl
je 0x14006da64
movzx r15d, word [rbx]
xor eax, eax
test r15, r15
je 0x14006da60
mov edx, 0
mov edi, 0
test rbx, rbx
je 0x14006da64
add rbx, 2
cmp r15w, 0xb
jae 0x14006da74
lea r14, [rsp + 0x20]
mov byte [r14 + 0x17], r15b
jmp 0x14006da9b
xor eax, eax
xor edx, edx
xor edi, edi
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rdi
jmp 0x14006d965
lea edi, [r15 + 8]
and edi, 0xfffffff8
lea rcx, [rdi + rdi]
call fcn.140142708
mov r14, rax
mov qword [rsp + 0x20], rax
bts rdi, 0x3f
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r15
lea r8, [r15 + r15]
mov rcx, r14
mov rdx, rbx
call fcn.140145a10
mov word [r14 + r15*2], 0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
jmp 0x14006da64
Function at 0x1400a5120
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400a5147
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400a5181
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400a51a0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140143020
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400a5260
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14004c5c0
test al, al
je 0x1400a5257
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 + 0x50]
mov r8d, 0x25f
mov r9d, 2
call fcn.1401944b0
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140124730
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140050840
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400a5231
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140124730
cmp byte [rsp + 0x4f], 0
jns 0x1400a524d
mov rcx, qword [rsp + 0x38]
call fcn.140142744
lea rcx, [rsp + 0x50]
call fcn.140194530
xor esi, esi
jmp 0x1400a5184