joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ab40
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.14000ad20
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14000abac
xor eax, eax
jmp 0x14000ad12
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0xffffffff
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockFile]
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0xa0], 0
je 0x14000ac07
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x54]
mov dword [rcx], eax
cmp dword [rsp + 0x40], 0
jne 0x14000ace5
cmp dword [rsp + 0x54], 0xa00000
jge 0x14000ace5
cmp dword [rsp + 0x54], 6
jle 0x14000ace5
mov eax, dword [rsp + 0x54]
add eax, 4
mov dword [rsp + 0x60], eax
movsxd rcx, dword [rsp + 0x60]
call fcn.1400438c8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14000ace5
movsxd r8, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140044a50
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000acc8
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x64], eax
jne 0x14000acc8
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.14000ae10
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140043820
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0xffffffff
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x88
ret
Function at 0x140010520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x690
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x680], rax
lea rdi, [rsp + 0x60]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rcx, [rsp + 0x480]
call fcn.140001000
mov rcx, qword [rsp + 0x6a8]
call fcn.1400329e0
mov rdx, rax
lea rcx, [rsp + 0x4e0]
call fcn.140010ba0
mov rcx, rax
call fcn.1400329e0
lea rdx, [0x140059614]
mov rcx, rax
call fcn.1400450d4
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x4e0]
call fcn.140010bf0
cmp qword [rsp + 0x58], 0
jne 0x1400105d6
mov dword [rsp + 0x568], 0
mov rcx, qword [rsp + 0x6a8]
call fcn.1400038b0
mov eax, dword [rsp + 0x568]
jmp 0x1400106c4
mov r9, qword [rsp + 0x58]
mov r8d, 0x400
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.140044f7c
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x14001061a
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x480]
call fcn.140001060
jmp 0x1400105d6
mov rcx, qword [rsp + 0x58]
call fcn.140044be8
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x480]
call fcn.1400027f0
lea rdi, [rsp + 0x28]
xor eax, eax
mov ecx, 0x21
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x20
mov r9d, dword [rsp + 0x50]
lea r8, [rsp + 0x28]
mov edx, 0x10
lea rcx, [rsp + 0x60]
call fcn.140010380
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x570]
call fcn.140010c20
mov rcx, rax
call fcn.1400329e0
mov rdx, rax
mov rcx, qword [rsp + 0x6b0]
call fcn.140003460
lea rcx, [rsp + 0x570]
call fcn.140010bf0
mov dword [rsp + 0x678], 1
mov rcx, qword [rsp + 0x6a8]
call fcn.1400038b0
mov eax, dword [rsp + 0x678]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140043800
add rsp, 0x690
pop rdi
ret
Function at 0x1400106f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xa0
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140010755
mov eax, dword [rsp + 0x5c]
jmp 0x14001089e
mov dword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x19000
jae 0x140010782
cmp dword [rsp + 0x58], 0
je 0x140010796
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x5c]
jmp 0x14001089e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140003220
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
call fcn.140003240
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.140010520
test eax, eax
jne 0x140010801
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x50]
call fcn.1400038b0
mov eax, dword [rsp + 0x80]
jmp 0x14001089e
lea rcx, [rsp + 0x50]
call fcn.1400329e0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
call fcn.14001ad50
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
call fcn.140028380
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140028b80
movzx eax, al
test eax, eax
je 0x140010882
lea rcx, [rsp + 0x50]
call fcn.1400329e0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400212a0
mov rdx, rbx
mov rcx, rax
call fcn.140010a10
test eax, eax
jne 0x140010876
mov dword [rsp + 0x5c], 1
jmp 0x140010882
lea rcx, [rsp + 0x40]
call fcn.140028b60
jmp 0x14001081d
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0x50]
call fcn.1400038b0
mov eax, dword [rsp + 0x98]
add rsp, 0xa0
pop rbx
ret
Function at 0x1400108b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x28]
call fcn.140011960
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400108fa
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x28]
call fcn.140011990
mov eax, dword [rsp + 0x48]
jmp 0x1400109fc
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x28]
call fcn.140011a00
test eax, eax
jne 0x140010912
jmp 0x1400109cc
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140010a70
lea rdx, [0x140059668]
lea rcx, [rsp + 0x38]
call fcn.140006850
test eax, eax
je 0x14001096c
lea rdx, [0x140059698]
lea rcx, [rsp + 0x38]
call fcn.140006850
test eax, eax
je 0x14001096c
lea rdx, str.Baymax_Patcher_Tools
lea rcx, [rsp + 0x38]
call fcn.140006850
test eax, eax
je 0x14001096c
lea rcx, [rsp + 0x38]
call fcn.1400038b0
jmp 0x1400109cc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140010ab0
lea rdx, [0x1400596f0]
lea rcx, [rsp + 0x40]
call fcn.140006850
test eax, eax
je 0x1400109a6
lea rcx, [rsp + 0x40]
call fcn.1400038b0
lea rcx, [rsp + 0x38]
call fcn.1400038b0
jmp 0x1400109cc
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x40]
call fcn.1400038b0
lea rcx, [rsp + 0x38]
call fcn.1400038b0
xor eax, eax
test eax, eax
jne 0x1400108fa
cmp dword [rsp + 0x20], 0
jne 0x1400109e6
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400106f0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x28]
call fcn.140011990
mov eax, dword [rsp + 0x4c]
add rsp, 0x58
ret

Function at 0x140011a00
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x58]
call fcn.140043938
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140011a39
xor eax, eax
jmp 0x140011af9
mov ecx, dword [rsp + 0x34]
call fcn.1400438c8
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov r9, qword [rsp + 0x50]
mov r9, qword [r9]
mov r8d, dword [rsp + 0x34]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140011a81
mov rcx, qword [rsp + 0x50]
call fcn.1400119b0
xor eax, eax
jmp 0x140011af9
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140011ab1
mov rcx, qword [rsp + 0x50]
call fcn.1400119b0
xor eax, eax
jmp 0x140011af9
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
and rax, 0xffff
movzx ecx, ax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
and rax, 0xffff
movzx eax, ax
and rax, 0xffff
movzx eax, ax
shl eax, 0x10
or ecx, eax
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], ecx
mov eax, 1
add rsp, 0x48
ret
Function at 0x140012260
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa8]
mov dword [rax], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x68], 0x200
movsxd rcx, dword [rsp + 0x68]
call fcn.1400438c8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400122f3
jmp 0x1400123d7
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x200
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140012327
jmp 0x1400123d7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140012363
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x140012365
jmp 0x1400123d7
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x140012391
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x28]
mov dword [rcx], eax
jmp 0x1400123c5
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400123c5
mov dword [rsp + 0x3c], 1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x28]
mov dword [rcx], eax
mov dword [rsp + 0x48], 1
xor eax, eax
test eax, eax
jne 0x1400122c5
cmp qword [rsp + 0x30], 0
je 0x1400123fc
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140043828
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x140012670
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x100], 0
call fcn.140012f80
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x148]
add rax, 0x30
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x148]
add rax, 0x40
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x148]
add rax, 0x38
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x40]
call fcn.140012870
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.140012c60
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x40]
call fcn.140012c80
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.140012c40
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x40]
call fcn.140012ca0
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x40]
call fcn.140012ce0
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.140012d20
mov qword [rsp + 0x108], 0
mov dword [rsp + 0xd0], 0x8f
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x108], 0
jne 0x1400127e1
xor eax, eax
jmp 0x14001284b
mov qword [rsp + 0x30], 0
movsxd r9, dword [rsp + 0xd0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x100], eax
cmp dword [rsp + 0x100], 0
jne 0x140012831
mov eax, dword [rsp + 0x100]
jmp 0x14001284b
mov rcx, qword [rsp + 0x150]
mov rax, qword [rsp + 0x108]
mov qword [rcx], rax
mov eax, dword [rsp + 0x100]
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140043800
add rsp, 0x128
ret
Function at 0x140012d60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x40]
call fcn.140012e80
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.140012f30
mov dword [rsp + 0x58], 0x10
mov dword [rsp + 0x30], 0
movsxd r8, dword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140012df0
mov eax, dword [rsp + 0x5c]
jmp 0x140012e66
mov qword [rsp + 0x50], 0
movsxd r9, dword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x140012e34
mov eax, dword [rsp + 0x5c]
jmp 0x140012e66
movsxd r8, dword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140043800
add rsp, 0x78
ret
Function at 0x140019630
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2b8
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov rdx, qword [rsp + 0x2c8]
lea rcx, [rsp + 0x20]
call fcn.140007550
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x280]
call fcn.140007550
lea rcx, [rsp + 0x20]
call fcn.1400329e0
mov rdx, rax
mov rcx, qword [rsp + 0x2c0]
call fcn.140018f40
test eax, eax
jne 0x1400196a8
lea rdx, [0x14005a738]
lea rcx, [rsp + 0x20]
call fcn.1400034e0
jmp 0x1400196b9
lea rdx, [0x14005a744]
lea rcx, [rsp + 0x20]
call fcn.1400034e0
lea rcx, [rsp + 0x20]
call fcn.1400329e0
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 0x140019712
mov dword [rsp + 0x2a0], 1
lea rcx, [rsp + 0x280]
call fcn.1400038b0
lea rcx, [rsp + 0x20]
call fcn.1400038b0
mov eax, dword [rsp + 0x2a0]
jmp 0x1400197d8
movzx eax, word [rsp + 0x5c]
cmp eax, 0x2e
jne 0x14001971e
jmp 0x140019786
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x298]
call fcn.140007550
lea rdx, [0x14005a748]
lea rcx, [rsp + 0x298]
call fcn.1400034e0
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x298]
call fcn.1400034e0
lea rdx, [rsp + 0x298]
mov rcx, qword [rsp + 0x2c0]
call fcn.140018fc0
mov dword [rsp + 0x290], 0
lea rcx, [rsp + 0x298]
call fcn.1400038b0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140019712
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0x2a4], 1
lea rcx, [rsp + 0x280]
call fcn.1400038b0
lea rcx, [rsp + 0x20]
call fcn.1400038b0
mov eax, dword [rsp + 0x2a4]
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.140043800
add rsp, 0x2b8
ret
Function at 0x14001a1e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x90], 0
jne 0x14001a23e
mov rcx, qword [rsp + 0x50]
add rcx, 0x70
call fcn.1400329e0
mov rbx, rax
mov rcx, qword [rsp + 0x50]
add rcx, 0x80
call fcn.1400329e0
mov r9, rbx
mov r8, rax
lea rdx, str.LANGUAGE
lea rcx, str.BAYMAX64
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x14001a2c7
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x50]
add rcx, 0x80
call fcn.140006550
cdqe
shl rax, 1
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x50]
add rcx, 0x80
call fcn.1400329e0
mov rbx, rax
mov rcx, qword [rsp + 0x50]
add rcx, 0x50
call fcn.1400329e0
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 0x14001a2c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x14001a2c7
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x14001e3c0
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 0x14001e405
mov eax, dword [rsp + 0x48]
jmp 0x14001e4c0
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 0x14001e4b1
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jne 0x14001e49e
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x30], eax
je 0x14001e49e
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 0x14001e49e
cmp dword [rsp + 0x80], 0
je 0x14001e488
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x14001e493
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 0x14001e43e
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 0x14001f6f0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x258
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [0x140067e08], 0
jne 0x14001f75b
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._ntdll.dll
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140003fa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067e08], rax
mov rax, qword [0x140067e08]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140043800
add rsp, 0x258
ret
Function at 0x14001f9b0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x20], 0
call fcn.14001f6f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001fa30
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14001fa2e
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rsp + 0x34]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rsp + 0x38]
mov dword [rcx + 0xc], eax
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rsp + 0x3c]
mov dword [rcx + 0x10], eax
jmp 0x14001fa92
lea rdi, [rsp + 0x150]
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
mov dword [rsp + 0x150], 0x11c
lea rcx, [rsp + 0x150]
call qword [rsp + 0x20]
test eax, eax
jne 0x14001fa92
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rsp + 0x154]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rsp + 0x158]
mov dword [rcx + 0xc], eax
mov rcx, qword [rsp + 0x2a0]
mov eax, dword [rsp + 0x15c]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 5
je 0x14001facb
cmp dword [rsp + 0x270], 6
je 0x14001fadf
cmp dword [rsp + 0x270], 0xa
je 0x14001fb70
jmp 0x14001fbd0
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3e9
jmp 0x14001fbdf
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x274], eax
cmp dword [rsp + 0x274], 0
je 0x14001fb1b
cmp dword [rsp + 0x274], 1
je 0x14001fb2c
cmp dword [rsp + 0x274], 2
je 0x14001fb3d
cmp dword [rsp + 0x274], 3
je 0x14001fb4e
jmp 0x14001fb5f
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3ee
jmp 0x14001fb6e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3ef
jmp 0x14001fb6e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f0
jmp 0x14001fb6e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f1
jmp 0x14001fb6e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f2
jmp 0x14001fbdf
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x278], eax
cmp dword [rsp + 0x278], 0
je 0x14001fb8e
jmp 0x14001fbbf
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f2
mov rax, qword [rsp + 0x2a0]
cmp dword [rax + 0x10], 0x55f0
jb 0x14001fbbd
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f3
jmp 0x14001fbce
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f3
jmp 0x14001fbdf
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f3
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140043800
add rsp, 0x290
pop rdi
ret
Function at 0x140020210
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.1400283b0
test rax, rax
jne 0x140020244
xor eax, eax
jmp 0x140020370
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x30]
call fcn.14001ad50
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x58]
call fcn.140028380
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140028b80
movzx eax, al
test eax, eax
je 0x14002036c
lea rcx, [rsp + 0x30]
call fcn.1400212a0
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.1400212a0
mov rcx, rax
add rcx, 8
call fcn.1400329e0
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, [0x14005b680]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x140020319
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
call fcn.1400212a0
mov dword [rsp + 0x44], 0
jmp 0x14002035d
lea rcx, [rsp + 0x30]
call fcn.1400212a0
mov rbx, rax
add rbx, 8
lea rcx, [rsp + 0x30]
call fcn.1400212a0
mov rcx, qword [rsp + 0x80]
add rcx, 0x50
mov rdx, rax
call fcn.1400169c0
mov rdx, rbx
mov rcx, rax
call fcn.14000ba20
lea rcx, [rsp + 0x30]
call fcn.1400212a0
lea rcx, [rsp + 0x30]
call fcn.140028b60
jmp 0x140020262
mov eax, dword [rsp + 0x44]
add rsp, 0x70
pop rbx
ret