joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
test r8d, r8d
je 0x14002d568
mov ebx, r8d
mov dword [rsi], 0
test dl, 1
jne 0x14002d588
xor edi, edi
movzx edx, dx
shr edx, 1
inc edi
mov ebp, edx
test dl, 1
je 0x14002d44a
bsr r8d, ebp
xor r8d, 0x1f
mov eax, 0x20
sub eax, r8d
imul eax, ebx
cmp eax, 0xde3
jg 0x14002d592
mov ecx, 1
mov eax, ecx
lea ecx, [rax + rax]
cmp eax, ebx
jle 0x14002d47b
mov r14d, eax
sar r14d, 2
movzx r9d, dx
cmp eax, 4
jae 0x14002d5d1
xor eax, eax
mov rdx, r9
test rdx, rdx
je 0x14002d4cc
xor ecx, ecx
mov r8, rdx
mov r9d, edx
and r9d, 0xfffffff
mov dword [rsi + rcx*4 + 4], r9d
shr r8, 0x1c
inc rcx
cmp rdx, 0xfffffff
mov rdx, r8
ja 0x14002d4a7
mov word [rsi], cx
test al, 1
jne 0x14002d597
test r14d, r14d
jne 0x14002d5a6
movzx edx, word [rsi]
test rdx, rdx
je 0x14002d55d
imul edi, ebx
movsxd rax, edi
imul rax, rax, 0xffffffff92492493
shr rax, 0x20
add eax, edi
mov ecx, eax
shr ecx, 0x1f
sar eax, 4
add eax, ecx
add word [rsi + 2], ax
cmp dx, 0x7f
jg 0x14002d592
test dx, dx
jle 0x14002d55d
lea ecx, [rax + rax*8]
lea ecx, [rcx + rcx*2]
add ecx, eax
sub edi, ecx
mov eax, 0x1c
sub eax, edi
xor r8d, r8d
xor r9d, r9d
mov r10d, r9d
mov r11d, dword [rsi + r8*4 + 4]
mov r9d, r11d
mov ecx, eax
shr r9d, cl
mov ecx, edi
shl r11d, cl
add r11d, r10d
and r11d, 0xfffffff
mov dword [rsi + r8*4 + 4], r11d
inc r8
cmp rdx, r8
jne 0x14002d52c
test r9d, r9d
jne 0x14002d57e
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov word [rsi + 2], 0
mov dword [rsi + 4], 1
mov ax, 1
mov word [rsi], ax
jmp 0x14002d55d
mov dword [rsi + rdx*4 + 4], r9d
lea eax, [rdx + 1]
jmp 0x14002d579
movzx ebp, dx
xor edi, edi
jmp 0x14002d458
call fcn.140194aa0
mov rcx, rsi
mov edx, ebp
call fcn.14002cba0
jmp 0x14002d4d4
mov rcx, rsi
call fcn.1401b6340
test r14d, ebx
je 0x14002d5bd
mov rcx, rsi
mov edx, ebp
call fcn.14002cba0
mov eax, r14d
sar eax, 1
cmp r14d, 1
mov r14d, eax
jbe 0x14002d4dd
jmp 0x14002d5a6
xor eax, eax
mov rdx, r9
mov r10d, r14d
imul rdx, rdx
test r10d, ebx
je 0x14002d605
mov ecx, r8d
or cl, 0x20
mov r14, rdx
shr r14, cl
mov r11d, 1
test r14, r14
setne cl
jne 0x14002d5ff
mov r11, r9
imul rdx, r11
or al, cl
mov r14d, r10d
sar r14d, 1
cmp r10d, 2
jb 0x14002d49d
mov rcx, rdx
shr rcx, 0x20
mov r10d, r14d
jne 0x14002d49d
jmp 0x14002d5d9
Function at 0x14002ff50
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14002ff96
mov r15, rbx
test r15, r15
je 0x140030072
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14002fff2
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14002ffe1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14016a030
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14002ff72
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14003008e
lea rcx, [r13*8]
call fcn.140133b54
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140030054
lea r15, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x140030072
mov r10, qword [r14 + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x14003003c
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140030074
add rbx, 0xfffffffffffffff8
jne 0x140030067
ud2
test r12, r12
je 0x14002ff72
mov rcx, r12
call fcn.140133b2c
mov r15, qword [rsi + 0x10]
jmp 0x14002ff72
call fcn.14016eb90
int3

Function at 0x140032420
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14023a76c]
cmp ecx, 0xffffffff
je 0x1400324fa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400324fa
mov eax, dword [0x140244a40]
mov ecx, dword [0x14023adf0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140032504
mov rbx, qword [0x140244a38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140032549
mov rax, qword [0x140243228]
inc rax
xor ecx, ecx
lea rdx, [0x140243230]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140032556
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140244a30]
inc ecx
mov dword [0x140244a30], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140243228], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140032546
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140012300
jmp 0x14003244a
lea rcx, [0x140244a40]
call fcn.140133c60
cmp dword [0x140244a40], 0xffffffff
jne 0x14003246f
mov ecx, 8
call fcn.140133b54
mov qword [rax], 0
mov qword [0x140244a38], rax
lea rcx, [0x140244a40]
call fcn.140133eb0
jmp 0x14003246f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140032487
inc rcx
cmp rcx, 0x100
jne 0x14003249a
jmp 0x1400324e0
Function at 0x140033f20
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rdx]
mov qword [rdx], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x140033f4c
call fcn.1400a7ad0
mov qword [rsi], 0
test r15, r15
je 0x140033f82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140033fda
cmp r12, 2
jb 0x140033f7a
mov qword [rsi], r15
call fcn.1400a7ad0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140033fa9
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400a7ad0
mov rbx, qword [rdi]
cmp qword [0x14023e3e8], 0
je 0x14003400e
mov rcx, qword [0x14023e3e8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [0x14021e390]
mov qword [rdi], 0
jmp 0x140033f98
call fcn.1400a7ad0
mov r14, qword [rsi]
cmp qword [0x14023e3e8], 0
je 0x140034052
mov rcx, qword [0x14023e3e8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14021e390]
mov qword [rsi], 0
jmp 0x140033f6c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140211538]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140034096
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14003404c
call qword [0x14021e390]
mov rcx, rax
xor edx, edx
call fcn.14001e8b0
jmp 0x140033fbb
xor ecx, ecx
mov dl, 1
jmp 0x140034042
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140211538]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003409a
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140034090
call qword [0x14021e390]
mov rcx, rax
xor edx, edx
call fcn.14001e8b0
jmp 0x140033fec
xor ecx, ecx
mov dl, 1
jmp 0x140034086
xor ecx, ecx
jmp 0x140034040
xor ecx, ecx
jmp 0x140034084
Function at 0x140036e80
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.14016a6d0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140037140
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401fa990]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.1400376a0
movsx rax, byte [rdi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140036f1a
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140036fe3
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r14, [rsp + 0x68]
lea r15, [rsp + 0x38]
xor r12d, r12d
cmp byte [rsp + 0x68], 0
je 0x140037073
mov ebp, dword [rsp + 0x6c]
test bpl, 1
jne 0x14003707d
test bpl, 0x10
jne 0x140037032
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x140036f70
mov rcx, qword [rsp + 0x50]
call r13
test eax, eax
jne 0x14003702b
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
mov rdx, r15
call fcn.1400376a0
cmp byte [rsp + 0x67], 0
jns 0x140036fb0
mov rcx, qword [rsp + 0x50]
call fcn.140133b2c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movsx rax, byte [rsp + 0x67]
mov rcx, rax
test rax, rax
jns 0x140036fd7
mov rcx, qword [rsp + 0x58]
mov r12d, ebp
test rcx, rcx
jne 0x140036f3e
test al, al
jns 0x140036ff1
mov rcx, qword [rsp + 0x50]
call fcn.140133b2c
lea rcx, [rsp + 0x68]
call fcn.1400370c0
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x140037015
call fcn.1401363f0
int3
mov eax, ebp
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140036f8d
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x140036f8d
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140036e80
test eax, eax
jne 0x1400370ad
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x140037060
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140036f8d
jmp 0x140036f7b
call fcn.14016ac60
jmp 0x140036f61
mov ecx, ebp
shr cl, 4
mov dl, byte [rsp + 0x37]
xor dl, 1
test cl, dl
jne 0x14003702b
test al, al
jns 0x140037098
mov rcx, qword [rsp + 0x50]
jmp 0x14003709d
lea rcx, [rsp + 0x50]
mov edx, ebp
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140036f57
mov ebp, eax
jmp 0x140036f8d
Function at 0x140039580
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140136390
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14016a6d0
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 0x140039614
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003963b
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400396a0
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x14003962e
call fcn.1401363f0
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x140039683
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14016a6d0
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
cmp eax, 0xfffffc00
jb 0x14003968a
lea rdx, [rsp + 0x40]
jmp 0x14003960a
mov eax, 0x3f4
jmp 0x140039614
mov eax, 0xea
jmp 0x140039614

Function at 0x14003aad0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14003abbe
cmp qword [rsi], 0
jne 0x14003abbe
cmp dword [rsi + 0x14], 0
jne 0x14003abbe
cmp qword [rsi + 8], 0
jne 0x14003abbe
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14003ab40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003ab90
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003ab38
mov qword [rsi], r14
call fcn.1400a7ad0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14003ab7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14003aba6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003ab72
mov qword [rsi + 8], r14
call fcn.1400a7ad0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a7ad0
mov rcx, qword [rsi]
call fcn.140110390
mov qword [rsi], 0
jmp 0x14003ab26
call fcn.1400a7ad0
mov rcx, qword [rsi + 8]
call fcn.140110390
mov qword [rsi + 8], 0
jmp 0x14003ab5f
mov rcx, rsi
call fcn.1401b35a0
mov rax, qword [rsi]
jmp 0x14003ab0a
Function at 0x14003dfc0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003e08f
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14003e057
cmp eax, 0xffffffff
je 0x14003e068
mov eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x14003e049
call fcn.1401363f0
int3
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x14003e06b
mov eax, dword [rsp + 0x2c]
jmp 0x14003e030
int3
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x14003e023
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
setne al
neg rax
jmp 0x14003e032

Function at 0x14003e620
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10040
call fcn.140136390
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x10038], rax
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rax
mov r8, rdi
call fcn.1400db890
test rsi, rsi
je 0x14003e6fb
lea rbx, [rsp + 0x3a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.14016a6d0
cmp byte [rsp + 0x37], 0
jns 0x14003e694
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14003e6c3
cmp eax, 0x7fff
jae 0x14003e720
mov edx, eax
lea rcx, [rsp + 0x3a]
mov r8, rsi
call fcn.1400f1c60
cmp byte [rsp + 0x37], 0
jns 0x14003e6d4
mov rcx, qword [rsp + 0x20]
call fcn.140133b2c
mov rcx, qword [rsp + 0x10038]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x14003e6ee
call fcn.1401363f0
int3
mov eax, ebx
add rsp, 0x10040
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x37], 0
js 0x14003e709
lea rcx, [rsp + 0x20]
jmp 0x14003e70e
mov rcx, qword [rsp + 0x20]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14003e6c3
int3

Function at 0x14003ea90
Capabilities:
Check if file exists

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov al, byte [rcx + 8]
cmp al, byte [rdx + 8]
je 0x14003eabb
test al, al
jne 0x14003eace
test rsi, rsi
je 0x14003eacc
mov rcx, rsi
call fcn.140049e90
mov byte [rsi + 8], 1
add rsp, 0x20
pop rsi
ret
test al, al
je 0x14003eab5
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14003eae0
ud2
mov rcx, rsi
call fcn.14004ce90
mov byte [rsi + 8], 0
jmp 0x14003eab5
Function at 0x14003eae0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14003eb05
call fcn.1400a7ad0
cmp qword [rsi], rbx
je 0x14003eb34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003eb41
cmp r14, 2
jb 0x14003eb2c
mov qword [rsi], rbx
call fcn.1400a7ad0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a7ad0
mov rcx, qword [rsi]
call fcn.140110390
mov qword [rsi], 0
jmp 0x14003eb1e
Function at 0x140045940
Capabilities:
Get token privileges

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
movdqa xmmword [rsp + 0x60], xmm8
movdqa xmmword [rsp + 0x50], xmm7
movdqa xmmword [rsp + 0x40], xmm6
mov rdi, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rcx]
lea r15, [rsp + 0x34]
mov dword [r15], 0
mov qword [rsp + 0x20], r15
mov rcx, r14
mov edx, 3
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140045ba4
mov ebx, dword [rsp + 0x34]
test ebx, ebx
je 0x140045ba4
mov rcx, rbx
call fcn.140133b54
mov rsi, rax
xor eax, eax
mov rcx, rsi
add rcx, rax
je 0x140045b99
mov byte [rcx], 0
inc rax
cmp rbx, rax
jne 0x1400459b9
mov qword [rsp + 0x20], r15
mov rcx, r14
mov edx, 3
mov r8, rsi
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140045b9f
cmp ebx, 0x10
jb 0x140045b9b
mov ecx, dword [rsi]
lea rax, [rcx*4]
lea rdx, [rax + rax*2]
add rdx, 4
cmp rdx, rbx
ja 0x140045b9b
test ecx, ecx
je 0x140045b36
lea rax, [rax + rax*2]
add rax, 0xfffffffffffffff4
movabs rcx, 0xaaaaaaaaaaaaaaab
mul rcx
movq xmm0, rdx
shr rdx, 3
add rdx, 4
and rdx, 0xfffffffffffffffc
pshufd xmm0, xmm0, 0x44
psrlq xmm0, 3
lea rax, [rsi + 0x30]
xor ecx, ecx
movdqa xmm1, xmmword [0x140200da0]
movdqa xmm2, xmmword [0x140200db0]
movdqa xmm3, xmmword [0x1401f0f10]
pxor xmm0, xmm3
pcmpeqd xmm4, xmm4
movq xmm5, rcx
pshufd xmm5, xmm5, 0x44
movdqa xmm6, xmm5
por xmm6, xmm2
pxor xmm6, xmm3
movdqa xmm7, xmm6
pcmpgtd xmm7, xmm0
pcmpeqd xmm6, xmm0
pshufd xmm8, xmm6, 0xf5
pand xmm8, xmm7
pshufd xmm6, xmm7, 0xf5
por xmm6, xmm8
movd r8d, xmm6
not r8d
test r8b, 1
je 0x140045abf
mov dword [rax - 0x24], 4
pxor xmm6, xmm4
pextrw r8d, xmm6, 4
test r8b, 1
je 0x140045ad6
mov dword [rax - 0x18], 4
por xmm5, xmm1
pxor xmm5, xmm3
movdqa xmm6, xmm5
pcmpgtd xmm6, xmm0
pcmpeqd xmm5, xmm0
pshufd xmm7, xmm5, 0xf5
pand xmm7, xmm6
pshufd xmm5, xmm6, 0xf5
por xmm5, xmm7
pxor xmm5, xmm4
pextrw r8d, xmm5, 0
test r8b, 1
je 0x140045b13
mov dword [rax - 0xc], 4
pextrw r8d, xmm5, 4
test r8b, 1
je 0x140045b25
mov dword [rax], 4
add rcx, 4
add rax, 0x30
cmp rdx, rcx
jne 0x140045a73
mov rcx, qword [rdi]
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor edx, edx
mov r8, rsi
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
setne dil
test rsi, rsi
je 0x140045b64
mov rcx, rsi
call fcn.140133b2c
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x140045b7b
call fcn.1401363f0
int3
mov eax, edi
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
xor edi, edi
jmp 0x140045b57
test rsi, rsi
jne 0x140045ba8
xor edi, edi
jmp 0x140045b64
mov rcx, rsi
call fcn.140133b2c
jmp 0x140045ba4
Function at 0x140045bc0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
or r8d, 8
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 1
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140045c9d
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140045c9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140045c99
call fcn.1400a7ad0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi], 0
mov bpl, 1
test rbx, rbx
je 0x140045c72
cmp rbx, 0xffffffffffffffff
je 0x140045ca4
call fcn.1400a7ad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi], rbx
call fcn.1400a7ad0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], bpl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x140045c8d
call fcn.1401363f0
int3
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x140045c38
mov byte [rsi], 0
xor ebp, ebp
jmp 0x140045c72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140045c6a

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

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400477a7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400477e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140047807
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401363f0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400478e0
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x1400477fd
call fcn.1401363f0
int3
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140131f40
test al, al
je 0x1400478d2
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.14018c510
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140122650
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x14004786a
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
test rax, rax
js 0x1400478d9
sete al
test rsi, rsi
setne cl
or cl, al
je 0x1400478d9
lea rsi, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140110920
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x1400478ac
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140122650
cmp byte [rsp + 0x57], 0
jns 0x1400478c8
mov rcx, qword [rsp + 0x40]
call fcn.140133b2c
lea rcx, [rsp + 0x58]
call fcn.14018c580
xor eax, eax
jmp 0x1400477e3
ud2
Function at 0x1400478e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x14022c040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x140047907
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400479b7
mov ecx, eax
mov al, 1
test cl, 0x10
je 0x140047943
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x140047939
call fcn.1401363f0
int3
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140131f40
test al, al
je 0x1400479b0
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140039870
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140122650
mov rcx, rax
mov rdx, rsi
call fcn.14018d460
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140122650
mov rcx, rdi
call fcn.140002170
xor eax, eax
jmp 0x14004791f
mov ecx, 2
call fcn.140131f40
test al, al
je 0x1400479b0
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.14018c510
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140122650
mov rcx, rax
mov rdx, rsi
call fcn.14018d460
mov rcx, rdi
call fcn.14018c580
jmp 0x1400479b0