joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056af0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x450]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401a01c0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1401aaef8]
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x240]
mov rcx, rbp
mov r9d, 0x17c
call fcn.1400b0f20
mov rcx, rsi
mov rdx, rbp
xor r8d, r8d
call fcn.1400b6db0
lea rsi, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1400d8590
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140056b9e
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rsi
call fcn.1400b5aa0
mov rcx, rsi
call fcn.1400a4320
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1400d8590
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140056bd5
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rsi
call fcn.1400b5aa0
mov rcx, rsi
call fcn.1400a4320
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140056bf7
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140056c03
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov sil, 1
test eax, eax
jne 0x140056c5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140058120
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140056c39
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140056c42
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
jne 0x140056c5b
test r14, r14
jne 0x140056c88
lea rcx, [rsp + 0x450]
call fcn.1400b6e10
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.1400d5720
mov eax, esi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp ebp, 0xfffffffc
jne 0x140056c94
call fcn.14012b590
mov ebp, eax
mov dword [r14], ebp
xor esi, esi
jmp 0x140056c5b

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401a01c0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1af
call fcn.1400b0f20
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b6db0
cmp byte [rdi + 0x17], 0
jns 0x140056d24
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400b6e10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400d5720
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140056d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401a01c0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1d7
call fcn.1400b0f20
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b6db0
cmp byte [rdi + 0x17], 0
jns 0x140056de4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.1400b6e10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400d5720
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140056e30
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400d8590
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140056ecf
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400f53b4
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400addd0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140050560
mov rcx, r14
mov rdx, rsi
call fcn.1400adf20
mov rcx, rsi
call fcn.1400adeb0
mov rcx, rbx
call fcn.1400adeb0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400d5720
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140056f00
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400d8590
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140056f95
cmp word [rsp + 0x70], 0
je 0x140056f95
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400f53b4
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400addd0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400d5720
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401a01c0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400add50
mov rcx, rdi
call fcn.140056e30
test al, al
je 0x140056fd5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400addb0
jmp 0x140056ff4
lea rax, [0x1401aaf20]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400addd0
lea rcx, [rsp + 0x40]
call fcn.1400adeb0
jmp 0x140056f77
Function at 0x1400578c0
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 [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.1400d8590
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400610f0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401a01c0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.1400612d0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140057956
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140057a27
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.1400d8590
mov rcx, r15
mov rdx, rbx
call fcn.140061240
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140057aba
mov rcx, rbx
call fcn.1400610e0
test al, al
jne 0x140057a64
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400579bd
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x140057a23
call qword [sym.imp.KERNEL32.dll_GetLastError]
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.1400396e0
mov rcx, r15
mov rdx, rbx
call fcn.1400612d0
mov rcx, rdi
mov rdx, rbx
call fcn.1400adf20
mov rcx, rbx
call fcn.1400adeb0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140057a15
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x140057976
jmp 0x140057a27
xor ebp, ebp
jmp 0x1400579da
lea rcx, [rsp + 0x30]
call fcn.1400adeb0
lea rcx, [rsp + 0x298]
call fcn.1400611d0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400d5720
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
test r14b, r14b
je 0x1400579da
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1400578c0
test eax, eax
jne 0x140057b0b
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140057a94
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400579da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400579da
test r14b, r14b
je 0x140057ad0
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x140057af5
mov rcx, qword [rsp + 0x30]
jmp 0x140057afa
lea rcx, [rsp + 0x48]
call fcn.1400610e0
test al, al
je 0x140057b05
lea rcx, [rsp + 0x48]
call fcn.1400610e0
test al, al
je 0x1400579ae
jmp 0x140057a23
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14005799e
mov edx, dword [rsp + 0x48]
jmp 0x140057abf
mov ebp, eax
jmp 0x1400579da
Function at 0x140057b30
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 [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x1401a01c0]
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.1400b0f20
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b6db0
test esi, esi
js 0x140057c38
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400be260
test al, al
jne 0x140057c3f
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.1400be2f0
lea rcx, [rsp + 0x50]
call fcn.1400b6e10
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400d5720
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140057c0b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.14012f720
jmp 0x140057bd2

Function at 0x140057c60
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r14, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rsi
movaps xmm0, xmmword [0x1401a01c0]
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.1400b0f20
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b6db0
mov qword [rbx + 8], rsi
mov qword [rbx], 0
call fcn.1400be260
test al, al
jne 0x140057d44
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.1400be2f0
lea rcx, [rsp + 0x50]
call fcn.1400b6e10
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400d5720
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.14012f720
jmp 0x140057cf1
Function at 0x140057d60
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x1401a01c0]
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.SetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xa9
call fcn.1400b0f20
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400b6db0
mov qword [rdi + 8], r15
mov qword [rdi], 0
call fcn.1400be260
test al, al
jne 0x140057e8c
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140057e57
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140057e57
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140057ea8
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.1400be2f0
lea rcx, [rsp + 0x50]
call fcn.1400b6e10
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400d5720
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, r14
call fcn.14012f720
jmp 0x140057dfa
xor ebx, ebx
jmp 0x140057e57
Function at 0x140058290
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 [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1401a01c0]
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, 0x160
call fcn.1400b0f20
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.1400b6db0
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 0x1400584f2
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 0x140058404
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 0x140058460
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x1400584d9
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140058455
mov qword [r14], rbx
call fcn.1400b0f40
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jb 0x1400584b4
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x1400584c7
test r15b, 0xa
je 0x140058489
mov byte [r14 + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.1400b6e10
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d5720
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140058120
mov dword [r14 + 0x24], eax
jmp 0x140058489
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x140058489
call fcn.1400b0f40
mov rcx, qword [r14]
call fcn.1400b9290
mov qword [r14], 0
jmp 0x140058441
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x140058489
Function at 0x140058510
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140058558
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140058561
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140058548
mov qword [rdi], rsi
call fcn.1400b0f40
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400b0f40
mov rcx, qword [rdi]
call fcn.1400b9290
mov qword [rdi], 0
jmp 0x140058536

Function at 0x140058810
Capabilities:
Create thread

Disassembly:
jmp 0x140058810
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 [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.1400d4eb8
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, [0x140058b70]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400588b1
test rbp, rbp
je 0x1400588e1
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d5720
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 0x1400588ca
mov ebp, eax
cmp eax, 0x5af
je 0x1400588ca
cmp ebp, 0xe
jne 0x1400588ec
mov rcx, r15
call fcn.140132880
test r14, r14
je 0x14005888f
mov rcx, r14
call fcn.1400d4ef4
jmp 0x14005888f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005888f
mov eax, dword [0x1401d80b8]
mov ecx, dword [0x1401d17f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005895b
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.140053a40
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 [0x1401d80b0]
call fcn.1400c2bd0
cmp byte [rsi + 0x17], 0
jns 0x1400588d2
mov rcx, qword [rsp + 0x38]
call fcn.1400d4ef4
jmp 0x1400588d2
lea rcx, [0x1401d80b8]
call fcn.1400d5010
cmp dword [0x1401d80b8], 0xffffffff
jne 0x14005890d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140067af0
mov qword [0x1401d80b0], rax
lea rcx, [0x1401d80b8]
call fcn.1400d50a8
jmp 0x14005890d
Function at 0x140058df0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058e77
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140058e61
cmp dword [rsp + 0x38], 4
jne 0x140058e61
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d5720
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140058e61

Function at 0x140058e80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400d56b0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401c8018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1400d8590
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058f33
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140058f37
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.14004bf60
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400d5720
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140058f14
cmp eax, 2
jne 0x140058f83
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1400d8590
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x140058f7c
lea rdx, [rsp + 0x40]
jmp 0x140058f0a
mov edi, 0xea
jmp 0x140058f14
mov edi, 0x3f4
jmp 0x140058f14
Function at 0x1400597a0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1401a3598]
mov qword [rcx], rax
add rcx, 8
call fcn.1400b91d0
lea rcx, [rsi + 0x10]
call fcn.1400b91d0
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.1400b91d0
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
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 ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x1401b001c]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14006a060
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rbx
xor edx, edx
call fcn.140055680
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140055680
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140055680
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
mov dword [rsi + 0x328], ebp
movsxd rax, edi
movups xmmword [rsi + 0x330], xmm6
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
mov byte [rsi + 0x360], bl
mov qword [rsi + 0x368], rax
mov byte [rsi + 0x370], bl
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
call fcn.1400396e0
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.1400599d0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400599b1
call fcn.140069900
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400699b0
mov qword [0x1401d84b8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1401e9010]
jmp 0x14005997f