joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012650
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.140012f60
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.140012850
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.140012c40
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x40]
call fcn.140012c60
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.140012c20
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x40]
call fcn.140012c80
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x40]
call fcn.140012cc0
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.140012d00
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 0x1400127c1
xor eax, eax
jmp 0x14001282b
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 0x140012811
mov eax, dword [rsp + 0x100]
jmp 0x14001282b
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.1400434f0
add rsp, 0x128
ret
Function at 0x140012d40
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.140012e60
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.140012f10
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 0x140012dd0
mov eax, dword [rsp + 0x5c]
jmp 0x140012e46
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 0x140012e14
mov eax, dword [rsp + 0x5c]
jmp 0x140012e46
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.1400434f0
add rsp, 0x78
ret
Function at 0x140019610
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.1400326d0
mov rdx, rax
mov rcx, qword [rsp + 0x2c0]
call fcn.140018f20
test eax, eax
jne 0x140019688
lea rdx, [0x14005a708]
lea rcx, [rsp + 0x20]
call fcn.1400034e0
jmp 0x140019699
lea rdx, [0x14005a714]
lea rcx, [rsp + 0x20]
call fcn.1400034e0
lea rcx, [rsp + 0x20]
call fcn.1400326d0
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 0x1400196f2
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 0x1400197b8
movzx eax, word [rsp + 0x5c]
cmp eax, 0x2e
jne 0x1400196fe
jmp 0x140019766
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x298]
call fcn.140007550
lea rdx, [0x14005a718]
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.140018fa0
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 0x1400196f2
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.1400434f0
add rsp, 0x2b8
ret
Function at 0x14001a1c0
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 0x14001a21e
mov rcx, qword [rsp + 0x50]
add rcx, 0x70
call fcn.1400326d0
mov rbx, rax
mov rcx, qword [rsp + 0x50]
add rcx, 0x80
call fcn.1400326d0
mov r9, rbx
mov r8, rax
lea rdx, str.LANGUAGE
lea rcx, str.BAYMAX64
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x14001a2a7
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.1400326d0
mov rbx, rax
mov rcx, qword [rsp + 0x50]
add rcx, 0x50
call fcn.1400326d0
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 0x14001a2a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x14001a2a7
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x14001e280
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 0x14001e2c5
mov eax, dword [rsp + 0x48]
jmp 0x14001e380
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 0x14001e371
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jne 0x14001e35e
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x30], eax
je 0x14001e35e
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 0x14001e35e
cmp dword [rsp + 0x80], 0
je 0x14001e348
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x14001e353
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 0x14001e2fe
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 0x14001f5b0
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 0x14001f61b
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.1400434f0
add rsp, 0x258
ret
Function at 0x14001f870
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.14001f5b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001f8f0
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14001f8ee
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 0x14001f952
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 0x14001f952
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 0x14001f98b
cmp dword [rsp + 0x270], 6
je 0x14001f99f
cmp dword [rsp + 0x270], 0xa
je 0x14001fa30
jmp 0x14001fa90
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3e9
jmp 0x14001fa9f
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x274], eax
cmp dword [rsp + 0x274], 0
je 0x14001f9db
cmp dword [rsp + 0x274], 1
je 0x14001f9ec
cmp dword [rsp + 0x274], 2
je 0x14001f9fd
cmp dword [rsp + 0x274], 3
je 0x14001fa0e
jmp 0x14001fa1f
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3ee
jmp 0x14001fa2e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3ef
jmp 0x14001fa2e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f0
jmp 0x14001fa2e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f1
jmp 0x14001fa2e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f2
jmp 0x14001fa9f
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x278], eax
cmp dword [rsp + 0x278], 0
je 0x14001fa4e
jmp 0x14001fa7f
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f2
mov rax, qword [rsp + 0x2a0]
cmp dword [rax + 0x10], 0x55f0
jb 0x14001fa7d
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f3
jmp 0x14001fa8e
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f3
jmp 0x14001fa9f
mov rax, qword [rsp + 0x2a0]
mov dword [rax + 0x14], 0x3f3
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400434f0
add rsp, 0x290
pop rdi
ret
Function at 0x1400200d0
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.1400280a0
test rax, rax
jne 0x140020104
xor eax, eax
jmp 0x140020230
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x30]
call fcn.14001ad30
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x58]
call fcn.140028070
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140028870
movzx eax, al
test eax, eax
je 0x14002022c
lea rcx, [rsp + 0x30]
call fcn.140021160
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.140021160
mov rcx, rax
add rcx, 8
call fcn.1400326d0
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, [0x14005b690]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1400201d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
call fcn.140021160
mov dword [rsp + 0x44], 0
jmp 0x14002021d
lea rcx, [rsp + 0x30]
call fcn.140021160
mov rbx, rax
add rbx, 8
lea rcx, [rsp + 0x30]
call fcn.140021160
mov rcx, qword [rsp + 0x80]
add rcx, 0x50
mov rdx, rax
call fcn.1400169a0
mov rdx, rbx
mov rcx, rax
call fcn.14000ba20
lea rcx, [rsp + 0x30]
call fcn.140021160
lea rcx, [rsp + 0x30]
call fcn.140028850
jmp 0x140020122
mov eax, dword [rsp + 0x44]
add rsp, 0x70
pop rbx
ret
Function at 0x140020240
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, 0x520
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x518], rax
mov dword [rsp + 0x508], 0
mov rdx, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x530]
call fcn.1400200d0
mov rdx, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x530]
call fcn.14001fba0
test eax, eax
jne 0x1400202a9
mov eax, dword [rsp + 0x508]
jmp 0x1400204b1
lea rdi, [rsp + 0xf0]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rsp + 0x500]
call fcn.140003220
mov r8, qword [rsp + 0x530]
mov r8, qword [r8 + 0x98]
lea rdx, str.__s___baymax
lea rcx, [rsp + 0x500]
call fcn.1400057e0
lea rcx, [rsp + 0x500]
call fcn.1400326d0
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 + 0x530]
add rcx, 0x98
call fcn.1400326d0
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 0x1400203cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [rsp + 0x508]
mov dword [rsp + 0x510], eax
lea rcx, [rsp + 0x500]
call fcn.1400038b0
mov eax, dword [rsp + 0x510]
jmp 0x1400204b1
mov dword [rsp + 0x508], 0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x530]
add rcx, 0x18
call fcn.1400280a0
test rax, rax
je 0x140020405
jmp 0x14002045e
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 0x140020448
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 + 0x530]
add rcx, 0x18
call fcn.1400280a0
test rax, rax
je 0x140020479
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.1400038b0
mov eax, dword [rsp + 0x514]
mov rcx, qword [rsp + 0x518]
xor rcx, rsp
call fcn.1400434f0
add rsp, 0x520
pop rdi
ret
Function at 0x1400204d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rcx, qword [rsp + 0xb8]
add rcx, 0x50
call fcn.1400280a0
test rax, rax
je 0x14002050d
mov rcx, qword [rsp + 0xb0]
add rcx, 0x50
call fcn.14000d250
test rax, rax
jne 0x140020536
mov rcx, qword [rsp + 0xb8]
add rcx, 0x50
call fcn.1400280a0
mov rcx, qword [rsp + 0xb0]
add rcx, 0x50
call fcn.14000d250
xor eax, eax
jmp 0x140020741
lea rcx, [rsp + 0x38]
call fcn.140003220
mov rcx, qword [rsp + 0xb0]
add rcx, 0x18
lea rdx, [rsp + 0x40]
call fcn.14001ad30
mov rcx, qword [rsp + 0xb0]
add rcx, 0x18
lea rdx, [rsp + 0x68]
call fcn.140028070
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140028870
movzx eax, al
test eax, eax
je 0x140020607
lea rcx, [rsp + 0x40]
call fcn.1400110e0
mov rcx, qword [rsp + 0xb0]
add rcx, 0x50
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140021070
mov rcx, qword [rsp + 0xb0]
add rcx, 0x50
lea rdx, [rsp + 0x78]
call fcn.14000c0c0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000fa30
movzx eax, al
test eax, eax
je 0x1400205f8
lea rcx, [rsp + 0x50]
call fcn.140021180
mov rdx, rax
add rdx, 8
lea rcx, [rsp + 0x38]
call fcn.14000ba20
lea rcx, [rsp + 0x50]
call fcn.140021180
jmp 0x140020607
lea rcx, [rsp + 0x40]
call fcn.140028850
jmp 0x140020556
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xb8]
add rcx, 0x50
lea rdx, [rsp + 0x20]
call fcn.14001ad30
mov rcx, qword [rsp + 0xb8]
add rcx, 0x50
lea rdx, [rsp + 0x88]
call fcn.140028070
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140028870
movzx eax, al
test eax, eax
je 0x140020703
lea rcx, [rsp + 0x20]
call fcn.140021160
mov rcx, rax
add rcx, 8
call fcn.1400326d0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400109f0
test eax, eax
je 0x1400206f4
mov rdx, qword [rsp + 0xb0]
add rdx, 0x90
lea rcx, [rsp + 0x60]
call fcn.140007550
lea rdx, [0x14005b57c]
lea rcx, [rsp + 0x60]
call fcn.1400034e0
lea rcx, [rsp + 0x20]
call fcn.140021160
mov rdx, rax
add rdx, 8
lea rcx, [rsp + 0x60]
call fcn.1400034a0
lea rcx, [rsp + 0x60]
call fcn.1400326d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400206df
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.1400038b0
lea rcx, [rsp + 0x20]
call fcn.140028850
jmp 0x140020625
cmp dword [rsp + 0x30], 0
je 0x140020717
mov dword [rsp + 0x9c], 1
jmp 0x140020722
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0x38]
call fcn.1400038b0
mov eax, dword [rsp + 0x98]
add rsp, 0xa8
ret

Function at 0x140020880
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, [0x140020850]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400208e6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov eax, 1
jmp 0x1400208e8
xor eax, eax
add rsp, 0x48
ret
Function at 0x140020900
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 rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0x500], 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.140003460
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.1400057e0
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
call fcn.1400326d0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400209e8
mov dword [rsp + 0x4f0], 1
mov rcx, qword [rsp + 0x528]
call fcn.1400038b0
mov eax, dword [rsp + 0x4f0]
jmp 0x140020b7d
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, [0x14005b9e8]
mov qword [rsp + 0x468], rax
mov rcx, qword [rsp + 0x520]
add rcx, 0x90
call fcn.1400326d0
mov qword [rsp + 0x4a0], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x480], rax
mov rcx, qword [rsp + 0x528]
call fcn.1400326d0
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 0x140020b5e
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140020af7
mov dword [rsp + 0x4f4], 0
mov rcx, qword [rsp + 0x528]
call fcn.1400038b0
mov eax, dword [rsp + 0x4f4]
jmp 0x140020b7d
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
lea rdx, [rsp + 0x240]
call fcn.140003460
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.140003460
mov dword [rsp + 0x4f8], 1
mov rcx, qword [rsp + 0x528]
call fcn.1400038b0
mov eax, dword [rsp + 0x4f8]
jmp 0x140020b7d
mov dword [rsp + 0x4fc], 0
mov rcx, qword [rsp + 0x528]
call fcn.1400038b0
mov eax, dword [rsp + 0x4fc]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1400434f0
add rsp, 0x510
pop rdi
ret
Function at 0x140021dd0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140021df1
xor eax, eax
jmp 0x140021e66
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140003460
mov rcx, qword [rsp + 0x30]
call fcn.140022310
test eax, eax
jne 0x140021e12
xor eax, eax
jmp 0x140021e66
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x14], 1
mov rcx, qword [rsp + 0x30]
call fcn.140022480
test eax, eax
je 0x140021e44
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.140022f30
mov r11d, eax
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], r11d
jmp 0x140021e5e
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
add rsp, 0x28
ret
Function at 0x140022310
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400326d0
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 0x140022372
xor eax, eax
jmp 0x14002246f
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 0x1400223e0
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call fcn.140022050
test eax, eax
je 0x1400223e0
cmp dword [rsp + 0x40], 0x1000
jb 0x1400223e0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x40]
cmp dword [rsp + 0x40], eax
jae 0x1400223e0
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 0x140022427
xor eax, eax
jmp 0x14002246f
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 0x14002246a
xor eax, eax
jmp 0x14002246f
mov eax, 1
add rsp, 0x58
ret