joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039b60
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1412e2ad0]
mov rcx, qword [0x1412e2bb8]
test rcx, rcx
jne 0x140039bac
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140039c7a
mov rcx, rax
mov qword [0x1412e2bb8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140039c7a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003a0b0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140039c6c
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x140039c45
cmp qword [rax + 0x10], 0x11
jae 0x140039c2e
mov r8, qword [rbp - 0x20]
jmp 0x140039c36
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1412e2bb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1412e2bb8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400506a0
ud2
Function at 0x14003aba0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003abdf
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x1400286c0]
mov qword [rbp - 0x28], rax
lea rax, [0x1412d1d18]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1412d1d50]
lea rcx, [rbp - 0x60]
call fcn.140050770
ud2

Function at 0x14003d3f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003d547
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003d428
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003d50a
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003d529
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d48b
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003d4b4
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
jmp 0x14003d4f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x14003d4bc
cmp eax, 0x3e5
jne 0x14003d4f0
lea rax, [rsp + 0x30]
jmp 0x14003d4ca
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14003d4f6
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400220b0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14003d500
cmp rax, 1
je 0x14003d472
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003d47c
mov r8d, 0x10
mov rcx, rbx
call fcn.1400505e0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003d435
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400505e0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003d435
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140051a40
ud2

Function at 0x1400469bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400467b8
Function at 0x140049a7c
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 0x140049aac
xor eax, eax
jmp 0x140049b6f
mov rbp, rbx
cmp word [rax], si
je 0x140049ad1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140049ab8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140049ab4
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.14004999c
movsxd r14, eax
test eax, eax
jne 0x140049b0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140049aa5
mov rcx, r14
call fcn.14004a958
mov rdi, rax
test rax, rax
jne 0x140049b28
xor ecx, ecx
call fcn.140047ffc
jmp 0x140049b04
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.14004999c
test eax, eax
jne 0x140049b59
mov rcx, rdi
call fcn.140047ffc
jmp 0x140049b63
xor ecx, ecx
call fcn.140047ffc
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 0x14004d060
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.140048a6c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004d0ea
cmp byte [rbp - 0x21], r15b
je 0x14004d0e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004d120
call fcn.14004b168
test eax, eax
jne 0x14004d10c
cmp byte [rbp - 0x21], r15b
je 0x14004d104
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004d120
cmp byte [rbp - 0x21], r15b
je 0x14004d11d
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.14004804c
test eax, eax
jne 0x14004d1c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140048a6c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004d15f
cmp byte [rbp - 0x21], r15b
je 0x14004d194
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004d194
call fcn.14004b168
test eax, eax
jne 0x14004d180
cmp byte [rbp - 0x21], r15b
je 0x14004d179
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004d194
cmp byte [rbp - 0x21], r15b
je 0x14004d191
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.14004804c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004d1c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004d1c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004d1d1
mov rcx, rdi
call fcn.140047ffc
cmp byte [rbp + 0x3f], r15b
je 0x14004d1e0
mov rcx, qword [rbp + 0x27]
call fcn.140047ffc
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 0x140001930
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x250
lea rsi, fcn.140122110
movq xmm0, rsi
mov r9, qword [r8 + 8]
mov r8, qword [r8]
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x28], r9
mov rax, rcx
lea rcx, [rsp + 0x30]
movq xmm1, rbx
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x20]
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x30], xmm0
movdqu xmm0, xmmword [0x140270ad0]
movups xmmword [rsp + 0x40], xmm0
call rax
mov rdi, qword [fcn.140119ad0]
mov ecx, 2
call rdi
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rsi
cmp rcx, rbx
je 0x1400019d5
call fcn.140267160
nop
add rsp, 0x250
pop rbx
pop rsi
pop rdi
ret
Function at 0x140004350
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x698
lea rbp, fcn.140122110
xor r9d, r9d
movq xmm0, rbp
mov r10, qword [rdx]
mov r11, qword [rdx + 8]
mov rdx, qword [r8 + 8]
mov rax, qword [r8]
lea rdi, [rsp + 0x80]
lea r13, [rsp + 0x40]
mov qword [rsp + 0x38], rdx
mov rbx, rcx
movq xmm1, rdi
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rdx, r13
punpcklqdq xmm0, xmm1
mov qword [rsp + 0x40], r10
movups xmmword [rsp + 0x60], xmm0
movdqu xmm0, xmmword [0x140270ad0]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x70], xmm0
call fcn.1401216d0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov esi, eax
mov ecx, eax
call qword [sym.imp.msvcrt.dll__isatty]
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
test eax, eax
jne 0x140004430
mov r9, rbx
mov r8, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, r12
jb 0x140004552
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rbp
cmp rcx, rdi
je 0x14000441c
call fcn.140267160
nop
add rsp, 0x698
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rsp + 0x40], rcx
mov rdx, r13
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x48], r12
call fcn.140001a90
mov rax, qword [rsp + 0x290]
mov dword [rsp + 0x5c], 0
mov ecx, esi
mov r12, qword [rsp + 0x288]
lea rbx, [rax - 1]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
lea r9, [rsp + 0x5c]
mov r8d, ebx
mov rdx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x1400044c1
lea rax, fcn.140122240
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x140004407
call fcn.140267160
jmp 0x140004407
mov ecx, 0x10
call fcn.140267290
lea rdx, str.failed_to_write_to_console
mov rcx, rax
mov rsi, rax
call fcn.1402183b0
lea rax, [0x1402b5680]
lea r8, [0x140001650]
mov rcx, rsi
mov qword [rsi], rax
lea rdx, [0x1402b07c0]
call fcn.140267910
mov rbx, rax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rbp
cmp rcx, rdi
je 0x140004514
call fcn.140267160
mov rcx, rbx
call fcn.14010b2f0
mov rcx, rsi
mov rbx, rax
call fcn.1402675b0
lea rax, fcn.140122240
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x140004500
call fcn.140267160
jmp 0x140004500
mov ecx, 0x18
call fcn.140267290
mov rsi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov edx, dword [rax]
lea rbx, str.cannot_write_to_file
mov r8, r13
mov rcx, rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0x14
call fcn.140122080
lea r8, [0x140001690]
lea rdx, [0x1402b07e0]
mov rcx, rsi
call fcn.140267910
mov rbx, rax
jmp 0x140004527
Function at 0x140008d90
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp qword [0x1402f9168], 0
mov rbp, rcx
mov rdi, rdx
mov r13, r8
je 0x140008f20
mov rbx, qword [0x1402f9150]
mov r12, qword [rdi]
test rbx, rbx
je 0x140008e70
lea r14, [0x1402f9148]
mov rsi, r14
nop word [rax + rax]
cmp qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
je 0x140008e00
cmp qword [rdi + 8], 0
je 0x140008e00
mov rdx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x140008e40
nop word cs:[rax + rax]
mov rsi, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008dd8
cmp rsi, r14
je 0x140008e70
cmp qword [rdi + 8], 0
jne 0x140008e50
lea rdx, [rsi + 0x30]
mov rcx, rbp
call fcn.140046770
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbx, qword [rbx + 0x18]
jmp 0x140008e07
cmp qword [rsi + 0x28], 0
je 0x140008e18
mov rdx, qword [rsi + 0x20]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jns 0x140008e18
nop word [rax + rax]
cmp qword [r13 + 0x28], 0
je 0x140008ef0
mov rbx, qword [r13 + 0x10]
lea r14, [r13 + 8]
test rbx, rbx
je 0x140008ef0
mov rsi, r14
nop word [rax + rax]
cmp qword [rbx + 0x28], 0
mov rcx, qword [rbx + 0x20]
je 0x140008eb0
cmp qword [rdi + 8], 0
je 0x140008eb0
mov rdx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x140008f10
nop
mov rsi, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008e90
cmp r14, rsi
je 0x140008ef0
cmp qword [rdi + 8], 0
je 0x140008e18
cmp qword [rsi + 0x28], 0
je 0x140008e18
mov rdx, qword [rsi + 0x20]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jns 0x140008e18
nop dword [rax + rax]
mov rcx, r12
call sub.msvcrt.dll_getenv
mov rcx, rbp
mov rdx, rax
call fcn.140046680
jmp 0x140008e24
mov rbx, qword [rbx + 0x18]
jmp 0x140008eb7
call fcn.1400084b0
jmp 0x140008db5
Function at 0x1400109b0
Capabilities:
Set console window title

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rax, [0x1402b5890]
mov qword [rcx], rax
mov rbx, rcx
mov rdi, rdx
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 1
call fcn.1400b5ae0
cmp eax, 0xe
je 0x140010a00
cmp eax, 7
je 0x140010a00
mov rax, qword [0x1402ae090]
mov byte [rax], 0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 0x158
call fcn.1402671b0
mov qword [rbx + 8], rax
mov rsi, rax
call fcn.1400a9380
xor r9d, r9d
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call fcn.1400c64c0
test eax, eax
js 0x1400109eb
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.1400c8470
mov rax, qword [rbx + 8]
mov ecx, 0xfffffff6
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010a6f
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x140010aa8
cmp byte [rdi], 0
je 0x1400109f5
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14001ac30
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400109f5
call fcn.140267150
jmp 0x1400109f5
mov edx, dword [rsp + 0x20]
mov rcx, rbx
and edx, 0xffffffbf
mov dword [rsp + 0x20], edx
or dl, 0x80
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
jmp 0x140010a6f
Function at 0x140046580
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
lea r11, [0x1402f9640]
mov r9, rcx
lea r10, [rcx + rdx]
test rdx, rdx
jne 0x1400465e8
jmp 0x140046610
lea rdx, [rax + 1]
mov eax, dword [r11 + rax*4]
add r9, 1
mov qword [0x1402fa000], rdx
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
shr rax, 0x18
mov byte [r9 - 1], al
cmp r10, r9
je 0x140046610
mov rax, qword [0x1402fa000]
cmp rax, 0x26f
jbe 0x1400465a0
mov rcx, r11
call fcn.140225e50
mov rax, qword [0x1402fa000]
jmp 0x1400465a0
add rsp, 0x28
ret

Function at 0x1400686f0
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x140
xor r9d, r9d
mov r8d, 0x1c
mov rbx, rcx
lea rsi, [rsp + 0x30]
xor ecx, ecx
mov rdx, rsi
lea r12, [rbx + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov qword [rbx], r12
test eax, eax
je 0x140068760
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x28], rax
mov rbp, rax
cmp rax, 0xf
ja 0x140068788
cmp rax, 1
jne 0x1400687f8
movzx edx, byte [rsp + 0x30]
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], dl
mov byte [r12 + rax], 0
jmp 0x140068773
movzx eax, word [0x1402941c4]
mov qword [rbx + 8], 1
mov word [rbx + 0x10], ax
mov rax, rbx
add rsp, 0x140
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rbx
call fcn.140235160
mov qword [rbx], rax
mov r12, rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x10], rax
cmp ebp, 8
jae 0x140068810
test bpl, 4
jne 0x140068841
test ebp, ebp
je 0x1400687e0
movzx eax, byte [rsp + 0x30]
mov byte [r12], al
test bpl, 2
je 0x1400687e0
mov ebp, ebp
movzx eax, word [rsi + rbp - 2]
mov word [r12 + rbp - 2], ax
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x28]
mov r12, qword [rbx]
mov qword [rbx + 8], rax
mov byte [r12 + rax], 0
jmp 0x140068773
test rax, rax
jne 0x1400687a7
mov qword [rbx + 8], rax
mov byte [r12 + rax], 0
jmp 0x140068773
mov rax, qword [rsp + 0x30]
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebp
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rdi
lea ecx, [rbp + r12]
sub rsi, r12
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
jmp 0x1400687e0
mov eax, dword [rsp + 0x30]
mov ebp, ebp
mov dword [r12], eax
mov eax, dword [rsi + rbp - 4]
mov dword [r12 + rbp - 4], eax
jmp 0x1400687e0
Function at 0x140068860
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400686f0
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x48]
cmp rax, 5
jbe 0x14006898c
mov r8d, 6
lea rdx, str._xmrig
mov rcx, rbx
call fcn.140235010
lea rsi, [rsp + 0x30]
lea rdi, [rax + 0x10]
mov rbx, rax
mov qword [rsp + 0x20], rsi
mov rdx, qword [rax]
mov rax, qword [rax + 8]
cmp rdx, rdi
je 0x140068958
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x10]
mov qword [rsp + 0x30], rdx
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
cmp rcx, rax
je 0x1400688f9
call fcn.140267160
mov rcx, qword [rsp + 0x20]
mov rbx, qword [sym.imp.msvcrt.dll__mkdir]
call rbx
movabs rax, 0x3fffffffffffffff
sub rax, qword [rsp + 0x28]
cmp rax, 6
jbe 0x140068980
lea rcx, [rsp + 0x20]
mov r8d, 7
lea rdx, str._.cache
call fcn.140235010
mov rcx, qword [rsp + 0x20]
call rbx
mov rcx, qword [rsp + 0x20]
cmp rcx, rsi
je 0x14006894a
call fcn.140267160
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, [rax + 1]
mov rax, 0xffffffffffffffff
test r8, r8
je 0x1400688d1
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 8]
jmp 0x1400688d1
lea rcx, [0x1402941a0]
call fcn.140269760
lea rcx, [0x1402941a0]
call fcn.140269760
mov rcx, qword [rsp + 0x40]
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rcx, rax
je 0x1400689af
call fcn.140267160
mov rcx, rbx
call fcn.14010b2f0
mov rcx, qword [rsp + 0x20]
mov rbx, rax
cmp rcx, rsi
jne 0x1400689aa
jmp 0x1400689af

Function at 0x140070780
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x130
xor eax, eax
mov ecx, 0x1e
mov r8d, 0x104
mov qword [rsp + 0x20], 0
lea rdi, [rsp + 0x30]
rep stosq qword [rdi], rax
lea rcx, str._PROGRAMFILES_NVIDIA_CorporationNVSMI_nvml.dll
mov qword [rsp + 0x28], 0
mov dword [rdi], 0
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [0x1402faf60]
mov rcx, rdi
call fcn.1400ab2c0
test eax, eax
sete al
add rsp, 0x130
pop rdi
ret
Function at 0x140087b50
Capabilities:
Get system firmware table

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rbp, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov rdi, rcx
mov ecx, 0x52534d42
call rbp
mov r12, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
call r12
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140087c51
xor edx, edx
mov r9d, esi
mov r8, rax
mov ecx, 0x52534d42
call rbp
cmp esi, eax
jne 0x140087c40
movzx eax, byte [rbx + 1]
movzx edx, byte [rbx + 2]
lea rsi, [0x140087ad0]
mov rcx, rdi
movq xmm0, rsi
lea rsi, [rsp + 0x20]
shl edx, 8
shl eax, 0x10
mov r8, rsi
add eax, edx
movzx edx, byte [rbx + 3]
add eax, edx
lea rdx, [rbx + 8]
mov dword [rdi + 0x5c], eax
mov eax, dword [rbx + 4]
mov qword [rsp + 0x28], 0
mov dword [rdi + 0x58], eax
lea rax, [0x140087b20]
movq xmm1, rax
mov qword [rsp + 0x20], rbx
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x30], xmm0
call fcn.1400879e0
mov ebx, eax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140087c2f
mov r8d, 3
mov rdx, rsi
mov rcx, rsi
call rax
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140088c70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
test dl, dl
jne 0x140088ca8
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov rax, rsi
mov r8d, 0x3000
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rax, [rcx - 1]
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r9d, 0x40
and rax, 0xffffffffffe00000
mov r8d, 0x20003000
lea rdx, [rax + 0x200000]
call rsi
test rax, rax
je 0x140088c84
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140088d80
Capabilities:
Manipulate user privileges

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
test rcx, rcx
jne 0x140088d98
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call fcn.140088b40
mov edx, eax
mov eax, 1
test edx, edx
je 0x140088dc0
mov byte [0x1402fafb0], al
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140088de8
xor eax, eax
jmp 0x140088da8
lea rsi, [rsp + 0x50]
mov edx, 1
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rdi
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x140088e48
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov qword [rsp + 0x20], rsi
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140088da8
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov edx, 1
mov rbx, rax
mov r9d, dword [rsp + 0x50]
mov r8, rax
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140088ddd
pxor xmm0, xmm0
xor ecx, ecx
lea r9, [rsp + 0x38]
mov rdx, rsi
mov r8d, 0xf0fff
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x140088ec0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140088da8
lea rsi, str.SeLockMemoryPrivilege
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov r9d, 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
lea edx, [rax + 1]
movzx ecx, ax
mov eax, edx
mov rdx, qword [rbx]
shl eax, 0x10
or eax, ecx
mov rcx, qword [rsp + 0x38]
movd xmm0, eax
psllw xmm0, 1
movd dword [rsp + 0x40], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
je 0x140088f18
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
jmp 0x140088eaf
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
mov ecx, 5
call fcn.1400116f0
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140088b40
test eax, eax
setne al
jmp 0x140088da8