joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800505d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, 0xff
movabs rdi, 0x4e94914f0000
movabs rsi, 0x431bde82d7b634db
movabs r15, 0x7fffffffffffec76
movabs r14, 0x7fffffffffffffff
cmp byte [0x180061a0d], 0
je 0x180050657
mov ecx, 0x45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180050657
lea rdx, [rsp + 0x20]
call fcn.18004ee60
cmp byte [rsp + 0x2c], 0
je 0x180050657
lea rdx, [rsp + 0x20]
cmp byte [0x180061a0f], 0
je 0x180050651
call fcn.18004f860
jmp 0x180050657
call fcn.18004f380
nop
lea rcx, [rsp + 0x60]
call fcn.1800503c0
mov rbx, qword [rsp + 0x60]
cmp rbx, r15
jg 0x180050674
add rbx, 0x1388
jmp 0x180050680
mov rbx, r14
nop word [rax + rax]
lea rcx, [rsp + 0x68]
call fcn.1800503c0
mov rax, qword [rsp + 0x68]
cmp rbx, rax
je 0x180050612
mov ecx, 1
cmovl ecx, ebp
test cl, cl
jle 0x180050612
mov rcx, rbx
sub rcx, rax
cmp rcx, rdi
jne 0x1800506d1
mov rax, rsi
imul rcx
sar rdx, 0x12
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov ecx, r8d
call sub.KERNEL32.dll_Sleep
jmp 0x180050680
jl 0x1800506df
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x180050680
mov rax, rsi
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov r8, rdx
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x1800506c7
lea rcx, [rdx + 1]
call sub.KERNEL32.dll_Sleep
jmp 0x180050680

Function at 0x180050710
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x180050752
cmp edx, 1
jne 0x180050788
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800504c0]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x1800619b0]
call fcn.18004eca0
cmp dword [0x1800619e8], 0
je 0x180050788
call fcn.18004db20
mov rcx, qword [0x1800619e0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x1800619e0], rax
mov dword [0x1800619e8], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1400023c4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140029a10
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]
add rsp, 0x28
ret
Function at 0x140011771
Capabilities:
Parse pe header

Disassembly:
jmp 0x140028dd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140028df0
xor al, al
jmp 0x140028e71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140028e03
xor al, al
jmp 0x140028e71
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 0x140028e2d
xor al, al
jmp 0x140028e71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140028e41
xor al, al
jmp 0x140028e71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140028e53
xor al, al
jmp 0x140028e71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140028e6f
xor al, al
jmp 0x140028e71
mov al, 1
add rsp, 0x38
ret
Function at 0x1400014c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140066c40]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140001559
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000154d
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call fcn.140046910
test eax, eax
jne 0x14000153a
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x14000154d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14000151a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140019a10
add rsp, 0x178
ret

Function at 0x140001630
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140001689
xor eax, eax
jmp 0x14000174d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1400016b3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000174d
mov eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.140020920
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400016da
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000174d
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001722
mov rcx, qword [rsp + 0x50]
call fcn.140020910
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000174d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov eax, 1
add rsp, 0x68
ret
Function at 0x140001760
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x368
mov rax, qword [0x140066c40]
xor rax, rsp
mov qword [rsp + 0x350], rax
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, qword [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x1400017ae
xor eax, eax
jmp 0x1400018a6
lea rcx, [rsp + 0x40]
call fcn.140001a00
test eax, eax
jne 0x1400017c3
xor eax, eax
jmp 0x1400018a6
mov dword [rsp + 0x38], 0x100
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x150]
lea r8, [0x140049540]
lea rdx, [0x140049548]
lea rcx, [0x140049558]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jbe 0x140001832
cmp dword [rsp + 0x30], 0x100
jae 0x140001832
lea r8, [rsp + 0x150]
mov edx, 0x100
mov rcx, qword [rsp + 0x378]
call fcn.1400208a8
nop
jmp 0x140001836
xor eax, eax
jmp 0x1400018a6
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x250]
lea r8, [0x140049541]
lea rdx, [0x140049568]
lea rcx, [0x140049570]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jbe 0x14000189d
cmp dword [rsp + 0x34], 0x100
jae 0x14000189d
lea r8, [rsp + 0x250]
mov edx, 0x100
mov rcx, qword [rsp + 0x380]
call fcn.1400208a8
nop
jmp 0x1400018a1
xor eax, eax
jmp 0x1400018a6
mov eax, 1
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140019a10
add rsp, 0x368
ret

Function at 0x140001a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001a34
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x140001a34
mov dword [rsp + 0x24], 1
jmp 0x140001a3c
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x140001a50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x140001a9c
xor eax, eax
jmp 0x140001b1d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001ad3
cmp dword [rsp + 0x40], 4
jae 0x140001ae2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001b1d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rsp + rax + 0x44]
cmp eax, 0x4d
je 0x140001b14
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x44]
cmp eax, 0x5a
jne 0x140001b1b
mov eax, 1
jmp 0x140001b1d
xor eax, eax
add rsp, 0x58
ret
Function at 0x140010b50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x140010b75
xor eax, eax
jmp 0x140010d36
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x140010b9d
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140010d40
jmp 0x140010d36
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000d3b0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x140010c3a
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140009cc0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000f360
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.14000e960
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.14000f260
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140010d26
mov rcx, qword [rsp + 0x70]
call fcn.14000dbd0
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140010cda
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140025000
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140010cd8
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x140010d36
jmp 0x140010c60
cmp qword [rsp + 0x20], 0
jbe 0x140010d26
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140025000
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x140014d10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d34
xor eax, eax
jmp 0x140014d62
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x140014d5d
xor eax, eax
jmp 0x140014d62
mov rax, qword [rsp + 8]
add rsp, 0x18
ret
Function at 0x140017c40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140066c40]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rcx, [0x140053470]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140017c7f
xor al, al
jmp 0x140017e3c
mov r8, qword [rsp + 0xc0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x80]
call fcn.140017e60
nop
lea rcx, [rsp + 0x80]
call fcn.14000e620
mov rdx, rax
lea rcx, [rsp + 0x50]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, qword [rsp + 0xc0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x60]
call fcn.140017e60
nop
lea rcx, [rsp + 0x60]
call fcn.14000e620
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140017d4f
cmp dword [rsp + 0x28], 2
jne 0x140017d28
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x60]
call fcn.14000bb70
nop
lea rcx, [rsp + 0x80]
call fcn.14000bb70
movzx eax, byte [rsp + 0x20]
jmp 0x140017e3c
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x60]
call fcn.14000bb70
nop
lea rcx, [rsp + 0x80]
call fcn.14000bb70
movzx eax, byte [rsp + 0x21]
jmp 0x140017e3c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call qword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140017dd1
lea rcx, [rsp + 0x60]
call fcn.14000e620
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x60]
call fcn.14000bb70
nop
lea rcx, [rsp + 0x80]
call fcn.14000bb70
movzx eax, byte [rsp + 0x22]
jmp 0x140017e3c
lea rcx, [rsp + 0x60]
call fcn.14000e620
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140017e1a
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x60]
call fcn.14000bb70
nop
lea rcx, [rsp + 0x80]
call fcn.14000bb70
movzx eax, byte [rsp + 0x23]
jmp 0x140017e3c
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x60]
call fcn.14000bb70
nop
lea rcx, [rsp + 0x80]
call fcn.14000bb70
movzx eax, byte [rsp + 0x24]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140019a10
add rsp, 0xb8
ret
Function at 0x140017f30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x140066c40]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140017f8d
cmp dword [rsp + 0x24], 0x105
jbe 0x140017fb6
lea rdx, [0x14005354c]
mov rcx, qword [rsp + 0x260]
call fcn.14000a6a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x260]
jmp 0x140018022
lea rcx, [rsp + 0x30]
call fcn.140024108
movzx eax, word [rsp + rax*2 + 0x2e]
cmp eax, 0x5c
jne 0x140017ffd
lea rcx, [rsp + 0x30]
call fcn.140024108
lea rax, [rax + rax - 2]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x20a
jae 0x140017feb
jmp 0x140017ff1
call fcn.140019db4
nop
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rsp + rcx + 0x30], ax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.14000a6a0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019a10
add rsp, 0x250
pop rdi
ret
Function at 0x140018270
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140066c40]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140018320
cmp qword [rsp + 0x28], 0
je 0x1400182e2
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
jmp 0x1400182bc
cmp dword [rsp + 0x30], 0
jge 0x14001834a
cmp qword [rsp + 0x28], 0
je 0x140018343
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor eax, eax
jmp 0x140018467
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140018363
xor eax, eax
jmp 0x140018467
mov dword [rsp + 0x20], 0
jmp 0x140018377
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140018452
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000a520
nop
mov rcx, qword [rsp + 0xa0]
call fcn.14000e600
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.14000e600
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140024500
test eax, eax
jne 0x140018442
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.14000bb40
mov rax, qword [rsp + 0x58]
jmp 0x140018467
lea rcx, [rsp + 0x60]
call fcn.14000bb40
nop
jmp 0x14001836d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140019a10
add rsp, 0x98
ret
Function at 0x1400185d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.140046990
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140018637
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1400186d1
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.140046820
test eax, eax
jne 0x1400186cc
mov rax, qword [rsp + 0x28]
mov rcx, rax
call fcn.140046990
cmp qword [rsp + 0x38], rax
jne 0x1400186cc
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x1400186a0
xor eax, eax
jmp 0x1400186d3
cmp qword [rsp + 0x70], 0
je 0x1400186b7
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
jmp 0x1400186d3
jmp 0x14001862d
xor eax, eax
add rsp, 0x58
ret

Function at 0x14001a6d0
Capabilities:
Parse pe header

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

Function at 0x140024614
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140024634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002fcbc
or eax, 0xffffffff
jmp 0x140024636
xor eax, eax
add rsp, 0x28
ret