joyce8/EMBER2024-capa huggingface dataset:
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.1401074f0
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.1401074f0
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.1401074f0
mov rcx, qword [rsi]
call fcn.140186080
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 [0x1402b7040]
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.1401074f0
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.1401d8720
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 [0x1402b7040]
je 0x140030a44
call fcn.14019f290
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.1401074f0
mov rcx, qword [rsi]
call fcn.140186080
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.14019f290
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 [0x1402b7040]
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.1401074f0
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.1401074f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi], rbx
call fcn.1401074f0
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 [0x1402b7040]
je 0x140032d30
call fcn.14019f290
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 [0x1402b7040]
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.1401074f0
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.1401074f0
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 [0x1402b7040]
je 0x1400339d7
call fcn.14019f290
int3
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1401074f0
mov rcx, qword [rsi]
call fcn.140186080
mov qword [rsi], 0
jmp 0x140033908
call fcn.1401074f0
mov rcx, qword [rsi + 8]
call fcn.140186080
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 [0x1402b7040]
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 [0x1402b7040]
je 0x14003b459
call fcn.14019f290
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.14019f230
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1402b7040]
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.14014c230
test rsi, rsi
je 0x14003bafb
lea rbx, [rsp + 0x3a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1401d8720
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.1401537a0
cmp byte [rsp + 0x37], 0
jns 0x14003bad4
mov rcx, qword [rsp + 0x20]
call fcn.14019cac4
mov rcx, qword [rsp + 0x10038]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14003baee
call fcn.14019f290
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.1401074f0
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.1401074f0
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.1401074f0
mov rcx, qword [rsi]
call fcn.140186080
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.1401074f0
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.1401074f0
mov rcx, qword [rsi]
call fcn.140186080
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 [0x1402b7040]
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.14019ca88
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 [0x14027d090]
movdqa xmm2, xmmword [0x14027d0a0]
movdqa xmm3, xmmword [0x14026bf90]
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.14019cac4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x140043f1b
call fcn.14019f290
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.14019cac4
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 [0x1402b7040]
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.1401074f0
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.1401074f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi], rbx
call fcn.1401074f0
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 [0x1402b7040]
je 0x14004402d
call fcn.14019f290
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 [0x1402b7040]
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.14019f290
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 [0x1402b7040]
je 0x14004619d
call fcn.14019f290
int3
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14019ae60
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.140205ad0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140183370
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.14014ed30
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.140183370
cmp byte [rsp + 0x57], 0
jns 0x140046253
mov rcx, qword [rsp + 0x40]
call fcn.14019cac4
lea rcx, [rsp + 0x58]
call fcn.140205b40
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 [0x1402b7040]
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 [0x1402b7040]
je 0x1400462c9
call fcn.14019f290
int3
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14019ae60
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.140183370
mov rcx, rax
mov rdx, rsi
call fcn.140206a60
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140183370
mov rcx, rdi
call fcn.140001aa0
xor eax, eax
jmp 0x1400462af
mov ecx, 2
call fcn.14019ae60
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.140205ad0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140183370
mov rcx, rax
mov rdx, rsi
call fcn.140206a60
mov rcx, rdi
call fcn.140205b40
jmp 0x140046340
Function at 0x1400467a0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov ecx, 0x65c2937b
xor eax, eax
lock cmpxchg dword [rsi], ecx
jne 0x140046952
mov dword [0x1402c7508], ebx
lea rbp, [0x1402c7508]
movabs rax, 0x100000000
mov qword [0x1402c7628], rax
movaps xmm6, xmmword [0x140275a70]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov r14, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x1402c7630], rcx
mov r15d, 0x20
mov qword [0x1402c7638], r15
mov r12d, 0x40
mov qword [0x1402c7640], r12
mov dword [0x1402c7648], ebx
mov qword [0x1402c7510], rbx
lea rax, [0x1402c7510]
mov r13, 0xffffffffb37cc16a
xor rax, r13
mov qword [0x1402c7518], rax
mov qword [0x1402c7520], rbp
mov dword [0x1402c7530], ebx
lea rcx, [0x1402c7538]
mov r8d, 0xf0
xor edx, edx
call fcn.1401d8720
mov dword [0x1402c7650], ebx
lea rbp, [0x1402c7650]
mov qword [0x1402c7770], rbx
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdi, [rsp + 0x20]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x1402c7778], rcx
mov qword [0x1402c7780], r15
mov qword [0x1402c7788], r12
mov dword [0x1402c7790], ebx
mov qword [0x1402c7658], rbx
lea rax, [0x1402c7658]
xor rax, r13
mov qword [0x1402c7660], rax
mov qword [0x1402c7668], rbp
mov dword [0x1402c7678], ebx
lea rcx, [0x1402c7680]
mov r8d, 0xf0
xor edx, edx
call fcn.1401d8720
mov eax, 0xdd
xchg dword [rsi], eax
cmp eax, 0x5a308d2
je 0x140046972
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14004693c
call fcn.14019f290
int3
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, edx
lea r8, [0x14027b140]
mov rcx, rsi
mov edx, 3
call fcn.14005f600
test eax, eax
jne 0x140046925
jmp 0x1400467da
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14019f290
mov rcx, rsi
mov dl, 1
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401db670
Function at 0x140047c50
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401d8720
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, Ordinal_41
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140047cef
cmp word [rsp + 0x70], 0
je 0x140047cef
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14019cee8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140152d30
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x140047ce1
call fcn.14019f290
int3
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call fcn.140049160
test al, al
jne 0x140047d3d
lea rax, [0x140286e88]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140152d30
cmp byte [rsp + 0x57], 0
jns 0x140047cc7
mov rcx, qword [rsp + 0x40]
call fcn.14019cac4
jmp 0x140047cc7
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x140047cc7

Function at 0x1400484b0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rcx, qword [rcx]
je 0x1400485f3
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
je 0x140048500
mov rcx, rdi
call fcn.140048630
mov rcx, rdi
call fcn.14019cac4
mov rcx, qword [rsi + 0x48]
mov qword [rsi + 0x48], 0
test rcx, rcx
je 0x140048518
xor edx, edx
call fcn.140001b10
mov rcx, qword [rsi + 0x38]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402b9708]
je 0x1400485e9
mov rdi, qword [rsi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
test rdi, rdi
jne 0x140048616
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jb 0x140048588
call fcn.1401074f0
mov rdi, qword [rsi + 0x28]
cmp qword [0x1402c9688], 0
je 0x1400485a8
mov rcx, qword [0x1402c9688]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [0x1402a7b00]
mov qword [rsi + 0x28], 0
lea rcx, [rsi + 0x20]
call fcn.140032b50
lea rcx, [rsi + 0x18]
call fcn.140032b50
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14002fde0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14028e385]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004862b
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400485e3
call qword [0x1402a7b00]
mov rcx, rax
xor edx, edx
call fcn.14003d980
jmp 0x14004856a
xor ecx, ecx
mov dl, 1
jmp 0x1400485dc
call fcn.140004e70
jmp 0x140048536
test rcx, rcx
jne 0x1400484c6
cmp dword [rsi + 0x14], 0
jne 0x1400484c6
cmp qword [rsi + 8], 0
jne 0x1400484c6
jmp 0x1400484df
mov rcx, rdi
call fcn.140048630
mov rcx, rdi
call fcn.14019cac4
jmp 0x14004854a
xor ecx, ecx
jmp 0x1400485da