joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800123e0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
xor edi, edi
cmp dword [0x1800a24bc], 0x40
jae 0x18001250c
lea rbx, [rcx + rdx]
mov rbp, 0xfffffffffff80000
add rcx, r8
lea r8d, [rdi + 0x30]
cmp rcx, 0xffffffff80000000
lea rax, [rcx + 0x7ff80000]
cmovb rbp, rax
lea rcx, [r11 - 0x38]
xor edx, edx
call fcn.180018280
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0x80000000
lea rsi, [rbx - 0x7fff0000]
cmp rbx, rax
lea r14d, [rdi + 1]
cmovb rsi, r14
cmp rsi, rbp
jae 0x18001250c
mov r8d, PathQualify
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800124dc
cmp dword [rsp + 0x40], 0x10000
jne 0x1800124ca
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb 0x1800124cf
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb 0x1800124cf
lea eax, [rdx - 1]
mov r8d, 0x3000
xor edx, edx
add rax, rsi
div rcx
mov edx, 0x78
imul rcx, rax
lea r9d, [rdx - 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1800124e1
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x20]
add rsi, rax
cmp rsi, rbp
jb 0x180012465
test rdi, rdi
je 0x18001250c
lea rdx, [0x1800a2780]
xor eax, eax
mov rcx, rdx
cmp qword [rcx], 0
je 0x180012501
add eax, r14d
add rcx, 8
cmp eax, 0x40
jb 0x1800124ed
jmp 0x18001250c
add dword [0x1800a24bc], r14d
mov qword [rdx + rax*8], rdi
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x1800125a4
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x180076008]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180012668
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180012660
mov dword [rsp + 0x50], 0x100001
xor edi, edi
jmp 0x18001264c
cmp qword [rsp + 0x118], rsi
jb 0x180012668
lea rax, [rsi + rbp]
cmp qword [rsp + 0x118], rax
jae 0x180012668
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x18001265d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
inc edi
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x18001260d
jmp 0x180012668
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rax, rbx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180013480
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180012694
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x1800a24b8], edi
jbe 0x1800126fe
mov rcx, qword [0x1800a24b0]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x1800a24b0]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x1800a24b8]
jb 0x1800126d2
mov rcx, qword [0x1800a24b0]
call fcn.18003a93c
and qword [0x1800a24b0], 0
and dword [0x1800a24b8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]
Function at 0x180012ae4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x180076008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, qword [rcx]
xor r14d, r14d
mov esi, r14d
mov qword [rbp - 0x51], rcx
mov rdi, rdx
mov r13, rcx
call fcn.180012300
mov rcx, rbx
call fcn.18001235c
mov rcx, rdi
mov r15, rax
call fcn.18001235c
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x59], rax
xor edx, edx
lea r8d, [r14 + 0x58]
call fcn.180018280
lea r8, [rbp - 0x49]
mov rcx, r15
call fcn.180012924
mov ebx, eax
cmp eax, 5
jb 0x180012d11
mov edx, ebx
mov rcx, r15
call fcn.18001273c
mov r8, qword [rbp - 0x41]
mov rcx, r15
mov rdx, qword [rbp - 0x49]
call fcn.1800123e0
mov rsi, rax
test rax, rax
je 0x180012d0c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [r14 + 0x40]
mov dword [rbp - 0x65], r14d
mov rdi, rax
mov dword [rbp - 0x69], r14d
lea rax, [rbp - 0x65]
mov rcx, rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, r15
mov r12d, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012ced
lea rax, [rbp - 0x69]
mov rdx, rsi
lea r9d, [r14 + 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012cc3
lea r13, [rsi + 0x38]
test ebx, ebx
je 0x180012c13
mov rdx, r15
mov r8, rsi
sub rdx, r13
mov rcx, r13
sub r8, r13
mov r9d, ebx
mov al, byte [rdx + rcx]
mov byte [rcx], al
mov byte [r8 + rcx + 0x58], al
inc rcx
sub r9, 1
jne 0x180012c00
lea rdx, [rbx + r15]
lea rcx, [rbx + r13]
call fcn.18001239c
lea r8, [rbp - 0x49]
mov rdx, r15
mov rcx, r13
call fcn.1800128e8
mov rdx, qword [rbp - 0x59]
mov rcx, r15
sub rcx, rdx
mov rax, rdx
sub rax, r15
cmp rdx, r15
cmovb rax, rcx
cmp rax, 0x7fff0000
jbe 0x180012c7c
lea rbx, [rsi + 0x18]
mov rcx, rbx
call fcn.18001239c
sub rax, rsi
mov rdx, rbx
mov rcx, rdi
lea r8, [rax - 0x18]
call fcn.18000fd54
mov rdx, rbx
mov rcx, r15
call fcn.18001239c
mov ebx, r12d
jmp 0x180012c84
mov rcx, r15
call fcn.18001239c
mov rax, qword [rbp - 0x59]
mov r8, r12
mov rdx, r13
mov qword [rsi + 0x10], rax
mov rcx, rdi
mov dword [rsi + 8], ebx
mov qword [rsi], r15
call fcn.18000fd54
mov r9d, dword [rbp - 0x69]
lea rax, [rbp - 0x69]
mov r8d, 0x78
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r13, qword [rbp - 0x51]
mov r8, r12
mov rdx, r15
mov rcx, rdi
call fcn.18000fd54
mov r9d, dword [rbp - 0x65]
lea rax, [rbp - 0x65]
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp qword [rsi], r14
je 0x180012cfc
lea rax, [rsi + 0x38]
mov qword [r13], rax
jmp 0x180012d0c
mov edx, 1
mov rcx, rsi
call fcn.180012560
mov rsi, r14
call fcn.180012694
call fcn.18001234c
test rsi, rsi
setne r14b
mov eax, r14d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180013480
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012d48
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
call fcn.180012300
mov rcx, qword [rsi]
call fcn.180012530
mov rbx, rax
test rax, rax
je 0x180012e14
mov edx, dword [rax + 8]
mov rcx, qword [rax]
call fcn.18001273c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rbx + 8]
lea r9d, [rdi + 0x40]
mov rdx, qword [rbx]
mov rbp, rax
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], edi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012e0f
mov rdx, qword [rbx]
cmp dword [rbx + 8], edi
jbe 0x180012dcc
mov ecx, edi
inc edi
mov al, byte [rbx + rcx + 0x58]
mov byte [rcx + rdx], al
cmp edi, dword [rbx + 8]
jb 0x180012dbc
mov r8d, dword [rbx + 8]
mov rcx, rbp
mov rdx, qword [rbx]
call fcn.18000fd54
mov r8d, dword [rbx + 8]
lea rax, [rsp + 0x48]
mov r9d, dword [rsp + 0x48]
mov rcx, rbp
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov qword [rsi], rax
mov edi, 1
call fcn.180012560
call fcn.180012694
call fcn.18001234c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180042c10
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.180045264
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x180042c63
test rbx, rbx
je 0x180042c54
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bpl, bpl
je 0x180042c63
mov edi, 4
jmp 0x180042d0c
call fcn.18004500c
test al, al
jne 0x180042c80
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x180042d0c
test bpl, bpl
je 0x180042ce3
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x180042b28]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180042d0c
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x180042cdd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180042d0c
mov edi, dword [rsp + 0x44]
jmp 0x180042cd5
call fcn.180045190
test al, al
jne 0x180042cf4
bts esi, 0x15
xor ecx, ecx
jmp 0x180042cfc
call fcn.1800450c8
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.180044dbc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x180042d2c
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.180045264
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x180042d7f
test rbx, rbx
je 0x180042d70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x180042d7f
mov edi, 4
jmp 0x180042e28
call fcn.18004500c
test al, al
jne 0x180042d9c
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x180042e28
test bpl, bpl
je 0x180042dff
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x180042b50]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180042e28
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x180042df9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180042e28
mov edi, dword [rsp + 0x44]
jmp 0x180042df1
call fcn.180045190
test al, al
jne 0x180042e10
bts esi, 0x15
xor ecx, ecx
jmp 0x180042e18
call fcn.1800450c8
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.180044e44
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x3c0
mov ebx, 7
lea rax, [rsp + 0x20]
mov edx, ebx
lea rcx, [0x140002250]
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140001020
movups xmm0, xmmword [rcx]
mov edx, 0x3a0
mov r8d, _register_thread_local_exe_atexit_callback
movups xmm1, xmmword [rcx + 0x10]
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
lea rcx, [rsp + 0x20]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rbx, 1
jne 0x1400010a0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
call rax
xor eax, eax
add rsp, 0x3c0
pop rbx
ret

