joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a990
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.14000abc0
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 0x14000a9fc
xor eax, eax
jmp 0x14000ab62
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 0x14000aa57
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x54]
mov dword [rcx], eax
cmp dword [rsp + 0x40], 0
jne 0x14000ab35
cmp dword [rsp + 0x54], 0xa00000
jge 0x14000ab35
cmp dword [rsp + 0x54], 6
jle 0x14000ab35
mov eax, dword [rsp + 0x54]
add eax, 4
mov dword [rsp + 0x60], eax
movsxd rcx, dword [rsp + 0x60]
call fcn.14004d1e8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14000ab35
movsxd r8, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14004dca0
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 0x14000ab18
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x64], eax
jne 0x14000ab18
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.14000acf0
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.14004c9f0
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 0x1400109d0
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, 0x620
mov qword [rsp + 0x5f8], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x610], 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 + 0x638]
call fcn.140011190
lea rdx, [0x140065d64]
mov rcx, rax
call fcn.14004e328
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140010a6d
mov dword [rsp + 0x4e0], 0
mov rcx, qword [rsp + 0x638]
call fcn.1400038a0
mov eax, dword [rsp + 0x4e0]
jmp 0x140010b79
mov r9, qword [rsp + 0x58]
mov r8d, 0x400
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.14004e1cc
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x140010ab1
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x480]
call fcn.140001060
jmp 0x140010a6d
mov rcx, qword [rsp + 0x58]
call fcn.14004de38
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.140010830
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x4e8]
call fcn.140011140
mov qword [rsp + 0x600], rax
mov rax, qword [rsp + 0x600]
mov qword [rsp + 0x608], rax
mov rcx, qword [rsp + 0x608]
call fcn.140011190
mov rdx, rax
mov rcx, qword [rsp + 0x640]
call fcn.140003450
nop
lea rcx, [rsp + 0x4e8]
call fcn.140031b50
mov dword [rsp + 0x5f0], 1
mov rcx, qword [rsp + 0x638]
call fcn.1400038a0
mov eax, dword [rsp + 0x5f0]
mov rcx, qword [rsp + 0x610]
xor rcx, rsp
call fcn.14004c9d0
add rsp, 0x620
pop rdi
ret
Function at 0x140010ba0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xb0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
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 + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140010c11
mov eax, dword [rsp + 0x5c]
jmp 0x140010d68
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 0x140010c3e
cmp dword [rsp + 0x58], 0
je 0x140010c52
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x5c]
jmp 0x140010d68
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140003230
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x78]
call fcn.140003250
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xc0]
call fcn.1400109d0
test eax, eax
jne 0x140010ccb
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x50]
call fcn.1400038a0
mov eax, dword [rsp + 0x80]
jmp 0x140010d68
lea rcx, [rsp + 0x50]
call fcn.140011190
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
call fcn.140011080
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0xc0]
call fcn.140013f70
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400319d0
movzx eax, al
test eax, eax
je 0x140010d4c
lea rcx, [rsp + 0x50]
call fcn.140011190
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140014020
mov rdx, rbx
mov rcx, rax
call fcn.140010ee0
test eax, eax
jne 0x140010d40
mov dword [rsp + 0x5c], 1
jmp 0x140010d4c
lea rcx, [rsp + 0x40]
call fcn.1400111a0
jmp 0x140010ce7
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0x50]
call fcn.1400038a0
mov eax, dword [rsp + 0x98]
add rsp, 0xb0
pop rbx
ret
Function at 0x140010d80
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x28]
call fcn.140011ca0
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140010dd4
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x28]
call fcn.140011cd0
mov eax, dword [rsp + 0x48]
jmp 0x140010eda
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
call fcn.140011d40
test eax, eax
jne 0x140010dec
jmp 0x140010eaa
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140010f40
nop
lea rdx, [0x140065dc0]
lea rcx, [rsp + 0x38]
call fcn.140006800
test eax, eax
je 0x140010e47
lea rdx, [0x140065df0]
lea rcx, [rsp + 0x38]
call fcn.140006800
test eax, eax
je 0x140010e47
lea rdx, str.Baymax_Patcher_Tools
lea rcx, [rsp + 0x38]
call fcn.140006800
test eax, eax
je 0x140010e47
lea rcx, [rsp + 0x38]
call fcn.1400038a0
jmp 0x140010eaa
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140010f90
nop
lea rdx, [0x140065e48]
lea rcx, [rsp + 0x40]
call fcn.140006800
test eax, eax
je 0x140010e83
lea rcx, [rsp + 0x40]
call fcn.1400038a0
nop
lea rcx, [rsp + 0x38]
call fcn.1400038a0
jmp 0x140010eaa
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x40]
call fcn.1400038a0
nop
lea rcx, [rsp + 0x38]
call fcn.1400038a0
xor eax, eax
test eax, eax
jne 0x140010dd4
cmp dword [rsp + 0x20], 0
jne 0x140010ec4
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140010ba0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x28]
call fcn.140011cd0
mov eax, dword [rsp + 0x4c]
add rsp, 0x68
ret

