joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401bd870
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401bd886
mov al, 1
jmp 0x1401bd8e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401bd897
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401bd8e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14019ce7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401bd8e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401bd8e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401bd8e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401bd8e6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1401c6e70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
movapd xmmword [rsp + 0x10], xmm7
movapd xmmword [rsp], xmm6
mov r11, qword [r8]
mov r10, qword [r8 + 8]
mov rax, r10
sub rax, r11
sar rax, 2
lea r9, [rax - 1]
cmp r9, 2
jb 0x1401c6f48
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, edx
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x140275d70]
subpd xmm2, xmmword [0x140275d80]
haddpd xmm2, xmm2
mov ecx, 1
movdqa xmm3, xmmword [0x140275d70]
movapd xmm4, xmmword [0x140275d80]
movsd xmm5, qword [0x140260a70]
mov rdx, qword [r8]
mov r10, qword [r8 + 8]
sub r10, rdx
sar r10, 2
cmp r10, rcx
jbe 0x1401c6f6a
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
haddpd xmm6, xmm6
lea r10, [rcx - 1]
movq xmm7, r10
punpckldq xmm7, xmm3
subpd xmm7, xmm4
haddpd xmm7, xmm7
mulsd xmm6, xmm0
mulsd xmm7, xmm1
addsd xmm7, xmm6
divsd xmm7, xmm2
addsd xmm7, xmm5
cvttsd2si r10d, xmm7
mov dword [rdx + rcx*4], r10d
dec rax
inc rcx
cmp rcx, r9
jne 0x1401c6ee0
mov r11, qword [r8]
mov r10, qword [r8 + 8]
cmp r10, r11
je 0x1401c6f6d
mov dword [r10 - 4], 0x7fffffff
mov rcx, r8
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
add rsp, 0x28
jmp fcn.14016fc70
int3
int3

Function at 0x1401c9b50
Capabilities:
Write 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 [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1401c9b9e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1401c9bdc
cmp rdi, rsi
jae 0x1401c9bdc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1401c9b97
jmp 0x1401c9b94
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401879f0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1401f77a0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1401f7811
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401f781b
mov dil, 1
test bl, bl
je 0x1401f77fa
cmp byte [rsi + 8], 0
je 0x1401f7816
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401879f0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1401f77cd
mov rcx, qword [rsi]
jmp 0x1401f77ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1401f7843
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401f7848
xor edi, edi
jmp 0x1401f77fa
mov rcx, qword [rsi]
jmp 0x1401f7830
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1401f786f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1401f77fa
mov rcx, qword [rsi]
jmp 0x1401f785f
Function at 0x1401fa080
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1402b75e8], 0
je 0x1401fa0c6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1401879f0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1402b75d8]
test rdi, rdi
je 0x1401fa167
test byte [0x1402abf58], 1
je 0x1401fa0a9
cmp byte [rdi + 0x17], 0
jns 0x1401fa0e8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402b75e8], rax
inc rax
cmp rax, 1
ja 0x1401fa0a9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140189b30
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1401fa251
xor esi, esi
jmp 0x1401fa0a9
mov ecx, 0x18
call fcn.140184dc4
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140189b30
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14026dc70]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1401c4a50
movzx eax, byte [rdi + 0x17]
mov edx, eax
and edx, 0x7f
test al, al
cmovs rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov r8, rdi
cmovs r8, rcx
test rdx, rdx
je 0x1401fa21e
lea r10, [rdx + rdx]
test r10, r10
je 0x1401fa21e
lea r9, [r10 - 2]
cmp word [r8 + r10 - 2], 0x5c
mov r10, r9
jne 0x1401fa1e0
cmp r9, 0xfffffffffffffffe
je 0x1401fa21e
mov r8, r9
sar r8, 1
cmp rdx, r8
jbe 0x1401fa33a
lea rdx, [r8 + 1]
test al, al
jns 0x1401fa23f
mov qword [rdi + 8], rdx
mov word [rcx + r8*2 + 2], 0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14001eac0
mov qword [0x1402b75d8], rdi
jmp 0x1401fa0d6
cmp r9, 0x14
jae 0x1401fa334
mov byte [rdi + 0x17], dl
mov rcx, rdi
jmp 0x1401fa216
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.140185998
mov rcx, qword [0x1402b75d8]
mov rdx, rdi
mov r8, rax
call fcn.14002ca10
mov rcx, qword [0x1402b75d8]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x1401fa327
mov rax, qword [rcx + 8]
test rax, rax
je 0x1401fa337
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1401fa2b4
lea rdx, [0x140278918]
mov r8d, 1
call fcn.14001eac0
mov rcx, qword [0x1402b75d8]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14001eac0
mov rcx, qword [0x1402b75d8]
cmp byte [rcx + 0x17], 0
jns 0x1401fa2d6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402b75e8], rax
inc rax
cmp rax, 1
ja 0x1401fa0a9
mov qword [0x1402b75e8], 0
jmp 0x1401fa160
test rax, rax
je 0x1401fa337
mov rdx, rcx
jmp 0x1401fa293
int3
int3
int3
Function at 0x140201c30
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [rcx + 0x10]
cmp r14, qword [rcx + 0x18]
je 0x140201c8c
test r14, r14
je 0x140201d8b
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401879f0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140201cd6
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r15, [rax + rcx]
inc r15
shr r15, 1
shl r15, 3
mov rcx, rbx
sub rcx, r15
mov r8, r14
sub r8, rbx
mov rdx, rbx
call fcn.140189480
sub r14, r15
mov qword [rsi + 0x10], r14
sub qword [rsi + 8], r15
jmp 0x140201c5c
mov rax, r14
sub rax, r15
sar rax, 2
cmp r14, r15
mov r12d, 1
cmovne r12, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x140201db7
lea rcx, [r12*8]
call fcn.140184dc4
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rdx, [rax + rcx*2]
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x140201d56
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x140201d8b
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x140201d3e
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], r15
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r14
call fcn.140202100
mov r14, qword [rsi + 0x10]
jmp 0x140201c5c
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401c2f20
call fcn.1401c2f20
int3
Function at 0x140201dc0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x140201e1c
add rbx, 0xfffffffffffffff8
je 0x140201f28
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401879f0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x140201e6f
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
shl r12, 2
and r12, 0xfffffffffffffff8
lea r15, [r14 + r12]
sub r14, rbx
sub r15, r14
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.140189480
mov qword [rsi + 8], r15
add qword [rsi + 0x10], r12
mov rbx, r15
jmp 0x140201deb
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
lea rax, [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x140201f54
lea rcx, [r12*8]
call fcn.140184dc4
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x140201ef3
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x140201f28
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x140201edb
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.140202100
mov rbx, qword [rsi + 8]
jmp 0x140201deb
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401c2f20
call fcn.1401c2f20
int3
Function at 0x140201f60
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x140201fbc
add rbx, 0xfffffffffffffff8
je 0x1402020c8
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 8], 0xfffffffffffffff8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401879f0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r14, r15
jae 0x14020200f
sub r15, r14
sar r15, 3
lea rax, [r15 + 1]
shr rax, 0x3f
lea r12, [r15 + rax]
inc r12
shl r12, 2
and r12, 0xfffffffffffffff8
lea r15, [r14 + r12]
sub r14, rbx
sub r15, r14
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.140189480
mov qword [rsi + 8], r15
add qword [rsi + 0x10], r12
mov rbx, r15
jmp 0x140201f8b
mov rax, r15
sub rax, rbx
sar rax, 2
cmp r15, rbx
mov r12d, 1
cmovne r12, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x48], rax
mov rax, r12
shr rax, 0x3d
jne 0x1402020f4
lea rcx, [r12*8]
call fcn.140184dc4
lea rdx, [r12*2 + 6]
and rdx, 0xfffffffffffffff8
add rdx, rax
mov r9, r14
mov r8, rdx
sub r9, rbx
je 0x140202093
mov rcx, r9
sar rcx, 3
and r9, 0xfffffffffffffff8
mov r8, r9
add r8, rdx
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1402020c8
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14020207b
lea r9, [rax + r12*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rbx
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r14
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r15
call fcn.140202100
mov rbx, qword [rsi + 8]
jmp 0x140201f8b
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401c2f20
call fcn.1401c2f20
int3

Function at 0x14020eed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqu xmm0, xmmword [rdx]
movdqa xmmword [rsp + 0x20], xmm0
mov rbx, qword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
mov edi, 1
cmp rbx, rax
je 0x14020ef24
mov rsi, r8
movdqu xmm0, xmmword [rbx]
pcmpeqb xmm0, xmmword [rsp + 0x20]
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x14020ef3b
add rbx, 0x70
cmp rbx, rax
jne 0x14020ef05
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401879f0
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
cmp rbx, rax
je 0x14020ef24
cmp byte [rbx + 0x27], 0
js 0x14020ef4c
lea rcx, [rbx + 0x10]
jmp 0x14020ef50
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov edi, 1
cmovne edi, ecx
test edi, edi
jne 0x14020ef24
mov qword [rsi], rbx
xor edi, edi
jmp 0x14020ef24
Function at 0x14020f0e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
movdqa xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
mov esi, 1
cmp r14, rax
je 0x14020f13a
mov rdi, r9
mov rbx, rcx
movdqu xmm0, xmmword [r14]
pcmpeqb xmm0, xmmword [rsp + 0x20]
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x14020f153
add r14, 0x70
cmp r14, rax
jne 0x14020f11a
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401879f0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp r14, rax
je 0x14020f13a
mov eax, dword [r14 + 0x68]
cmp eax, r8d
je 0x14020f170
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
jmp 0x14020f13a
cmp byte [r14 + 0x27], 0
js 0x14020f17d
lea rcx, [r14 + 0x10]
jmp 0x14020f181
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14020f13a
shr eax, 3
and eax, 2
mov esi, eax
jne 0x14020f13a
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x14020f13a

Function at 0x140211040
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1402b7c20]
test rax, rax
jne 0x140211084
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1402b7c20]
test rax, rax
je 0x140211071
cmp eax, 2
je 0x140211115
mov eax, 1
lock xadd qword [0x1402b7c58], rax
test rax, rax
jle 0x1402110ad
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1402b7bd8], eax
mov qword [0x1402b7bd0], rsi
mov rcx, qword [0x1402abfa0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1402b75e0], 2
jg 0x14021115d
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xba
mov r9d, 2
call fcn.1400078c0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
jmp 0x140211150
cmp dword [0x1402b75e0], 2
jg 0x14021115d
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8e
mov r9d, 2
call fcn.1400078c0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
call fcn.1401c2dd0
mov rcx, rsi
call fcn.1400079b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401879f0
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x140218110
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
call fcn.14003c240
test rax, rax
jne 0x14021814e
mov rcx, rdi
call fcn.1400584e0
test al, al
je 0x14021814e
mov r8d, 0x28
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140059c70
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140219f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140219f3a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140219f59
mov edi, eax
bt eax, 0xa
jae 0x140219f51
test bl, bl
je 0x140219f67
and edi, 0x10
shr edi, 4
jmp 0x140219f69
mov ecx, 2
call fcn.1400ee5f0
test al, al
jne 0x140219f86
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401879f0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.1401fa650
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401c2dd0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140219fd6
and r8d, 0x7f
jmp 0x140219fdd
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401825c0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1401482e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14021a00d
and r8d, 0x7f
jmp 0x14021a017
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401c2dd0
cmp byte [rsp + 0x57], 0
jns 0x14021a033
mov rcx, qword [rsp + 0x40]
call fcn.140184dbc
lea rcx, [rsp + 0x58]
call fcn.1401fa6d0
jmp 0x140219f67
Function at 0x14021a050
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x14021a07b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14021a0ab
test bl, bl
je 0x14021a09b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14021a0c8
mov ecx, 2
call fcn.1400ee5f0
test al, al
jne 0x14021a0ec
xor edi, edi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401879f0
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.140219f10
test al, al
jne 0x14021a0ab
mov ecx, 2
call fcn.1400ee5f0
test al, al
je 0x14021a0a9
jmp 0x14021a1b7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.1401fa650
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401c2dd0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14021a13c
and r8d, 0x7f
jmp 0x14021a143
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401825c0
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.1401482e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14021a176
and r8d, 0x7f
jmp 0x14021a186
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.1401c2dd0
cmp byte [rsp + 0x1a7], 0
jns 0x14021a1a8
mov rcx, qword [rsp + 0x190]
call fcn.140184dbc
lea rcx, [rsp + 0x40]
call fcn.1401fa6d0
jmp 0x14021a0a9
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.1400078c0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14021a1e4
and r8d, 0x7f
jmp 0x14021a1eb
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x180]
mov rcx, rbx
mov rdx, rsi
call fcn.1401825c0
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.1401482e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14021a226
and r8d, 0x7f
jmp 0x14021a236
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.1401c2dd0
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.1401c2dd0
cmp byte [rsp + 0x1a7], 0
jns 0x14021a26d
mov rcx, qword [rsp + 0x190]
call fcn.140184dbc
lea rcx, [rsp + 0x40]
call fcn.1400079b0
jmp 0x14021a0a9
Function at 0x14021a280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14021a2a8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14021a2d9
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401879f0
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400ee5f0
test al, al
jne 0x14021a2eb
xor esi, esi
jmp 0x14021a2bc
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x75
mov r9d, 2
call fcn.1401fa650
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401c2dd0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14021a33b
and r8d, 0x7f
jmp 0x14021a342
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401825c0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1401482e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14021a372
and r8d, 0x7f
jmp 0x14021a37c
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401c2dd0
cmp byte [rsp + 0x57], 0
jns 0x14021a398
mov rcx, qword [rsp + 0x40]
call fcn.140184dbc
lea rcx, [rsp + 0x58]
call fcn.1401fa6d0
jmp 0x14021a2e7