joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140012ce0
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 0x14001125d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400117a0
push rbp
push rsi
push rdi
sub rsp, 0x410
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3e8], rax
lea rcx, [0x14002209f]
call fcn.140011361
nop
lea rax, [rbp + 0x10]
lea rcx, [0x140019c30]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x228
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x228
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x258], rax
mov r8d, 0x228
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x258]
call fcn.1400111a9
nop
call qword [rbp + 0x258]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140019c00]
call fcn.1400112f8
mov eax, edi
mov rcx, qword [rbp + 0x3e8]
xor rcx, rbp
call fcn.1400111a4
lea rsp, [rbp + 0x3f0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014030
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014050
xor al, al
jmp 0x1400140d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014063
xor al, al
jmp 0x1400140d1
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 0x14001408d
xor al, al
jmp 0x1400140d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400140a1
xor al, al
jmp 0x1400140d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400140b3
xor al, al
jmp 0x1400140d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400140cf
xor al, al
jmp 0x1400140d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011f10
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011389
movzx eax, al
test eax, eax
jne 0x140011f30
mov ecx, 7
call fcn.140011302
nop
mov byte [rsp + 0x20], 0
call fcn.140011316
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140011f54
mov ecx, 7
call fcn.140011302
nop
jmp 0x140011fac
cmp dword [0x14001d868], 0
jne 0x140011fa7
mov dword [0x14001d868], 1
lea rdx, [0x140019660]
lea rcx, [0x140019330]
call fcn.140011190
test eax, eax
je 0x140011f88
mov eax, 0xff
jmp 0x1400120b1
lea rdx, [0x140019220]
lea rcx, [section..rdata]
call fcn.14001130c
mov dword [0x14001d868], 2
jmp 0x140011fac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112ee
call fcn.14001128a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012009
mov rcx, qword [rsp + 0x30]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x140012009
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 [0x140023020]
nop
call fcn.1400112bc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001203d
mov rcx, qword [rsp + 0x38]
call fcn.14001114f
movzx eax, al
test eax, eax
je 0x14001203d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011343
nop
call fcn.140012160
mov dword [rsp + 0x28], eax
call fcn.140011267
movzx eax, al
test eax, eax
jne 0x14001205c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001206b
call fcn.14001134d
nop
xor edx, edx
mov cl, 1
call fcn.140011140
mov eax, dword [rsp + 0x28]
jmp 0x1400120b1
add rsp, 0x68
ret
Function at 0x180003330
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003356
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.180003330
movzx edx, word [rdi + rbx*2]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
xor rdx, rcx
movzx ecx, dl
lea rdx, [0x180031730]
shr eax, 8
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x1800033b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800033d6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
dec rcx
mov qword [rsp + 0x38], rdi
call fcn.1800033b0
movsx ebx, byte [rbx + rsi]
mov edi, eax
call fcn.180003390
mov byte [rsp + 0x30], al
movzx edx, bl
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 0x1aa426c6
mov r8d, dword [rsp + 0x40]
movzx ecx, byte [rsp + 0x30]
xor r8d, 0x70b
movsx eax, byte [rsp + 0x30]
sub dl, cl
xor r8b, 0xd7
cmp dl, r8b
mov edx, ebx
mov rbx, qword [rsp + 0x48]
sbb ecx, ecx
add eax, 0xbe
and ecx, 0x20
or edx, ecx
lea rcx, [0x180031730]
xor edx, edi
shr edi, 8
and rax, rdx
xor edi, dword [rcx + rax*4]
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x180003460
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003486
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
dec rcx
mov qword [rsp + 0x38], rdi
call fcn.180003460
movzx ebx, word [rsi + rbx*2]
mov edi, eax
call fcn.180003390
mov byte [rsp + 0x30], al
movzx ecx, bx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 0xe642eef
mov r8d, dword [rsp + 0x40]
movsx edx, byte [rsp + 0x30]
xor r8d, 0x70b
sub cx, dx
xor r8b, 0xfe
movsx edx, byte [rsp + 0x30]
movzx eax, r8b
cmp cx, ax
sbb ax, ax
add edx, 0xbe
and ax, 0x20
or bx, ax
lea rax, [0x180031730]
movzx ecx, bx
mov rbx, qword [rsp + 0x48]
xor rcx, rdi
shr edi, 8
and rdx, rcx
xor edi, dword [rax + rdx*4]
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x180005330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, r9
mov r10, rdx
mov qword [rsp + 0x20], rdx
mov r13, rcx
movsxd r8, dword [rdx + 0x3c]
movsxd rax, dword [rcx + 0x3c]
mov r9d, dword [r8 + rdx + 0x88]
mov r8d, dword [rax + rcx + 0x88]
test r9d, r9d
jne 0x180005378
test r8d, r8d
je 0x180005557
mov rbp, r9
lea r11, [r8 + rcx]
mov qword [rsp + 0x28], r11
add rbp, rdx
jne 0x180005392
test r11, r11
je 0x180005557
mov ebx, dword [rbp + 0x20]
add rbx, rdx
mov qword [rsp + 0x30], rbx
mov edi, dword [r11 + 0x20]
add rdi, r13
mov qword [rsp + 0x38], rdi
xor r15d, r15d
cmp dword [rbp + 0x18], r15d
jbe 0x180005557
nop word [rax + rax]
lea r8, [r15 + r15]
mov eax, dword [rbp + 0x24]
add rax, r8
movzx edx, word [rax + r10]
mov ecx, dword [rbp + 0x1c]
add rcx, r10
mov r12d, dword [rcx + rdx*4]
mov eax, dword [r11 + 0x24]
add rax, r8
movzx edx, word [rax + r13]
mov ecx, dword [r11 + 0x1c]
add rcx, r13
mov r14d, dword [rcx + rdx*4]
add r14, r13
add r12, r10
je 0x18000554a
test r14, r14
je 0x18000554a
mov edx, dword [rbx + r15*4]
add rdx, r10
mov edi, dword [rdi + r15*4]
add rdi, r13
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x180005420
dec rcx
call fcn.1800033b0
mov ebx, eax
not ebx
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x180005440
dec rcx
mov rdx, rdi
call fcn.1800033b0
not eax
cmp ebx, eax
jne 0x180005536
cmp ebx, 0xf33c2ac
je 0x180005536
cmp ebx, 0x2078f304
je 0x180005536
cmp ebx, 0x46926cf5
je 0x180005536
cmp ebx, 0x5100831b
je 0x180005536
cmp ebx, 0x515def78
je 0x180005536
cmp ebx, 0x6db71dcd
je 0x180005536
cmp ebx, 0xc8827a2a
je 0x180005536
cmp ebx, 0xa9554556
je 0x180005536
mov r8d, 4
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RtlCompareMemory]
cmp rax, 4
je 0x180005536
test rsi, rsi
je 0x18000552b
mov rbx, qword [rsi]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rsi + 8], rax
je 0x18000556f
mov qword [rsp + 0x40], rsi
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x48], rdi
lea ecx, [rdi + 0x18]
call fcn.18000c580
mov qword [rsp + 0x48], rax
mov qword [rax + 0x10], r12
inc qword [rsi + 8]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 8], rax
mov qword [rcx], rax
mov r8, r14
mov rdx, r12
call fcn.180005210
mov r10, qword [rsp + 0x20]
mov r11, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
inc r15d
cmp r15d, dword [rbp + 0x18]
jb 0x1800053c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_too_long
call fcn.18000d538
int3
Function at 0x180005580
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push r15
sub rsp, 0x80
mov rax, qword [0x180036040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [r11 - 0x48], 8
mov qword [r11 - 0x58], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], eax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x30]
mov r15, qword [rcx + 0x60]
test r15, r15
je 0x18000575f
mov qword [r11 - 0x20], r13
mov eax, 0x5a4d
mov r13, qword [r15 + 0x10]
cmp word [r13], ax
jne 0x18000575a
movsxd rax, dword [r13 + 0x3c]
cmp dword [rax + r13], 0x4550
jne 0x18000575a
mov qword [r11 - 0x28], r14
mov r14d, dword [rax + r13 + 0x90]
add r14, r13
cmp dword [r14], 0
je 0x180005755
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov ecx, dword [r14 + 0xc]
add rcx, r13
call fcn.18000afb0
mov r12, rax
test rax, rax
je 0x180005733
mov esi, dword [r14]
add rsi, qword [r15 + 0x10]
mov ebx, dword [r14 + 0x10]
add rbx, qword [r15 + 0x10]
mov rcx, qword [rsi]
test rcx, rcx
js 0x180005725
je 0x180005725
mov rdx, qword [r15 + 0x10]
add rdx, 2
mov qword [rsp + 0x30], rbx
mov rbp, qword [rbx]
add rdx, rcx
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x180005675
dec rcx
call fcn.1800033b0
not eax
mov rcx, r12
mov edx, eax
call fcn.18000b0c0
mov rdi, rax
test rbp, rbp
je 0x180005708
test rax, rax
je 0x180005708
cmp rbp, rax
je 0x180005708
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], 8
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x30]
call fcn.18000c248
test eax, eax
js 0x180005708
mov qword [rbx], rdi
lea rax, [rsp + 0x48]
mov r9d, dword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x40], 8
call fcn.18000c248
add rsi, 8
mov qword [rsp + 0x30], 0
add rbx, 8
mov rcx, qword [rsi]
test rcx, rcx
jns 0x180005655
add r14, 0x14
cmp dword [r14], 0
jne 0x180005622
mov rbx, qword [rsp + 0x90]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000c440
add rsp, 0x80
pop r15
ret
Function at 0x18000ab00
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180036040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rcx + r8*2], 0
jne 0x18000ab20
dec r8
cmp r8, 0xffffffffffffffff
jne 0x18000ab3b
mov eax, 0xffffffff
jmp 0x18000ab61
lea rcx, [r8 - 1]
mov rdx, rbx
call fcn.180003330
movzx edx, word [rbx + r8*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
lea rdx, [0x180031730]
xor eax, dword [rdx + rcx*4]
not eax
xor edx, edx
mov ecx, eax
call fcn.18000ad80
test rax, rax
jne 0x18000ac0c
mov rax, qword [0x1800dc5b0]
test rax, rax
jne 0x18000abbb
xor edx, edx
mov ecx, 0x84c05e40
call fcn.18000ad80
mov edx, 0xfa2a9aa9
mov rcx, rax
call fcn.18000b0c0
mov qword [0x1800dc5b0], rax
test rax, rax
jne 0x18000abbb
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000c440
add rsp, 0x40
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call rax
mov r10, qword [0x1800dc5b8]
test r10, r10
jne 0x18000abef
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.18000b3d0
mov qword [0x1800dc5b8], rax
mov r10, rax
test rax, rax
je 0x18000aba6
xor eax, eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call r10
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000c440
add rsp, 0x40
pop rbx
ret
Function at 0x18000b3d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
xor edx, edx
call fcn.18000ad80
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.18000b0c0

Function at 0x18000b780
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rbp, rcx
test rcx, rcx
je 0x18000b80f
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000b80f
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
jne 0x18000b80f
xor edi, edi
cmp di, word [rsi + 6]
jae 0x18000b80f
nop word [rax + rax]
movzx ecx, word [rsi + 0x14]
lea rdx, [rdi + rdi*4]
add rcx, rsi
lea rbx, [rcx + rdx*8]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx + 0x18], 0
jne 0x18000b7e6
dec rcx
lea rdx, [rbx + 0x18]
call fcn.1800033b0
not eax
cmp eax, 0xa21c1ea3
je 0x18000b82c
movzx eax, word [rsi + 6]
inc edi
cmp edi, eax
jb 0x18000b7d0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rbp
mov eax, dword [rbx + 0x24]
add rax, rbp
mov qword [r14 + 8], rax
mov eax, dword [rbx + 0x28]
mov dword [r14 + 0x10], eax
mov eax, dword [rbx + 0x24]
sub eax, dword [rbx + 0x2c]
mov dword [r14 + 0x14], eax
mov eax, 1
jmp 0x18000b811

Function at 0x18000c125
Capabilities:
Check os version
Execute syscall

Disassembly:
xor al, 0x5a
mov r10, qword gs:[0x60]
cmp word [r10 + 0x118], 0xa
je 0x18000c177
cmp word [r10 + 0x118], 6
je 0x18000c148
jmp 0x18000c19e
cmp word [r10 + 0x11c], 3
je 0x18000c179
cmp word [r10 + 0x11c], 2
je 0x18000c17b
cmp word [r10 + 0x11c], 1
jne 0x18000c19e
cmp word [r10 + 0x120], 0x1db1
je 0x18000c17d
jmp 0x18000c19e
inc eax
inc eax
inc eax
cmp qword [0x1800dc428], 0
jne 0x18000c193
cmp eax, 0xc390050f
pop r10
mov r10, rcx
jne 0x18000c188
syscall
nop
ret
pop r10
mov r10, rcx
jmp qword [0x1800dc428]
ret
Function at 0x18001cecc
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 0x18001cefc
xor eax, eax
jmp 0x18001cfbf
mov rbp, rbx
cmp word [rax], si
je 0x18001cf21
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001cf08
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001cf04
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.18001ce1c
movsxd r14, eax
test eax, eax
jne 0x18001cf5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001cef5
mov rcx, r14
call fcn.18001acc0
mov rdi, rax
test rax, rax
jne 0x18001cf78
xor ecx, ecx
call fcn.18001ac84
jmp 0x18001cf54
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.18001ce1c
test eax, eax
jne 0x18001cfa9
mov rcx, rdi
call fcn.18001ac84
jmp 0x18001cfb3
xor ecx, ecx
call fcn.18001ac84
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 0x180021620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180021648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180021648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001030
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x83b5b69
mov rdi, rcx
jne 0x140001092
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x140001092
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001092
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x14000107c
mov ebx, 0xc0000001
jmp 0x140001083
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x140001097
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400010a4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x83b5b69
mov rsi, rcx
je 0x1400010c8
mov eax, 0xc0000001
jmp 0x140001180
xor edi, edi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x30]
mov ebx, edi
lea ecx, [rdi + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000117e
test rbx, rbx
je 0x140001100
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400010f0
test rbx, rbx
je 0x14000117e
mov r8d, dword [rbx]
test r8d, r8d
je 0x140001173
mov edx, edi
shl rdx, 5
test byte [rdx + rbx + 0x10], 1
je 0x14000116c
cmp qword [rdx + rbx + 0x18], 0x200000
jne 0x14000116c
mov ecx, dword [0x140001ed0]
mov r9b, byte [0x140001ed4]
cmp dword [rdx + rbx + 0x20], ecx
jne 0x14000116c
cmp byte [rdx + rbx + 0x24], r9b
je 0x140001190
inc edi
cmp edi, r8d
jb 0x14000113a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + rbx + 8]
mov qword [rcx], rax
jmp 0x14000117e
Function at 0x1400011a0
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x83b5b69
mov rbx, rcx
jne 0x140001264
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001264
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001264
mov rdi, qword [0x140003048]
test rdi, rdi
je 0x140001264
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.1400018c0
test rax, rax
je 0x140001264
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rbx + 0x20], 0
movsxd r8, esi
je 0x140001247
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001aa4
jmp 0x140001260
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001269
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001318
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [0x140003050], 0
mov r13, rcx
jne 0x140001346
call fcn.140001478
cmp qword [0x140003078], 0
jne 0x14000137b
call fcn.14000127c
mov rcx, rax
lea r8, [0x140001e90]
lea rdx, [0x140001ec0]
call fcn.140001758
movsxd rcx, dword [rax + 8]
mov rax, qword [rcx + rax + 0xc]
mov qword [0x140003078], rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x140003070]
xor r15d, r15d
mov rcx, qword [0x140003068]
lea rsi, [rax + 8]
lea r12, [rcx + rdx*8]
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x1400013ac
cmp qword [rsi], rbx
je 0x14000145a
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x14000143b
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x140003078]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x140001421
cmp qword [rdi + rax + 8], r12
jne 0x140001421
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x58]
mov rax, rbx
shl rax, 0xc
mov qword [0x140003048], rax
mov ecx, dword [r13]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001421
cmp r14, qword [rsp + 0x58]
je 0x14000142f
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x1400013c7
jmp 0x14000143b
mov rcx, qword [0x140003048]
test rcx, rcx
jne 0x140001451
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jl 0x14000139a
jmp 0x14000145a
mov rax, qword [r13 + 8]
mov qword [rax], rcx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret