joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008460
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x140023410]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [r11 - 0x20], 7
xor ebx, ebx
mov qword [r11 - 0x28], rbx
mov word [rsp + 0x70], bx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ebx
lea rcx, str.rdev
call fcn.1400041c0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x70]
call fcn.140006030
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call fcn.140008170
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x140008510
lea rcx, str.Device_removed_succesfully
call fcn.1400080a0
mov edx, ebx
cmp dword [rsp + 0x50], ebx
setne dl
mov dword [rsp + 0x54], edx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareIntelDifx64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Code
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Reboot
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x88], 8
jb 0x1400085c5
mov rcx, qword [rsp + 0x70]
call fcn.14000a72c
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140009d20
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
Function at 0x14000e94f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140023410]
jne 0x140009d3a
rol rcx, 0x10
test cx, 0xffff
jne 0x140009d36
repz ret
ror rcx, 0x10
jmp 0x14000e8a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140025110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140025208]
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 0x14000e92d
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, [0x140025110]
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 0x14000e94f
mov rax, qword [rsp + 0x88]
mov qword [0x140025208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400251a8], rax
mov rax, qword [0x140025208]
mov qword [0x140025080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140025190], rax
mov dword [0x140025070], 0xc0000409
mov dword [0x140025074], 1
mov rax, qword [0x140023410]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140023418]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140025108], eax
mov ecx, 1
call fcn.14001620c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001b1b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140025108], 0
jne 0x14000e9d6
mov ecx, 1
call fcn.14001620c
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 0x14000ffdc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000fe4c
Function at 0x140017590
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 [0x140023410]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000f5b8
xor ebx, ebx
cmp qword [0x1400261c0], rbx
mov rdi, rax
jne 0x1400176a3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001777a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001777a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400261c0], 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 [0x1400261c8], 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 [0x1400261d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400261e0], rax
test rax, rax
je 0x14001769a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400261d8], rax
jmp 0x1400176aa
mov rax, qword [0x1400261d8]
jmp 0x1400176b1
mov rax, qword [0x1400261d8]
mov r11, qword [0x1400261e0]
cmp rax, rdi
je 0x140017718
cmp r11, rdi
je 0x140017718
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400261e0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140017718
test rax, rax
je 0x140017718
call rsi
test rax, rax
je 0x140017712
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 0x140017712
test byte [rsp + 0x40], 1
jne 0x140017718
bts ebp, 0x15
jmp 0x140017758
mov rcx, qword [0x1400261c8]
cmp rcx, rdi
je 0x140017758
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140017758
call rax
mov rbx, rax
test rax, rax
je 0x140017758
mov rcx, qword [0x1400261d0]
cmp rcx, rdi
je 0x140017758
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140017758
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400261c0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001777a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001777c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009d20
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400055b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400055c0]
mov dword [rax], 1
mov rax, qword [0x1400055d0]
mov dword [rax], 1
mov rax, qword [0x140005550]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400055a0]
mov dword [0x140008020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140005670]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140005650]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140005500]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001520
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002120
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002190
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080b4]
mov rbx, rcx
test esi, esi
jle 0x1400022c0
mov rax, qword [0x1400080b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400021db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002265
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400021c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400022e2
mov rax, qword [0x1400080b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400022c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000225e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002270
add dword [0x1400080b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000225e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400021e8
mov rax, qword [0x1400080b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400029b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140002ae0
ja 0x1400029f8
test edx, edx
je 0x140002a78
mov eax, dword [0x140008108]
test eax, eax
je 0x140002b60
mov dword [0x140008108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400029e5
mov eax, dword [0x140008108]
test eax, eax
je 0x1400029e5
lea r12, [0x140008120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008100]
test rbx, rbx
je 0x140002a64
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002b88
test eax, eax
jne 0x140002b88
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002a38
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400029e5
mov eax, dword [0x140008108]
test eax, eax
jne 0x140002af8
mov eax, dword [0x140008108]
cmp eax, 1
jne 0x1400029e5
mov rbx, qword [0x140008100]
test rbx, rbx
je 0x140002ab1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x140002aa0
lea rcx, [0x140008120]
mov qword [0x140008100], 0
mov dword [0x140008108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400029e5
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x140008120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008100]
test rbx, rbx
je 0x140002b4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002b78
test rsi, rsi
je 0x140002b78
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002b28
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002a82
lea rcx, [0x140008120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400029db
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002b28
jmp 0x140002b4c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002a38
jmp 0x140002a64

Function at 0x140002ba0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002bb8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002bc0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002bd0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002c1d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002c14
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002c1f
add rax, 0x28
cmp rax, r9
jne 0x140002c00
xor eax, eax
ret
Function at 0x140002c20
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002cb0
mov rdx, qword [0x140005550]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002c9e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002c9e
cmp word [rax + 0x18], 0x20b
jne 0x140002c9e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002cb0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002c89
add rbx, 0x28
cmp rbx, rdi
je 0x140002cb0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002c80
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002cc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x140005550]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ce0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ce8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ce0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002d35
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ce0
add rax, 0x28
cmp rax, r9
jne 0x140002d18
xor eax, eax
ret

Function at 0x140002d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005550]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002d5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002d68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002d5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002d80
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005550]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002da0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002da8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002da0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002df0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002de7
test rcx, rcx
je 0x140002da0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002dd8
xor eax, eax
ret

Function at 0x140002e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005550]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002e1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002e28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002e40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005550]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002e60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002e68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e60
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002e60
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002eb4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ec0
add rdx, 0x28
cmp r9, rdx
jne 0x140002ea0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002ed0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140005550]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002ef4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140002f00
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140002ef4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002ef4
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x140002ef4
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002f4c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002f60
add rdx, 0x28
cmp rdx, r10
jne 0x140002f38
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002f70
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002f7e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002f55
test r8d, r8d
jg 0x140002f68
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180bf1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180bf11df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180bf1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180bf106f
add dl, dl
jne 0x180bf1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180bf10f6
xor eax, eax
add dl, dl
jne 0x180bf10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180bf11ad
add dl, dl
jne 0x180bf10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180bf10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180bf10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180bf10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180bf10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180bf107e
mov eax, 1
add dl, dl
jne 0x180bf1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180bf1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180bf10fb
sub eax, ebx
mov ebx, 1
jne 0x180bf114c
mov ecx, 1
add dl, dl
jne 0x180bf112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180bf113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180bf1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180bf107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180bf1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180bf1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180bf115d
cmp eax, 0x7d00
jae 0x180bf119b
cmp eax, 0x500
jb 0x180bf1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180bf107e
cmp eax, 0x7f
ja 0x180bf119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180bf107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180bf11d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180bf107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x11008
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x00013100]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
xor bl, bl
call fcn.00011ae0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov edx, dword [rsp + 0x2c]
lea rcx, [0x00011bd0]
mov dword [0x00013110], edx
call sub.ntoskrnl.exe_DbgPrint
mov r11d, dword [0x00013110]
cmp r11d, 0x1db0
jb 0x1109b
cmp r11d, 0x1db1
jbe 0x1108f
cmp r11d, 0x23f0
je 0x11083
cmp r11d, 0x2580
jne 0x1109b
mov dword [0x00013114], 0xc8
jmp 0x11099
mov dword [0x00013114], 0xc0
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.000119e0
add rsp, 0x150
pop rbx
ret

Function at 0x110bc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, 0x5000
mov edx, edi
xor ecx, ecx
mov r8d, 0x53595351
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1117a
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1111d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add edi, edi
jmp 0x110d5
test eax, eax
js 0x1116f
mov ebp, dword [rbx]
xor edi, edi
test ebp, ebp
je 0x1116f
lea rsi, [rbx + 0x2e]
movabs rax, 0x8000000000000000
cmp qword [rsi - 0x16], rax
jbe 0x11162
movzx ecx, word [rsi]
mov eax, edi
lea rdx, [0x00011cf0]
imul rax, rax, 0x128
add rax, rbx
lea rcx, [rcx + rax + 0x30]
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
je 0x11191
inc edi
add rsi, 0x128
cmp edi, ebp
jb 0x1112d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov al, 1
imul rdx, rdx, 0x128
mov rcx, qword [rdx + rbx + 0x18]
mov qword [0x00013118], rcx
mov ecx, dword [rdx + rbx + 0x20]
mov dword [0x00013120], ecx
jmp 0x1117c
Function at 0x111bc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov esi, dword [0x00013114]
xor edi, edi
add rsi, qword [rax]
mov rbx, qword [rsi]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x112b5
lea rcx, [0x00011bf0]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [rbx + 0x28]
lea rcx, [0x00011c00]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [rbx + 0x30]
lea rcx, [0x00011c10]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [0x00013118]
cmp qword [rbx + 0x28], rcx
jbe 0x1123f
mov eax, dword [0x00013120]
add rax, rcx
cmp qword [rbx + 0x28], rax
jae 0x1123f
mov bpl, 1
jmp 0x11242
xor bpl, bpl
lea rcx, [0x00011c20]
movzx edx, bpl
call sub.ntoskrnl.exe_DbgPrint
test bpl, bpl
je 0x112b3
mov rbp, qword [rbx + 0x28]
mov dword [rsp + 0x30], 0xc3c033
test rbp, rbp
je 0x112b3
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x112b3
mov rcx, cr8
mov eax, 2
mov cr8, rax
mov rax, cr0
btr rax, 0x10
mov cr0, rax
cli
lea rdx, [rsp + 0x30]
movzx eax, word [rdx]
mov word [rbp], ax
mov al, byte [rdx + 2]
mov byte [rbp + 2], al
mov rax, cr0
sti
bts rax, 0x10
mov cr0, rax
movzx ecx, cl
mov cr8, rcx
inc edi
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x111e5
lea rcx, [0x00011c40]
mov edx, edi
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x20
pop rdi
ret