joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011a10
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r12, rdx
mov rbx, rcx
lea rax, vtable.NGUtils::AFileVersionInfo.0
mov qword [rcx], rax
lea rax, vtable.NGUtils::CFileVersionInfo.0
mov qword [rcx], rax
and dword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 8], 0
test rdx, rdx
je 0x140011b07
and dword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [0x140031740]
mov esi, eax
mov dword [rsp + 0x68], esi
test eax, eax
je 0x140011b07
mov ecx, esi
call fcn.140012824
mov qword [rbx + 0x18], rax
jmp 0x140011a9d
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x140011b07
mov r8d, esi
mov edx, dword [rsp + 0x60]
mov rcx, r12
call qword [0x140031750]
test eax, eax
je 0x140011b07
and dword [rsp + 0x58], 0
and dword [rsp + 0x68], 0
lea r8, [rbx + 0x20]
lea r9, [rsp + 0x58]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rbx + 0x18]
call qword [0x140031748]
test eax, eax
je 0x140011aec
mov eax, dword [rsp + 0x58]
shr eax, 2
mov dword [rbx + 0x10], eax
lea r8, [rbx + 8]
lea r9, [rsp + 0x68]
lea rdx, [0x1400368ac]
mov rcx, qword [rbx + 0x18]
call qword [0x140031748]
nop
mov rax, rbx
add rsp, 0x30
pop r12
pop rsi
pop rbx
ret

Function at 0x14001c10b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400416b0]
jne 0x14001471a
rol rcx, 0x10
test cx, 0xffff
jne 0x140014716
repz ret
ror rcx, 0x10
jmp 0x14001c064
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140044410]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140044508]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001c0e9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140044410]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001c10b
mov rax, qword [rsp + 0x88]
mov qword [0x140044508], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400444a8], rax
mov rax, qword [0x140044508]
mov qword [0x140044380], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140044490], rax
mov dword [0x140044370], 0xc0000409
mov dword [0x140044374], 1
mov rax, qword [0x1400416b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400416b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140044408], eax
mov ecx, 1
call fcn.140026458
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140032b90]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140044408], 0
jne 0x14001c192
mov ecx, 1
call fcn.140026458
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14001c54c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001c3bc

Function at 0x140026564
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400416b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001d65c
xor ebx, ebx
cmp qword [0x140045578], rbx
mov rdi, rax
jne 0x140026677
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002674e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002674e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140045578], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140045580], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140045588], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140045598], rax
test rax, rax
je 0x14002666e
lea rdx, [0x140035498]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140045590], rax
jmp 0x14002667e
mov rax, qword [0x140045590]
jmp 0x140026685
mov rax, qword [0x140045590]
mov r11, qword [0x140045598]
cmp rax, rdi
je 0x1400266ec
cmp r11, rdi
je 0x1400266ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140045598]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400266ec
test rax, rax
je 0x1400266ec
call rsi
test rax, rax
je 0x1400266e6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400266e6
test byte [rsp + 0x40], 1
jne 0x1400266ec
bts ebp, 0x15
jmp 0x14002672c
mov rcx, qword [0x140045580]
cmp rcx, rdi
je 0x14002672c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002672c
call rax
mov rbx, rax
test rax, rax
je 0x14002672c
mov rcx, qword [0x140045588]
cmp rcx, rdi
je 0x14002672c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002672c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140045578]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002674e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140026750
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140014700
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140028a20
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rsp + 0xb0]
mov r10, r9
mov r9, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa8]
mov r11, r8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov rcx, rdx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x98]
mov r8, r10
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov rdx, r11
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
add rsp, 0x50
pop rbx
ret

Function at 0x140028af0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x68]
mov r11, r8
mov rcx, rdx
mov r8, r10
mov rdx, r11
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x30
pop rbx
ret

Function at 0x140028b30
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x68]
mov r11d, r8d
mov rcx, rdx
mov r8, r10
mov edx, r11d
mov dword [rsp + 0x20], eax
call fcn.140029ff8
add rsp, 0x30
pop rbx
ret

Function at 0x140029290
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10d, r9d
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rcx, rdx
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
pop rbx
ret

