joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401680f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp edx, 0xffffffff
je 0x14016815a
mov r15d, edx
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x140168180
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.1400cb76c
mov esi, 0xffffffff
cmp rax, 1
je 0x14016815d
jmp 0x140168160
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x140168230
mov ebp, eax
cmp eax, 3
je 0x14016820f
cmp ebp, 1
ja 0x140168230
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.1400cb76c
cmp rax, rsi
jne 0x140168230
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140168198
jmp 0x14016815d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.1400cb76c
cmp rax, 1
je 0x14016815d
mov esi, 0xffffffff
jmp 0x140168160

Function at 0x140168280
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1401682b5
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400cb76c
xor ebx, ebx
test rsi, rsi
jle 0x1401682db
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x1401682db
inc rbx
cmp rsi, rbx
jne 0x1401682bc
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401682f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
cmp dx, 0xffff
je 0x14016835a
mov r15d, edx
mov rdi, rcx
mov word [rsp + 0x56], dx
cmp byte [rcx + 0x58], 0
je 0x140168380
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.1400cb76c
mov si, 0xffff
cmp rax, 1
je 0x14016835d
jmp 0x140168360
xor r15d, r15d
mov esi, r15d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x140168430
mov ebp, eax
cmp eax, 3
je 0x14016840f
cmp ebp, 1
ja 0x140168430
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.1400cb76c
cmp rax, rsi
jne 0x140168430
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140168398
jmp 0x14016835d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.1400cb76c
cmp rax, 1
je 0x14016835d
mov si, 0xffff
jmp 0x140168360
Function at 0x14016efc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov r15b, byte [rbp + 0x78]
test byte [r9 + 8], 1
jne 0x14016f01f
movzx eax, word [rbp + 0x70]
movzx edx, r15b
mov rbx, qword [rcx]
mov dword [rsp + 0x28], edx
mov word [rsp + 0x20], ax
mov rdx, r14
mov r8, rdi
call qword [rbx + 0x30]
mov rax, r14
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [r9 + 0x30]
lea rcx, [rbp - 0x20]
mov qword [rcx], rax
mov qword [rbp - 8], rax
lock inc dword [rax + 8]
lea rdx, [0x1402951b8]
call fcn.14009f658
mov r12, rax
mov eax, 0xffffffff
mov rcx, qword [rbp - 8]
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14016f059
mov rax, qword [rcx]
call qword [rax + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rbp - 0x20]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [0x140257270]
movaps xmmword [r13], xmm0
mov rax, qword [r12]
xor r15b, 1
movzx esi, r15b
mov rcx, r12
mov rdx, r13
call qword [rax + rsi*8 + 0x28]
movzx ebx, byte [r13 + 0x17]
test bl, bl
mov rcx, qword [r13]
mov r8, qword [r13 + 8]
mov rax, rbx
cmovs rax, r8
test rax, rax
je 0x14016f111
test bl, bl
mov rsi, rcx
cmovns rsi, r13
test rdi, rdi
je 0x14016f100
movzx eax, word [rsi]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x14016f104
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x14016f0d6
xor edi, edi
mov bl, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
add rsi, 2
test bl, bl
mov rax, r13
cmovs rax, rcx
movzx edx, bl
cmovs rdx, r8
lea rax, [rax + rdx*2]
cmp rsi, rax
jne 0x14016f0b1
jmp 0x14016f111
xor edi, edi
jmp 0x14016f0e1
mov rbx, qword [rdi]
mov rcx, rdi
mov edx, eax
call qword [rbx + 0x60]
jmp 0x14016f0ce
shr bl, 7
mov qword [r14], rdi
test bl, bl
je 0x14016f00b
call fcn.1400c9cac
jmp 0x14016f00b
Function at 0x14017d000
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.14009ccc0
cmp byte [rdi + 0x17], 0
jns 0x14017d041
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x14017d062
mov rcx, qword [rsp + 0x58]
call fcn.1400c9cac
test edi, edi
je 0x14017d10e
test r14, r14
je 0x14017d10e
mov ecx, edi
add rcx, rcx
call fcn.1400ca15c
mov rbx, rax
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.14009ccc0
cmp byte [rsi + 0x17], 0
jns 0x14017d0a3
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x14017d0c3
mov rcx, qword [rsp + 0x58]
call fcn.1400c9cac
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14017d12c
mov rcx, rbx
call fcn.1400ca328
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.14008ddb0
cmp byte [r14 + 0x17], 0
js 0x14017d130
mov rax, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14], xmm0
test rbx, rbx
je 0x14017d10e
mov rcx, rbx
call fcn.1400c9cb4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14017d0d5
mov rcx, qword [r14]
call fcn.1400c9cac
jmp 0x14017d0ef
Function at 0x14017ead0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
sub r9, r8
je 0x14017eb0a
mov rdx, r9
shr rdx, 2
xor eax, eax
lea r10, [0x140263ad0]
movzx r11d, dl
movzx esi, byte [r8 + rax]
xor esi, r11d
shr edx, 8
xor edx, dword [r10 + rsi*4]
inc rax
cmp r9, rax
jne 0x14017eaed
jmp 0x14017eb0c
xor edx, edx
cmp edx, dword [rcx + 0x18]
sete al
pop rsi
ret