Function at 0x1400019fc
Capabilities:
Parse pe header

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

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

Function at 0x1400062b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400060e0

Function at 0x140012ac0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012ae8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012ae8
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 [0x00575880]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00575890]
mov dword [rax], 1
mov rax, qword [0x005758a0]
mov dword [rax], 1
mov rax, qword [0x00575870]
mov dword [rax], 1
mov rax, qword [0x00575750]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x00575860]
mov dword [0x00590020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00575840]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x00575820]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x005756f0]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x404090
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x30]
mov r8d, 0x118
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x2c], 0x11c
lea rcx, [rsp + 0x2c]
call sub.ntdll.dll_RtlGetVersion
test eax, eax
js 0x4040dc
mov ecx, dword [rsp + 0x30]
mov al, 1
cmp ecx, 6
ja 0x4040d4
jne 0x4040e6
cmp dword [rsp + 0x34], 3
setae al
add rsp, 0x148
ret
mov al, 1
add rsp, 0x148
ret
xor eax, eax
add rsp, 0x148
ret
Function at 0x4063e0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x4064dc
mov rdi, rax
movsxd r13, dword [rsp + 0x2c]
mov qword [rsp + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
test r13, r13
je 0x4064c1
shl r13, 3
xor ebp, ebp
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x60]
lea r15, [rsp + 0x30]
jmp 0x40647a
mov rax, qword [rsp + 0x30]
lea rcx, [rdx + rdx*2]
mov rdx, qword [rsp + 0x58]
mov qword [rax + rcx*8 + 0x10], rdx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rax + rcx*8], xmm0
inc qword [rsp + 0x40]
add rbp, 8
cmp r13, rbp
je 0x4064c1
mov r12, qword [rdi + rbp]
mov rcx, r12
call sub.msvcrt.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], 0
mov rcx, rbx
mov rdx, r14
call sym._ZN95__LT_alloc..string..String_u20_as_u20_core..iter..traits..collect..FromIterator_LT_char_GT__GT_9from_iter17he29720028f95e
mov rdx, qword [rsp + 0x40]
cmp rdx, qword [rsp + 0x38]
jne 0x406450
mov rcx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h75035beae56a7e06
mov rdx, qword [rsp + 0x40]
jmp 0x406450
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x4064ea
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x40af90
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0xe0
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
mov dword [rsp + 0x90], 0x40
lea rcx, [rsp + 0x90]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsi + 0xa0], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.PSAPI.DLL_GetPerformanceInfo
cmp eax, 1
jne 0x40b07c
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub rdx, r9
cmovb rdx, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdx, qword [rsp + 0x28]
sub rdx, r9
cmovb rdx, r10
mov rax, rcx
mul rdx
cmovo rax, r11
mov qword [rsi + 0xb0], r8
mov qword [rsi + 0xb8], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop rsi
ret
Function at 0x40c970
Capabilities:
Get hostname

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
mov ecx, 5
xor edx, edx
call sub.KERNEL32.dll_GetComputerNameExW
mov edi, dword [rsp + 0x2c]
test rdi, rdi
je 0x40c9c6
lea r14, [rdi + rdi]
mov edx, 2
mov rcx, r14
call sym.__rust_alloc_zeroed
mov rbx, rax
test rax, rax
jne 0x40c9cb
mov ecx, 2
mov rdx, r14
call dbg.handle_alloc_error
ud2
mov ebx, 2
lea r8, [rsp + 0x2c]
mov ecx, 5
mov rdx, rbx
call sub.KERNEL32.dll_GetComputerNameExW
cmp eax, 1
jne 0x40ca06
test rdi, rdi
je 0x40ca28
lea rax, [rdi + rdi]
xor r8d, r8d
nop
cmp word [rbx + r8*2], 0
je 0x40ca2b
inc r8
add rax, 0xfffffffffffffffe
jne 0x40c9f0
mov r8, rdi
jmp 0x40ca2b
test rdi, rdi
je 0x40ca1f
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
mov qword [rsi], 0
jmp 0x40ca6a
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rbx
call dbg.from_utf16
cmp qword [rsp + 0x30], 0
je 0x40ca77
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x40ca6a
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi], 0
test rdi, rdi
jne 0x40ca56
jmp 0x40ca6a
Function at 0x4187e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x418822
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x41882a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x41883b
jmp 0x418852
xor r10d, r10d
jmp 0x4188dd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x418852
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x418869
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x418889
add r11, r8
jmp 0x4189ba
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x418952
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x418900
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x418970
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x418982
jmp 0x41899c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x41899c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x4189b6
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret