joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001120
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov dword [rsp + 0x20], 0xf0000000
mov rbp, rdx
mov rsi, rcx
mov ebx, 1
lea rcx, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000124f
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000124f
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000124f
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x30], 0x10
lea edx, [rbx + 1]
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000124f
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140001218
lea rcx, [rsp + 0x48]
mov r8d, eax
sub rdi, rcx
lea rdx, [rsp + 0x48]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor ecx, ecx
cmp byte [rdi + rdx - 1], al
cmove ecx, ebx
mov ebx, ecx
sub r8, 1
jne 0x140001200
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001a40
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call fcn.140005c28
int3

Function at 0x140001260
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword gs:[0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax + 0x20]
sub rbx, 0x10
cmp qword [rbx + 0x30], 0
je 0x140001377
nop word [rax + rax]
mov r8, qword [rbx + 0x50]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [r8 + rdx*2], 0
jne 0x1400012c0
inc rdx
lea rcx, [rsp + 0x20]
mov r9, 0xffffffffffffffff
call fcn.140005f1c
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea rax, [rsp + 0x20]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400012f6
add rdx, rdx
lea rcx, [rsp + 0x20]
call fcn.140005ec8
lea rax, [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140001320
add rdx, rdx
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.140001120
test eax, eax
jne 0x140001352
mov rbx, qword [rbx + 0x10]
sub rbx, 0x10
cmp qword [rbx + 0x30], 0
je 0x140001377
jmp 0x1400012b0
mov rax, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001a40
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
xor ecx, ecx
call fcn.140005c28
int3
Function at 0x140001380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x20]
mov r15d, dword [rdi + 0x1c]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140001427
nop dword [rax]
mov ecx, dword [r14 + rbx*4]
mov rdx, 0xffffffffffffffff
add rcx, rsi
nop
inc rdx
cmp byte [rcx + rdx], 0
jne 0x1400013e0
mov r8, r13
call fcn.140001120
test eax, eax
jne 0x1400013fe
inc ebx
cmp ebx, dword [rdi + 0x18]
jae 0x140001427
jmp 0x1400013d0
movzx eax, word [r12 + rbx*2]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, dword [r15 + rax*4]
add rax, rsi
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ecx, ecx
call fcn.140005c28
int3
Function at 0x140001a17
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x14000243c
Capabilities:
Parse pe header

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

Function at 0x140005c28
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005a93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005a93
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005a93
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005a93
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005a93
cmp dword [rcx + 0x84], 0xe
jbe 0x140005a93
cmp dword [rcx + 0xf8], 0
je 0x140005a93
mov ecx, ebx
call fcn.140005b44
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005920
nop
cmp dword [rbp + 0x20], 0
je 0x140005ae1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005aec
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005a24
Function at 0x140009f6c
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 0x140009f9c
xor eax, eax
jmp 0x14000a05f
mov rbp, rbx
cmp word [rax], si
je 0x140009fc1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009fa8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009fa4
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.140009e8c
movsxd r14, eax
test eax, eax
jne 0x140009fff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009f95
mov rcx, r14
call fcn.140007a74
mov rdi, rax
test rax, rax
jne 0x14000a018
xor ecx, ecx
call fcn.140007a38
jmp 0x140009ff4
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.140009e8c
test eax, eax
jne 0x14000a049
mov rcx, rdi
call fcn.140007a38
jmp 0x14000a053
xor ecx, ecx
call fcn.140007a38
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 0x14000d300
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.140005c34
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000d38a
cmp byte [rbp - 0x21], r15b
je 0x14000d385
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000d3c0
call fcn.14000b4dc
test eax, eax
jne 0x14000d3ac
cmp byte [rbp - 0x21], r15b
je 0x14000d3a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000d3c0
cmp byte [rbp - 0x21], r15b
je 0x14000d3bd
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.1400085d8
test eax, eax
jne 0x14000d460
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140005c34
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000d3ff
cmp byte [rbp - 0x21], r15b
je 0x14000d434
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000d434
call fcn.14000b4dc
test eax, eax
jne 0x14000d420
cmp byte [rbp - 0x21], r15b
je 0x14000d419
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000d434
cmp byte [rbp - 0x21], r15b
je 0x14000d431
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.1400085d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000d460
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000d463
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000d471
mov rcx, rdi
call fcn.140007a38
cmp byte [rbp + 0x3f], r15b
je 0x14000d480
mov rcx, qword [rbp + 0x27]
call fcn.140007a38
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 0x1400102b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400102d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400102d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
invalid
or ecx, 0x3e
jrcxz 0x14002326d
mov ebx, 0x8fb99578
xor al, byte [rdx + rax*2 + 0x6e6c080e]
sub eax, 0x7ffda6a3
sti
push rbp
mov esi, ds
cli
mov edx, dword [rdi]
mov ch, 0x4b
push rsi
jno 0x1400232a7
invalid
Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, r9d
mov edi, r8d
mov rsi, rdx
lea r8, str.VirtualAlloc_intercepted__
mov rbp, rcx
lea rdx, str.VirtualAlloc_intercepted__
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9d, ebx
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_VirtualAlloc]

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
lea r8, str.VirtualAllocEx_intercepted__
mov rbp, rcx
lea rdx, str.VirtualAllocEx_intercepted__
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_VirtualAllocEx]

Function at 0x180001570
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov esi, edx
lea r8, str.InternetOpenW_intercepted__
mov rbp, rcx
lea rdx, str.InternetOpenW_intercepted__
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9, rbx
mov r8, rdi
mov edx, esi
mov rcx, rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.WININET.dll_InternetOpenW]

Function at 0x180001650
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r9
mov edi, r8d
mov rsi, rdx
lea r8, str.InternetReadFile_intercepted__
mov rbp, rcx
lea rdx, str.InternetReadFile_intercepted__
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9, rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WININET.dll_InternetReadFile]
Function at 0x140a26a40
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140a26a4a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140a26a73
pop rbp
sub rbp, 0x33
sub rbp, 0xa26a40
sub rsp, 0x20
jmp 0x140a26a92
mov rax, 0xa26a40
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffff9f3abc
xor byte [rax], dl
inc rax
dec rcx
jne 0x140a26ab1
jmp 0x140a26ac8
hlt
Function at 0x14001115e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1400195b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14003436d]
call fcn.14001182a
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x1400195ec
mov rcx, qword [rbp + 0x100]
call fcn.1400111a4
jmp 0x140019607
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x140019607
mov rcx, qword [rbp + 0x100]
call fcn.14001140b
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011253
Capabilities:
Create process on windows

Disassembly:
jmp 0x14001b5e0
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x140034386]
call fcn.14001182a
lea rax, str.cleanmgr.exe
mov qword [rbp + 8], rax
lea rax, str._sagerun:65535
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
mov dword [rbp + 0x50], 0x70
mov dword [rbp + 0x54], 0x40
mov qword [rbp + 0x58], 0
lea rax, str.open
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x80], 5
mov qword [rbp + 0x88], 0
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14001b6c0
mov edx, 0xffffffff
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001b6cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd4], eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140027e20]
call fcn.1400116bd
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x1400112d0
Capabilities:
Get token membership

Disassembly:
jmp 0x1400164e0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14003423d]
call fcn.14001182a
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov byte [rbp + 0x44], 0
mov byte [rbp + 0x45], 0
mov byte [rbp + 0x46], 0
mov byte [rbp + 0x47], 0
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x49], 5
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x44]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14001659d
xor al, al
jmp 0x1400165e5
lea r8, [rbp + 4]
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400165b8
mov dword [rbp + 4], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 4], 1
jne 0x1400165d4
mov dword [rbp + 0x114], 1
jmp 0x1400165de
mov dword [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140026a70]
call fcn.1400116bd
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140011334
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400199a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x400], rax
mov dword [rbp + 0x3e4], 0
lea rcx, [0x140034386]
call fcn.14001182a
lea rdx, str.SYSTEMCurrentControlSetControlIDConfigDBHardware_Profiles0001
lea rcx, [rbp + 0x28]
call fcn.140011393
nop
lea rdx, str.HwProfileGuid
lea rcx, [rbp + 0x68]
call fcn.140011393
nop
lea rcx, [rbp + 0xa8]
call fcn.140011811
nop
lea rcx, [rbp + 0x28]
call fcn.1400110be
lea rcx, [rbp + 8]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140019ab0
mov dword [rbp + 0x204], 0x100
lea rcx, [rbp + 0x68]
call fcn.1400110be
lea rcx, [rbp + 0x204]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0xf0]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140019aa6
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0xa8]
call fcn.14001104b
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 0xa8]
call fcn.140011708
sub rax, 2
mov r9, rax
mov r8d, 1
mov rdx, qword [rbp + 0x430]
lea rcx, [rbp + 0xa8]
call fcn.140011433
mov qword [rbp + 0x3f8], rax
mov eax, dword [rbp + 0x3e4]
or eax, 1
mov dword [rbp + 0x3e4], eax
lea rcx, [rbp + 0xa8]
call fcn.140011181
nop
lea rcx, [rbp + 0x68]
call fcn.140011181
nop
lea rcx, [rbp + 0x28]
call fcn.140011181
mov rax, qword [rbp + 0x430]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140027a20]
call fcn.1400116bd
mov rax, rdi
mov rcx, qword [rbp + 0x400]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x14001140b
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14001ac10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x14003436d]
call fcn.14001182a
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14001ac54
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14001ace5
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14001acaa
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001acb4
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14001ac49
mov qword [rbp + 0x88], 0xe3
jmp 0x14001ad03
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14001adac
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x14001ad68
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001ad72
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14001acf2
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14001ae0c
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14001ae16
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret