joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012010
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, rdx
mov rdi, rcx
mov rdx, rcx
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str.Lang
xor ebp, ebp
mov rcx, rdi
mov word [rax], bp
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [0x1800429b0]
lea rax, [0x180042998]
lea rsi, [rdi + 0x208]
lea rdx, [0x180042970]
lea rcx, [rsp + 0x40]
mov r9, r8
mov word [rdi + 0x410], bp
mov qword [rsp + 0x20], rax
mov word [rsi], bp
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x38]
lea r9d, [rbp + 1]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x180012109
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.LangModule
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp rbx, rbp
je 0x180012109
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180022fd0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret

Function at 0x180012ec4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov word [rsp + 0x18], r8w
push rdi
sub rsp, 0x20
mov r8d, edx
mov rbx, rcx
mov rdx, rcx
mov rcx, qword [0x1800582c8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x40]
mov edx, 1
call qword [sym.imp.USER32.dll_CharLowerBuffW]
xor edi, edi
cmp word [rsp + 0x40], 0x6d
jne 0x180012f40
call fcn.18003b7d0
mov rcx, rbx
lea rdx, [0x180042ef8]
cmp al, dil
jne 0x180012f31
lea rdx, [0x180042f00]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.KZMount2.exe
jmp 0x180012f57
lea rdx, [0x180042f28]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.KuaiZip.exe
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, qword [rsp + 0x30]
cmp eax, 0xffffffff
setne dil
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x180012ff4
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setae al
add rsp, 0x28
ret
Function at 0x180015178
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edx, edx
mov rdi, rcx
lea r8, [0x1800437e0]
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor ebx, ebx
mov qword [rdi + 8], rax
cmp rax, rbx
jne 0x1800151a6
xor eax, eax
jmp 0x1800151ca
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp rax, rbx
mov qword [rdi + 0x10], rax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180016160
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x22]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov rbx, r9
mov word [rsp + 0x20], bp
call fcn.180022ca0
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp bp, word [rsp + 0x20]
jne 0x1800161ca
lea rdx, [0x180044348]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [rdi + 0x32c], ebp
je 0x18001620c
lea rcx, str.Archive
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
cmp rax, rbp
jne 0x1800161f2
mov ecx, 0x8007000e
call fcn.1800080ec
int3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x180016381
mov rcx, qword [rdi + 0x80]
movabs rbx, 0x6666666666666667
sub rcx, qword [rdi + 0x78]
mov rax, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jbe 0x180016324
cmp qword [rdi + 0x28], 8
jb 0x18001624c
mov rcx, qword [rdi + 0x10]
jmp 0x180016250
lea rcx, [rdi + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp qword [rdi + 0x28], 8
mov rdx, rax
jb 0x180016266
mov rax, qword [rdi + 0x10]
jmp 0x18001626a
lea rax, [rdi + 0x10]
cmp rdx, rax
jne 0x180016310
mov rcx, qword [rdi + 0x80]
mov rax, rbx
sub rcx, qword [rdi + 0x78]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x180016299
call fcn.180025824
mov rax, qword [rdi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x1800162aa
mov rdx, qword [rax + 8]
jmp 0x1800162ae
lea rdx, [rax + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rdi + 0x80]
mov rax, rbx
sub rcx, qword [rdi + 0x78]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x1800162dd
call fcn.180025824
mov rax, qword [rdi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x1800162ee
mov rcx, qword [rax + 8]
jmp 0x1800162f2
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x180016381
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp rax, rbp
je 0x180016381
jmp 0x18001637e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x180016381
mov rcx, qword [rdi + 0x80]
mov rax, rbx
sub rcx, qword [rdi + 0x78]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001634a
call fcn.180025824
mov rax, qword [rdi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001635b
mov rdx, qword [rax + 8]
jmp 0x18001635f
lea rdx, [rax + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x180016381
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov word [rax], bp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180022fd0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001d9d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r8d, r9d
xor edx, edx
mov rcx, rsi
call fcn.180022ca0
mov rcx, qword [rdi]
lea r11, [rsp + 0x68]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rbx, eax
test eax, eax
je 0x18001da41
mov ecx, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
cmp dword [rsp + 0x68], ecx
cmovb ecx, dword [rsp + 0x68]
mov r8d, ecx
mov rcx, rsi
call fcn.180024f60
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18001da60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r8d, r9d
xor edx, edx
mov rcx, rbx
call fcn.180022ca0
mov rcx, qword [rsi]
lea r11, [rsp + 0x68]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cdqe
add rsp, 0x40
pop rdi
ret

Function at 0x18001db00
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdqe
add rsp, 0x48
ret
Function at 0x18001eab8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x890
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x880], rax
xor ebx, ebx
mov word [rsp + 0x80], bx
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x82]
call fcn.180022ca0
lea r11, str.Update
mov qword [rsp + 0x20], r11
lea r9, [0x180044dc0]
lea r8, str.KuaiZip
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x30]
call fcn.18003b690
nop
lea rcx, [rsp + 0x30]
call fcn.18003b650
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x18001eb70
mov ebx, 1
jmp 0x18001ec08
mov dword [rsp + 0x40], ebx
xor eax, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x38], 8
lea rcx, [rsp + 0x30]
call fcn.18003b630
mov rcx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.kernel
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r11d, word [rsp + 0x60]
cmp word [rsp + 0x48], r11w
jbe 0x18001ebe8
mov ebx, 1
jmp 0x18001ec08
movzx eax, word [rsp + 0x62]
cmp word [rsp + 0x4a], ax
jbe 0x18001ebfb
mov ebx, 1
jmp 0x18001ec08
movzx ecx, word [rsp + 0x66]
cmp word [rsp + 0x4e], cx
seta bl
lea rcx, [rsp + 0x30]
call fcn.18003b670
mov eax, ebx
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.180022fd0
add rsp, 0x890
pop rbx
ret
Function at 0x18001eca8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xae0
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0xad0], rax
call fcn.18000c5ec
xor esi, esi
lea rcx, [0x180044e18]
cmp eax, esi
lea rdi, [0x180044e20]
lea r8d, [rsi + 0x6c]
cmovne rdi, rcx
lea rcx, [rsp + 0x54]
xor edx, edx
mov dword [rsp + 0x50], 0x70
call fcn.180022ca0
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], si
call fcn.180022ca0
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x2d0], si
call fcn.180022ca0
mov rcx, qword [0x1800582c8]
lea rdx, [rsp + 0xc0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbx, rax
call fcn.18003b7d0
mov rcx, rbx
lea rdx, str.X64_
cmp al, sil
jne 0x18001ed80
lea rdx, str.X86_
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.KZMount.exe
lea rcx, [rsp + 0x20]
call fcn.18003b9f0
cmp qword [rax + 0x20], 8
jb 0x18001eda4
mov rdx, qword [rax + 8]
jmp 0x18001eda8
lea rdx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp qword [rsp + 0x40], 8
jb 0x18001edc3
mov rcx, qword [rsp + 0x28]
call fcn.1800228ac
lea rax, [rsp + 0xc0]
lea r8, [0x180044e58]
lea rdx, str._s__s
lea rcx, [rsp + 0x2d0]
mov r9, rdi
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x2d0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], r11
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x54], 0x400
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.180022fd0
lea r11, [rsp + 0xae0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18001fb24
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [rsp + 0x22]
xor edx, edx
lea r8d, [rbx + 0x3e]
mov word [rsp + 0x20], bx
call fcn.180022ca0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
movzx ecx, ax
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
jne 0x18001fb79
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x18001fb83
lea rcx, [rsp + 0x20]
call fcn.180025ff4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180022fd0
add rsp, 0x70
pop rbx
ret

Function at 0x180021bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x180058418]
test rcx, rcx
jne 0x180021b47
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x180021b40
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180021b72
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x180021b3c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x180058418], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x180021be5
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180021b95
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x180058418]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x180021bc2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x180021be5
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x180058418]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x180021bc9
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x180021acc

Function at 0x18002a1c8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18002a03c
Function at 0x18002a6cb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180056150]
jne 0x180022fea
rol rcx, 0x10
test cx, 0xffff
jne 0x180022fe6
repz ret
ror rcx, 0x10
jmp 0x18002a624
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180058d10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180058e08]
mov qword [rsp + 0x58], r11
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 0x18002a6a9
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, [0x180058d10]
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 0x18002a6cb
mov rax, qword [rsp + 0x88]
mov qword [0x180058e08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180058da8], rax
mov rax, qword [0x180058e08]
mov qword [0x180058c80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180058d90], rax
mov dword [0x180058c70], 0xc0000409
mov dword [0x180058c74], 1
mov rax, qword [0x180056150]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180056158]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180058d08], eax
mov ecx, 1
call fcn.18002f290
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180046ba0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180058d08], 0
jne 0x18002a752
mov ecx, 1
call fcn.18002f290
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 0x180034d18
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18002a8a8
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800596f0], rbx
jne 0x180034e1e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180034ef3
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180034ef3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800596f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800596f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180059700], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180059710], rax
test rax, rax
je 0x180034e15
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180059708], rax
jmp 0x180034e25
mov rax, qword [0x180059708]
jmp 0x180034e2c
mov rax, qword [0x180059708]
mov r11, qword [0x180059710]
cmp rax, rdi
je 0x180034e94
cmp r11, rdi
je 0x180034e94
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180059710]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180034e94
test rax, rax
je 0x180034e94
call rsi
test rax, rax
je 0x180034e8e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180034e8e
test byte [rsp + 0x38], 1
jne 0x180034e94
bts ebp, 0x15
jmp 0x180034ed2
mov rcx, qword [0x1800596f8]
cmp rcx, rdi
je 0x180034ed2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180034ed2
call rax
mov rbx, rax
test rax, rax
je 0x180034ed2
mov rcx, qword [0x180059700]
cmp rcx, rdi
je 0x180034ed2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180034ed2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800596f0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180034ef3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180034ef5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18003b6b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x18003b6e4
xor al, al
jmp 0x18003b723
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x20], 0
jne 0x18003b717
mov dword [rsp + 0x30], 1
jmp 0x18003b71f
mov dword [rsp + 0x30], 0
mov al, byte [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x18003b7d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
cmp eax, 9
je 0x18003b7f3
movzx eax, word [rsp + 0x20]
cmp eax, 6
jne 0x18003b7f7
mov al, 1
jmp 0x18003b7f9
xor al, al
add rsp, 0x58
ret

Function at 0x18003b810
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18003b8a3
mov rcx, qword [rsp + 0x68]
call fcn.180006dc0
mov rbx, rax
mov rcx, qword [rsp + 0x68]
call fcn.180006da0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x40
pop rbx
ret
Function at 0x18003b8b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x74], 0
lea rcx, [rsp + 0x38]
call fcn.180001cd0
nop
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x118]
xor r8d, r8d
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x18003b99a
mov dword [rsp + 0x70], 0
movsxd rdx, dword [rsp + 0x110]
lea rcx, [rsp + 0x38]
call fcn.180006dd0
lea rcx, [rsp + 0x38]
call fcn.180006da0
mov r11, rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x38]
call fcn.180006da0
mov rdx, rax
mov rcx, qword [rsp + 0xf0]
call fcn.180001cf0
mov eax, dword [rsp + 0x74]
or eax, 1
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x38]
call fcn.180001d80
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.180022fd0
add rsp, 0xe8
ret

Function at 0x18003bc80
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov qword [rsp + 0x150], 0xfffffffffffffffe
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x188], rax
lea rcx, [rsp + 0x38]
call fcn.180001cd0
nop
cmp qword [rsp + 0x1a0], 0
je 0x18003bda1
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x60]
call fcn.180001cf0
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
lea r8, [0x180048a98]
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x88]
call fcn.180007a50
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
mov r8, qword [rsp + 0x1a8]
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0xb0]
call fcn.180007a50
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x38]
call fcn.180001dc0
nop
lea rcx, [rsp + 0xb0]
call fcn.180001d80
nop
lea rcx, [rsp + 0x88]
call fcn.180001d80
nop
lea rcx, [rsp + 0x60]
call fcn.180001d80
jmp 0x18003bdb3
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x38]
call fcn.180008080
lea rcx, [rsp + 0x38]
call fcn.180001dd0
mov r8, rax
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1b0]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
lea rcx, [rsp + 0x38]
call fcn.180001d80
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.180022fd0
add rsp, 0x198
ret
Function at 0x140001758
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400017a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400017a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400017a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400017a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400017a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400017a4
xor al, al
add rsp, 0x28
ret