joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018fe0
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x28], 0
call fcn.140018d20
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140019047
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140019045
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x34], eax
jmp 0x140019094
lea rdi, [rsp + 0x160]
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
mov dword [rsp + 0x160], 0x11c
lea rcx, [rsp + 0x160]
call qword [rsp + 0x28]
test eax, eax
jne 0x140019094
mov eax, dword [rsp + 0x164]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x16c]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x280], eax
cmp dword [rsp + 0x280], 5
je 0x1400190c2
cmp dword [rsp + 0x280], 6
je 0x1400190cf
cmp dword [rsp + 0x280], 0xa
je 0x140019136
jmp 0x140019173
mov dword [rsp + 0x30], 0x3e9
jmp 0x14001917b
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x284], eax
cmp dword [rsp + 0x284], 0
je 0x140019104
cmp dword [rsp + 0x284], 1
je 0x14001910e
cmp dword [rsp + 0x284], 2
je 0x140019118
cmp dword [rsp + 0x284], 3
je 0x140019122
jmp 0x14001912c
mov dword [rsp + 0x30], 0x3ee
jmp 0x140019134
mov dword [rsp + 0x30], 0x3ef
jmp 0x140019134
mov dword [rsp + 0x30], 0x3f0
jmp 0x140019134
mov dword [rsp + 0x30], 0x3f1
jmp 0x140019134
mov dword [rsp + 0x30], 0x3f2
jmp 0x14001917b
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x288], eax
cmp dword [rsp + 0x288], 0
je 0x14001914d
jmp 0x140019169
mov dword [rsp + 0x30], 0x3f2
cmp dword [rsp + 0x34], 0x55f0
jb 0x140019167
mov dword [rsp + 0x30], 0x3f3
jmp 0x140019171
mov dword [rsp + 0x30], 0x3f3
jmp 0x14001917b
mov dword [rsp + 0x30], 0x3f3
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x2a0
pop rdi
ret
Function at 0x140020480
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov qword [rsp + 0x2a8], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rdx, qword [rsp + 0x2d8]
lea rcx, [rsp + 0x20]
call fcn.140007610
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x280]
call fcn.140007610
nop
lea rcx, [rsp + 0x20]
call fcn.140011510
mov rdx, rax
mov rcx, qword [rsp + 0x2d0]
call fcn.14001fa20
test eax, eax
jne 0x140020506
lea rdx, [0x1400680c8]
lea rcx, [rsp + 0x20]
call fcn.1400034d0
jmp 0x140020517
lea rdx, [0x1400680d4]
lea rcx, [rsp + 0x20]
call fcn.1400034d0
lea rcx, [rsp + 0x20]
call fcn.140011510
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x288], rax
cmp qword [rsp + 0x288], 0xffffffffffffffff
jne 0x140020571
mov dword [rsp + 0x2a0], 1
lea rcx, [rsp + 0x280]
call fcn.1400038a0
nop
lea rcx, [rsp + 0x20]
call fcn.1400038a0
mov eax, dword [rsp + 0x2a0]
jmp 0x140020639
movzx eax, word [rsp + 0x5c]
cmp eax, 0x2e
jne 0x14002057d
jmp 0x1400205e6
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x298]
call fcn.140007610
nop
lea rdx, [0x1400680d8]
lea rcx, [rsp + 0x298]
call fcn.1400034d0
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x298]
call fcn.1400034d0
lea rdx, [rsp + 0x298]
mov rcx, qword [rsp + 0x2d0]
call fcn.14001fc00
mov dword [rsp + 0x290], 0
lea rcx, [rsp + 0x298]
call fcn.1400038a0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140020571
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0x2a4], 1
lea rcx, [rsp + 0x280]
call fcn.1400038a0
nop
lea rcx, [rsp + 0x20]
call fcn.1400038a0
mov eax, dword [rsp + 0x2a4]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x2c8
ret
Function at 0x1400211d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xd0], 0
jne 0x14002122b
mov rcx, qword [rsp + 0x50]
add rcx, 0x60
call fcn.140011510
mov rbx, rax
mov rcx, qword [rsp + 0x50]
add rcx, 0x70
call fcn.140011510
mov r9, rbx
mov r8, rax
lea rdx, str.LANGUAGE
lea rcx, str.BAYMAX64
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x1400212af
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x50]
add rcx, 0x70
call fcn.140006590
cdqe
shl rax, 1
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x50]
add rcx, 0x70
call fcn.140011510
mov rbx, rax
mov rcx, qword [rsp + 0x50]
add rcx, 0xe0
call fcn.140011510
mov r8, rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x30]
lea rdx, str.SoftwareBaymaxPatchToolsDefaultLang
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400212a6
xor eax, eax
jmp 0x1400212af
mov eax, 1
jmp 0x1400212af
add rsp, 0x40
pop rbx
ret