Function at 0x1400295f0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov r11, r8
mov rcx, rdx
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x30
pop rbx
ret

Function at 0x140029630
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9d, dword [rsp + 0x60]
mov r11d, r8d
mov rcx, rdx
mov r8, r10
mov edx, r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add rsp, 0x30
pop rbx
ret

Function at 0x140029810
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rsp + 0xc8]
mov r10d, r9d
mov r9d, dword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
mov r11d, r8d
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov rcx, rdx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov r8d, r10d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov edx, r11d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
add rsp, 0x60
pop rbx
ret
Function at 0x1400298a0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rsp + 0xc8]
mov r10, r9
mov r9, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
mov r11, r8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov rcx, rdx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov r8, r10
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa8]
mov rdx, r11
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
add rsp, 0x60
pop rbx
ret

Function at 0x140029b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x68]
mov r10, r8
mov rcx, rdx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret

Function at 0x140029b50
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x68]
mov r10, r8
mov rcx, rdx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140029b90
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
xor ecx, ecx
mov rax, r9
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov r10d, r8d
mov r11, rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov r8, rax
mov edx, r10d
mov rcx, r11
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x140029bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x88]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
mov r11d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov rcx, rdx
mov qword [rsp + 0x28], rax
mov r8, r10
mov edx, r11d
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add rsp, 0x40
pop rbx
ret

Function at 0x140029d90
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
mov rax, r8
mov ecx, edx
mov r8, r9
mov rdx, rax
call fcn.14002a0fc
movzx eax, al
add rsp, 0x28
ret

Function at 0x140e494f6
Capabilities:
Encode data using xor

Disassembly:
lea r10, [0x140e46660]
lea rsp, [rsp + 8]
movzx ebx, byte [rdi]
push 0xfffffffff5a0f32e
xor ebx, r9d
sar byte [rsp + 6], 0xe1
and ebx, 0xff
sal byte [rsp + 7], 0x85
mov ebx, dword [r10 + rbx*4]
shr r9d, 8
xor r9d, ebx
push 0x57b5aba5
inc rdi
xor r9d, 0xcb83921b
neg byte [rsp + 0xa]
dec rcx
lea rsp, [rsp + 0x10]
jne 0x140e49502
mov r10d, 0xd7a5c009
movzx ebx, r10b
xchg r10b, bl
pop rbx
bswap r10d
pop r10
push 0xa1b0407
not r9d
mov dword [rbp + riz], r9d
jmp 0x140e54401
lea rsp, [rsp + 8]
jmp fcn.140e49366
Function at 0x140754d53
Capabilities:
Encode data using xor

Disassembly:
mov dword [rbp + riz], edi
lea rsp, [rsp + 8]
jmp fcn.140756df0
xor edi, edi
test rcx, rcx
lea rsp, [rsp + 8]
je 0x140754dca
mov r10d, 0x980d1a25
lea rsi, [r10*8 + 0x33375e0d]
ror esi, 0x6e
lea r10, [0x140755d68]
mov esi, 0x513f3d34
neg si
movzx esi, byte [rsi + rax - 0x513fc2cc]
push 0xffffffffe22e0c0b
xor esi, edi
and esi, 0xff
mov esi, dword [r10 + rsi*4]
sub qword [rsp], 0xffffffff932dc1ae
shr edi, 8
xor edi, esi
push 0xffffffffb820afa0
inc rax
xor edi, 0xae1cff25
dec rcx
push 0xfffffffff390d99c
lea rsp, [rsp + 0x18]
jne 0x140754d7b
push 0xffffffffb63a3f8c
not edi
jmp 0x14074d144

Function at 0x14076c74a
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], r11
mov qword [rsp], 0xffffffffd1ad192b
mov qword [rsp], rsi
mov esi, 0x1cbb11ad
rol si, 0x21
lea r11, [0x140743b28]
mov esi, 0x8d89759e
sar sil, 0x27
movzx esi, byte [rcx]
xor esi, r9d
push 0x5fa9de3d
and esi, 0xff
mov esi, dword [r11 + rsi*4]
shr r9d, 8
xor r9d, esi
shr qword [rsp], 4
inc rcx
push 0xffffffffef3915b9
rol word [rsp + 8], 0x48
xor r9d, 0x4312c985
dec rbp
lea rsp, [rsp + 0x10]
jne 0x14076c76b
pop rsi
pop r11

Function at 0x140777a22
Capabilities:
Encode data using xor

Disassembly:
push r11
push r15
lea rsi, [rbx*2 - 0x1a431dd8]
lea r11, [rsi*2 - 0x4062eed5]
push rcx
lea rbx, [rbx + r11*8 + 0x3f28d00a]
or esi, esi
sbb r11w, bx
push r13
mov eax, 0xe60c48aa
jnp 0x14075533b
or ax, si
push r10
movabs rsi, 0
shl eax, 0xe4
neg ebx
push rbp
push r8
neg al
mov ebx, dword [rsp + rbx - 0x682083b7]
dec ebx
bswap ebx
neg ebx
movsx ebp, r11b
lea r10, [r11 + rbp*2 - 0x215d6272]
or rbp, 0xffffffffeb0c35af
sbb ebx, 0xbfa3ac04
xor ebx, 0x19a91b97
neg r10d
xadd bpl, r11b
add rbx, rsi
mov qword [rsp + rbp + 0xcb], rsi
call fcn.140767e8c
lea rsp, [rsp + 8]
jmp fcn.14077a158
call fcn.14077d164
test r11, r11
lea rsp, [rsp + 8]
je 0x14076b836
mov esi, 0x36032f1f
movsx eax, si
add rax, rax
lea rax, [0x1407433f0]
mov esi, 0xa818682d
movzx esi, byte [rdi]
xor esi, ecx
push 0xffffffffd5b47b20
and esi, 0xff
mov esi, dword [rax + rsi*4]
dec qword [rsp]
shr ecx, 8
xor ecx, esi
inc rdi
dec dword [rsp + 1]
xor ecx, 0xc9a000b6
dec r11
lea rsp, [rsp + 8]
jne 0x14076b7fa
jmp 0x14076177c
push r11
pushfq
lea rbx, [rbx - 0x754c63df]
jmp 0x14077ca24
lea r9d, [rbx + 0x32a4ff1a]
rol rbx, 0xa8
push rbx
xor bx, bx
sal r9, 1
mov qword [rsp], r8
add rbx, rbx
push rax
jbe 0x14076cd22
dec ebx
js 0x140754ce7
mov edi, 0xd02329b1
lea r11, [rdi*4 + 0x6c234526]
mov rdi, qword [r8]
sar r11d, 0xa6
mov r11, qword [r8 + 8]
add r8, 0xc
push 0x65a657b8
xor ecx, ecx
jmp 0x14076b7da
pop r9
push rsi
pushfq
shr bx, 0xe5
neg bl
jne 0x140775f64
pushfq
ror bl, 3
sbb rdx, 0xffffffffb39ee631
sal bl, 5
lea r12d, [r12 + 0x1bffff9c]
movzx edi, bl
call fcn.140756d29
Function at 0x100001a10
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100001a8f
lea r8, [rsp + 0x58]
lea rdx, [0x100001408]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x100001a89
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x34], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x80010002
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x48
ret

