joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001000
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp + 0x37], rax
xor ebx, ebx
mov eax, 5
mov qword [rbp - 0x49], rbx
movups xmmword [rbp + 0x17], xmm0
mov word [rbp + 0x17], ax
lea rax, str.WinSta0Default
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x19], rax
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x31], rax
movups xmmword [rbp - 9], xmm0
mov dword [rbp - 0x29], 0x68
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp - 0x41], xmm0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x47], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x49]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rbp - 0x49]
lea r9d, [rbx + 4]
lea r8, [rbp + 0x47]
lea edx, [rbx + 0xc]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x50], rax
lea rdx, str.C:windows_system32windowspowershell_v1.0powershell.exe
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x18000112d
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1800012c0
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rbp
ret
Function at 0x180001150
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp edx, 1
jne 0x180001292
xorps xmm0, xmm0
mov qword [rsp + 0x110], rbx
xor eax, eax
xor ebx, ebx
mov qword [rbp + 0x37], rax
mov eax, 5
movups xmmword [rbp + 0x17], xmm0
mov word [rbp + 0x17], ax
lea rax, str.WinSta0Default
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x19], rax
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x31], rax
movups xmmword [rbp - 9], xmm0
mov dword [rbp - 0x29], 0x68
movups xmmword [rbp + 7], xmm0
mov qword [rbp - 0x49], rbx
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp - 0x41], xmm0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x47], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x49]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rbp - 0x49]
lea r9d, [rbx + 4]
lea r8, [rbp + 0x47]
lea edx, [rbx + 0xc]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x50], rax
lea rdx, str.C:windows_system32windowspowershell_v1.0powershell.exe
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rbx, qword [rsp + 0x110]
test eax, eax
je 0x180001292
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1800012c0
add rsp, 0x100
pop rbp
ret
Function at 0x14002518c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140025204
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140025204
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140025204
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400251f8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140025216
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400251e6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140025206

Function at 0x140026a90
Capabilities:
Parse pe header

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

Function at 0x14002f534
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002f298

Function at 0x140039480
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400394a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400394a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1802fe330
Capabilities:
Encode data using xor

Disassembly:
sub byte [rbx - 0x5c61ff75], dh
jne 0x1802fe386
invalid
mov cl, 0x5e
movabs byte [0x1ac4659afe354db], al
out 0xfe, eax
mov ebx, 0xd2a82723
jmp 0x188259d8c
adc edx, esi
jl 0x1802fe3c9
jmp 0x1802fe36c
cmp byte [rdi - 0x2bc122a5], ah
int1
xchg ebx, eax
mov ah, 0x27
mov al, 0x28
sub eax, 0x1d2d949b
in al, 0x82
mov dl, byte ss:[rdx + 0x5e24aeb8]
in eax, dx
sbb eax, 0x462b84e4
or al, 0x66
pop rdi
and bh, dh
xlatb
invalid
fldenv [rdx - 0x3e6c3b95]
sahf
mov cl, 0xdc
jo 0x1802fe438
in eax, dx
pop rbx
and ecx, dword [rdi]
push 0x4e
fdiv dword [rdx]
cmp esi, dword [rbx]
xor ah, dl
cld
xchg ebx, eax
xor eax, 0x90e60e4f
movabs dword [0x25c1f74a6ba33e6e], eax
movabs r12, 0x7307bd76732cba8
lodsb al, byte [rsi]
push rcx
jnp 0x1802fe3d0
imul ebx, dword [0x13e6a33bf], 0x761ef381
test dword [rax - 0x19], 0xb9a3dc6b
scasb al, byte [rdi]
scasb al, byte [rdi]
int 0x60
jrcxz 0x1802fe39a
xor ebx, 0x40f7761e
out 0x6b, eax
fsub qword [rbx - 0x32515147]
invalid
in eax, dx
or ecx, esp
cdq
jle 0x1802fe404
test al, 0xd2
invalid
pop rdx
invalid
Function at 0x140001070
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ebp, ebp
lea rdx, [rsp + 0x70]
mov qword [r8], rbp
mov rsi, r9
mov qword [r9], rbp
mov rdi, r8
lea r9, [rsp + 0x80]
mov qword [rsp + 0x60], rbp
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
mov ebx, eax
test eax, eax
js 0x14000125f
movzx ecx, word [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x50], ebp
lea r9, [rsp + 0xd0]
mov qword [rsp + 0x48], rbp
lea r8, [rsp + 0xa0]
test cx, cx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov eax, ebp
mov dword [rsp + 0x28], 0x80
cmovne rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x80]
cmove rax, rdx
mov dword [rsp + 0xa0], 0x30
mov edx, 0x120089
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0x40
movdqu xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
xor edx, edx
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
test ebx, ebx
js 0x14000125f
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf0004
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
jns 0x1400011e5
lea rcx, str.NtCreateSection:_0x_08X_n
jmp 0x14000123b
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x48], 2
mov r8, rdi
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rsi
lea rdx, [r9 - 1]
mov qword [rdi], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsi], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp eax, 0x40000003
jne 0x140001230
mov ebx, ebp
jmp 0x140001242
test eax, eax
jns 0x140001242
lea rcx, str.NtMapViewOfSection:_0x_08X_n
mov edx, eax
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000126d
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14000126d
mov edx, ebx
lea rcx, str.NtCreateFile:_0x_08X_n
call fcn.140001010
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140002620
mov rbx, qword [rsp + 0x118]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001410
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
push rbp
push r14
sub rsp, 0x168
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [r11 - 0x28], 0
mov rbp, rcx
lea r9, [r11 - 0x28]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400015bf
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x150]
mov qword [rsp + 0x198], rsi
add r8, r8
mov qword [rsp + 0x160], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x150]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
js 0x140001591
mov qword [rsp + 0x190], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001589
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rcx, rcx, 0x128
mov edx, 2
add rcx, 8
add rcx, rdi
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1400014f0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rbp
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000157f
inc ebx
cmp ebx, dword [rdi]
jb 0x1400014d2
jmp 0x140001589
mov rax, qword [rsp + 0x30]
xor esi, esi
mov qword [r14], rax
mov rbx, qword [rsp + 0x190]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x160]
mov eax, esi
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140002620
add rsp, 0x168
pop r14
pop rbp
ret
Function at 0x140001820
Capabilities:
Access peb ldr_data
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rcx], 0
lea rdx, [rsp + 0x58]
mov eax, dword [0x1400044f8]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [0x1400044f0]
mov rdi, rcx
mov dword [rsp + 0x60], eax
mov esi, 0x23f0
movzx eax, byte [0x1400044fc]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x64], al
mov eax, dword [str.CI.dll]
mov dword [rsp + 0x50], eax
movzx eax, word [0x140004504]
mov word [rsp + 0x54], ax
movzx eax, byte [0x140004506]
mov byte [rsp + 0x56], al
movsd qword [rsp + 0x58], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rsp + 0x50]
cmp word [rcx + 0x120], si
lea rcx, [rsp + 0x70]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.1400013b0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001070
mov ebx, eax
test eax, eax
jns 0x140001919
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140001010
jmp 0x140001a50
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], si
jb 0x140001982
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140001410
mov ebx, eax
test eax, eax
jns 0x140001957
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140001010
jmp 0x140001a3e
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1400015e0
test eax, eax
je 0x140001a39
mov rax, qword [rsp + 0x30]
xor ebx, ebx
mov qword [rdi], rax
jmp 0x140001a3e
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140001410
mov ebx, eax
test eax, eax
js 0x140001a3e
mov r11, qword [rsp + 0x48]
xor r10d, r10d
xor r9d, r9d
test r11, r11
je 0x140001a2d
mov rbx, qword [rsp + 0x40]
lea rsi, [0x140004a8c]
nop dword [rax + rax]
mov r8, r9
xor edx, edx
sub r8, rsi
mov rax, rsi
add r8, rbx
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x1400019dd
test cl, cl
jne 0x140001a29
inc edx
inc rax
cmp edx, 4
jb 0x1400019d0
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, r10
inc r9
mov r10, rax
cmp r9, r11
jb 0x1400019c0
test rax, rax
je 0x140001a2d
movsxd rcx, dword [rax + rbx + 4]
mov rbx, qword [rsp + 0x30]
add rcx, rax
add rbx, 8
add rbx, rcx
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.140001010
mov qword [rdi], rbx
xor ebx, ebx
jmp 0x140001a3e
xor cl, cl
jmp 0x1400019e9
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140001010
mov ebx, 0xc0000225
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140002620
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001b20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
call fcn.140001a80
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001c07
lea r8, str.___
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rdi
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001ba0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001c07
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002620
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x1400010b4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140038a84
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140038b11
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140038b11
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038b11
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140038af8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140038af2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140038afa
add rdx, 0x28
jmp 0x140038ad7
xor edx, edx
test rdx, rdx
jne 0x140038b03
xor al, al
jmp 0x140038b17
cmp dword [rdx + 0x24], 0
jge 0x140038b0d
xor al, al
jmp 0x140038b17
mov al, 1
jmp 0x140038b17
xor al, al
jmp 0x140038b17
add rsp, 0x18
ret

Function at 0x14000110e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400393f0
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001140
Capabilities:
Terminate process

Disassembly:
jmp 0x140038598
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011e0
test al, al
je 0x140038463
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400011bd
mov bl, al
mov ecx, dword [0x14003f160]
cmp ecx, 1
je 0x14003846e
test ecx, ecx
jne 0x140038399
mov dword [0x14003f160], 1
lea rdx, [0x14003d660]
lea rcx, [0x14003d330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14003837a
mov eax, 0xff
jmp 0x140038453
lea rdx, [0x14003d220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x14003f160], 2
jmp 0x1400383a1
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011a9
call fcn.14000115e
mov rbx, rax
cmp qword [rax], 0
je 0x1400383d4
mov rcx, rax
call fcn.1400010b4
test al, al
je 0x1400383d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140043020]
call fcn.140001181
mov rbx, rax
cmp qword [rax], 0
je 0x1400383f6
mov rcx, rax
call fcn.1400010b4
test al, al
je 0x1400383f6
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.14000113b
mov ebx, eax
call fcn.140001145
test al, al
je 0x140038478
test sil, sil
jne 0x14003842d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010aa
mov eax, ebx
jmp 0x140038453
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400011b3
nop
mov ecx, 7
call fcn.1400011b3
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.14000114f
add rsp, 0x28
jmp 0x14003830c

Function at 0x140001145
Capabilities:
Parse pe header

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

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

Disassembly:
cld
pop r11
jmp 0x14004fdcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004fddd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004fdc5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14004fdf5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004fde2
sub eax, 3
jb 0x14004fe0f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004fe46
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14004fe36
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004fe34
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004fe23
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14004fd82
jmp 0x14004fdcd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x24000
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004fe92
cmp rsi, rcx
jae 0x14004fe9a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004fe79
cmp al, 0x8f
ja 0x14004fe79
cmp byte [rsi - 2], 0xf
je 0x14004fe7f
sub al, 0xe8
cmp al, 1
ja 0x14004fe63
cmp rsi, rcx
jae 0x14004fe9a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004fe69
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004fe9a
lodsb al, byte [rsi]
jmp 0x14004fe79
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4d000]
mov eax, dword [rdi]
or eax, eax
je 0x14004ff03
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x505e8]
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 0x14004fea7
jns 0x14004fedc
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14004fee6
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 0x14004fefd
mov qword [rbx], rax
add rbx, 8
jmp 0x14004fec7
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 0x14004ff3d
cmp al, 0xef
ja 0x14004ff2f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004ff0f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004ff1e
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 + 0x237]
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 0x14004ff91
sub rsp, 0xffffffffffffff80
jmp 0x14000afa0