Function at 0x140025cd0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x20], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x140025d15
mov eax, dword [rsp + 0x48]
jmp 0x140025dd0
mov dword [rsp + 0x28], 0
lea rdi, [rsp + 0x2c]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x28], 0x1c
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140025dc1
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jne 0x140025dae
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x30], eax
je 0x140025dae
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140025dae
cmp dword [rsp + 0x80], 0
je 0x140025d98
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x140025da3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140025d4e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x60
pop rdi
ret
Function at 0x140027620
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x70
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
call fcn.140030bb0
test rax, rax
jne 0x140027654
xor eax, eax
jmp 0x140027780
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x30]
call fcn.1400287a0
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x58]
call fcn.1400113a0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140014530
movzx eax, al
test eax, eax
je 0x14002777c
lea rcx, [rsp + 0x30]
call fcn.140011520
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x50], 4
lea rcx, [rsp + 0x30]
call fcn.140011520
mov rcx, rax
add rcx, 8
call fcn.140011510
mov r8, rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x4c]
lea rdx, [0x140069560]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x140027729
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
call fcn.140011520
mov dword [rsp + 0x44], 0
jmp 0x14002776d
lea rcx, [rsp + 0x30]
call fcn.140011520
mov rbx, rax
add rbx, 8
lea rcx, [rsp + 0x30]
call fcn.140011520
mov rcx, qword [rsp + 0x80]
add rcx, 0x50
mov rdx, rax
call fcn.14001dda0
mov rdx, rbx
mov rcx, rax
call fcn.14000c230
lea rcx, [rsp + 0x30]
call fcn.140011520
lea rcx, [rsp + 0x30]
call fcn.1400313d0
jmp 0x140027672
mov eax, dword [rsp + 0x44]
add rsp, 0x70
pop rbx
ret
Function at 0x140027790
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x530
mov qword [rsp + 0x518], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov dword [rsp + 0x508], 0
mov rdx, qword [rsp + 0x548]
mov rcx, qword [rsp + 0x540]
call fcn.140027620
mov rdx, qword [rsp + 0x548]
mov rcx, qword [rsp + 0x540]
call fcn.1400270e0
test eax, eax
jne 0x140027805
mov eax, dword [rsp + 0x508]
jmp 0x140027a0e
lea rdi, [rsp + 0xf0]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rsp + 0x500]
call fcn.140003230
nop
mov r8, qword [rsp + 0x540]
mov r8, qword [r8 + 0x98]
lea rdx, str.__s___baymax
lea rcx, [rsp + 0x500]
call fcn.140005820
lea rcx, [rsp + 0x500]
call fcn.140011510
mov r8, rax
mov edx, 0x208
lea rcx, [rsp + 0xf0]
call fcn.140003f30
lea rdi, [rsp + 0x70]
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x68
lea rdi, [rsp + 0x58]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x540]
add rcx, 0x98
call fcn.140011510
mov rcx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x508], eax
cmp dword [rsp + 0x508], 0
jne 0x14002792c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [rsp + 0x508]
mov dword [rsp + 0x510], eax
lea rcx, [rsp + 0x500]
call fcn.1400038a0
mov eax, dword [rsp + 0x510]
jmp 0x140027a0e
mov dword [rsp + 0x508], 0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x540]
add rcx, 0x18
call fcn.140030bb0
test rax, rax
je 0x140027962
jmp 0x1400279bb
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xbb8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400279a5
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x50c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x540]
add rcx, 0x18
call fcn.140030bb0
test rax, rax
je 0x1400279d6
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [rsp + 0x508], 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x508]
mov dword [rsp + 0x514], eax
lea rcx, [rsp + 0x500]
call fcn.1400038a0
mov eax, dword [rsp + 0x514]
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x530
pop rdi
ret
Function at 0x140027c60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
call fcn.140030bb0
test rax, rax
je 0x140027ca9
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
call fcn.140030440
test rax, rax
jne 0x140027cd2
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
call fcn.140030bb0
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
call fcn.140030440
xor eax, eax
jmp 0x140027edf
lea rcx, [rsp + 0x38]
call fcn.140003230
nop
mov rcx, qword [rsp + 0xc0]
add rcx, 0x18
lea rdx, [rsp + 0x40]
call fcn.1400287a0
mov rcx, qword [rsp + 0xc0]
add rcx, 0x18
lea rdx, [rsp + 0x68]
call fcn.1400113a0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140014530
movzx eax, al
test eax, eax
je 0x140027da4
lea rcx, [rsp + 0x40]
call fcn.140028ab0
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140021f40
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
lea rdx, [rsp + 0x78]
call fcn.140031230
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140037b60
movzx eax, al
test eax, eax
je 0x140027d95
lea rcx, [rsp + 0x50]
call fcn.1400067f0
mov rdx, rax
add rdx, 8
lea rcx, [rsp + 0x38]
call fcn.14000c230
lea rcx, [rsp + 0x50]
call fcn.1400067f0
jmp 0x140027da4
lea rcx, [rsp + 0x40]
call fcn.1400313d0
jmp 0x140027cf3
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
lea rdx, [rsp + 0x20]
call fcn.1400287a0
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
lea rdx, [rsp + 0x88]
call fcn.1400113a0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140014530
movzx eax, al
test eax, eax
je 0x140027ea1
lea rcx, [rsp + 0x20]
call fcn.140011520
mov rcx, rax
add rcx, 8
call fcn.140011510
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140011270
test eax, eax
je 0x140027e92
mov rdx, qword [rsp + 0xc0]
add rdx, 0x90
lea rcx, [rsp + 0x60]
call fcn.140007610
nop
lea rdx, [0x1400693fc]
lea rcx, [rsp + 0x60]
call fcn.1400034d0
lea rcx, [rsp + 0x20]
call fcn.140011520
mov rdx, rax
add rdx, 8
lea rcx, [rsp + 0x60]
call fcn.140003490
lea rcx, [rsp + 0x60]
call fcn.140011510
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140027e7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.1400038a0
lea rcx, [rsp + 0x20]
call fcn.1400313d0
jmp 0x140027dc2
cmp dword [rsp + 0x30], 0
je 0x140027eb5
mov dword [rsp + 0xa8], 1
jmp 0x140027ec0
mov dword [rsp + 0xa8], 0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0x38]
call fcn.1400038a0
mov eax, dword [rsp + 0x98]
add rsp, 0xb8
ret
Function at 0x140028020
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
lea r8, [0x140027ff0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140028086
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov eax, 1
jmp 0x140028088
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400280a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x510
mov qword [rsp + 0x500], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x508], rax
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [rsp + 0x520]
add rcx, 0x90
lea rdx, [rsp + 0x30]
call fcn.140003450
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
mov r9, qword [rsp + 0x528]
mov r9, qword [r9]
mov r8, qword [rsp + 0x520]
mov r8, qword [r8 + 0x90]
lea rdx, str._s_s
call fcn.140005820
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
call fcn.140011510
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140028194
mov dword [rsp + 0x4f0], 1
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4f0]
jmp 0x140028329
xor eax, eax
mov word [rsp + 0x240], ax
lea rdi, [rsp + 0x242]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x450], 0
lea rdi, [rsp + 0x458]
xor eax, eax
mov ecx, 0x90
rep stosb byte [rdi], al
mov dword [rsp + 0x450], 0x98
mov rax, qword [rsp + 0x530]
mov qword [rsp + 0x458], rax
lea rax, [0x140069878]
mov qword [rsp + 0x468], rax
mov rcx, qword [rsp + 0x520]
add rcx, 0x90
call fcn.140011510
mov qword [rsp + 0x4a0], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x480], rax
mov rcx, qword [rsp + 0x528]
call fcn.140011510
mov qword [rsp + 0x470], rax
mov dword [rsp + 0x488], 0x104
mov dword [rsp + 0x47c], 0
mov dword [rsp + 0x4b0], 0x81800
lea rcx, [rsp + 0x450]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x14002830a
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400282a3
mov dword [rsp + 0x4f4], 0
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4f4]
jmp 0x140028329
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
lea rdx, [rsp + 0x240]
call fcn.140003450
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [rsp + 0x520]
add rcx, 0x90
lea rdx, [rsp + 0x240]
call fcn.140003450
mov dword [rsp + 0x4f8], 1
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4f8]
jmp 0x140028329
mov dword [rsp + 0x4fc], 0
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4fc]
mov rcx, qword [rsp + 0x508]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x510
pop rdi
ret
Function at 0x140028fd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x258], 0
mov dword [rsp + 0x34], 4
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x254], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069de0]
lea rdx, [0x140069df0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x254], eax
cmp dword [rsp + 0x254], 0
jne 0x14002908a
cmp dword [rsp + 0x258], 0x26739a4c
je 0x14002908f
jmp 0x1400291d4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069e38]
lea rdx, [0x140069e50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x254], eax
cmp dword [rsp + 0x254], 0
je 0x1400290dc
jmp 0x1400291d4
mov rcx, qword [rsp + 0x280]
mov eax, dword [rsp + 0x258]
mov dword [rcx + 8], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069e98]
lea rdx, [0x140069eb0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x25c], eax
cmp dword [rsp + 0x25c], 0
je 0x14002913b
jmp 0x1400291d4
mov rcx, qword [rsp + 0x280]
mov eax, dword [rsp + 0x258]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069ef8]
lea rdx, [0x140069f10]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x25c], eax
cmp dword [rsp + 0x25c], 0
je 0x1400291a4
jmp 0x1400291d4
mov rcx, qword [rsp + 0x280]
add rcx, 0x10
lea r8, [rsp + 0x40]
mov edx, 0x78
call fcn.140003f30
mov dword [rsp + 0x250], 1
xor eax, eax
test eax, eax
jne 0x140029035
mov eax, dword [rsp + 0x250]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x270
pop rdi
ret
Function at 0x1400294e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x60]
add rcx, 8
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
lea r8, str.HEIGHT
lea rdx, [0x140069f70]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14002954f
jmp 0x140029660
mov rcx, qword [rsp + 0x60]
add rcx, 0xc
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
lea r8, str.CHARSET
lea rdx, [0x140069fd0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140029595
jmp 0x140029660
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x60]
add rcx, 0x10
call fcn.14004cd00
lea rax, [rax + rax + 2]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x60]
add rcx, 0x10
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
lea r8, str.FACENAME
lea rdx, [0x14006a030]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1400295f7
jmp 0x140029660
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x40], 0x26739a4c
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, str.SETFONT
lea rdx, str.SoftwareBaymaxPatchToolsFont64
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14002964e
jmp 0x140029660
mov dword [rsp + 0x38], 1
xor eax, eax
test eax, eax
jne 0x140029509
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x140029a00
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add rsp, 0x28
ret

Function at 0x140029a20
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add rsp, 0x28
ret
Function at 0x14002a470
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.140011510
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x28], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0xffffffffffffffff
jne 0x14002a4d2
xor eax, eax
jmp 0x14002a620
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x40], r11d
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x40], 0x6400000
jb 0x14002a540
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call fcn.14002a1b0
test eax, eax
je 0x14002a540
cmp dword [rsp + 0x40], 0x1000
jb 0x14002a540
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x40]
cmp dword [rsp + 0x40], eax
jae 0x14002a540
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x40]
mov dword [rcx + 0x40], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x30], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x30], 0
jne 0x14002a58a
xor eax, eax
jmp 0x14002a620
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x38], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x38], 0
jne 0x14002a5cd
xor eax, eax
jmp 0x14002a620
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x30], 0
je 0x14002a5f4
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call fcn.1400299e0
mov r11, qword [rsp + 0x60]
mov qword [r11 + 0x30], 0
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0
je 0x14002a61b
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call fcn.1400299e0
mov r11, qword [rsp + 0x60]
mov qword [r11 + 0x28], 0
mov eax, 1
add rsp, 0x58
ret