Function at 0x100001fe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbp
mov rbp, rcx
mov qword [rsp + 0x60], rsi
mov ecx, 0x2004
mov qword [rsp + 0x68], rdi
mov rsi, rdx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
mov rdi, rax
jne 0x10000201f
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
ret
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x30], 0x2000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000020b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1000020d4
cmp dword [rsp + 0x34], 7
jne 0x1000020d4
mov ebx, dword [rsp + 0x30]
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
shr rcx, 1
lea rcx, [rcx + rcx + 4]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
mov rdi, rax
je 0x1000020e1
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100002053
mov ecx, dword [rsp + 0x30]
shr ecx, 1
lea eax, [rcx + 1]
mov word [rdi + rcx*2], 0
mov rcx, rdi
mov word [rdi + rax*2], 0
call fcn.100001c20
test rax, rax
jne 0x1000020e3
test rdi, rdi
je 0x1000020e1
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x1000060f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x288
mov rax, qword [0x10000a348]
mov qword [rsp + 0x250], rax
test rdx, rdx
mov qword [rsp + 0x280], rbx
mov dword [rsp + 0x30], 0
mov ebx, 2
jne 0x10000612d
cmp r8d, ebx
jl 0x10000612d
mov rcx, qword [r9]
cmp word [rcx], dx
jne 0x100006137
mov eax, 3
jmp 0x10000624c
mov qword [rsp + 0x270], rsi
mov rsi, qword [r9 + 8]
cmp word [rsi], 0
jne 0x100006153
mov eax, 3
jmp 0x100006244
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 0x104
jae 0x100006242
test eax, eax
je 0x100006242
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100006242
lea rcx, [0x1000017e0]
mov qword [rsp + 0x268], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rdi, rax
je 0x10000623a
lea rdx, [0x1000017b8]
mov rcx, rax
mov qword [rsp + 0x278], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbp, rax
je 0x100006229
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r9, [rsp + 0x40]
mov r8, rsi
add rcx, 0x30
mov edx, 0xeeae
call fcn.1000018e0
lea r11, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 1
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], r11
call rbp
test eax, eax
je 0x100006229
mov rcx, qword [sym.imp.msvcrt.dll__iob]
mov edx, 0xeeb2
add rcx, 0x30
call fcn.1000018e0
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x268]
mov eax, ebx
mov rsi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
call fcn.1000079f0
add rsp, 0x288
ret
Function at 0x1000075a0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x10000a400]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x10000a4f8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100007621
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x10000a4f8]
jmp 0x10000763d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x10000a4f8], r11
mov qword [0x10000a498], rax
mov rax, qword [0x10000a348]
mov qword [0x10000a370], r11
mov qword [0x10000a480], rdi
mov dword [0x10000a360], 0xc0000409
mov dword [0x10000a364], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x10000a340]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001878]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x10000a348]
jne 0x100007a09
rol rcx, 0x10
test cx, 0xffff
jne 0x100007a05
ret
ror rcx, 0x10
jmp 0x1000075a0
Function at 0x1000076c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x100000000], 0x5a4d
je 0x1000076fc
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x100000000]
jmp 0x10000778a
movsxd rax, dword [0x10000003c]
lea rdi, [0x100000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x100007720
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000778a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x100007767
cmp ecx, 0x20b
je 0x10000773f
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000778a
cmp dword [rax + 0x84], 0xe
ja 0x100007753
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000778a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x10000778a
cmp dword [rax + 0x74], 0xe
ja 0x100007778
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x10000778a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x10000a8e0], 0xffffffffffffffff
mov qword [0x10000a8e8], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x10000a8dc]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x10000a8d8]
mov dword [rcx], eax
call fcn.1000079d0
cmp dword [0x10000a350], 0
jne 0x1000077e4
lea rcx, [fcn.1000079d0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x1000013d8]
lea rcx, [0x1000013d0]
call fcn.1000a1000
mov r11d, dword [0x10000a8d4]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x10000a8d0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___wgetmainargs]
lea rdx, [0x1000013c8]
lea rcx, [0x1000013b8]
call sub.msvcrt.dll__initterm
mov r8, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [r8], 0
jne 0x100007859
mov eax, 0xff
jmp 0x100007929
mov r8, qword [r8]
mov qword [rsp + 0x30], r8
cmp word [r8], 0x22
jne 0x1000078a0
nop
nop
add r8, 2
mov qword [rsp + 0x30], r8
movzx eax, word [r8]
test ax, ax
je 0x10000788a
cmp ax, 0x22
je 0x10000788a
jmp 0x100007870
cmp word [r8], 0x22
jne 0x1000078b2
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x1000078b2
cmp word [r8], 0x20
jbe 0x1000078b2
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x1000078a0
movzx eax, word [r8]
test ax, ax
je 0x1000078cc
cmp ax, 0x20
ja 0x1000078cc
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x1000078b2
test byte [rsp + 0x8c], 1
je 0x1000078e1
movzx r9d, word [rsp + 0x90]
jmp 0x1000078e7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.100002ca0
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x100007903
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x100007927
mov eax, edi
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret