joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f450
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], r15
movaps xmm6, xmmword [0x140133080]
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.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2af
call fcn.140069de0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140070090
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14002f4e6
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002f532
mov sil, 1
test al, 0x10
je 0x14002f5cc
lea rcx, [rsp + 0x40]
call fcn.1400700f0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140097620
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
mov rcx, rdi
mov rdx, rsi
call fcn.140068c90
movzx ecx, byte [rsi + 0x17]
mov r8, rcx
test cl, cl
jns 0x14002f559
mov r8, qword [rsp + 0x28]
movzx eax, byte [rdi + 0x17]
mov rdx, rax
test al, al
jns 0x14002f568
mov rdx, qword [rdi + 8]
cmp r8, rdx
je 0x14002f5ea
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.14002f450
test al, al
je 0x14002f634
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
je 0x14002f5a3
lea rcx, [rsp + 0x20]
call fcn.1400683f0
jmp 0x14002f4ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x14002f5be
mov rcx, rdi
call fcn.14002f1a0
test al, al
jne 0x14002f594
test r14, r14
je 0x14002f62c
mov ecx, ebx
call fcn.14002fc30
jmp 0x14002f629
test r14, r14
je 0x14002f5d8
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14002f4ff
test r8, r8
je 0x14002f61a
test cl, cl
jns 0x14002f5f8
mov rsi, qword [rsp + 0x20]
mov rcx, rdi
test al, al
jns 0x14002f602
mov rcx, qword [rdi]
xor edx, edx
movzx eax, word [rsi + rdx*2]
cmp ax, word [rcx + rdx*2]
jne 0x14002f56d
inc rdx
cmp r8, rdx
jne 0x14002f604
mov eax, 0xfffffffc
mov ebx, 2
test r14, r14
je 0x14002f62c
mov dword [r14], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14002f594
Function at 0x14002f780
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 [0x140154028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140099ee0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140030ce0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140133080]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140030ec0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14002f816
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14002f8e5
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.140099ee0
mov rcx, r15
mov rdx, rbx
call fcn.140030e30
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14002f922
mov rcx, rbx
call fcn.140030c20
test al, al
jne 0x14002f943
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002f87d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002f9ce
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.140019a90
mov rcx, r15
mov rdx, rbx
call fcn.140030ec0
mov rcx, rdi
mov rdx, rbx
call fcn.140068400
mov rcx, rbx
call fcn.1400683f0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14002f8d9
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x14002f836
lea rcx, [rsp + 0x30]
call fcn.1400683f0
lea rcx, [rsp + 0x298]
call fcn.140030dc0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140097620
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 0x14002f9ae
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14002f9d5
mov rcx, qword [rsp + 0x30]
jmp 0x14002f9da
xor ebp, ebp
test r14b, r14b
je 0x14002f89e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.14002f780
mov ebp, eax
test eax, eax
jne 0x14002f89e
cmp byte [rsp + 0x47], 0
jns 0x14002f97e
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 0x14002f89e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002f89e
lea rcx, [rsp + 0x48]
call fcn.140030c20
test al, al
je 0x14002f9e5
lea rcx, [rsp + 0x48]
call fcn.140030c20
test al, al
je 0x14002f86e
xor ebp, ebp
jmp 0x14002f89e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002f85e
mov edx, dword [rsp + 0x48]
jmp 0x14002f92b
Function at 0x14002fa00
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x140133080]
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, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x88
call fcn.140069de0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140070090
test esi, esi
js 0x14002fb08
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14006e430
test al, al
jne 0x14002fb0f
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14006e4a0
lea rcx, [rsp + 0x50]
call fcn.1400700f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140097620
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14002fadb
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400de6a0
jmp 0x14002faa2

Function at 0x14002fb30
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r14, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rsi
movaps xmm0, xmmword [0x140133080]
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, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x9c
call fcn.140069de0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140070090
mov qword [rbx + 8], rsi
mov qword [rbx], 0
call fcn.14006e430
test al, al
jne 0x14002fc14
lea rdi, [rsp + 0x28]
mov qword [rdi], rsi
mov rcx, qword [r14]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14006e4a0
lea rcx, [rsp + 0x50]
call fcn.1400700f0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140097620
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, r14
xor r9d, r9d
call fcn.1400de6a0
jmp 0x14002fbc1
Function at 0x14002fd60
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x140133080]
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.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x15a
call fcn.140069de0
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.140070090
mov eax, r15d
and eax, 1
neg eax
and eax, 3
test r15b, 2
mov edx, 1
cmove edx, eax
test r15b, 4
mov ecx, 4
cmovne edx, ecx
test r15b, 8
mov ebp, 2
cmove ebp, edx
test r15b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x14002ffc2
mov edx, r15d
and edx, 0x40
shl edx, 0x18
test r15b, r15b
cmovns ecx, edx
mov edx, r15d
rol edx, 0x1a
mov edi, r15d
shl edi, 0xb
and edi, 0x20000000
mov esi, r15d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r15d
shr ecx, 8
and ecx, 3
mov r8d, r15d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r15d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r15d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r15d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r15d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r15d
shl ecx, 8
mov esi, ecx
and esi, 0x2000000
or esi, ebp
and ecx, 0x8000000
or ecx, esi
cmp byte [rbx + 0x17], 0
jns 0x14002fed4
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r14], rax
je 0x14002ff30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x14002ffa9
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14002ff25
mov qword [r14], rbx
call fcn.140069e00
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jb 0x14002ff5b
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x14002ff97
test r15b, 0xa
je 0x14002ff6c
mov byte [r14 + 0x28], 1
jmp 0x14002ff6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002fc30
mov dword [r14 + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.1400700f0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140097620
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x14002ff6c
call fcn.140069e00
mov rcx, qword [r14]
call fcn.14006c2f0
mov qword [r14], 0
jmp 0x14002ff11
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x14002ff6c
Function at 0x1400324f0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140099ee0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003257c
mov ebx, eax
sub rbx, 1
jb 0x14003257c
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14003254c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140032566
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400ab624
test eax, eax
je 0x14003264f
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x103
jae 0x1400325d6
mov ebx, eax
sub rbx, 1
jb 0x1400325d6
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x1400325a6
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400325c0
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400ab624
test eax, eax
je 0x140032681
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140032630
mov ebx, eax
sub rbx, 1
jb 0x140032630
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x140032600
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003261a
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400ab624
test eax, eax
je 0x1400326b6
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140097620
mov eax, edi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14003265e
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x140032632
mov rcx, rsi
test al, al
jns 0x140032673
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14003257c
jmp 0x140032632
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x140032690
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x140032632
mov rcx, rsi
test al, al
jns 0x1400326a5
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x1400325d6
jmp 0x140032632
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x1400326c5
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x140032632
test al, al
jns 0x1400326db
mov rsi, qword [rsi]
cmp word [rsi + rbx*2 + 2], 0x5c
jne 0x140032630
jmp 0x140032632
Function at 0x140035040
Capabilities:
Create thread

Disassembly:
jmp 0x140035040
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.1400967c4
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x1400353a0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400350e1
test rbp, rbp
je 0x140035111
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140097620
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400350fa
mov ebp, eax
cmp eax, 0x5af
je 0x1400350fa
cmp ebp, 0xe
jne 0x14003511c
mov rcx, r15
call fcn.1400e3eb0
test r14, r14
je 0x1400350bf
mov rcx, r14
call fcn.140096800
jmp 0x1400350bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400350bf
mov eax, dword [0x14015a2a8]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003518b
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.140034750
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x14015a2a0]
call fcn.140074ce0
cmp byte [rsi + 0x17], 0
jns 0x140035102
mov rcx, qword [rsp + 0x38]
call fcn.140096800
jmp 0x140035102
lea rcx, [0x14015a2a8]
call fcn.140096920
cmp dword [0x14015a2a8], 0xffffffff
jne 0x14003513d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14003fad0
mov qword [0x14015a2a0], rax
lea rcx, [0x14015a2a8]
call fcn.1400969b8
jmp 0x14003513d
Function at 0x1400357c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1400357fa
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x140035856
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, r14
sub r15, rax
sub rbx, r14
je 0x140035845
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140099ad0
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1400357df
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 0x1400358ec
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.1400967c4
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x1400358c0
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x1400358af
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x1400357df
mov rcx, r15
call fcn.140096800
mov rbx, qword [rsi + 0x10]
jmp 0x1400357df
call fcn.1400a8840
int3
Function at 0x140037750
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x14015a318]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400377b2
lea rsi, [0x14015a310]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140097620
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14015a318]
call fcn.140096920
cmp dword [0x14015a318], 0xffffffff
jne 0x14003778d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140099ee0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400967c4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14015a350]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037872
lea r8, [0x14015a320]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r9d, edi
call fcn.1400379f0
mov qword [0x14015a310], rsi
lea rcx, [0x14015a318]
call fcn.1400969b8
jmp 0x14003778d
lea rcx, [0x14015a350]
call fcn.140096920
cmp dword [0x14015a350], 0xffffffff
jne 0x140037843
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x14015a340], xmm2
movups xmmword [0x14015a330], xmm1
movups xmmword [0x14015a320], xmm0
lea rcx, [0x14015a350]
call fcn.1400969b8
jmp 0x140037843

Function at 0x140037900
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14015a350]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003795c
movzx eax, word [0x14015a320]
cmp ax, 9
jne 0x1400379be
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140097620
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14015a350]
call fcn.140096920
cmp dword [0x14015a350], 0xffffffff
jne 0x140037935
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x14015a340], xmm2
movups xmmword [0x14015a330], xmm1
movups xmmword [0x14015a320], xmm0
lea rcx, [0x14015a350]
call fcn.1400969b8
jmp 0x140037935
xor esi, esi
test ax, ax
je 0x140037947
cmp ax, 6
jne 0x1400379d5
mov esi, 2
jmp 0x140037947
cmp ax, 0xc
jne 0x1400379e5
mov esi, 3
jmp 0x140037947
mov esi, 4
jmp 0x140037947
Function at 0x140037f30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14003801c
cmp qword [rsi], 0
jne 0x14003801c
cmp dword [rsi + 0x14], 0
jne 0x14003801c
cmp qword [rsi + 8], 0
jne 0x14003801c
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x140037f9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140037fee
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140037f97
mov qword [rsi], rbx
call fcn.140069e00
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x140037fd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140038004
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140037fd1
mov qword [rsi + 8], rbp
call fcn.140069e00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140069e00
mov rcx, qword [rsi]
call fcn.14006c2f0
mov qword [rsi], 0
jmp 0x140037f85
call fcn.140069e00
mov rcx, qword [rsi + 8]
call fcn.14006c2f0
mov qword [rsi + 8], 0
jmp 0x140037fbe
mov rcx, rsi
call fcn.1400e1a70
mov rax, qword [rsi]
jmp 0x140037f69
Function at 0x1400383a0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
lea rax, [0x1401325e0]
mov qword [rcx], rax
add rcx, 8
call fcn.14006d5d0
lea rcx, [rsi + 0x10]
call fcn.14006d5d0
xor edi, edi
mov byte [rsi + 0x18], dil
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], edi
call fcn.14006d5d0
mov byte [rsi + 0x48], dil
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rdi
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebx, 0x3f800000
mov dword [rsi + 0xd0], ebx
mov dword [rsi + 0xd8], edi
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebx
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebx
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebx
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebx
mov qword [rsi + 0x198], rdi
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], edi
mov eax, dword [0x14013dd28]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.1400421b0
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rdi
xor edx, edx
call fcn.14003ee90
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.14003ee90
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14003ee90
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
mov dword [rsi + 0x328], ebx
movups xmmword [rsi + 0x330], xmm6
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x359], xmm6
movups xmmword [rsi + 0x370], xmm6
movups xmmword [rsi + 0x380], xmm6
call fcn.140019a90
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov rcx, rsi
call fcn.1400385b0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400385a0
call fcn.140041910
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400419c0
mov qword [0x14015a6f0], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x14003856f