joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b3c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400f3410], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1400f3420]
jne 0x14006b40d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400f3448], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400f3410], 1
mov ecx, dword [0x1400f3448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14006b4e2
mov rcx, qword [0x1400f1fe0]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14006b50d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f3418]
test rax, rax
je 0x14006b45d
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400f3418], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14006b528]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400f3448]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400f1fe0]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14006b50d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
leave
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
leave
leave
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
leave
leave
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
leave
leave
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
leave
leave
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
leave
leave
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
leave
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
dec ecx
pop rcx
push rax
stc
mov edi, 0xbff9525a
pop rdx
push rdx
invalid
Function at 0x2fc4d0c00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1ce0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1602
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d169a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d167e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1672
cmp qword [rbp - 0x10], 0
je 0x2fc4d1672
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1638
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d169b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d17a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d17c8
mov eax, 0
jmp 0x2fc4d1816
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d17f1
mov eax, 0
jmp 0x2fc4d1816
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1811
mov eax, 0
jmp 0x2fc4d1816
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d181c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d189a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1891
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1891
mov rax, qword [rbp - 8]
jmp 0x2fc4d18af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1864
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18000913c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000916c
xor eax, eax
jmp 0x18000922f
mov rbp, rbx
cmp word [rax], si
je 0x180009191
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009178
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009174
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000905c
movsxd r14, eax
test eax, eax
jne 0x1800091cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009165
mov rcx, r14
call fcn.18000a3cc
mov rdi, rax
test rax, rax
jne 0x1800091e8
xor ecx, ecx
call fcn.180007694
jmp 0x1800091c4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000905c
test eax, eax
jne 0x180009219
mov rcx, rdi
call fcn.180007694
jmp 0x180009223
xor ecx, ecx
call fcn.180007694
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000e980
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000e9a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000e9a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001c0c
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x140001c6f
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f5
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004dcc
xor eax, eax
jmp 0x140001d0d
lea r8, [rsp + 0x3c]
lea rdx, [0x140009790]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x140001cec
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140001c5b
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
test eax, eax
jne 0x140001d08
mov edx, 0x4f7
jmp 0x140001cda
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008470
add rsp, 0x50
pop rbx
ret
Function at 0x140002244
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
mov edx, edi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x1400022eb
lea r8, [0x1400097d8]
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140007ba8
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
nop dword [rax + rax]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400022eb
xor edx, edx
lea r8d, [rbx + 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
nop dword [rax + rax]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x140002318
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
test cx, cx
je 0x140002447
cmp cx, 1
je 0x1400023cb
jbe 0x14000244e
cmp cx, 3
ja 0x14000244e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14000c020]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400023c3
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [0x14000c108]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x10]
test eax, eax
cmovne ecx, ebx
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, dword [rbp + 0x10]
jmp 0x14000244e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14000c160]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400023c3
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
nop dword [rax + rax]
jmp 0x1400023a8
call fcn.140002244
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x14000261c
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, r8
mov byte [rcx], dil
mov rbx, rcx
cmp byte [r8], 0x23
lea r15d, [rdi + 1]
jne 0x1400027e0
add rsi, r15
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
nop dword [rax + rax]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rsi, rax
cmp r14b, 0x53
je 0x1400027dd
cmp r14b, 0x57
je 0x1400027c7
lea r8, [0x1400097e8]
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400026e5
mov al, byte [r8 + rcx]
test al, al
je 0x1400026e5
mov byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x1400026c7
test rdx, rdx
lea rax, [rcx - 1]
mov r8, rsi
mov edx, 0x104
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov byte [rax], dil
call fcn.140007ba8
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400027f5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x140009700]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400027b4
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x1400027ad
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
nop dword [rax + rax]
test eax, eax
je 0x1400027a9
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
call fcn.140001008
mov edi, r15d
jmp 0x1400027b4
mov eax, dword [rsp + 0x30]
cmp eax, r15d
cmove edi, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400027f1
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
jmp 0x1400027f5
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
test edi, edi
jne 0x140002805
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.140007ba8
mov eax, r15d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002c54
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
xor esi, esi
test eax, eax
js 0x140002cc3
cmp al, 6
jb 0x140002cc3
lea rcx, [0x140009820]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x140002cc3
lea rdx, [0x140009840]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140002cc3
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [vtable.H_MA8HI.0]
mov rdx, rbx
mov dword [0x14000d544], esi
mov rcx, rdi
call fcn.140002db4
test eax, eax
je 0x140002d7f
call fcn.1400030ec
mov ebx, eax
call fcn.1400061ec
test ebx, ebx
je 0x140002d7f
cmp byte [0x14000cd1a], sil
jne 0x140002d7f
mov edi, dword [0x14000de5c]
test dil, 1
je 0x140002d7f
test dil, 2
jne 0x140002d2d
cmp dword [0x14000d540], esi
jne 0x140002d2d
movzx ecx, word [0x14000de78]
mov ebx, dword [0x14000de7c]
call fcn.140002318
cmp ebx, eax
je 0x140002d7f
test dil, 4
jne 0x140002d5e
mov dword [rsp + 0x28], 4
lea r8, [0x140009700]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.140004dcc
cmp eax, 6
jne 0x140002d7f
cmp word [0x14000de78], si
jne 0x140002d7a
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x140002d7f
call fcn.140001c0c
mov rcx, qword [0x14000c830]
test rcx, rcx
je 0x140002d97
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14000d544]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400030ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x14000cd18], di
jne 0x140003141
cmp dword [0x14000cd04], edi
jne 0x140003134
call fcn.1400060a4
test eax, eax
je 0x140003236
cmp word [0x14000cd18], di
jne 0x140003141
call fcn.140003f74
test eax, eax
je 0x140003236
call fcn.140005fe4
test eax, eax
je 0x140003236
call fcn.1400066c4
test eax, eax
je 0x140003236
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
lea r8, [0x140009708]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140007ba8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400031c9
lea rdx, [0x140009890]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x1400031c9
xor edx, edx
lea rcx, [0x14000d610]
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp dword [0x14000cd04], edi
jne 0x140003273
cmp dword [0x14000de60], edi
jne 0x140003273
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x14000325a
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
xor ecx, ecx
call fcn.140004dcc
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140006ca4
test eax, eax
je 0x140003236
lea rcx, [0x14000d610]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x140003291
mov edx, 0x4bc
jmp 0x140003212
cmp dword [0x14000cd0c], edi
jne 0x14000332d
lea rax, [0x14000d040]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x1400032a9
test byte [0x14000cd18], 1
jne 0x1400032fb
test byte [0x14000de64], 1
jne 0x1400032fb
mov eax, dword [0x14000c1ac]
lea r9, [0x140003910]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.140007ac8
test rax, rax
jmp 0x140003302
call fcn.140005d90
test eax, eax
jne 0x140003313
mov dword [0x14000d544], 0x8007042b
jmp 0x140003236
lea rcx, [0x1400078b0]
call fcn.14000772c
test eax, eax
je 0x140003236
mov dword [0x14000d544], edi
mov eax, dword [0x14000d028]
test al, 0x40
jne 0x140003349
test al, al
js 0x140003349
movzx ecx, word [0x14000de78]
call fcn.140002318
jmp 0x14000334b
mov eax, edi
mov dword [0x14000de7c], eax
mov eax, dword [0x14000cd04]
test eax, eax
jne 0x140003376
cmp dword [0x14000de60], edi
jne 0x140003376
call fcn.1400040c4
test eax, eax
je 0x140003236
mov eax, dword [0x14000cd04]
cmp word [0x14000cd18], di
jne 0x140003388
test eax, eax
jne 0x140003388
call fcn.14000494c
mov eax, 1
jmp 0x140003238
Function at 0x140004a60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rbp, rcx
lea rcx, [0x14000c1b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140004c20
lea rdx, [0x14000c1d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x140004c0a
mov edx, 0xc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140004c0a
lea rdx, [0x14000c1e8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x140004c0a
cmp byte [0x14000cba0], bl
lea r13, [0x14000cba0]
jne 0x140004b67
mov rdx, r13
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdx + r13], bl
jne 0x140004b2b
add rdx, r13
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
mov rsi, rax
cmp byte [rax], 0x5c
jne 0x140004b67
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
cmp byte [rax], 0x3a
je 0x140004b67
mov byte [rsi], bl
lea rax, [0x14000c850]
mov byte [0x14000ca60], bl
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
lea rax, [0x140004a30]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x58], rax
mov rax, r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x60], r13
call qword [vtable.H_MA8HI.0]
mov rsi, rax
test rax, rax
je 0x140004bee
mov rcx, rax
mov rdx, r13
mov rax, r15
call qword [vtable.H_MA8HI.0]
cmp byte [0x14000cba0], bl
je 0x140004be2
mov r8, r13
lea rcx, [0x14000ca60]
mov edx, 0x104
call fcn.140001008
mov rcx, rsi
mov rax, r14
call qword [vtable.H_MA8HI.0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp byte [0x14000ca60], bl
setne bl
mov eax, ebx
jmp 0x140004c41
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov edx, 0x4c1
jmp 0x140004c25
mov edx, 0x4c2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov rcx, rbp
call fcn.140004dcc
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret