joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bf30
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 [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1401d6710
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14002c1e0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140272a70]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14002c740
movsx rax, byte [rdi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002bfca
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002c093
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 0x14002c123
mov ebp, dword [rsp + 0x6c]
test bpl, 1
jne 0x14002c126
test bpl, 0x10
jne 0x14002c0e2
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x14002c020
mov rcx, qword [rsp + 0x50]
call r13
test eax, eax
jne 0x14002c0db
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.14002c740
cmp byte [rsp + 0x67], 0
jns 0x14002c060
mov rcx, qword [rsp + 0x50]
call fcn.14019aab4
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 0x14002c087
mov rcx, qword [rsp + 0x58]
mov r12d, ebp
test rcx, rcx
jne 0x14002bfee
test al, al
jns 0x14002c0a1
mov rcx, qword [rsp + 0x50]
call fcn.14019aab4
lea rcx, [rsp + 0x68]
call fcn.14002c160
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14002c0c5
call fcn.14019d280
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 0x14002c03d
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x14002c03d
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.14002bf30
test eax, eax
jne 0x14002c158
cmp byte [rsp + 0x67], 0
mov rcx, rdi
jns 0x14002c110
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002c03d
jmp 0x14002c02b
int3
mov ecx, ebp
and ecx, 0x10
shr ecx, 4
mov dl, byte [rsp + 0x37]
not dl
test dl, cl
jne 0x14002c0db
test al, al
jns 0x14002c143
mov rcx, qword [rsp + 0x50]
jmp 0x14002c148
lea rcx, [rsp + 0x50]
mov edx, ebp
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002c007
mov ebp, eax
jmp 0x14002c03d
Function at 0x14002e750
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14019d220
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1401d6710
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 0x14002e7e4
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14002e80b
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.14002e870
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14002e7fe
call fcn.14019d280
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x14002e853
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d6710
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 0x14002e85a
lea rdx, [rsp + 0x40]
jmp 0x14002e7da
mov eax, 0x3f4
jmp 0x14002e7e4
mov eax, 0xea
jmp 0x14002e7e4

Function at 0x14002f270
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 0x14002f35e
cmp qword [rsi], 0
jne 0x14002f35e
cmp dword [rsi + 0x14], 0
jne 0x14002f35e
cmp qword [rsi + 8], 0
jne 0x14002f35e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14002f2e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002f330
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002f2d8
mov qword [rsi], r14
call fcn.1401054e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14002f31a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002f346
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002f312
mov qword [rsi + 8], r14
call fcn.1401054e0
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.1401054e0
mov rcx, qword [rsi]
call fcn.140184070
mov qword [rsi], 0
jmp 0x14002f2c6
call fcn.1401054e0
mov rcx, qword [rsi + 8]
call fcn.140184070
mov qword [rsi + 8], 0
jmp 0x14002f2ff
mov rcx, rsi
call fcn.140229af0
mov rax, qword [rsi]
jmp 0x14002f2aa
Function at 0x14002fb90
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14002fbb6
call fcn.1401054e0
cmp qword [rsi], rbx
je 0x14002fbe5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002fbf2
cmp r14, 2
jb 0x14002fbdd
mov qword [rsi], rbx
call fcn.1401054e0
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.1401054e0
mov rcx, qword [rsi]
call fcn.140184070
mov qword [rsi], 0
jmp 0x14002fbcf

Function at 0x1400308e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x140030a75
mov rbx, r9
mov edi, r8d
mov ebp, edx
mov rsi, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov r14, qword [rsi]
cmp r14, rax
je 0x140030968
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140030a54
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14003095c
mov qword [rsi], r15
call fcn.1401054e0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 1
jbe 0x140030a7c
xor r15d, r15d
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_145
xor edx, edx
call fcn.1401d6710
test ebp, ebp
jne 0x140030a2f
mov ecx, 0xff
mov r15d, 0x408
mov dword [rsp + 0x58], 1
mov eax, r15d
mov dword [rsp + 0x2c], ecx
mov r15d, ecx
test rbx, rbx
je 0x1400309c2
or eax, 0x100
mov qword [rsp + 0xa0], rbx
or eax, 0x2000
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, 9
mov r9d, Ordinal_145
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x140030a6d
not edi
and r15d, edi
lea r8, [rsp + 0x2c]
mov dword [r8], r15d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x140030a6d
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x140030a44
call fcn.14019d280
int3
cmp ebp, 1
jne 0x140030aa3
mov ecx, reloc.WLDAP32.dll_Ordinal_216
mov r15d, 8
jmp 0x14003099e
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401054e0
mov rcx, qword [rsi]
call fcn.140184070
mov qword [rsi], 0
jmp 0x14003094a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140030a15
mov eax, 0x4df
jmp 0x140030a15
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14019d280
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xc8
cmp ebp, 2
je 0x1400309a6
mov eax, 0
cmp ebp, 3
je 0x1400309b0
jmp 0x1400309cb
Function at 0x140032c60
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x1402b3040]
xor rdx, rsp
mov qword [rsp + 0x40], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x38]
mov qword [r8], rdx
or r9d, 8
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140032d40
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140032d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140032d3c
call fcn.1401054e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi], 0
mov bpl, 1
test rbx, rbx
je 0x140032d15
cmp rbx, 0xffffffffffffffff
je 0x140032d47
call fcn.1401054e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi], rbx
call fcn.1401054e0
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 [0x1402b3040]
je 0x140032d30
call fcn.14019d280
int3
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x140032cdb
mov byte [rsi], 0
xor ebp, ebp
jmp 0x140032d15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140032d0d
Function at 0x140033870
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [rdx]
test rbx, rbx
je 0x140033922
lea r14, [rsp + 0x38]
mov qword [r14], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov r15, rax
call r12
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rbx
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140033a16
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x140033922
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400339e5
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003391a
mov qword [rsi], r14
call fcn.1401054e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400339b2
lea r14, [rsp + 0x38]
mov qword [r14], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov r15, rax
call r12
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rbx
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140033a16
mov r14, qword [rsp + 0x38]
cmp qword [rsi + 8], r14
je 0x1400339b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400339fe
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400339aa
mov qword [rsi + 8], r14
call fcn.1401054e0
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
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x1400339d7
call fcn.14019d280
int3
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1401054e0
mov rcx, qword [rsi]
call fcn.140184070
mov qword [rsi], 0
jmp 0x140033908
call fcn.1401054e0
mov rcx, qword [rsi + 8]
call fcn.140184070
mov qword [rsi + 8], 0
jmp 0x140033997
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400339c0
Function at 0x14003b3d0
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 [0x1402b3040]
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 0x14003b49f
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 0x14003b467
cmp eax, 0xffffffff
je 0x14003b478
mov eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14003b459
call fcn.14019d280
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 0x14003b47b
mov eax, dword [rsp + 0x2c]
jmp 0x14003b440
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 0x14003b433
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
setne al
neg rax
jmp 0x14003b442

Function at 0x14003ba20
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10040
call fcn.14019d220
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1402b3040]
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.14014a220
test rsi, rsi
je 0x14003bafb
lea rbx, [rsp + 0x3a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1401d6710
cmp byte [rsp + 0x37], 0
jns 0x14003ba94
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 0x14003bac3
cmp eax, 0x7fff
jae 0x14003bb20
mov edx, eax
lea rcx, [rsp + 0x3a]
mov r8, rsi
call fcn.140151790
cmp byte [rsp + 0x37], 0
jns 0x14003bad4
mov rcx, qword [rsp + 0x20]
call fcn.14019aab4
mov rcx, qword [rsp + 0x10038]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14003baee
call fcn.14019d280
int3
mov eax, ebx
add rsp, 0x10040
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x37], 0
js 0x14003bb09
lea rcx, [rsp + 0x20]
jmp 0x14003bb0e
mov rcx, qword [rsp + 0x20]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14003bac3
int3

Function at 0x14003c1b0
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 0x14003c1db
test al, al
jne 0x14003c1ee
test rsi, rsi
je 0x14003c1ec
mov rcx, rsi
call fcn.14002fb90
mov byte [rsi + 8], 1
add rsp, 0x20
pop rsi
ret
test al, al
je 0x14003c1d5
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14003c200
ud2
mov rcx, rsi
call fcn.140032b50
mov byte [rsi + 8], 0
jmp 0x14003c1d5
Function at 0x14003c200
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 0x14003c225
call fcn.1401054e0
cmp qword [rsi], rbx
je 0x14003c254
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003c261
cmp r14, 2
jb 0x14003c24c
mov qword [rsi], rbx
call fcn.1401054e0
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.1401054e0
mov rcx, qword [rsi]
call fcn.140184070
mov qword [rsi], 0
jmp 0x14003c23e

Function at 0x14003d900
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14003d947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003d961
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003d93f
mov qword [rsi], rdi
call fcn.1401054e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x14003d977
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401054e0
mov rcx, qword [rsi]
call fcn.140184070
mov qword [rsi], 0
jmp 0x14003d92d
int3
Function at 0x140043ce0
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 [0x1402b3040]
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 0x140043f40
mov ebx, dword [rsp + 0x34]
test ebx, ebx
je 0x140043f40
mov rcx, rbx
call fcn.14019aa78
mov rsi, rax
xor eax, eax
mov rcx, rsi
add rcx, rax
je 0x140043f39
mov byte [rcx], 0
inc rax
cmp rbx, rax
jne 0x140043d59
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 0x140043f3b
cmp ebx, 0x10
jb 0x140043f44
mov ecx, dword [rsi]
lea rax, [rcx*4]
lea rdx, [rax + rax*2]
add rdx, 4
cmp rdx, rbx
ja 0x140043f44
test ecx, ecx
je 0x140043ed6
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 [0x140279f80]
movdqa xmm2, xmmword [0x140279f90]
movdqa xmm3, xmmword [0x140268f90]
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 0x140043e5f
mov dword [rax - 0x24], 4
pxor xmm6, xmm4
pextrw r8d, xmm6, 4
test r8b, 1
je 0x140043e76
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 0x140043eb3
mov dword [rax - 0xc], 4
pextrw r8d, xmm5, 4
test r8b, 1
je 0x140043ec5
mov dword [rax], 4
add rcx, 4
add rax, 0x30
cmp rdx, rcx
jne 0x140043e13
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 0x140043f04
mov rcx, rsi
call fcn.14019aab4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x140043f1b
call fcn.14019d280
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
test rsi, rsi
jne 0x140043f48
xor edi, edi
jmp 0x140043f04
xor edi, edi
jmp 0x140043ef7
mov rcx, rsi
call fcn.14019aab4
jmp 0x140043f40
Function at 0x140043f60
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x1402b3040]
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 0x14004403d
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14004403d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140044039
call fcn.1401054e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi], 0
mov bpl, 1
test rbx, rbx
je 0x140044012
cmp rbx, 0xffffffffffffffff
je 0x140044044
call fcn.1401054e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi], rbx
call fcn.1401054e0
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 [0x1402b3040]
je 0x14004402d
call fcn.14019d280
int3
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x140043fd8
mov byte [rsi], 0
xor ebp, ebp
jmp 0x140044012
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14004400a

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

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140046147
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140046181
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400461a7
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14019d280
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140046270
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14004619d
call fcn.14019d280
int3
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140198e50
test al, al
je 0x14004625d
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.140202e20
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140181360
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x14004620a
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
lea rdx, [rsp + 0x30]
mov qword [rdx], rsi
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14014cd20
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x140046237
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140181360
cmp byte [rsp + 0x57], 0
jns 0x140046253
mov rcx, qword [rsp + 0x40]
call fcn.14019aab4
lea rcx, [rsp + 0x58]
call fcn.140202e90
xor eax, eax
jmp 0x140046183
Function at 0x140046270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x140046297
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140046347
mov ecx, eax
mov al, 1
test cl, 0x10
je 0x1400462d3
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x1400462c9
call fcn.14019d280
int3
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140198e50
test al, al
je 0x140046340
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.14002ea40
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140181360
mov rcx, rax
mov rdx, rsi
call fcn.140203db0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140181360
mov rcx, rdi
call fcn.140001aa0
xor eax, eax
jmp 0x1400462af
mov ecx, 2
call fcn.140198e50
test al, al
je 0x140046340
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.140202e20
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140181360
mov rcx, rax
mov rdx, rsi
call fcn.140203db0
mov rcx, rdi
call fcn.140202e90
jmp 0x140046340