joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046880
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x140064674]
lea rdx, str.DriverFolderName
lea rcx, [0x1400646b0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400468fe
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call fcn.1400043e0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x140046910
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x58]
call fcn.140003c80
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x140064650]
lea rdx, str.InsFolderName
lea rcx, [0x140064678]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046998
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call fcn.1400043e0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x1400469b0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x1400645d8]
lea rdx, str.LanguageMonitor
lea rcx, [0x140064600]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046a2e
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call fcn.1400043e0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x140046a40
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x1400645ac]
lea rdx, str.LangMonName
lea rcx, [0x1400645c8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046abe
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call fcn.1400043e0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x140046ad0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x140064534]
lea rdx, str.MfgSection
lea rcx, [0x140064550]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046bae
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call fcn.1400043e0
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x14006456c]
lea rdx, str.ModelKeywordDel
lea rcx, str.Manufacturer
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046bae
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x60]
call fcn.1400043e0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x140046bc0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x1400644ac]
lea rdx, [0x1400644c0]
lea rcx, [0x1400644d8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046c9e
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x58]
call fcn.1400043e0
mov r9, qword [rsp + 0x50]
add r9, 8
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x1400644f4]
lea rdx, str.ModelKeyword
lea rcx, [0x140064518]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046c9e
mov rdx, qword [rsp + 0x50]
add rdx, 8
mov rcx, qword [rsp + 0x60]
call fcn.1400043e0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x140046cb0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov dword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x68]
call fcn.140003c80
mov r9, qword [rsp + 0x60]
add r9, 8
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x2008]
mov dword [rsp + 0x20], eax
lea r8, [0x140064610]
lea rdx, str.InsMakerFolder
lea rcx, [0x140064638]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140046d3b
mov rdx, qword [rsp + 0x60]
add rdx, 8
mov rcx, qword [rsp + 0x68]
call fcn.1400043e0
jmp 0x140046d55
mov edx, 0x837
mov rcx, qword [rsp + 0x68]
call fcn.140003bb0
cmp eax, 1
je 0x140046d55
mov eax, dword [rsp + 0x38]
jmp 0x140046dd2
mov rcx, qword [rsp + 0x68]
call fcn.140003d10
sub eax, 1
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140046dce
lea rcx, [rsp + 0x40]
call fcn.140003710
nop
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
call fcn.1400070e0
movzx edx, ax
lea rcx, [rsp + 0x40]
call fcn.140005b60
lea rdx, [0x140064648]
lea rcx, [rsp + 0x40]
call fcn.1400070a0
movzx eax, al
test eax, eax
je 0x140046dbc
lea rdx, [0x14006464c]
mov rcx, qword [rsp + 0x68]
call fcn.1400045c0
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
call fcn.140003760
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x14004a030
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x538
mov rax, qword [0x140079ca0]
xor rax, rsp
mov qword [rsp + 0x520], rax
lea rdx, [rsp + 0x290]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x50], eax
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x4b0]
call fcn.140030610
mov dword [rsp + 0x4b0], 0x68
mov eax, dword [rsp + 0x4ec]
or eax, 1
mov dword [rsp + 0x4ec], eax
xor eax, eax
mov word [rsp + 0x4f0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x270]
call fcn.140030610
lea rdx, str.PNPUTIL.EXE__a
lea rcx, [rsp + 0x60]
call fcn.140004cf0
mov rdx, qword [rsp + 0x548]
add rdx, 0x3c80
lea rcx, [rsp + 0x60]
call fcn.140004d20
mov rcx, qword [rsp + 0x548]
add rcx, 0x3a78
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x4a0], eax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000230
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x14004a175
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, 3
jmp 0x14004a1dc
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x50], 0
je 0x14004a1da
mov eax, 0xa
jmp 0x14004a1dc
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.14002f9d0
add rsp, 0x538
ret

Function at 0x14004cea0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14004cece
xor eax, eax
jmp 0x14004cef1
mov r8d, 4
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14004ceec
xor eax, eax
jmp 0x14004cef1
mov eax, 1
add rsp, 0x28
ret
Function at 0x14004cf00
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xac8
mov rax, qword [0x140079ca0]
xor rax, rsp
mov qword [rsp + 0xab0], rax
mov qword [rsp + 0x40], 0x104
lea rax, [rsp + 0x8a0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x270]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x104
lea r9, [rsp + 0x690]
mov r8d, 0x104
lea rdx, [rsp + 0x480]
mov rcx, qword [rsp + 0xae0]
call fcn.14002fc08
cmp dword [rsp + 0xae8], 0
je 0x14004cfc9
lea rax, [0x140065050]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x690]
lea r8, [rsp + 0x480]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14002fed4
jmp 0x14004d001
lea rax, [0x140065058]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x690]
lea r8, [rsp + 0x480]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14002fed4
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xad8]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14004d01f
xor eax, eax
jmp 0x14004d047
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0xad8]
mov rcx, qword [rsp + 0xad0]
call fcn.14004cea0
cmp eax, 1
je 0x14004d042
xor eax, eax
jmp 0x14004d047
mov eax, 1
mov rcx, qword [rsp + 0xab0]
xor rcx, rsp
call fcn.14002f9d0
add rsp, 0xac8
ret

Function at 0x14004d070
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x68], 0
je 0x14004d0a0
cmp qword [rsp + 0x70], 0
je 0x14004d0a0
cmp qword [rsp + 0x78], 0
jne 0x14004d0a7
xor eax, eax
jmp 0x14004d193
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.Software
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004d0e0
xor eax, eax
jmp 0x14004d193
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004d11f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14004d193
mov rcx, qword [rsp + 0x80]
call fcn.14002f9f0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
shl rax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0
jne 0x14004d191
mov eax, 1
jmp 0x14004d193
xor eax, eax
add rsp, 0x58
ret
Function at 0x14004de40
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14004deab
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x20]
cmp eax, dword [rsp + 0x20]
je 0x14004deab
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14004deab
mov rax, qword [rsp + 0x50]
movzx edx, byte [rax + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14004deab
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x14004e0c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
mov rax, qword [0x140079ca0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov qword [rsp + 0x470], 0
xor eax, eax
mov word [rsp + 0x260], ax
lea rdi, [rsp + 0x262]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov qword [rsp + 0x258], 0
mov dword [rsp + 0x254], 0
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x478], 0
cmp qword [rsp + 0x4a8], 0
jne 0x14004e15f
xor eax, eax
jmp 0x14004e360
mov rax, qword [rsp + 0x4a8]
movzx eax, word [rax + 0x1250]
test eax, eax
jne 0x14004e17c
mov eax, 1
jmp 0x14004e360
mov rax, qword [rsp + 0x4a8]
add rax, 0x1250
mov qword [rsp + 0x470], rax
lea rdx, str.SYSTEMCurrentControlSetControlPrintMonitors
lea rcx, [rsp + 0x260]
call fcn.140004cf0
lea rdx, [0x1400650b8]
lea rcx, [rsp + 0x260]
call fcn.140004d20
mov rdx, qword [rsp + 0x4a8]
add rdx, 0x1048
lea rcx, [rsp + 0x260]
call fcn.140004d20
lea rdx, [rsp + 0x258]
mov qword [rsp + 0x20], rdx
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x250], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x254], eax
cmp dword [rsp + 0x250], 0
je 0x14004e23a
cmp dword [rsp + 0x254], 0
je 0x14004e230
xor eax, eax
jmp 0x14004e360
mov eax, 1
jmp 0x14004e360
mov dword [rsp + 0x478], 0x104
lea rax, [rsp + 0x478]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140065120]
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x250], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x254], eax
cmp dword [rsp + 0x250], 0
je 0x14004e2aa
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14004e360
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x470]
call fcn.1400301f8
test eax, eax
jne 0x14004e2d8
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14004e360
mov rcx, qword [rsp + 0x470]
call fcn.14002f9f0
add rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x478], eax
mov eax, dword [rsp + 0x478]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x470]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Driver
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x250], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x254], eax
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x250], 0
je 0x14004e35b
xor eax, eax
jmp 0x14004e360
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14002f9d0
add rsp, 0x490
pop rdi
ret
Function at 0x14004e6b0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xae8
mov rax, qword [0x140079ca0]
xor rax, rsp
mov qword [rsp + 0xad0], rax
cmp qword [rsp + 0xb00], 0
jne 0x14004e6ea
xor eax, eax
jmp 0x14004e973
mov rdx, qword [rsp + 0xaf8]
lea rcx, [rsp + 0x30]
call fcn.140004cf0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x490]
call fcn.140004cf0
mov rax, qword [rsp + 0xb00]
movzx eax, word [rax]
test eax, eax
je 0x14004e732
mov rdx, qword [rsp + 0xb00]
lea rcx, [rsp + 0x490]
call fcn.140004d20
mov dword [rsp + 0x480], 1
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x240]
call fcn.140011e1c
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14004e943
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14004e792
mov dword [rsp + 0x480], 0
jmp 0x14004e943
mov rdx, qword [rsp + 0xb00]
lea rcx, [rsp + 0x8b0]
call fcn.140004cf0
lea rcx, [rsp + 0x8b0]
call fcn.14002f9f0
sub eax, 1
mov dword [rsp + 0xac0], eax
movsxd rax, dword [rsp + 0xac0]
movzx eax, word [rsp + rax*2 + 0x8b0]
cmp eax, 0x5c
je 0x14004e7e7
lea rdx, [0x140064f24]
lea rcx, [rsp + 0x8b0]
call fcn.140004d20
mov dword [rsp + 0xac0], 0
mov dword [rsp + 0xac4], 0
jmp 0x14004e810
mov eax, dword [rsp + 0xac4]
add eax, 1
mov dword [rsp + 0xac4], eax
cmp dword [rsp + 0xac4], 0x104
jge 0x14004e943
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x490]
call fcn.140004cf0
movsxd rax, dword [rsp + 0xac4]
movzx eax, word [rsp + rax*2 + 0x8b0]
test eax, eax
jne 0x14004e84c
jmp 0x14004e943
movsxd rax, dword [rsp + 0xac4]
movzx eax, word [rsp + rax*2 + 0x8b0]
cmp eax, 0x5c
je 0x14004e897
movsxd rax, dword [rsp + 0xac4]
movsxd rcx, dword [rsp + 0xac0]
movzx eax, word [rsp + rax*2 + 0x8b0]
mov word [rsp + rcx*2 + 0x6a0], ax
mov eax, dword [rsp + 0xac0]
add eax, 1
mov dword [rsp + 0xac0], eax
jmp 0x14004e7ff
movsxd rcx, dword [rsp + 0xac0]
xor eax, eax
mov word [rsp + rcx*2 + 0x6a0], ax
mov dword [rsp + 0xac0], 0
lea rdx, [rsp + 0x6a0]
lea rcx, [rsp + 0x490]
call fcn.140004d20
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14004e918
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14004e8f7
mov dword [rsp + 0x480], 0
jmp 0x14004e943
xor edx, edx
lea rcx, [rsp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004e918
mov dword [rsp + 0x480], 0
jmp 0x14004e943
lea rdx, [0x140064f28]
lea rcx, [rsp + 0x490]
call fcn.140004d20
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140004cf0
jmp 0x14004e7ff
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [rsp + 0x480]
mov dword [rsp + 0xac8], eax
lea rcx, [rsp + 0x240]
call fcn.140011e78
mov eax, dword [rsp + 0xac8]
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.14002f9d0
add rsp, 0xae8
ret
Function at 0x140051870
Capabilities:
Check os version
Inspect section memory permissions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140079ca0]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x20], 0
mov r8d, 0x114
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140030610
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140051ab8
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 1
je 0x1400518eb
cmp dword [rsp + 0x150], 2
je 0x14005196a
jmp 0x140051ab8
cmp dword [rsp + 0x34], 4
jb 0x140051903
cmp dword [rsp + 0x38], 0x5a
jb 0x140051903
mov dword [rsp + 0x20], 8
jmp 0x140051965
cmp dword [rsp + 0x34], 4
jb 0x14005194f
cmp dword [rsp + 0x38], 0xa
jb 0x14005194f
lea rdx, [0x1400651c8]
lea rcx, [rsp + 0x44]
call fcn.140030e1c
test eax, eax
je 0x14005193b
lea rdx, [0x1400651d0]
lea rcx, [rsp + 0x44]
call fcn.140030e1c
test eax, eax
jne 0x140051945
mov dword [rsp + 0x20], 4
jmp 0x14005194d
mov dword [rsp + 0x20], 2
jmp 0x140051965
cmp dword [rsp + 0x34], 4
jb 0x140051965
cmp dword [rsp + 0x38], 0
jb 0x140051965
mov dword [rsp + 0x20], 1
jmp 0x140051ab8
cmp dword [rsp + 0x34], 7
jb 0x1400519a0
cmp dword [rsp + 0x38], 0
jb 0x1400519a0
mov rcx, qword [rsp + 0x170]
call fcn.140051840
test eax, eax
je 0x140051993
mov dword [rsp + 0x20], 0x40000000
jmp 0x14005199b
mov dword [rsp + 0x20], 0x20000000
jmp 0x140051ab8
cmp dword [rsp + 0x34], 6
jb 0x1400519d6
cmp dword [rsp + 0x38], 1
jb 0x1400519d6
mov rcx, qword [rsp + 0x170]
call fcn.140051840
test eax, eax
je 0x1400519c9
mov dword [rsp + 0x20], 0x2000
jmp 0x1400519d1
mov dword [rsp + 0x20], 0x1000
jmp 0x140051ab8
cmp dword [rsp + 0x34], 6
jb 0x140051a0c
cmp dword [rsp + 0x38], 0
jb 0x140051a0c
mov rcx, qword [rsp + 0x170]
call fcn.140051840
test eax, eax
je 0x1400519ff
mov dword [rsp + 0x20], 0x800
jmp 0x140051a07
mov dword [rsp + 0x20], 0x400
jmp 0x140051ab8
cmp dword [rsp + 0x34], 5
jb 0x140051a3f
cmp dword [rsp + 0x38], 2
jb 0x140051a3f
mov rcx, qword [rsp + 0x170]
call fcn.140051840
test eax, eax
je 0x140051a35
mov dword [rsp + 0x20], 0x100
jmp 0x140051a3d
mov dword [rsp + 0x20], 0x200
jmp 0x140051ab8
cmp dword [rsp + 0x34], 5
jb 0x140051a72
cmp dword [rsp + 0x38], 1
jb 0x140051a72
mov rcx, qword [rsp + 0x170]
call fcn.140051840
test eax, eax
je 0x140051a68
mov dword [rsp + 0x20], 0x100
jmp 0x140051a70
mov dword [rsp + 0x20], 0x80
jmp 0x140051ab8
cmp dword [rsp + 0x34], 5
jb 0x140051a8a
cmp dword [rsp + 0x38], 0
jb 0x140051a8a
mov dword [rsp + 0x20], 0x40
jmp 0x140051ab8
cmp dword [rsp + 0x34], 4
jb 0x140051aa2
cmp dword [rsp + 0x38], 0
jb 0x140051aa2
mov dword [rsp + 0x20], 0x20
jmp 0x140051ab8
cmp dword [rsp + 0x34], 3
jb 0x140051ab8
cmp dword [rsp + 0x38], 0x33
jb 0x140051ab8
mov dword [rsp + 0x20], 0x10
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14002f9d0
add rsp, 0x168
ret
Function at 0x140051ae0
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
and eax, 0xff
mov word [rsp + 0x20], ax
mov ax, word [rsp + 0x20]
add rsp, 0x38
ret