Function at 0x140011d40
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.14004d258
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 0x140011d79
xor eax, eax
jmp 0x140011e39
mov ecx, dword [rsp + 0x34]
call fcn.14004d1e8
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 0x140011dc1
mov rcx, qword [rsp + 0x50]
call fcn.140011cf0
xor eax, eax
jmp 0x140011e39
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 0x140011df1
mov rcx, qword [rsp + 0x50]
call fcn.140011cf0
xor eax, eax
jmp 0x140011e39
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 0x140017d00
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x20], r9d
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 + 0xb0]
mov dword [rax], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jg 0x140017d7f
mov dword [rsp + 0x68], 0x400
movsxd rcx, dword [rsp + 0x68]
call fcn.14004d1e8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140017da5
jmp 0x140017e8e
movsxd r9, dword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
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 0x140017dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017e8e
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 0x140017e1a
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x140017e1c
jmp 0x140017e8e
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x140017e48
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x28]
mov dword [rcx], eax
jmp 0x140017e7c
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140017e7c
mov dword [rsp + 0x3c], 1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xb0]
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 0x140017d65
cmp qword [rsp + 0x30], 0
je 0x140017eb3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.14004e78c
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x140018130
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 [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x100], 0
call fcn.140018a40
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.140018330
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.140018720
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x40]
call fcn.140018740
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.140018700
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x40]
call fcn.140018760
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x40]
call fcn.1400187a0
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.1400187e0
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 0x1400182a1
xor eax, eax
jmp 0x14001830b
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 0x1400182f1
mov eax, dword [rsp + 0x100]
jmp 0x14001830b
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.14004c9d0
add rsp, 0x128
ret
Function at 0x140018820
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 [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x40]
call fcn.140018940
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.1400189f0
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 0x1400188b0
mov eax, dword [rsp + 0x5c]
jmp 0x140018926
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 0x1400188f4
mov eax, dword [rsp + 0x5c]
jmp 0x140018926
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.14004c9d0
add rsp, 0x78
ret

Function at 0x140018c60
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x258
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [0x14007cbc0], 0
jne 0x140018ccb
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 [0x14007cbc0], rax
mov rax, qword [0x14007cbc0]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14004c9d0
add rsp, 0x258
ret
Function at 0x140018f20
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.140018c60
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140018f87
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140018f85
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 0x140018fd4
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 0x140018fd4
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 0x140019002
cmp dword [rsp + 0x280], 6
je 0x14001900f
cmp dword [rsp + 0x280], 0xa
je 0x140019076
jmp 0x1400190b3
mov dword [rsp + 0x30], 0x3e9
jmp 0x1400190bb
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x284], eax
cmp dword [rsp + 0x284], 0
je 0x140019044
cmp dword [rsp + 0x284], 1
je 0x14001904e
cmp dword [rsp + 0x284], 2
je 0x140019058
cmp dword [rsp + 0x284], 3
je 0x140019062
jmp 0x14001906c
mov dword [rsp + 0x30], 0x3ee
jmp 0x140019074
mov dword [rsp + 0x30], 0x3ef
jmp 0x140019074
mov dword [rsp + 0x30], 0x3f0
jmp 0x140019074
mov dword [rsp + 0x30], 0x3f1
jmp 0x140019074
mov dword [rsp + 0x30], 0x3f2
jmp 0x1400190bb
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x288], eax
cmp dword [rsp + 0x288], 0
je 0x14001908d
jmp 0x1400190a9
mov dword [rsp + 0x30], 0x3f2
cmp dword [rsp + 0x34], 0x55f0
jb 0x1400190a7
mov dword [rsp + 0x30], 0x3f3
jmp 0x1400190b1
mov dword [rsp + 0x30], 0x3f3
jmp 0x1400190bb
mov dword [rsp + 0x30], 0x3f3
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14004c9d0
add rsp, 0x2a0
pop rdi
ret
Function at 0x1400202d0
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.140007500
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x280]
call fcn.140007500
nop
lea rcx, [rsp + 0x20]
call fcn.140011190
mov rdx, rax
mov rcx, qword [rsp + 0x2d0]
call fcn.14001f950
test eax, eax
jne 0x140020356
lea rdx, [0x1400681a8]
lea rcx, [rsp + 0x20]
call fcn.1400034d0
jmp 0x140020367
lea rdx, [0x1400681b4]
lea rcx, [rsp + 0x20]
call fcn.1400034d0
lea rcx, [rsp + 0x20]
call fcn.140011190
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 0x1400203c1
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 0x140020489
movzx eax, word [rsp + 0x5c]
cmp eax, 0x2e
jne 0x1400203cd
jmp 0x140020436
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x298]
call fcn.140007500
nop
lea rdx, [0x1400681b8]
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.14001fb30
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 0x1400203c1
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.14004c9d0
add rsp, 0x2c8
ret
Function at 0x140027b20
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.1400311e0
test rax, rax
jne 0x140027b54
xor eax, eax
jmp 0x140027c80
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x30]
call fcn.140011080
mov rcx, qword [rsp + 0x88]
add rcx, 0x50
lea rdx, [rsp + 0x58]
call fcn.140013f70
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400319d0
movzx eax, al
test eax, eax
je 0x140027c7c
lea rcx, [rsp + 0x30]
call fcn.140014020
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.140014020
mov rcx, rax
add rcx, 8
call fcn.140011190
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, [0x140069680]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x140027c29
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
call fcn.140014020
mov dword [rsp + 0x44], 0
jmp 0x140027c6d
lea rcx, [rsp + 0x30]
call fcn.140014020
mov rbx, rax
add rbx, 8
lea rcx, [rsp + 0x30]
call fcn.140014020
mov rcx, qword [rsp + 0x80]
add rcx, 0x50
mov rdx, rax
call fcn.14001dce0
mov rdx, rbx
mov rcx, rax
call fcn.14000bd40
lea rcx, [rsp + 0x30]
call fcn.140014020
lea rcx, [rsp + 0x30]
call fcn.1400111a0
jmp 0x140027b72
mov eax, dword [rsp + 0x44]
add rsp, 0x70
pop rbx
ret
Function at 0x140027c90
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.140027b20
mov rdx, qword [rsp + 0x548]
mov rcx, qword [rsp + 0x540]
call fcn.1400275e0
test eax, eax
jne 0x140027d05
mov eax, dword [rsp + 0x508]
jmp 0x140027f0e
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.140005730
lea rcx, [rsp + 0x500]
call fcn.140011190
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.140011190
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 0x140027e2c
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 0x140027f0e
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.1400311e0
test rax, rax
je 0x140027e62
jmp 0x140027ebb
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 0x140027ea5
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.1400311e0
test rax, rax
je 0x140027ed6
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.14004c9d0
add rsp, 0x530
pop rdi
ret