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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx], 0
je 0x1400f88bf
cmp dword [rsi + 8], 0xffffffff
je 0x1400f88bf
lea rdi, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400f8917
mov ebp, dword [rsi + 0x20]
dec ebp
lea rbx, [rsp + 0x44]
mov dword [rbx], ebp
mov eax, dword [rsi + 0x30]
mov r12, qword [rsi + 0x28]
sub eax, r12d
and eax, 0xfffffffe
add eax, 0xfffffffe
lea r14, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r15, [rsi + 0x44]
mov edx, ebp
mov rcx, rdi
call fcn.1400f6fd0
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x1400f8921
test eax, eax
jne 0x1400f88bf
mov eax, dword [rsi + 0x40]
inc rax
shr rax, 1
mov rcx, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x30]
sub rdx, rcx
sar rdx, 1
cmp rdx, rax
jbe 0x1400f88eb
mov word [rcx + rax*2], 0
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400f88cc
mov rax, qword [rax]
mov word [rax], 0
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
je 0x1400f88eb
mov word [rax], 0
mov dword [rsi + 0x40], 0
xor esi, esi
jmp 0x1400f88a1
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x587
call fcn.140280b90
mov ebp, 0xa
jmp 0x1400f8817
mov edx, dword [rsi + 0x40]
inc rdx
shr rdx, 1
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
mov rcx, rax
sar rcx, 1
sub rdx, rcx
jb 0x1400f8962
lea rcx, [rsi + 0x28]
lea r8, [rsp + 0x42]
mov word [r8], 0
inc rdx
call fcn.1400f8c80
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
and eax, 0xfffffffe
add eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rbx, [rsp + 0x44]
cmp dword [rbx], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rbx], edx
mov rcx, rdi
call fcn.1400f6fd0
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1400f8878

Function at 0x1400f8a30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
je 0x1400f8a3d
dec eax
mov dword [rcx + 8], eax
jmp fcn.1400f87d0
Function at 0x1400f8a70
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x140418038]
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 0x1400f8b4e
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 0x1400f8b45
mov edx, dword [rsp + 0x60]
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400f8b55
test al, al
jne 0x1400f8b55
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x6c]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
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 0x1400f8b5b
jmp 0x1400f8b55
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.140242430
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400f8bf0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, dword [rcx + 8]
cmp edx, 0xffffffff
je 0x1400f8c66
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400f8c66
test al, al
jne 0x1400f8c66
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x54]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r10, [rsp + 0x48]
mov qword [r10], rax
mov qword [rsp + 0x38], r10
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400f8c6c
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140242430
nop
add rsp, 0x60
pop rsi
ret
Function at 0x1400fb3f0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx]
lea r14, [rsi + 1]
cmp r14, 2
jb 0x1400fb51b
mov rdi, rcx
cmp dword [rcx + 8], 1
jne 0x1400fb51f
mov qword [rdi], 0
call fcn.1401de850
test rsi, rsi
je 0x1400fb44f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1401de850
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x38]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 5
mov rcx, rax
mov rdx, rsi
mov r8, rax
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, eax
test eax, eax
je 0x1400fb4d0
mov r15, qword [rsp + 0x38]
cmp qword [rdi], r15
je 0x1400fb4c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400fb505
lea rax, [r15 + 1]
cmp rax, 2
jb 0x1400fb4c1
mov qword [rdi], r15
call fcn.1401de850
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 8], 0
test ebx, ebx
setne dil
cmp r14, 2
jb 0x1400fb4e9
call fcn.1401de850
mov rcx, rsi
call fcn.1401f05b0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401de850
mov rcx, qword [rdi]
call fcn.1401f05b0
mov qword [rdi], 0
jmp 0x1400fb4af
xor edi, edi
jmp 0x1400fb4e9
int3
Function at 0x1400fd790
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1403a7250]
mov qword [rcx], rax
add rcx, 8
call fcn.1401cef50
lea rcx, [rsi + 0x10]
call fcn.1401cef50
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.1401cef50
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
mov qword [rsi + 0xc0], rbx
movups xmmword [rsi + 0xc8], xmm6
movups xmmword [rsi + 0xd8], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [0x1403c6d7c]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.14014f4c0
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.1400eeb90
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.1400eeb90
lea rcx, [rsi + 0x330]
xor edx, edx
call fcn.1400eeb90
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
mov dword [rsi + 0x360], ebp
movups xmmword [rsi + 0x368], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
mov byte [rsi + 0x398], bl
mov dword [rsi + 0x39c], edi
mov byte [rsi + 0x3a0], bl
movups xmmword [rsi + 0x3a8], xmm6
movups xmmword [rsi + 0x3b8], xmm6
call fcn.140098280
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.1400fd9c0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400fd9ab
call fcn.1400fc450
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400fc500
mov qword [0x14042ecf0], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1402bbc90.0]
jmp 0x1400fd979
Function at 0x1400ff510
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400ff540
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400ff54e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400e4670
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400ff564
mov rdi, rdx
jmp 0x1400ff525
jae 0x1400ff651
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400ff571
cvtsi2ss xmm0, rax
jmp 0x1400ff586
mov rcx, rdx
call fcn.1401d9c40
mov rdi, rax
jmp 0x1400ff525
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.14027c65c
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x140393738]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400ff639
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400ff639
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400ff641
mov rcx, rdx
call fcn.1401d9c40
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1400ff52e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140109920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8d, edx
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 0x921
jg 0x140109963
cmp r8d, 0x692
je 0x14010997e
cmp r8d, 0x7da
jne 0x1401099a3
lea rdi, [0x1403b8d40]
jmp 0x14010998e
cmp r8d, 0x922
je 0x140109987
cmp r8d, 0xdf0
jne 0x1401099a3
lea rdi, [0x1403b8d60]
jmp 0x14010998e
lea rdi, [0x1403b8d30]
jmp 0x14010998e
lea rdi, [0x1403b8d50]
call fcn.1401005c0
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov r8d, dword [rdi + rax*4]
mov rcx, qword [0x14042eec8]
test rcx, rcx
je 0x1401099db
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, rsi
call qword [case.0x1402bbc90.0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
movsxd r15, r8d
call fcn.1402c4920
add r15, qword [rax + 0x30]
mov rax, r15
shr rax, 0x20
jne 0x140109ae6
mov rbx, qword [0x14042a098]
mov eax, r15d
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1401099bf
mov r14, rax
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1401099bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1401099bf
mov rdi, rax
mov rcx, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and r15d, 0xf
je 0x140109a93
test eax, eax
je 0x140109a93
mov ecx, eax
mov rax, rdi
add rax, rcx
dec r15d
movzx ecx, word [rdi]
lea rdi, [rdi + rcx*2]
add rdi, 2
cmp rdi, rax
setb cl
add r15d, 0xffffffff
jae 0x140109a93
cmp rdi, rax
jb 0x140109a77
test cl, cl
je 0x1401099bf
movzx r8d, word [rdi]
test r8, r8
je 0x1401099bf
test rdi, rdi
je 0x1401099bf
add rdi, 2
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400a9bd0
cmp byte [rsi + 0x17], 0
jns 0x140109ad0
mov rcx, qword [rsi]
call fcn.140240d14
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x1401099bf
int3
Function at 0x14010aa80
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.140244560
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
sete al
mov edx, dword [rbx]
test rdx, rdx
sete bl
or bl, al
jne 0x14010ab23
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14010ab43
cmp edx, 0xb
jb 0x14010aafc
cmp rax, rdx
cmova rdx, rax
or rdx, 7
mov rcx, rsi
call fcn.1400c8fe0
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.1400c9700
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400c9200
xor bl, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140242430
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0x7fffffffffffffff
and rax, qword [rsi + 0x10]
dec rax
cmp rax, rdx
jae 0x14010aafc
mov rcx, qword [rsi + 8]
cmp rcx, rdx
cmova rdx, rcx
mov rcx, rdx
or rcx, 7
cmp rdx, 0xb
mov edx, 0xa
cmovae rdx, rcx
cmp rdx, rax
jne 0x14010aaf4
jmp 0x14010aafc
Function at 0x140112370
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1401123a2
call fcn.1401de850
cmp qword [rsi + 8], r14
je 0x1401123d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1401123ef
cmp r15, 2
jb 0x1401123cc
mov qword [rsi + 8], r14
call fcn.1401de850
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140112407
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401de850
mov rcx, qword [rsi + 8]
call fcn.1401f05b0
mov qword [rsi + 8], 0
jmp 0x1401123bd
call fcn.1401de850
mov rcx, qword [rdi]
call fcn.1401f05b0
mov qword [rdi], 0
jmp 0x1401123e0
Function at 0x140114e70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x140114e8a
test r8d, r8d
jne 0x140114e83
call fcn.14015efd0
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140114630
Function at 0x140115d40
Capabilities:
Initialize winhttp library

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x150], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x20], 0x10000000
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
lea rax, str.0d__
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 0
test rdi, rdi
je 0x140115eb8
lea rbx, [rsp + 0x3c]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.140244560
mov dword [rbx - 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
movabs rcx, 0x100000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x30]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140115eb8
lea rbx, [rsp + 0x3c]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.140244560
mov dword [rbx - 0xc], 0x11c
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
movabs rcx, 0x300000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x30]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x140115eb8
lea r8, [rsp + 0x30]
mov dword [r8], 0xa80
mov rcx, rdi
mov edx, 0x54
mov r9d, 4
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14012c140
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14012c167
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14012c1a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14012c1c0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140242430
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14012c290
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14012c1d2
xor esi, esi
jmp 0x14012c1a4
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x266
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14027e630
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14012c258
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x14012c25c
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
cmp byte [rsp + 0x4f], 0
jns 0x14012c278
mov rcx, qword [rsp + 0x38]
call fcn.140240d14
lea rcx, [rsp + 0x50]
call fcn.1402b39c0
jmp 0x14012c1ce
Function at 0x14012c290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x14012c2b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012c2e9
mov dil, 1
test al, 0x10
je 0x14012c388
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14012c396
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x251
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14027e630
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14012c41a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x14012c41e
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14012c39d
xor edi, edi
jmp 0x14012c2cd
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14027e630
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14012c449
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x14012c44d
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
cmp byte [rsp + 0x5f], 0
jns 0x14012c43a
mov rcx, qword [rsp + 0x48]
call fcn.140240d14
lea rcx, [rsp + 0x60]
call fcn.1402b39c0
jmp 0x14012c396
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.14027e630
cmp byte [rsp + 0x5f], 0
jns 0x14012c47e
mov rcx, qword [rsp + 0x48]
call fcn.140240d14
lea rcx, [rsp + 0x60]
call fcn.1400e3a40
jmp 0x14012c396
Function at 0x14012d980
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14012c520
mov rax, qword [rsi]
test rax, rax
je 0x14012d9f7
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14012d9fe
lea rcx, [rsp + 0x28]
call fcn.14012d0a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14012d9d0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
je 0x14012da16
add rbx, 0x70
cmp rbx, r15
je 0x14012d9d0
jmp 0x14012da05
cmp byte [rbx + 0x27], 0
jns 0x14012da22
mov rcx, qword [rbx + 0x10]
jmp 0x14012da26
lea rcx, [rbx + 0x10]
call r12
test al, 0x10
jne 0x14012da0b
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
je 0x14012da4c
mov rcx, r14
mov rdx, rbx
call fcn.14012e870
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14012da0b
mov rcx, rdi
mov rdx, rbx
call fcn.14012e6a0
jmp 0x14012da0b

Function at 0x14012da60
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14012c520
mov rax, qword [rsi]
test rax, rax
je 0x14012dad7
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14012dade
lea rcx, [rsp + 0x28]
call fcn.14012d0a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14012dab0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x14012db0e
cmp byte [rbx + 0x27], 0
jns 0x14012daf7
mov rcx, qword [rbx + 0x10]
jmp 0x14012dafb
lea rcx, [rbx + 0x10]
call r12
test al, 0x10
jne 0x14012db0e
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jne 0x14012db19
jmp 0x14012db2e
add rbx, 0x70
cmp rbx, r15
je 0x14012dab0
jmp 0x14012dae5
mov rcx, r14
mov rdx, rbx
call fcn.14012e870
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14012db0e
mov rcx, rdi
mov rdx, rbx
call fcn.14012e6a0
jmp 0x14012db0e