joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ebb70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0xca8
mov rax, qword [0x140207040]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rax, [rsp + 0x880]
lea rcx, str.C:Windows_system32cmd.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x38
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x8b8]
mov rdi, rax
xor eax, eax
mov ecx, 0x3d8
rep stosb byte [rdi], al
lea rdx, [0x140207ae0]
mov ecx, 0xaeb2560
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207af8]
mov ecx, 0x7d1aa4fe
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207b10]
mov ecx, 0xcb5ef918
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207b28]
mov ecx, 0xdcdd1c32
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207b40]
mov ecx, 0x4898763e
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207b58]
mov ecx, 0xc1189c40
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207b70]
mov ecx, 0x2f7cb09e
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207b88]
mov ecx, 0x3b042567
call fcn.1401ebe90
test eax, eax
je 0x1401ebce5
lea rdx, [0x140207ba0]
mov ecx, 0x7f13a087
call fcn.1401ebe90
test eax, eax
jne 0x1401ebcef
mov eax, 1
jmp 0x1401ebdac
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1401ebd0d
mov eax, 1
jmp 0x1401ebdac
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rdx, [0x1401fd378]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1401ebd35
mov eax, 1
jmp 0x1401ebdac
lea r8, [rsp + 0x260]
lea rdx, str.___s
lea rcx, [rsp + 0x470]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140001100
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x470]
call fcn.1401eb170
test eax, eax
jne 0x1401ebd88
mov eax, 1
jmp 0x1401ebdac
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x880]
call fcn.1401eb880
test eax, eax
jne 0x1401ebdaa
mov eax, 1
jmp 0x1401ebdac
xor eax, eax
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.1401ec800
add rsp, 0xca8
pop rdi
pop rsi
ret
Function at 0x1401ec540
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
jne 0x1401ec561
xor eax, eax
jmp 0x1401ec6b3
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x1401ec595
xor eax, eax
jmp 0x1401ec6b3
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401ec5b4
xor eax, eax
jmp 0x1401ec6b3
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x1401ec5e0
xor eax, eax
jmp 0x1401ec6b3
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x1401ec613
xor eax, eax
jmp 0x1401ec6b3
mov rax, qword [rsp]
mov qword [0x140207bd8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov dword [0x140207bd0], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140207bc0], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140207bb8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140207bc8], rax
cmp qword [0x140207bd8], 0
je 0x1401ec6a8
cmp dword [0x140207bd0], 0
je 0x1401ec6a8
cmp qword [0x140207bc0], 0
je 0x1401ec6a8
cmp qword [0x140207bb8], 0
je 0x1401ec6a8
cmp qword [0x140207bc8], 0
jne 0x1401ec6ae
xor eax, eax
jmp 0x1401ec6b3
mov eax, 1
add rsp, 0x38
ret

Function at 0x1401ed1e8
Capabilities:
Parse pe header

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

Function at 0x1401f1be0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401f19dc
Function at 0x1401f4cf4
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 0x1401f4d24
xor eax, eax
jmp 0x1401f4de7
mov rbp, rbx
cmp word [rax], si
je 0x1401f4d49
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401f4d30
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401f4d2c
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.1401f4c14
movsxd r14, eax
test eax, eax
jne 0x1401f4d87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401f4d1d
mov rcx, r14
call fcn.1401f5bd0
mov rdi, rax
test rax, rax
jne 0x1401f4da0
xor ecx, ecx
call fcn.1401f2a30
jmp 0x1401f4d7c
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.1401f4c14
test eax, eax
jne 0x1401f4dd1
mov rcx, rdi
call fcn.1401f2a30
jmp 0x1401f4ddb
xor ecx, ecx
call fcn.1401f2a30
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 0x1401f82e0
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.1401f3ce4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401f836a
cmp byte [rbp - 0x21], r15b
je 0x1401f8365
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401f83a0
call fcn.1401f63e0
test eax, eax
jne 0x1401f838c
cmp byte [rbp - 0x21], r15b
je 0x1401f8384
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401f83a0
cmp byte [rbp - 0x21], r15b
je 0x1401f839d
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.1401f32c4
test eax, eax
jne 0x1401f8440
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401f3ce4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401f83df
cmp byte [rbp - 0x21], r15b
je 0x1401f8414
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401f8414
call fcn.1401f63e0
test eax, eax
jne 0x1401f8400
cmp byte [rbp - 0x21], r15b
je 0x1401f83f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401f8414
cmp byte [rbp - 0x21], r15b
je 0x1401f8411
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.1401f32c4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401f8440
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401f8443
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401f8451
mov rcx, rdi
call fcn.1401f2a30
cmp byte [rbp + 0x3f], r15b
je 0x1401f8460
mov rcx, qword [rbp + 0x27]
call fcn.1401f2a30
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 0x1401fb290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401fb2b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401fb2b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140772058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407721df
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 0x140772089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077206f
add dl, dl
jne 0x140772096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407720f6
xor eax, eax
add dl, dl
jne 0x1407720a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407721ad
add dl, dl
jne 0x1407720b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407720c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407720d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407720dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407720ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14077207e
mov eax, 1
add dl, dl
jne 0x140772106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140772113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407720fb
sub eax, ebx
mov ebx, 1
jne 0x14077214c
mov ecx, 1
add dl, dl
jne 0x14077212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140772123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140772168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140772175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077215d
cmp eax, 0x7d00
jae 0x14077219b
cmp eax, 0x500
jb 0x140772196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077207e
cmp eax, 0x7f
ja 0x14077219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407721d2
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 0x14077207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001240
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140037a20
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0xbc], 1
xor eax, eax
mov word [rsp + 0xc0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140037a20
mov rcx, qword [rsp + 0x120]
call fcn.14000fdd0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400013a7
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400014c0
mov rcx, rax
call fcn.1400100f0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x51]
call fcn.1400013f0
mov rcx, rax
call fcn.140010370
mov rdx, rax
lea rcx, [0x14005edc0]
call fcn.140008610
mov ecx, dword [rsp + 0x54]
mov edx, ecx
mov rcx, rax
call fcn.14000c9b0
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
call fcn.140008610
lea rdx, [0x14000a6e0]
mov rcx, rax
call fcn.14000cb70
xor al, al
jmp 0x1400013cf
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140015110
add rsp, 0x110
pop rdi
ret
Function at 0x140008370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x35
mov byte [rsp + 1], 0x73
mov byte [rsp + 2], 0x54
mov byte [rsp + 3], 0x5c
mov byte [rsp + 4], 0x59
mov byte [rsp + 5], 0x50
mov byte [rsp + 6], 0x51
mov byte [rsp + 7], 0x15
mov byte [rsp + 8], 0x41
mov byte [rsp + 9], 0x5a
mov byte [rsp + 0xa], 0x15
mov byte [rsp + 0xb], 0x47
mov byte [rsp + 0xc], 0x40
mov byte [rsp + 0xd], 0x5b
mov byte [rsp + 0xe], 0x15
mov byte [rsp + 0xf], 0x65
mov byte [rsp + 0x10], 0x5a
mov byte [rsp + 0x11], 0x42
mov byte [rsp + 0x12], 0x50
mov byte [rsp + 0x13], 0x47
mov byte [rsp + 0x14], 0x66
mov byte [rsp + 0x15], 0x5d
mov byte [rsp + 0x16], 0x50
mov byte [rsp + 0x17], 0x59
mov byte [rsp + 0x18], 0x59
mov byte [rsp + 0x19], 0x15
mov byte [rsp + 0x1a], 0x46
mov byte [rsp + 0x1b], 0x56
mov byte [rsp + 0x1c], 0x47
mov byte [rsp + 0x1d], 0x5c
mov byte [rsp + 0x1e], 0x45
mov byte [rsp + 0x1f], 0x41
mov byte [rsp + 0x20], 0x1b
mov byte [rsp + 0x21], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015110
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140001180
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8d, 0x20
lea r9, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov dword [r11 - 0x38], r8d
mov edi, ecx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0x20]
mov ecx, 0x400
mov r8d, 0xb1127cfc
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x1400011d5
xor eax, eax
jmp 0x1400011fd
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
je 0x1400011fa
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400011d1
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001720
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140001218
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000125f
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000125f
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rbx, rax
test rax, rax
je 0x14000125f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x140001261
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001268
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
test rcx, rcx
jne 0x14000128d
xor eax, eax
jmp 0x140001300
mov rbx, qword [rcx + 0x28]
test rbx, rbx
jne 0x1400012a1
call fcn.14000165c
mov ecx, eax
mov rbx, qword [rcx + rdi]
mov rax, rbx
shr rax, 0x38
cmp al, 0x40
jne 0x1400012fd
cmp byte [0x140003058], 0
jne 0x1400012f1
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rsp + 0x20]
mov qword [0x140003050], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [0x140003058], 1
mov rax, qword [0x140003050]
test rax, rax
jne 0x140001300
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001720
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400013f0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140001492
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001492
call fcn.140001268
mov rdi, rax
test rax, rax
je 0x140001492
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.1400014a4
test rax, rax
je 0x140001492
and qword [rsp + 0x48], 0
mov rcx, rax
and ecx, 0xfff
mov r8d, 0x1000
sub r8, rcx
mov r9d, 1
mov rcx, qword [rbx + 0x20]
mov rdx, rax
cmp r8, rcx
cmovae r8, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001497
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140311280
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14031128d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14031129d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140311285
lea eax, [rcx + 1]
jmp 0x1403112ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1403112be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1403112a4
sub eax, 3
jb 0x1403112de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14031132d
sar eax, 1
movsxd rbp, eax
jb 0x140311314
jmp 0x1403112ec
add ebx, ebx
jne 0x1403112ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140311314
inc ecx
add ebx, ebx
jne 0x1403112fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140311314
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14031130d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1403112fc
add ecx, 2
jmp 0x140311319
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140311242
jmp 0x14031128d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb3600
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140311379
cmp rsi, rcx
jae 0x140311381
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140311360
cmp al, 0x8f
ja 0x140311360
cmp byte [rsi - 2], 0xf
je 0x140311366
sub al, 0xe8
cmp al, 1
ja 0x14031134a
cmp rsi, rcx
jae 0x140311381
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140311350
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140311381
lodsb al, byte [rsi]
jmp 0x140311360
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x30e000]
mov eax, dword [rdi]
or eax, eax
je 0x1403113ea
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x321ef8]
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 0x14031138e
jns 0x1403113c3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1403113cd
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 0x1403113e4
mov qword [rbx], rax
add rbx, 8
jmp 0x1403113ae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 0x140311442
sub rsp, 0xffffffffffffff80
jmp 0x140040600
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00409a70]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00409a80]
mov dword [rax], 1
mov rax, qword [0x00409a90]
mov dword [rax], 1
mov rax, qword [0x00409a60]
mov dword [rax], 1
mov rax, qword [0x00409940]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00409a50]
mov dword [0x0040c00c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00409a10]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004098f0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058