joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005434
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp + 0x28]
mov ebx, 0x20019
mov rsi, 0xffffffff80000001
lea rdx, str.SoftwareAutoIt_v3Aut2Exe
xor r8d, r8d
mov r9d, ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
je 0x1400054a0
lea rax, [rbp + 0x28]
lea rdx, str.SoftwareHiddenSoftAutoIt3Aut2Exe
mov r9d, ebx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000562e
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
lea rdx, str.LastScriptDir
mov qword [rsp + 0x28], rax
lea rax, [0x1400460f0]
mov ebx, 0x208
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
lea rdx, str.LastExeDir
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [0x1400462f8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
lea rdx, str.LastIconDir
mov qword [rsp + 0x28], rax
lea rax, [0x140046500]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp + 0x20], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x28]
mov dword [rbp + 0x20], ebx
lea rax, [rbp + 0x20]
lea rbx, [0x140046708]
lea rdx, str.LastIcon
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [0x140046708], di
mov esi, 1
je 0x14000559c
mov rcx, rbx
call fcn.1400116d8
cmp eax, 0xffffffff
jne 0x14000559c
cmp dword [0x140047928], esi
jg 0x140005595
lea rcx, [0x140046080]
mov edx, 0xa03b
call fcn.140004c40
mov word [0x140046708], di
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
lea rdx, str.LastCompression
mov qword [rsp + 0x28], rax
lea rax, [0x140046910]
mov ebx, 4
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [0x140046910]
cmp eax, ebx
lea ecx, [rbx - 1]
lea rdx, str.UseUPX
cmova eax, ecx
mov rcx, qword [rbp + 0x28]
xor r9d, r9d
mov dword [0x140046910], eax
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [0x140046914]
mov dword [rbp + 0x20], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [0x140046914]
mov rcx, qword [rbp + 0x28]
cmp eax, esi
cmova eax, esi
mov dword [0x140046914], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000563c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x70]
lea rdx, str.SoftwareAutoIt_v3AutoIt
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000580d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
lea r9, [0x140037048]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareAutoIt_v3Aut2Exe
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rbx, [0x1400460f0]
mov rcx, rbx
call fcn.1400165e8
lea rdx, str.LastScriptDir
mov r9d, 1
lea ecx, [rax*2 + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rbx, [0x1400462f8]
mov rcx, rbx
call fcn.1400165e8
lea rdx, str.LastExeDir
mov r9d, 1
lea ecx, [rax*2 + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rbx, [0x140046500]
mov rcx, rbx
call fcn.1400165e8
lea rdx, str.LastIconDir
mov r9d, 1
lea ecx, [rax*2 + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rbx, [0x140046708]
mov rcx, rbx
call fcn.1400165e8
lea rdx, str.LastIcon
mov r9d, 1
lea ecx, [rax*2 + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, 4
lea rax, [0x140046910]
lea rdx, str.LastCompression
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
lea rax, [0x140046914]
lea rdx, str.UseUPX
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rbx
ret
Function at 0x140005814
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140001908
lea rdx, [0x140037940]
mov rcx, rdi
call fcn.14000a610
lea rdx, str.AutoIt_v3Aut2Exe
mov rcx, rdi
call fcn.14000a610
mov rdx, qword [rdi]
lea rcx, [rsp + 0x38]
call fcn.14000454c
nop
lea rcx, [rsp + 0x38]
call fcn.140011984
test al, al
sete bl
lea rcx, [rsp + 0x38]
call fcn.1400016b0
test bl, bl
je 0x1400058d0
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140001908
mov rdx, rdi
mov rcx, rdi
call fcn.140011894
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140015ef0
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret
Function at 0x140009a04
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor edi, edi
mov r14, rcx
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140009a55
xor al, al
jmp 0x140009acd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call fcn.140015698
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rcx, rbp
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140009ac2
mov r8d, dword [rsp + 0x70]
lea rax, str.SCRIPT
lea rcx, [r14 + 0x1818]
mov r9d, 0xa
mov rdx, rsi
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rax
call fcn.14000c318
mov dil, al
mov rcx, rsi
call fcn.140017d1c
mov al, dil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140009bf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor ecx, ecx
mov r14, r9
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x809
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
je 0x140009c6c
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140009c6c
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
test eax, eax
je 0x140009c6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x140009c6e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000b56c
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, r9d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
call fcn.14000bab0
lea r8, [rsp + 0x20]
mov edx, ebx
call fcn.140004ff8
mov ecx, dword [rsp + 0x20]
test eax, eax
je 0x14000b59f
test ecx, ecx
jne 0x14000b59f
xor eax, eax
jmp 0x14000b5a1
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x14000b6d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov word [rsp + 0x10], dx
push rdi
sub rsp, 0x20
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 2]
mov dword [rsp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14000b704
xor al, al
jmp 0x14000b7df
lea r9, [rsp + 0x38]
lea r8, [0x14000b5fc]
mov edx, 0xe
mov rcx, rax
mov dword [0x140046040], ebx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x14000b739
cmp dword [rsp + 0x38], ebx
jne 0x14000b739
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000b6fd
mov edx, 0x63
mov rcx, rdi
lea r8d, [rdx - 0x55]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rdi
test rax, rax
je 0x14000b731
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000b7d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea r10, [0x140046050]
movzx edx, word [rax + 4]
mov dword [0x140046044], edx
test edx, edx
je 0x14000b79d
mov rcx, r10
lea r8, [rax + 0x12]
mov r9d, edx
movzx eax, word [r8]
lea r8, [r8 + 0xe]
mov word [rcx], ax
lea rcx, [rcx + 2]
dec r9
jne 0x14000b789
mov r9d, 0x10
cmp edx, r9d
jae 0x14000b7d2
mov r8d, dword [0x140046040]
lea rax, [r10 + rdx*2]
sub r8d, edx
inc r8d
add r8d, edx
sub r9d, edx
mov ecx, r9d
mov word [rax], r8w
inc r8d
add rax, 2
dec rcx
jne 0x14000b7c2
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e41c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
lea rax, [rcx + 4]
mov qword [r8], rax
mov r14d, dword [rcx + rdx]
lea eax, [r14 + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140015f3c
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov rcx, rax
mov r8, rbx
mov r15, rax
call fcn.140015fc0
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
add qword [rsi], rbx
test r14d, r14d
jle 0x14000e4ab
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
dec rcx
jne 0x14000e49e
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, r15
add rsp, 0x20
pop r15
ret

Function at 0x14000feb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x38], 0
mov rbx, rcx
jne 0x14000ff0c
test byte [rcx], 2
je 0x14000ff0c
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000ff0c
call fcn.140010080
mov qword [rbx + 0x38], rax
mov rdi, rax
cmp qword [rax + 0x58], 0
jne 0x14000ff0c
lea rax, [rsp + 0x40]
lea r8, [0x140010278]
mov r9, rdi
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x58], rax
cmp qword [rbx + 0x40], 0
jne 0x14000ff63
mov eax, dword [rbx]
test al, 4
je 0x14000ff63
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000ff63
shr eax, 3
test al, 1
jne 0x14000ff63
call fcn.140010080
mov qword [rbx + 0x40], rax
mov rdi, rax
cmp qword [rax + 0x58], 0
jne 0x14000ff63
lea rax, [rsp + 0x40]
lea r8, [0x140010278]
mov r9, rdi
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x58], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ff70
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], 0x18
test al, 0x10
je 0x14000ffbe
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14001004b
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14000fe40
jmp 0x140010074
test edx, eax
je 0x14000fff4
mov rax, qword [r9]
test rax, rax
jne 0x140010077
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140010051
or rax, 0xffffffffffffffff
jmp 0x140010077
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
jbe 0x14000ffa8
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14003bd38]
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140010051
and qword [rbx], 0
jmp 0x140010074
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.14000fe40
mov rcx, rbx
call fcn.14000fe1c
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret

Function at 0x140010100
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 0x58]
mov rdi, rcx
cmp qword [rsi], 0
je 0x140010168
mov eax, dword [rcx + 0x60]
mov ebp, 0x1f6
xchg dword [rcx + 0x60], eax
cmp eax, ebp
je 0x140010168
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.14000fe1c
xchg dword [rdi + 0x60], ebp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140010fac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rbp, r8
mov r14, rdx
mov rdi, rcx
jne 0x140010ff6
and dword [rcx + 0x10], 0
and dword [rcx + 0x14], 0
mov rcx, qword [rcx]
lea r8, [rax + 8]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x18], rax
xor esi, esi
test rbp, rbp
je 0x140011050
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
jne 0x140011036
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011050
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140011050
and dword [rdi + 0x14], 0
mov dword [rdi + 0x10], eax
movsxd rdx, dword [rdi + 0x14]
mov rcx, qword [rdi + 8]
mov dl, byte [rdx + rcx]
mov byte [rsi + r14], dl
inc dword [rdi + 0x14]
inc rsi
cmp rsi, rbp
jb 0x140010ffd
add qword [rdi + 0x18], rsi
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140011070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.1400110c0
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011727
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14001171a
or eax, 0xffffffff
jmp 0x140011727
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140015ef0
add rsp, 0x280
pop rbx
ret

Function at 0x1400117c4
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10030
call fcn.14001e900
sub rsp, rax
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x10020], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140001908
mov rcx, qword [rsp + 0x10020]
xor rcx, rsp
call fcn.140015ef0
add rsp, 0x10030
pop rbx
ret
Function at 0x140011984
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [rcx]
mov qword [rbp - 0x48], rax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x40], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x38], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x30], rax
mov edi, 1
add dword [rax], edi
lea rdx, [0x140037940]
lea rcx, [rbp - 0x48]
call fcn.14000a9c0
mov rsi, qword [rbp - 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011a82
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x140011a10
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140011a15
jmp 0x140011a90
cmp eax, 3
jne 0x140011a8b
mov qword [rbp - 0x28], rsi
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
add dword [rax], edi
lea rdx, [0x140037940]
lea rcx, [rbp - 0x28]
call fcn.140011ba0
or r8, 0xffffffffffffffff
cmp rax, r8
je 0x140011a77
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140001b6c
lea rcx, [rbp - 0x28]
call fcn.140011984
test al, al
je 0x140011a75
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea rcx, [rbp - 0x28]
call fcn.1400016b0
jmp 0x140011a8d
test al, 0x10
je 0x140011a8b
mov bl, dil
jmp 0x140011a8d
xor ebx, ebx
mov dil, bl
lea rcx, [rbp - 0x48]
call fcn.1400016b0
mov al, dil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400133bc
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbx, rcx
cmp dword [rcx + 0x1c], r14d
jne 0x140013453
mov qword [rax - 0x18], r14
mov dword [rax - 0x20], 0x80
lea r8d, [r14 + 1]
xor r9d, r9d
mov edx, 0x80000000
add rcx, 0x38
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013417
mov esi, r14d
jmp 0x14001342d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14003704c]
lea rcx, [rbx + 0x38]
mov dword [rbx + 0x18], esi
call fcn.140016604
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140013457
mov eax, 2
jmp 0x14001360c
mov qword [rcx + 0x28], r14
cmp dword [rbx + 0x20], r14d
jne 0x140013491
lea rcx, [rbx + 0x240]
lea rdx, [0x140037058]
call fcn.140016604
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140013495
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140013487
call fcn.14001676c
mov eax, 3
jmp 0x14001360c
mov qword [rbx + 0x30], r14
mov eax, 0x20
mov rcx, rbx
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x450], r14
mov dword [rbx + 0x468], r14d
mov dword [rbx + 0x458], r14d
mov word [rbx + 0x474], ax
mov dword [rbx + 0x470], r14d
mov byte [rbx + 0x46c], r14b
mov dword [rbx + 0x4b8], r14d
call fcn.140013628
mov edi, eax
test eax, eax
jne 0x1400135ee
mov rcx, qword [rbx + 0x460]
lea rdx, str.EA06
call fcn.140018ad0
add dword [rbx + 0x468], 4
mov edx, dword [rbx + 0x468]
mov al, byte [rbx + 0x1b]
mov rcx, qword [rbx + 0x460]
mov byte [rdx + rcx], al
inc dword [rbx + 0x468]
mov edx, dword [rbx + 0x468]
mov rcx, qword [rbx + 0x460]
mov al, byte [rbx + 0x1a]
mov byte [rdx + rcx], al
inc dword [rbx + 0x468]
mov edx, dword [rbx + 0x468]
mov ecx, dword [rbx + 0x18]
mov rax, qword [rbx + 0x460]
shr ecx, 8
mov byte [rdx + rax], cl
inc dword [rbx + 0x468]
mov edx, dword [rbx + 0x468]
mov rcx, qword [rbx + 0x460]
mov al, byte [rbx + 0x18]
mov byte [rdx + rcx], al
inc dword [rbx + 0x468]
mov rcx, rbx
call fcn.140013ba0
mov edx, 0x10000
mov rcx, r14
mov r8d, edx
mov rax, qword [rbx + 0x480]
mov qword [rcx + rax], r14
lea rcx, [rcx + 8]
dec r8
jne 0x140013575
mov rcx, r14
mov rax, qword [rbx + 0x488]
mov dword [rcx + rax], r14d
lea rcx, [rcx + 4]
dec rdx
jne 0x14001358c
mov eax, dword [rbx + 0x490]
mov r9d, r14d
mov dword [rbx + 0x494], eax
test eax, eax
je 0x1400135dc
mov rax, qword [rbx + 0x498]
mov r8d, r9d
inc r9d
lea rcx, [r8 + r8*2]
lea rdx, [rax + rcx*8]
mov rax, qword [rbx + 0x4a0]
mov qword [rax + r8*8], rdx
cmp r9d, dword [rbx + 0x490]
jb 0x1400135b3
mov rcx, rbx
call fcn.140013810
mov rcx, rbx
mov edi, eax
call fcn.140013730
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400135fc
call fcn.14001676c
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001360a
call fcn.14001676c
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret