joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017a440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r15, rdx
mov r14, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rdx]
lea r12, [rdx + 8]
test rax, rax
mov rcx, r12
cmove rcx, rax
mov edx, dword [rcx + 8]
xor ebp, ebp
test edx, edx
setne bpl
lea rbx, [r15 + 0x28]
xor ecx, ecx
cmp rax, 2
cmovb rbx, rcx
mov dword [rsp + 0x20], edx
mov edx, dword [rbx + 8]
mov dword [rsp + 0x24], edx
test edx, edx
mov edx, 2
cmove rdx, rbp
lea rbp, [r15 + 0x48]
cmp rax, 3
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 3
cmove rbx, rdx
lea rdx, [r15 + 0x68]
cmp rax, 4
cmovb rdx, rcx
mov dword [rsp + 0x28], ebp
mov edx, dword [rdx + 8]
mov dword [rsp + 0x2c], edx
test edx, edx
mov edx, 4
cmove rdx, rbx
lea rbp, [r15 + 0x88]
cmp rax, 5
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 5
cmove rbx, rdx
lea rdx, [r15 + 0xa8]
cmp rax, 6
cmovb rdx, rcx
mov dword [rsp + 0x30], ebp
mov edx, dword [rdx + 8]
mov dword [rsp + 0x34], edx
test edx, edx
mov edx, 6
cmove rdx, rbx
lea rbp, [r15 + 0xc8]
cmp rax, 7
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 7
cmove rbx, rdx
lea rdx, [r15 + 0xe8]
cmp rax, 8
cmovb rdx, rcx
mov dword [rsp + 0x38], ebp
mov edx, dword [rdx + 8]
mov dword [rsp + 0x3c], edx
test edx, edx
mov edx, 8
cmove rdx, rbx
lea rbp, [r15 + 0x108]
cmp rax, 9
cmovb rbp, rcx
mov ebp, dword [rbp + 8]
test ebp, ebp
mov ebx, 9
cmove rbx, rdx
cmp rax, 0xa
lea rax, [r15 + 0x128]
cmovb rax, rcx
mov dword [rsp + 0x40], ebp
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
test eax, eax
mov r13d, 0xa
cmove r13, rbx
mov rsi, qword [r14]
lea rdi, [r14 + 8]
test rsi, rsi
cmovne rsi, rdi
mov rcx, rsi
mov rdx, r13
call fcn.140179b20
mov ebx, eax
test al, al
je 0x14017a5ef
test r13, r13
je 0x14017a5ef
mov ebp, 1
mov edx, dword [rsp + rbp*4 + 0x1c]
mov rcx, rsi
call fcn.140179b20
mov ebx, eax
test al, al
je 0x14017a5ef
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
jb 0x14017a5d1
test bl, bl
je 0x14017a634
test r13, r13
je 0x14017a634
mov esi, 1
lea rax, [rsi - 1]
mov rcx, rdi
cmp qword [r14], rax
ja 0x14017a60b
xor ecx, ecx
mov rdx, r12
cmp qword [r15], rax
ja 0x14017a615
xor edx, edx
call fcn.140179c10
mov ebx, eax
test al, al
je 0x14017a634
lea rax, [rsi + 1]
add r12, 0x20
add rdi, 0x20
cmp rsi, r13
mov rsi, rax
jb 0x14017a5fd
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14017c0a0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
call fcn.140154ba0
call rax
mov ecx, 2
call fcn.140146d08
lea rcx, str.terminate_handler_unexpectedly_returned_n
mov edx, 0x28
mov r8d, 1
mov r9, rax
call fcn.14015bbb0
call fcn.1401564d0
int3
Function at 0x140191ca0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140142708
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140191d10]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140150620
mov qword [rbx], rax
test rax, rax
je 0x140191cf7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140193720
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14012a710
test al, al
jne 0x140193741
mov rcx, rsi
call fcn.14012a710
test al, al
je 0x14019374a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140198680
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x40a
call fcn.14012aa00
xor ebx, ebx
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.140131050
movzx eax, byte [rdi + 0x17]
mov rcx, rax
test al, al
jns 0x140198713
mov rcx, qword [rdi + 8]
cmp rcx, 0x103
jbe 0x140198746
lea rcx, [rsp + 0x40]
call fcn.1401310b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movzx ecx, byte [r14 + 0x17]
mov rdx, rcx
test cl, cl
jns 0x140198756
mov rdx, qword [r14 + 8]
cmp rdx, 0x103
jbe 0x140198763
xor ebx, ebx
jmp 0x14019871c
mov rdx, r14
test cl, cl
jns 0x14019876d
mov rdx, qword [r14]
mov rcx, rdi
test al, al
jns 0x140198777
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x14019871c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.140051af0
test al, al
jne 0x1401987a7
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14019875f
mov rcx, rdi
mov rdx, r14
call fcn.1401987c0
test al, al
jne 0x14019871c
jmp 0x14019879d
Function at 0x140197760
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x170
call fcn.14012aa00
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140131050
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x1401977ed
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x140197814
test al, al
jns 0x1401977fd
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bpl
lea rcx, [rsp + 0x40]
call fcn.1401310b0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140143020
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140198370
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14029dc47]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x390
call fcn.14012aa00
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140145e20
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x140198473
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14015ded4
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140049ea0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14004b930
mov rcx, r14
mov rdx, rsi
call fcn.140049fe0
mov rcx, rsi
call fcn.1401295d0
mov rcx, rbx
call fcn.1401295d0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.1401310b0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401984c0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r12
movaps xmm6, xmmword [0x1402961a0]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x7b
call fcn.14012aa00
xor ebp, ebp
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.140131050
mov rcx, rdi
call fcn.14012a710
test al, al
je 0x140198594
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140143020
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.14012a710
test al, al
je 0x1401985a4
xor ebp, ebp
jmp 0x14019855e
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1401985b0
mov rax, qword [rdi + 8]
cmp rax, 0x103
ja 0x1401985a0
movzx eax, byte [r15 + 0x17]
test al, al
jns 0x1401985c5
mov rax, qword [r15 + 8]
cmp rax, 0x103
ja 0x1401985a0
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], r12
movaps xmmword [rsi], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x88
call fcn.14012aa00
lea r8, [0x1402dd7bc]
mov rcx, rsi
mov rdx, rbx
call fcn.1400b41b0
cmp byte [r15 + 0x17], 0
jns 0x140198616
mov r15, qword [r15]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x140198623
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14019866e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140198658
mov eax, edi
and eax, 1
je 0x140198658
mov edx, edi
and edx, 0xfffffffe
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
lea rcx, [rsp + 0x40]
call fcn.1400b42b0
jmp 0x14019855e
xor ebp, ebp
jmp 0x14019865f
Function at 0x140198680
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14012a710
test al, al
jne 0x140193741
mov rcx, rsi
call fcn.14012a710
test al, al
je 0x14019374a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140198680
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x40a
call fcn.14012aa00
xor ebx, ebx
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.140131050
movzx eax, byte [rdi + 0x17]
mov rcx, rax
test al, al
jns 0x140198713
mov rcx, qword [rdi + 8]
cmp rcx, 0x103
jbe 0x140198746
lea rcx, [rsp + 0x40]
call fcn.1401310b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movzx ecx, byte [r14 + 0x17]
mov rdx, rcx
test cl, cl
jns 0x140198756
mov rdx, qword [r14 + 8]
cmp rdx, 0x103
jbe 0x140198763
xor ebx, ebx
jmp 0x14019871c
mov rdx, r14
test cl, cl
jns 0x14019876d
mov rdx, qword [r14]
mov rcx, rdi
test al, al
jns 0x140198777
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x14019871c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.140051af0
test al, al
jne 0x1401987a7
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14019875f
mov rcx, rdi
mov rdx, r14
call fcn.1401987c0
test al, al
jne 0x14019871c
jmp 0x14019879d
Function at 0x1401988a0
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, 0x568
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140145e20
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140057040
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140057220
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140198936
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140198a05
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.140145e20
mov rcx, r15
mov rdx, rbx
call fcn.140057190
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140198a42
mov rcx, rbx
call fcn.14019ad70
test al, al
jne 0x140198a63
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14019899d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140198aee
call r13
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, rbx
call fcn.140019ac0
mov rcx, r15
mov rdx, rbx
call fcn.140057220
mov rcx, rdi
mov rdx, rbx
call fcn.140049fe0
mov rcx, rbx
call fcn.1401295d0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1401989f9
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x140198956
lea rcx, [rsp + 0x30]
call fcn.1401295d0
lea rcx, [rsp + 0x298]
call fcn.140057120
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140143020
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14b, r14b
je 0x140198ace
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x140198af5
mov rcx, qword [rsp + 0x30]
jmp 0x140198afa
xor ebp, ebp
test r14b, r14b
je 0x1401989be
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.1401988a0
mov ebp, eax
test eax, eax
jne 0x1401989be
cmp byte [rsp + 0x47], 0
jns 0x140198a9e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x1401989be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1401989be
lea rcx, [rsp + 0x48]
call fcn.14019ad70
test al, al
je 0x140198b05
lea rcx, [rsp + 0x48]
call fcn.14019ad70
test al, al
je 0x14019898e
xor ebp, ebp
jmp 0x1401989be
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14019897e
mov edx, dword [rsp + 0x48]
jmp 0x140198a4b
Function at 0x140198f70
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140198fef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140198ff4
test bl, bl
je 0x140198fcb
cmp byte [rdi + 8], 0
je 0x140199050
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.1400541e0
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x140198f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14019901c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140199021
xor esi, esi
jmp 0x140198fd8
mov rcx, qword [rdi]
jmp 0x140199009
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x140199058
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140198fcb
mov esi, dword [rsp + 0x24]
jmp 0x140198fcb
mov rcx, qword [rdi]
jmp 0x140198fc0
mov rcx, qword [rdi]
jmp 0x140199038
Function at 0x14019a420
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add rsp, 0x38
ret

Function at 0x14019a450
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, r8
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x4c]
mov dword [r9], ntohl
lea rax, [rsp + 0x40]
mov qword [rax], 0
lea rdi, [rsp + 0x3c]
mov dword [rdi], 8
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x14019a4bd
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140143020
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x4c]
and eax, 0xfffffff7
mov edi, 0x3f4
cmp eax, 3
jne 0x14019a4a7
cmp dword [rsp + 0x3c], 8
jne 0x14019a4a7
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
xor edi, edi
jmp 0x14019a4a7

Function at 0x14019a4f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x14019fcb0
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.140145e20
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
sete al
mov edx, dword [rbx]
test rdx, rdx
sete bl
or bl, al
jne 0x14019fd3b
mov rcx, rsi
call fcn.140033810
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.140033d30
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140033a40
xor bl, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401a9370
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1402ddb38]
test rax, rax
je 0x1401a94b4
cmp eax, 2
jne 0x1401a93ec
mov ecx, 2
call fcn.14004c5c0
test al, al
je 0x1401a9484
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x86
mov r9d, 2
call fcn.14004c600
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x1401a9477
mov eax, 1
lock xadd qword [0x1402ddb70], rax
test rax, rax
jle 0x1401a940c
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1402ddaf0], eax
mov qword [0x1402ddae8], rsi
mov rcx, qword [0x1402d1778]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.14004c5c0
test al, al
je 0x1401a9484
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xb2
mov r9d, 2
call fcn.14004c600
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.140124730
mov rcx, rsi
call fcn.14004caa0
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.140143020
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1402ddb38]
test rax, rax
je 0x1401a94bb
jmp 0x1401a939e

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

Disassembly:
push rsi
sub rsp, 0x20
lea r9, [0x1402ddb80]
xor ecx, ecx
mov r8d, 0xedb88320
mov edx, ecx
shr edx, 1
mov eax, ecx
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
shr edx, 1
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
shr edx, 1
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
shr edx, 1
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
mov dword [r9], edx
inc rcx
add r9, 4
cmp rcx, 0x100
jne 0x1401a97e4
mov eax, 0x100
lea rcx, [0x1402ddb80]
mov edx, dword [rcx + rax*4 - 0x400]
movzx esi, dl
shr edx, 8
xor edx, dword [rcx + rsi*4]
mov dword [rcx + rax*4], edx
inc rax
cmp rax, 0x800
jne 0x1401a9867
lea rax, [0x140223210]
mov qword [0x1402dfb80], rax
mov qword [0x1402ddb78], rax
lea rsi, [0x1402232d0]
mov qword [0x1402dfb88], rsi
call fcn.1402233f0
test eax, eax
jne 0x1401a98b8
mov qword [0x1402ddb78], rsi
add rsp, 0x20
pop rsi
ret
Function at 0x1401e1540
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x268
mov r14, rdx
mov edi, ecx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rbx, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140145e20
mov word [rbx], 0
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x1401e15cf
lea rsi, [rsp + 0x28]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14015ded4
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov rdx, rsi
call fcn.140049ea0
mov rcx, r14
mov rdx, rbx
call fcn.140049fe0
mov rcx, rbx
call fcn.1401295d0
test edi, edi
setns bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rbp, qword [rcx + 0x40]
mov r15d, 1
cmp rdi, rbp
je 0x1401e1e78
mov r14, r8
mov rsi, rcx
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.1401e3a00
test al, al
jne 0x1401e1e3c
add rdi, 0x70
cmp rdi, rbp
jne 0x1401e1e21
mov rdi, rbp
cmp rdi, qword [rsi + 0x40]
je 0x1401e1e78
cmp byte [rdi + 0x27], 0
jns 0x1401e1e4e
mov rcx, qword [rdi + 0x10]
jmp 0x1401e1e52
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov r15d, 1
cmovne r15d, ecx
test r15d, r15d
jne 0x1401e1e78
mov qword [r14], rdi
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140143020
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret