joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400927d0
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 0x140092800
xor eax, eax
jmp 0x1400928c3
mov rbp, rbx
cmp word [rax], si
je 0x140092825
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009280c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140092808
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.1400910d8
movsxd r14, eax
test eax, eax
jne 0x140092863
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400927f9
mov rcx, r14
call fcn.14008d8c0
mov rdi, rax
test rax, rax
jne 0x14009287c
xor ecx, ecx
call fcn.14008ac34
jmp 0x140092858
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.1400910d8
test eax, eax
jne 0x1400928ad
mov rcx, rdi
call fcn.14008ac34
jmp 0x1400928b7
xor ecx, ecx
call fcn.14008ac34
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 0x1400955f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14008a6cc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140095691
cmp ebx, dword [rsp + 0x30]
je 0x14009568a
test esi, esi
je 0x14009568a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140095665
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140095672
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009564f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140095676
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140095693
mov eax, 1
jmp 0x140095693
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140099770
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14008af6c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008af6c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400998c0
cmp rax, 0xffffffffffffffff
je 0x1400998c0
xor edi, edi
test rbp, rbp
jle 0x14009986b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008aa2c
mov rbx, rax
test rax, rax
jne 0x1400997f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140099861
mov edx, 0x8000
mov ecx, r14d
call fcn.14008880c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14008d1b4
cmp eax, 0xffffffff
je 0x140099841
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140099808
mov edx, r15d
mov ecx, r14d
call fcn.14008880c
jmp 0x140099861
cmp byte [rsi + 0x38], dil
je 0x140099858
cmp dword [rsi + 0x34], 5
jne 0x140099858
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140099861
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008ac34
jmp 0x1400998d4
jns 0x1400998d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008af6c
cmp rax, 0xffffffffffffffff
jne 0x14009988c
cmp byte [rsi + 0x30], dil
je 0x1400998d4
mov edi, dword [rsi + 0x2c]
jmp 0x1400998d4
mov ecx, r14d
call fcn.14009309c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400998d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400998d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400998cd
mov eax, dword [rsi + 0x2c]
jmp 0x1400998d2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008af6c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14009a320
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002a9a0]
mov dword [rax], 1
mov rax, qword [0x14002a9b0]
mov dword [rax], 1
mov rax, qword [0x14002a9c0]
mov dword [rax], 1
mov rax, qword [0x14002a940]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003530
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400310a8]
test rcx, rcx
je 0x14000356b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140003590
mov rcx, qword [0x1400310a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400420e0], 0
jne 0x1400035a8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400310a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000355e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x1400260de]
mov qword [rsp + 0x20], 0
lea rdi, [0x140042100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003674
test al, 0x10
je 0x140003574
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140003574
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140003620
jmp 0x140003574
Function at 0x14002924c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1411f1000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x1411f100a
jmp 0x1411f300f
jmp fcn.140b96058
Function at 0x403690
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x690
lea rdi, fcn.00722b30
xor r9d, r9d
movq xmm0, rdi
mov r10, qword [rdx]
mov r11, qword [rdx + 8]
mov rdx, qword [r8 + 8]
mov rax, qword [r8]
lea rsi, [rsp + 0x80]
lea r13, [rsp + 0x40]
mov qword [rsp + 0x38], rdx
mov rbx, rcx
movq xmm1, rsi
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rdx, r13
punpcklqdq xmm0, xmm1
mov qword [rsp + 0x40], r10
movaps xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x0087bb10]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x70], xmm0
call fcn.00722070
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov r12d, eax
mov ecx, eax
call qword [sym.imp.msvcrt.dll__isatty]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
test eax, eax
jne 0x403778
mov r9, rbx
mov r8, rbp
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, rbp
jb 0x40389c
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
cmp rcx, rsi
je 0x40375f
call fcn.0086bab0
nop
add rsp, 0x690
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rsp + 0x40], rcx
mov rdx, r13
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x48], rbp
call fcn.004019e0
mov rax, qword [rsp + 0x290]
mov dword [rsp + 0x5c], 0
mov ecx, r12d
mov r13, 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, r13
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x40380a
lea rax, fcn.00722c50
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x40374a
call fcn.0086bab0
jmp 0x40374a
mov ecx, 0x10
call fcn.0086bbe0
lea rdx, str.failed_to_write_to_console
mov rcx, rax
mov r13, rax
call fcn.00818b10
lea rax, [0x00924dc0]
lea r8, [0x00401770]
mov rcx, r13
mov qword [r13], rax
lea rdx, [0x0091ff00]
call fcn.0086c380
mov r12, rax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
cmp rcx, rsi
je 0x40385e
call fcn.0086bab0
mov rcx, r12
call fcn.00704b70
mov rcx, r13
mov r12, rax
call fcn.0086bf30
lea rax, fcn.00722c50
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x40384a
call fcn.0086bab0
jmp 0x40384a
mov ecx, 0x18
call fcn.0086bbe0
mov r14, rax
call qword [sym.imp.msvcrt.dll__errno]
mov edx, dword [rax]
lea rbx, str.cannot_write_to_file
mov r8, r13
mov rcx, r14
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0x14
call fcn.00722a90
lea r8, [0x004017b0]
lea rdx, [0x0091ff20]
mov rcx, r14
call fcn.0086c380
mov r12, rax
jmp 0x403871
Function at 0x40dee0
Capabilities:
Set console window title

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
lea rax, [0x00924fd0]
mov qword [rcx], rax
mov rbx, rcx
mov r13, rdx
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 1
call fcn.006ac0f0
cmp eax, 0xe
je 0x40df38
cmp eax, 7
je 0x40df38
mov rax, qword [0x0091c950]
mov byte [rax], 0
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
mov ecx, 0x158
call fcn.0086bb00
mov qword [rbx + 8], rax
mov r12, rax
call fcn.0069e710
xor r9d, r9d
mov r8d, 1
mov rdx, r12
mov rcx, rax
call fcn.006bb7f0
test eax, eax
js 0x40df1d
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.006bd740
mov rax, qword [rbx + 8]
mov ecx, 0xfffffff6
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x40dfa7
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x40dfe8
cmp byte [r13], 0
je 0x40df27
lea rcx, [rsp + 0x20]
mov rdx, r13
call fcn.00412a20
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x40df27
call fcn.0086baa0
jmp 0x40df27
mov edx, dword [rsp + 0x20]
mov rcx, r12
and edx, 0xffffffbf
mov dword [rsp + 0x20], edx
or dl, 0x80
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
jmp 0x40dfa7
Function at 0x458fb0
Capabilities:
Get system firmware table

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rdi, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov r12, rcx
mov ecx, 0x52534d42
call rdi
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
call rbp
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x4590c8
xor edx, edx
mov r9d, esi
mov r8, rax
mov ecx, 0x52534d42
call rdi
cmp esi, eax
jne 0x4590a0
movzx eax, byte [rbx + 1]
lea rdi, [0x00458f50]
lea r13, [rsp + 0x20]
mov rcx, r12
movq xmm0, rdi
mov r8, r13
shl eax, 0x10
mov edx, eax
movzx eax, byte [rbx + 2]
shl eax, 8
add eax, edx
movzx edx, byte [rbx + 3]
add eax, edx
lea rdx, [rbx + 8]
mov dword [r12 + 0x5c], eax
mov eax, dword [rbx + 4]
mov qword [rsp + 0x20], rbx
mov dword [r12 + 0x58], eax
lea rax, [0x00458f80]
movq xmm1, rax
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x30], xmm0
call fcn.00458e60
mov r12d, eax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x45908e
mov r8d, 3
mov rdx, r13
mov rcx, r13
call rax
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call rbp
xor r12d, r12d
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r12d, r12d
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

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

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

Disassembly:
push r13
push r12
push rbx
add rsp, 0xffffffffffffff80
test rcx, rcx
jne 0x45a2a0
sub rsp, 0xffffffffffffff80
pop rbx
pop r12
pop r13
ret
call fcn.0045a040
mov r8d, eax
mov eax, 1
test r8d, r8d
je 0x45a2c8
mov byte [0x00994a60], al
sub rsp, 0xffffffffffffff80
pop rbx
pop r12
pop r13
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
je 0x45a33a
lea r12, [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], r12
mov rbx, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rbx
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x45a350
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 1
call rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov byte [0x00994a60], al
jmp 0x45a2b8
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov edx, 1
mov r13, rax
mov r9d, dword [rsp + 0x50]
mov r8, rax
call rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x45a33a
xor ecx, ecx
lea r9, [rsp + 0x38]
mov r8d, 0xf0fff
mov rdx, r12
mov qword [r12], 0
mov qword [r12 + 8], 0
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x18], 0
mov qword [r12 + 0x20], 0
mov qword [r12 + 0x28], 0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x45a3e8
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x45a33c
lea rcx, str.SeLockMemoryPrivilege
lea rbx, str.SeLockMemoryPrivilege
call sub.msvcrt.dll_wcslen
mov rcx, qword [rsp + 0x38]
mov r9d, 1
lea r8, [rsp + 0x40]
lea edx, [rax + rax]
lea eax, [rax + rax + 2]
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x40], dx
mov rdx, qword [r13]
mov word [rsp + 0x42], ax
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
je 0x45a43a
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
jmp 0x45a3d5
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
mov ecx, 5
call fcn.0040e900
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0045a040
test eax, eax
setne al
jmp 0x45a2b2
Function at 0x45b1c0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov ecx, dword [rcx + 0x30]
mov byte [rsp + 0x60], r8b
mov rsi, rdx
mov eax, dword [rbx + 0x38]
xor edx, edx
mov byte [rsp + 0x68], r9b
mov r8d, ecx
add r8d, eax
setb dl
add edx, dword [rbx + 0x34]
bswap edx
mov dword [rsp + 0x28], edx
mov edx, r8d
bswap edx
mov dword [rsp + 0x2c], edx
cmp eax, 0x1b8
je 0x45b3b0
cmp eax, 0x1b7
jg 0x45b358
test eax, eax
je 0x45b348
sub r8d, 0x1b8
lea rdx, [0x0088c3a0]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x1b8
sub r8d, eax
movsxd r8, r8d
call fcn.0045afd0
lea rdx, [rsp + 0x68]
mov r8d, 8
mov rcx, rbx
call fcn.0045afd0
mov eax, dword [rbx + 0x30]
sub eax, 8
sub eax, 0x40
lea rdx, [rsp + 0x28]
mov r8d, 0x40
mov rcx, rbx
mov dword [rbx + 0x30], eax
call fcn.0045afd0
mov eax, dword [rbx]
shr eax, 0x18
mov byte [rsi], al
mov eax, dword [rbx]
shr eax, 0x10
mov byte [rsi + 1], al
mov eax, dword [rbx]
mov byte [rsi + 2], ah
mov eax, dword [rbx]
mov byte [rsi + 3], al
movzx eax, byte [rbx + 7]
mov byte [rsi + 4], al
movzx eax, word [rbx + 6]
mov byte [rsi + 5], al
mov eax, dword [rbx + 4]
mov byte [rsi + 6], ah
mov eax, dword [rbx + 4]
mov byte [rsi + 7], al
movzx eax, byte [rbx + 0xb]
mov byte [rsi + 8], al
movzx eax, word [rbx + 0xa]
mov byte [rsi + 9], al
mov eax, dword [rbx + 8]
mov byte [rsi + 0xa], ah
mov eax, dword [rbx + 8]
mov byte [rsi + 0xb], al
movzx eax, byte [rbx + 0xf]
mov byte [rsi + 0xc], al
movzx eax, word [rbx + 0xe]
mov byte [rsi + 0xd], al
mov eax, dword [rbx + 0xc]
mov byte [rsi + 0xe], ah
mov eax, dword [rbx + 0xc]
mov byte [rsi + 0xf], al
movzx eax, byte [rbx + 0x13]
mov byte [rsi + 0x10], al
movzx eax, word [rbx + 0x12]
mov byte [rsi + 0x11], al
mov eax, dword [rbx + 0x10]
mov byte [rsi + 0x12], ah
mov eax, dword [rbx + 0x10]
mov byte [rsi + 0x13], al
movzx eax, byte [rbx + 0x17]
mov byte [rsi + 0x14], al
movzx eax, word [rbx + 0x16]
mov byte [rsi + 0x15], al
mov eax, dword [rbx + 0x14]
mov byte [rsi + 0x16], ah
mov eax, dword [rbx + 0x14]
mov byte [rsi + 0x17], al
movzx eax, byte [rbx + 0x1b]
mov byte [rsi + 0x18], al
movzx eax, word [rbx + 0x1a]
mov byte [rsi + 0x19], al
mov eax, dword [rbx + 0x18]
mov byte [rsi + 0x1a], ah
mov eax, dword [rbx + 0x18]
mov byte [rsi + 0x1b], al
movzx eax, byte [rbx + 0x1f]
mov byte [rsi + 0x1c], al
movzx eax, word [rbx + 0x1e]
mov byte [rsi + 0x1d], al
mov eax, dword [rbx + 0x1c]
mov byte [rsi + 0x1e], ah
mov eax, dword [rbx + 0x1c]
mov byte [rsi + 0x1f], al
add rsp, 0x38
pop rbx
pop rsi
ret
mov dword [rbx + 0x3c], 1
jmp 0x45b217
sub r8d, 0x200
lea rdx, [0x0088c3a0]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
mov r8d, 0x200
sub r8d, eax
movsxd r8, r8d
call fcn.0045afd0
sub dword [rbx + 0x30], 0x1b8
mov r8d, 0x1b8
mov rcx, rbx
lea rdx, [0x0088c3a1]
call fcn.0045afd0
mov dword [rbx + 0x3c], 1
jmp 0x45b23d
sub ecx, 8
lea rdx, [rsp + 0x60]
mov r8d, 8
mov dword [rbx + 0x30], ecx
mov rcx, rbx
call fcn.0045afd0
mov eax, dword [rbx + 0x30]
jmp 0x45b256
Function at 0x45b820
Capabilities:
Hash data using sha256

Disassembly:
push r12
push rbx
sub rsp, 0xb8
movdqa xmm0, xmmword [0x0088c530]
movaps xmmword [rsp + 0x30], xmm0
lea r12, [rsp + 0x30]
shl r8, 3
mov rbx, rcx
movdqa xmm0, xmmword [0x0088c540]
mov rcx, r12
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
movaps xmmword [rsp + 0x40], xmm0
pxor xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
call fcn.0045afd0
mov ecx, dword [rsp + 0x60]
mov eax, dword [rsp + 0x68]
xor edx, edx
mov byte [rsp + 0x26], 0x81
mov r8d, ecx
mov byte [rsp + 0x27], 1
add r8d, eax
setb dl
add edx, dword [rsp + 0x64]
bswap edx
mov dword [rsp + 0x28], edx
mov edx, r8d
bswap edx
mov dword [rsp + 0x2c], edx
cmp eax, 0x1b8
je 0x45b9d8
cmp eax, 0x1b7
jg 0x45b980
test eax, eax
je 0x45b970
sub r8d, 0x1b8
lea rdx, [0x0088c3a0]
mov rcx, r12
mov dword [rsp + 0x60], r8d
mov r8d, 0x1b8
sub r8d, eax
movsxd r8, r8d
call fcn.0045afd0
lea rdx, [rsp + 0x27]
mov r8d, 8
mov rcx, r12
call fcn.0045afd0
mov eax, dword [rsp + 0x60]
sub eax, 8
sub eax, 0x40
lea rdx, [rsp + 0x28]
mov r8d, 0x40
mov rcx, r12
mov dword [rsp + 0x60], eax
call fcn.0045afd0
mov eax, dword [rsp + 0x30]
bswap eax
mov dword [rbx], eax
mov eax, dword [rsp + 0x34]
bswap eax
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x38]
bswap eax
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x3c]
bswap eax
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x40]
bswap eax
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x44]
bswap eax
mov dword [rbx + 0x14], eax
mov eax, dword [rsp + 0x48]
bswap eax
mov dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x4c]
bswap eax
mov dword [rbx + 0x1c], eax
add rsp, 0xb8
pop rbx
pop r12
ret
mov dword [rsp + 0x6c], 1
jmp 0x45b8c1
sub r8d, 0x200
lea rdx, [0x0088c3a0]
mov rcx, r12
mov dword [rsp + 0x60], r8d
mov r8d, 0x200
sub r8d, eax
movsxd r8, r8d
call fcn.0045afd0
mov r8d, 0x1b8
mov rcx, r12
lea rdx, [0x0088c3a1]
sub dword [rsp + 0x60], 0x1b8
call fcn.0045afd0
mov dword [rsp + 0x6c], 1
jmp 0x45b8e8
sub ecx, 8
lea rdx, [rsp + 0x26]
mov r8d, 8
mov dword [rsp + 0x60], ecx
mov rcx, r12
call fcn.0045afd0
mov eax, dword [rsp + 0x60]
jmp 0x45b902