Function at 0x140181e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140181e8c
cmp edx, 0xffff
ja 0x140181e8c
mov rsi, r9
mov rdi, rcx
mov edx, edx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x140181e95
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rbx, rax
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140181e8a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140181ed2
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rax
mov edx, ebp
mov qword [rcx], rdx
test rax, rax
setne al
jmp 0x140181e8c
Function at 0x140182330
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 rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x60]
mov qword [rsi + 0x50], r12
movaps xmm6, xmmword [0x140257270]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.DoLinkOrCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0xd6
call fcn.14007e2d0
xor ebx, ebx
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.14008e970
mov rcx, r15
call fcn.14008e280
test al, al
je 0x1401823ff
lea rcx, [rsp + 0x60]
call fcn.14007d0f0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r14
call fcn.14008e280
test al, al
je 0x14018240f
xor ebx, ebx
jmp 0x1401823ca
movzx eax, byte [r15 + 0x17]
test al, al
jns 0x14018241c
mov rax, qword [r15 + 8]
cmp rax, 0x103
ja 0x14018240b
movzx eax, byte [r14 + 0x17]
test al, al
jns 0x140182431
mov rax, qword [r14 + 8]
cmp rax, 0x103
ja 0x14018240b
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], r12
movaps xmmword [rsi], xmm6
lea rdx, str.DoLinkOrCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0xe9
call fcn.14007e2d0
lea r8, [0x14029784c]
mov rcx, rsi
mov rdx, rdi
call fcn.140138840
cmp byte [r14 + 0x17], 0
jns 0x140182482
mov r14, qword [r14]
cmp byte [r15 + 0x17], 0
jns 0x14018248c
mov r15, qword [r15]
xor ebx, ebx
mov rcx, r15
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401824cc
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1401824c6
mov eax, edi
and eax, 1
je 0x1401824c6
mov edx, edi
and edx, 0xfffffffe
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bl
lea rcx, [rsp + 0x40]
call fcn.140138930
jmp 0x1401823ca

Function at 0x140182bf0
Capabilities:
Delete registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, str.DeleteValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x20]
mov r9d, 0x145
call fcn.14007e2d0
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, esi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140182c50
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
lea r15, [rsp + 0x3c]
mov dword [r15], eax
lea r12, [rsp + 0x38]
mov dword [r12], eax
lea rsi, [rsp + 0x34]
mov dword [rsi], 0
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.14007e2d0
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140182d12
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140182cf5
cmp dword [rsp + 0x38], 4
jne 0x140182cf5
mov eax, dword [rsp + 0x34]
mov dword [r14], eax
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x140182cf5
Function at 0x14018b482
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x14014d368
mov r8, qword [rcx + 0x70]
test r8, r8
je 0x14014d368
mov rax, qword [rcx + 0x78]
test rax, rax
cmovne r8, rax
mov edx, dword [r8 + 8]
lea eax, [rdx - 1]
cmp eax, 2
jae 0x14014d36b
mov rax, qword [r8 + 0x48]
test rax, rax
je 0x14014d353
mov rdx, qword [rax + 0x18]
test rdx, rdx
jne 0x14014d358
mov rax, qword [r8 + 0x10]
ret
mov r8, qword [r8 + 0x10]
mov rcx, qword [rcx + 0xa0]
jmp fcn.14014d448
xor eax, eax
ret
xor eax, eax
add edx, 0xfffffffd
cmp edx, 0xf
ja case.0x14014d383.15
lea r9, [0x14014d408]
movsxd rdx, dword [r9 + rdx*4]
add rdx, r9
jmp rdx
mov rdx, qword [r8 + 0x10]
mov rcx, qword [rcx + 0xa0]
mov r8d, 0xffffffff
jmp fcn.14012ffa2
mov rcx, qword [rcx + 0xa0]
lea rdx, [0x14026b832]
jmp 0x14014d390
mov rcx, qword [rcx + 0xa0]
lea rdx, str.cdata_section
jmp 0x14014d390
mov rcx, qword [rcx + 0xa0]
lea rdx, [0x14026b847]
jmp 0x14014d390
mov rcx, qword [rcx + 0xa0]
lea rdx, str.document
jmp 0x14014d390
mov rcx, qword [rcx + 0xa0]
lea rdx, str.document_fragment
jmp 0x14014d390
mov r8, qword [r8 + 0x18]
mov rcx, qword [rcx + 0xa0]
lea rdx, str.xmlns
test r8, r8
je 0x14014d390
jmp fcn.14014d448
test rcx, rcx
je 0x14018b4c5
mov rax, qword [rcx + 0x70]
test rax, rax
je 0x14018b4c5
mov rdx, qword [rcx + 0x78]
test rdx, rdx
cmovne rax, rdx
mov edx, dword [rax + 8]
cmp edx, 0x12
jne 0x14018b4c8
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x14018b4d3
mov rcx, qword [rcx + 0xa0]
lea rdx, str.xmlns
mov r8d, 0xffffffff
jmp fcn.14012ffa2
xor eax, eax
ret
dec edx
cmp edx, 2
jae 0x14018b4d4
mov rax, qword [rax + 0x10]
ret
jmp 0x14014d31c

Function at 0x14018d1a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14018d1dc
mov rax, qword [r14]
mov qword [rbx], rax
add qword [rbp + 0x10], 8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rbp]
mov rdi, qword [rbp + 8]
mov rax, rdi
sub rax, r15
jbe 0x14018d239
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, rdi
sub r15, rax
sub rbx, rdi
je 0x14018d228
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.1400cf0a0
mov rdi, qword [rbp + 8]
add rbx, r15
mov qword [rbp + 0x10], rbx
lea rax, [rdi + r12*8]
mov qword [rbp + 8], rax
jmp 0x14018d1c0
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x14018d2d0
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.1400c9cbc
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, rdi
je 0x14018d2a3
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rsi, qword [rdi + rdx]
mov qword [rcx + rdx], rsi
add rdx, 8
cmp rbx, rdx
jne 0x14018d292
mov qword [rbp], rax
mov qword [rbp + 8], r9
mov qword [rbp + 0x10], r10
mov qword [rbp + 0x18], r8
mov rbx, r10
test r15, r15
je 0x14018d1c0
mov rcx, r15
call fcn.1400c9cac
mov rbx, qword [rbp + 0x10]
jmp 0x14018d1c0
call fcn.1400c9fe0
int3
Function at 0x14018d2e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x14018d31f
mov r15, rbx
mov rax, qword [r14]
mov qword [r15 - 8], rax
add qword [rbp + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
cmp rdi, rax
jae 0x14018d371
sub rax, rdi
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
sar r12, 1
lea r15, [rdi + r12*8]
mov r8, rdi
sub r8, rbx
je 0x14018d363
sub r15, r8
mov rcx, r15
mov rdx, rbx
call fcn.1400cf0a0
mov rdi, qword [rbp + 0x10]
mov qword [rbp + 8], r15
lea rax, [rdi + r12*8]
mov qword [rbp + 0x10], rax
jmp 0x14018d302
sub rax, rbx
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x14018d403
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.1400c9cbc
lea r15, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r15
sub rdi, rbx
je 0x14018d3d9
lea r9, [r15 + rdi]
sar rdi, 3
shl rdi, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rsi, qword [rbx + rdx]
mov qword [rcx + rdx], rsi
add rdx, 8
cmp rdi, rdx
jne 0x14018d3c8
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r9
mov qword [rbp + 0x18], r8
test rbx, rbx
je 0x14018d302
mov rcx, rbx
call fcn.1400c9cac
mov r15, qword [rbp + 8]
jmp 0x14018d302
call fcn.1400c9fe0
int3
Function at 0x1401b0399
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 [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1401b03c3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b0404
mov edi, eax
test bl, bl
jne 0x1401b04bd
mov eax, edi
and eax, 0x400
je 0x1401b04bd
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x1401b03e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x81
mov r9d, 2
call fcn.14014efd0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400a7acb
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14008ddb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401b0492
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400a7acb
cmp byte [rsp + 0x57], 0
jns 0x1401b04ae
mov rcx, qword [rsp + 0x40]
call fcn.1400c9cac
lea rcx, [rsp + 0x58]
call fcn.1401412f0
jmp 0x1401b03e5
and edi, 0x10
shr edi, 4
jmp 0x1401b03e7

Function at 0x1401b1280
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 [0x14028f028]
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 0x1401b1318
mov r14, r8
mov rsi, rcx
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.14015b850
test al, al
jne 0x1401b12dc
add rdi, 0x70
cmp rbp, rdi
jne 0x1401b12c1
mov rdi, rbp
cmp rdi, qword [rsi + 0x40]
je 0x1401b1318
cmp byte [rdi + 0x27], 0
jns 0x1401b12ee
mov rcx, qword [rdi + 0x10]
jmp 0x1401b12f2
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 0x1401b1318
mov qword [r14], rdi
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401b16ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rsi, qword [rcx + 0x40]
mov r12d, 1
cmp rdi, rsi
je 0x1401b1776
mov r14, r9
mov r15d, r8d
mov rbx, rcx
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.14015b850
test al, al
jne 0x1401b174d
add rdi, 0x70
cmp rsi, rdi
jne 0x1401b1732
mov rdi, rsi
cmp rdi, qword [rbx + 0x40]
je 0x1401b1776
mov eax, dword [rdi + 0x68]
cmp eax, r15d
jne 0x1401b1767
cmp byte [rdi + 0x27], 0
jns 0x1401b1795
mov rcx, qword [rdi + 0x10]
jmp 0x1401b1799
xor ecx, ecx
cmp eax, 1
sete cl
lea r12d, [rcx + rcx*2]
inc r12d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, r12d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b1776
shr eax, 3
and eax, 2
mov r12d, eax
jne 0x1401b1776
mov byte [rbx + 0x30], 1
mov qword [r14], rdi
xor r12d, r12d
jmp 0x1401b1776
Function at 0x1401b1f5e
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1401b1f85
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b1fa0
and eax, 0x410
cmp eax, 0x410
je 0x1401b2094
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1401b1fac
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x1401b1fd5
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400ac390
test al, al
je 0x1401b208d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.14014efd0
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.1400a7acb
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14008ddb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401b2067
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400a7acb
cmp byte [rsp + 0x4f], 0
jns 0x1401b2083
mov rcx, qword [rsp + 0x38]
call fcn.1400c9cac
lea rcx, [rsp + 0x50]
call fcn.1401412f0
xor edi, edi
jmp 0x1401b1fb9
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400ccfe0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1401f0af2