joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100006c50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor r9d, r9d
mov ebp, r8d
mov rbx, rcx
test rcx, rcx
je 0x100006cde
test edx, edx
je 0x100006cde
lea rsi, [rcx + 0x10040]
mov edi, edx
lea rax, [rcx + 0x40]
add rdi, rcx
cmp rsi, rdi
cmova rsi, rdi
cmp rax, rsi
jae 0x100006cde
movsxd rcx, dword [rbx + 0x3c]
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x100006cd2
lea rax, [rcx + rbx + 0xf8]
cmp rax, rdi
jae 0x100006cd2
cmp dword [rcx + rbx], 0x4550
jne 0x100006cd2
mov eax, 0x14c
cmp word [rcx + rbx + 4], ax
jne 0x100006cd2
mov rcx, rbx
call fcn.100006cfc
mov r9, rax
test rax, rax
jne 0x100006cde
add rbx, rbp
lea rcx, [rbx + 0x40]
cmp rcx, rsi
jb 0x100006c92
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x20
pop rdi
ret

Function at 0x100006cfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
mov rbx, rcx
and qword [rax + 0x20], 0
and qword [rax - 0x30], 0
and dword [rax + 0x10], 0
and qword [rax + 0x18], 0
or rbx, 1
mov qword [rsp + 0x60], rbx
mov qword [rax - 0x28], 0x10
mov qword [rax - 0x20], 1
and qword [rax - 0x18], 0
lea r9, [rax - 0x30]
mov r8d, 3
lea rdx, [rax - 0x28]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
mov dword [rsp + 0x20], eax
jmp 0x100006d63
test eax, eax
js 0x100006dc8
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
mov dword [rsp + 0x20], eax
jmp 0x100006d8e
test eax, eax
js 0x100006dc8
cmp dword [rsp + 0x68], 0x5c
jb 0x100006dc6
mov rcx, qword [rsp + 0x70]
add rcx, 6
lea rdx, [0x1000033e8]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x100006dc6
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + 0x30]
mov dword [rsp + 0x7c], eax
mov eax, dword [rcx + 0x34]
mov dword [rsp + 0x78], eax
jmp 0x100006dc8
mov rax, qword [rsp + 0x78]
add rsp, 0x50
pop rbx
ret
Function at 0x100006ddc
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and qword [rax - 0x30], 0
lea rdx, [rax + 0x20]
xor edi, edi
and qword [rax - 0x38], rdi
mov r12, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
jne 0x100006e10
xor ebx, ebx
jmp 0x100006f46
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x100006f12
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, r12
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, eax
test eax, eax
je 0x100006f14
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x30]
lea rdx, [0x100003408]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100006f12
cmp qword [rsp + 0x30], rdi
je 0x100006f12
cmp dword [rsp + 0x78], edi
je 0x100006f12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x100006f12
mov rax, qword [rsp + 0x30]
lea r8, [0x100003440]
mov edx, 0x104
movzx ecx, word [rax + 2]
movzx r9d, word [rax]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.10000a5fc
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100006f12
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x100006f12
cmp dword [rsp + 0x80], 0
je 0x100006f12
lea rdx, [0x100003490]
xor ebx, ebx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x100006f14
lea ebx, [rax + 1]
jmp 0x100006f14
xor ebx, ebx
test rsi, rsi
je 0x100006f2d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x100006f46
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100007064
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14d, r8d
mov r13d, edx
mov rsi, rcx
test rcx, rcx
je 0x10000712c
test edx, edx
je 0x10000712c
lea rbp, [rcx + r13]
lea r12, [rcx + 0x10040]
lea rax, [rcx + 0x40]
cmp r12, rbp
mov rdi, rcx
cmova r12, rbp
cmp rax, r12
jae 0x10000712c
movsxd rcx, dword [rdi + 0x3c]
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x100007120
lea rax, [rcx + rdi + 0xf8]
cmp rax, rbp
jae 0x100007120
cmp dword [rcx + rdi], 0x4550
jne 0x100007120
mov eax, 0x14c
cmp word [rcx + rdi + 4], ax
jne 0x100007120
or dword [rsp + 0x68], 0xffffffff
mov edx, esi
lea r9, [rsp + 0x68]
sub edx, edi
lea r8, [rsp + 0x50]
xor ebx, ebx
and dword [rsp + 0x50], ebx
add edx, r13d
mov rcx, rdi
call qword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test rax, rax
je 0x10000711c
mov eax, dword [rsp + 0x50]
lea ecx, [rbx + 1]
cmp dword [rsp + 0x68], eax
cmove ebx, ecx
test ebx, ebx
jne 0x10000712c
add rdi, r14
lea rcx, [rdi + 0x40]
cmp rcx, r12
jb 0x1000070b4
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1000085a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov ebp, edx
xor edx, edx
mov r12, rcx
mov rsi, r8
lea r9, [rsp + 0x58]
lea ecx, [rdx + 0x62]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1000085e8
test eax, eax
js 0x100008676
mov ebx, 0xc0000001
jmp 0x100008676
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x100008615
mov ebx, 0xc000009a
jmp 0x100008655
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x100008655
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x100008646
mov ebx, 0xc0000023
jmp 0x100008655
mov rdx, qword [rdi + 8]
mov r8d, eax
mov rcx, r12
call sub.msvcrt.dll_memcpy
test rdi, rdi
je 0x100008676
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]
test ebx, ebx
jns 0x100008691
lea rcx, [fcn.100008708]
mov r9, rsi
mov r8d, ebp
mov rdx, r12
call fcn.100008744
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

Function at 0x1000086ac
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x100011100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x13]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1000086eb
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10000a2e0
add rsp, 0x40
pop rbx
ret
Function at 0x100009270
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
xor edi, edi
and qword [rax + 0x18], rdi
and qword [rbp], rdi
and dword [rsi], edi
lea rcx, [rax - 0x28]
mov rbx, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rbx, rbx
je 0x1000092d0
lea r9, [rsp + 0x70]
mov r8d, 0x20019
mov rdx, rbx
xor ecx, ecx
call fcn.1000091dc
mov ebx, eax
test eax, eax
jns 0x1000092d5
jmp 0x1000093cd
and qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x100009315
test eax, eax
js 0x1000093cd
mov ebx, 0xc0000001
jmp 0x1000093cd
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x100009345
mov ebx, 0xc000009a
jmp 0x1000093cd
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x1000093cd
cmp dword [rdi + 4], 1
je 0x100009386
mov ebx, 0xc0000024
jmp 0x1000093cd
add dword [rsp + 0x60], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp], rax
test rax, rax
je 0x10000933b
mov r8d, dword [rsp + 0x60]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x60]
xor ebx, ebx
mov dword [rsi], r11d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1000093dd
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x1000093fe
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 eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x100009414
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov rdx, rcx
xor ebp, ebp
lea rcx, [rax - 0x58]
mov qword [rax + 0x20], rbp
mov qword [rax - 0x60], rbp
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea edx, [rbp + 1]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jl 0x1000095f1
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, ebp
mov dword [rsp + 0xa0], ebp
jmp 0x1000094f9
cmp qword [rsp + 0x28], rbp
je 0x1000094c0
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rsp + 0xa0]
xor edx, edx
mov word [rsp + 0x22], ax
lea edi, [rax + 2]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x28], rax
cmp rax, rbp
je 0x100009601
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10000949b
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, ebp
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
jl 0x1000095cc
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x40]
mov edx, 1
shr rcx, 1
mov word [rax + rcx*2], bp
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0xa8]
mov word [rsp + 0x22], di
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jge 0x1000094f9
mov rax, qword [rsp + 0x28]
mov ebx, ebp
mov qword [rsi], rax
mov rcx, qword [rsp + 0xa8]
cmp rcx, rbp
je 0x1000095c8
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
cmp ebx, ebp
jge 0x1000095ef
cmp rax, rbp
je 0x1000095ef
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x1000095a8

Function at 0x10000a798
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000a7e5
cmp rcx, 0xffffffffffffffff
je 0x10000a7e5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000a7dd
cmp dword [rcx + 0x3c], edx
jl 0x10000a7dd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000a7dd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10000a7e5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x10000cf2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
jne 0x10000cf6a
call qword [sym.imp.msvcrt.dll__errno]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
mov dword [rax], 0x16
call fcn.10000a3b0
jmp 0x10000d070
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x10000d070
test al, 0x40
jne 0x10000d070
test al, 2
je 0x10000cf8c
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x10000d070
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
je 0x10000cf45
mov rbx, qword [rcx + 0x10]
mov qword [rcx], rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov r8d, dword [rsi + 0x24]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__read]
mov dword [rsi + 8], eax
cmp eax, edi
je 0x10000d060
cmp eax, 0xffffffff
je 0x10000d060
test byte [rsi + 0x18], 0x82
jne 0x10000d032
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xffffffff
je 0x10000d01c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xfffffffe
je 0x10000d01c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
mov rbx, qword [sym.imp.msvcrt.dll___pioinfo]
mov rcx, rsi
movsxd rdi, eax
sar rdi, 5
call qword [sym.imp.msvcrt.dll__fileno]
mov r11d, eax
and r11d, 0x1f
imul r11, r11, 0x38
add r11, qword [rbx + rdi*8]
jmp 0x10000d023
mov r11, qword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [r11 + 8]
and al, 0x82
cmp al, 0x82
jne 0x10000d032
bts dword [rsi + 0x18], 0xd
cmp dword [rsi + 0x24], 0x200
jne 0x10000d04f
test byte [rsi + 0x18], 8
je 0x10000d04f
bt dword [rsi + 0x18], 0xa
jb 0x10000d04f
mov dword [rsi + 0x24], 0x1000
mov rcx, qword [rsi]
dec dword [rsi + 8]
movzx eax, byte [rcx]
inc rcx
mov qword [rsi], rcx
jmp 0x10000d073
neg eax
mov dword [rsi + 8], edi
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rsi + 0x18], eax
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x10000edac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
jne 0x10000edea
call qword [sym.imp.msvcrt.dll__errno]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
mov dword [rax], 0x16
call fcn.10000a3b0
jmp 0x10000eefb
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x10000eefb
test al, 0x40
jne 0x10000eefb
test al, 2
je 0x10000ee0c
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x10000eefb
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
je 0x10000edc5
mov rbx, qword [rcx + 0x10]
mov qword [rcx], rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov r8d, dword [rsi + 0x24]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__read]
mov dword [rsi + 8], eax
cmp eax, edi
je 0x10000eeeb
cmp eax, 1
je 0x10000eeeb
cmp eax, 0xffffffff
je 0x10000eeeb
test byte [rsi + 0x18], 0x82
jne 0x10000eebb
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xffffffff
je 0x10000eea5
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xfffffffe
je 0x10000eea5
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
mov rbx, qword [sym.imp.msvcrt.dll___pioinfo]
mov rcx, rsi
movsxd rdi, eax
sar rdi, 5
call qword [sym.imp.msvcrt.dll__fileno]
mov r11d, eax
and r11d, 0x1f
imul r11, r11, 0x38
add r11, qword [rbx + rdi*8]
jmp 0x10000eeac
mov r11, qword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [r11 + 8]
and al, 0x82
cmp al, 0x82
jne 0x10000eebb
bts dword [rsi + 0x18], 0xd
cmp dword [rsi + 0x24], 0x200
jne 0x10000eed8
test byte [rsi + 0x18], 8
je 0x10000eed8
bt dword [rsi + 0x18], 0xa
jb 0x10000eed8
mov dword [rsi + 0x24], 0x1000
mov rcx, qword [rsi]
add dword [rsi + 8], 0xfffffffe
movzx eax, word [rcx]
add rcx, 2
mov qword [rsi], rcx
jmp 0x10000ef00
neg eax
mov dword [rsi + 8], edi
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rsi + 0x18], eax
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140011014
Capabilities:
Create process on windows

Disassembly:
jmp 0x1400164c0
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002e248]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x1400340e3]
call fcn.140011857
lea rdx, str.C:WindowsSystem32_services.exe
lea rcx, [rbp + 8]
call fcn.1400112d0
nop
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rbp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp + 0x104], 0
mov dword [rbp + 0x50], 0x68
lea rcx, [rbp + 8]
call fcn.1400112da
lea rcx, [rbp + 0xd8]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400165cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SpawnPPL:_CreateProcessW_failed_with_GLE:__u
mov ecx, 3
call fcn.1400113c0
mov byte [rbp + 0x1e4], 0
lea rcx, [rbp + 8]
call fcn.140011749
movzx eax, byte [rbp + 0x1e4]
jmp 0x140016651
lea rdx, str.SpawnPPL:_Waiting_for_child_process_to_finish.
mov ecx, 1
call fcn.1400113c0
mov edx, 0xea60
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rbp + 0x104], eax
cmp dword [rbp + 0x104], 0
je 0x140016620
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rbp + 0x104]
lea rdx, str.SpawnPPL:_WaitForSingleObject_returned__u.__Expected_WAIT_OBJECT_0.__GLE:__u
mov ecx, 3
call fcn.1400113c0
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbp + 0x204], 1
lea rcx, [rbp + 8]
call fcn.140011749
movzx eax, byte [rbp + 0x204]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140027b98]
call fcn.1400116f9
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.140011415
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x14001125d
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x14001a150
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400341d6]
call fcn.140011857
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x120]
mov dword [rax], 0x1badc0d3
mov rax, qword [rbp + 0x120]
mov dword [rax + 4], 0xdeadbeef
mov rax, qword [rbp + 0x120]
mov ecx, dword [rbp + 0x128]
mov dword [rax + 8], ecx
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ucrtbased.dll_wcslen]
cmp rax, 0x104
jb 0x14001a1e1
xor al, al
jmp 0x14001a383
mov rax, qword [rbp + 0x120]
add rax, 0xc
mov r8d, 0x104
mov rdx, qword [rbp + 0x130]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_wcsncpy]
mov rax, qword [rbp + 0x120]
add rax, 0x214
mov r8d, 0x14
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_strncpy]
mov rax, qword [rbp + 0x120]
add rax, 0x228
mov r8d, 0xc
lea rdx, str.Dbghelp.dll
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_wcsncpy]
cmp qword [rbp + 8], 0
je 0x14001a256
cmp qword [rbp + 0x28], 0
jne 0x14001a25d
xor al, al
jmp 0x14001a383
lea rdx, str.LoadLibraryW
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 0x240], rax
lea rdx, str.GetProcAddress
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 0x248], rax
lea rdx, str.OpenProcess
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 0x250], rax
lea rdx, str.CreateFileW
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 0x258], rax
lea rdx, str.TerminateProcess
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 0x260], rax
lea rdx, str.RtlAdjustPrivilege
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 0x268], rax
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x240], 0
je 0x14001a37d
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x248], 0
je 0x14001a37d
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x250], 0
je 0x14001a37d
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x258], 0
je 0x14001a37d
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x260], 0
je 0x14001a37d
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x268], 0
jne 0x14001a381
xor al, al
jmp 0x14001a383
mov al, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret