joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016130
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
sub rsp, 0x7b8
call fcn.140015d90
test eax, eax
jne 0x14001615e
lea rcx, str.This_program_must_be_run_as_an_administrator._nClosing...
call fcn.140014570
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x140016275
call fcn.140015f20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov edx, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400161ae
lea rcx, str.Failed_to_open_access_token_n
call fcn.140014570
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x140016275
mov r8d, 1
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rsp + 0x28]
call fcn.140015e20
test eax, eax
jne 0x1400161e7
lea rcx, str.Failed_to_set_privilege_s__n
call fcn.140014570
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x140016275
lea rcx, [rsp + 0x40]
call fcn.140009390
nop
lea rcx, str._injector____init__Loading..._n
call fcn.140014570
lea rcx, [rsp + 0x40]
call fcn.14000eaa0
movzx eax, al
test eax, eax
jne 0x14001623e
lea rcx, str._injector____init__Failed_n
call fcn.140014570
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call fcn.14000a550
mov eax, dword [rsp + 0x20]
jmp 0x140016275
lea rcx, [rsp + 0x40]
call fcn.14000e600
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140013980
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.14000a550
mov eax, dword [rsp + 0x24]
add rsp, 0x7b8
ret

Function at 0x14001c1e0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
mov qword [rsp + 8], 0
jmp 0x14001c20d
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
cmp qword [rsp + 8], rax
jae 0x14001c243
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 8]
movzx eax, byte [rax + rcx]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
jmp 0x14001c200
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x14003c580
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
mov qword [rsp + 8], 0
jmp 0x14003c5ad
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 8], rax
jae 0x14003c5e2
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
jmp 0x14003c5a0
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x140047b00
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x811c9dc5
mov qword [rsp + 8], 0
jmp 0x140047b2d
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x80]
cmp qword [rsp + 8], rax
jae 0x140047b62
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
imul eax, dword [rsp], 0x1000193
mov dword [rsp], eax
jmp 0x140047b20
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x140083d50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rsp, 0x28
ret

Function at 0x140090880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x60], 0
je 0x1400909c6
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
cmp qword [rax + 8], rcx
jb 0x1400909c6
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
cmp eax, 5
jge 0x140090902
lea r9, [0x14026cb58]
mov r8d, 0x8c
lea rdx, [0x14026cb70]
lea rcx, [0x14026cbb8]
call fcn.140019010
test eax, eax
je 0x140090902
int3
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 4
test eax, eax
jne 0x140090930
mov rax, qword [rsp + 0x20]
add rax, 0x10
mov rcx, qword [rsp + 0x20]
cmp qword [rcx + 8], rax
jne 0x140090957
lea r9, [0x14026cbd8]
mov r8d, 0x8d
lea rdx, [0x14026cbf0]
lea rcx, str._isblack_o___upisopen_uv_
call fcn.140019010
test eax, eax
je 0x140090957
int3
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
and eax, 0xb
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx + 0x20]
xor ecx, 3
and ecx, 3
cmp eax, ecx
jne 0x14009099d
lea r9, str.luaF_close
mov r8d, 0x8e
lea rdx, [0x14026cc70]
lea rcx, str._isdead_g__o_
call fcn.140019010
test eax, eax
je 0x14009099d
int3
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x20]
mov qword [rax + 0x60], rcx
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.1400909d0
jmp 0x14009089c
add rsp, 0x48
ret
Function at 0x1400a2030
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0x85ebca6b
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xd
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0xc2b2ae35
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 6]
mov ecx, 1
mov dword [rsp + 0x24], ecx
movzx ecx, al
mov eax, dword [rsp + 0x24]
shl eax, cl
mov rcx, qword [rsp + 0x50]
movzx ecx, byte [rcx + 6]
mov edx, 1
shl edx, cl
mov ecx, edx
dec ecx
and eax, ecx
test eax, eax
je 0x1400a2101
lea r9, str.hashpointer
mov r8d, 0x49
lea rdx, [0x14027b780]
lea rcx, [0x14027b7e0]
call fcn.140019010
test eax, eax
je 0x1400a2101
int3
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 6]
mov ecx, 1
mov dword [rsp + 0x28], ecx
movzx ecx, al
mov eax, dword [rsp + 0x28]
shl eax, cl
dec eax
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
cdqe
imul rax, rax, 0x20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x1401aba70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4b8
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1401abb68
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1401abb68
mov qword [rsp + 0x20], 0
jmp 0x1401abaf5
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x4d8]
call fcn.14003c250
cmp qword [rsp + 0x20], rax
jae 0x1401abb63
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x4d8]
call fcn.14002aec0
mov rcx, rax
call fcn.14000d880
mov rdx, rax
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1401abb61
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x4d0]
mov rsi, rax
mov ecx, 0x238
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x4d0]
jmp 0x1401abba9
jmp 0x1401abae8
jmp 0x1401abac5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x270]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
lea rax, [rsp + 0x270]
mov rdi, qword [rsp + 0x4d0]
mov rsi, rax
mov ecx, 0x238
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x4d0]
add rsp, 0x4b8
pop rdi
pop rsi
ret
Function at 0x1401abbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
lea rcx, [rsp + 0xb0]
call fcn.1401abe90
nop
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140007830
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
call fcn.14000d3e0
mov qword [rsp + 0x68], rax
jmp 0x1401abc1a
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x28], rax
je 0x1401abe70
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rdx, [0x1402b4808]
lea rcx, [rsp + 0xe8]
call fcn.140009dd0
nop
lea rdx, [0x1402b480c]
lea rcx, [rsp + 0xc8]
call fcn.140009dd0
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14000d880
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
call fcn.1401aba40
mov qword [rsp + 0x70], rax
jmp 0x1401abc96
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
je 0x1401abcce
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movzx edx, ax
lea rcx, [rsp + 0xe8]
call fcn.14000b160
jmp 0x1401abc88
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.14000d880
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x58]
call fcn.1401aba40
mov qword [rsp + 0x78], rax
jmp 0x1401abd09
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x38], rax
je 0x1401abd41
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movzx edx, ax
lea rcx, [rsp + 0xc8]
call fcn.14000b160
jmp 0x1401abcfb
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xe8]
call fcn.14000e2a0
cmp rax, 0xffffffffffffffff
je 0x1401abe50
cmp qword [rsp + 0x128], 0
je 0x1401abe0c
mov r8d, 0x1000
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0x98]
call fcn.140008e90
lea rcx, [rsp + 0x98]
call fcn.14000ddf0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x98]
call fcn.14000ddf0
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x38]
mov rcx, qword [rsp + 0x128]
mov qword [rcx], rax
lea rcx, [rsp + 0x98]
call fcn.14000aae0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xc8]
call fcn.14000a8c0
nop
lea rcx, [rsp + 0xe8]
call fcn.14000a8c0
nop
lea rcx, [rsp + 0xb0]
call fcn.1401ab800
mov rax, qword [rsp + 0x90]
jmp 0x1401abe7f
lea rcx, [rsp + 0xc8]
call fcn.14000a8c0
nop
lea rcx, [rsp + 0xe8]
call fcn.14000a8c0
jmp 0x1401abc0c
lea rcx, [rsp + 0xb0]
call fcn.1401ab800
xor eax, eax
add rsp, 0x118
ret
Function at 0x1401abe90
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x22a8
call fcn.1401f3250
sub rsp, rax
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x22b0]
call fcn.14000a2c0
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea r9, [rsp + 0x28]
mov r8d, 0x2000
lea rdx, [rsp + 0x2a0]
mov rcx, qword [0x1402f3118]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1401abfb2
mov dword [rsp + 0x20], 0
jmp 0x1401abf02
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x28]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
jae 0x1401abfb2
mov eax, dword [rsp + 0x20]
mov r9d, 0x104
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + rax*8 + 0x2a0]
mov rcx, qword [0x1402f3118]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1401abfad
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140009dd0
nop
mov eax, dword [rsp + 0x20]
lea rax, [rsp + rax*8 + 0x2a0]
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1401ab200
nop
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x22b0]
call fcn.1401ac440
nop
lea rcx, [rsp + 0x60]
call fcn.1401ab7e0
nop
lea rcx, [rsp + 0x40]
call fcn.14000a8c0
jmp 0x1401abef8
mov rax, qword [rsp + 0x22b0]
add rsp, 0x22a8
ret
Function at 0x1401af490
Capabilities:
Hash data using murmur3

Disassembly:
mov dword [rsp + 8], ecx
mov eax, dword [rsp + 8]
shr eax, 0xf
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
imul eax, dword [rsp + 8], 0x85ebca77
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shr eax, 0xd
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
imul eax, dword [rsp + 8], 0xc2b2ae3d
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shr eax, 0x10
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
ret
Function at 0x1401f3b64
Capabilities:
Parse pe header

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

Function at 0x140a5c4e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140a5c4ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140a5c4fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140a5c4e5
lea eax, [rcx + 1]
jmp 0x140a5c50b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140a5c51e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140a5c504
sub eax, 3
jb 0x140a5c53e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140a5c58d
sar eax, 1
movsxd rbp, eax
jb 0x140a5c574
jmp 0x140a5c54c
add ebx, ebx
jne 0x140a5c54a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140a5c574
inc ecx
add ebx, ebx
jne 0x140a5c55a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140a5c574
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140a5c56d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140a5c55c
add ecx, 2
jmp 0x140a5c579
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140a5c4a2
jmp 0x140a5c4ed
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa58000]
mov eax, dword [rdi]
or eax, eax
je 0x140a5c5f5
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa5c000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140a5c599
jns 0x140a5c5ce
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140a5c5d8
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140a5c5ef
mov qword [rbx], rax
add rbx, 8
jmp 0x140a5c5b9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140a5c639
cmp al, 0xef
ja 0x140a5c621
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140a5c601
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140a5c610
mov eax, dword [rdi]
add rdi, 4
jmp 0x140a5c610
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140a5c68d
sub rsp, 0xffffffffffffff80
jmp 0x1405d6380
Function at 0x140006480
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400064a1
mov eax, 0xff
call fcn.140001a80
xor byte [rsi], al
jne 0x140006491
pop rsi
pop rbx
ret

Function at 0x140011be4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov rsi, rdx
mov ebp, ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
lea rdx, str._ls__Reinvoke
lea rcx, [rsp + 0x50]
call fcn.1400b4ccc
mov edi, eax
test eax, eax
js 0x140011cb9
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, ebp
call fcn.140011ac8
mov edi, eax
test eax, eax
jns 0x140011c84
mov rcx, qword [0x140158280]
lea rax, [0x140158280]
cmp rcx, rax
je 0x140011c6e
test byte [rcx + 0x1c], 1
je 0x140011c6e
mov r9, qword [rsp + 0x50]
lea r8, [0x14011f438]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], edi
call fcn.140005648
mov rdx, qword [rsp + 0x50]
lea rcx, str.ERROR:_RunWithRestrictedPriv__s__Failed__lx_n
mov r8d, edi
call fcn.1400ae8a0
jmp 0x140011cb9
mov rcx, qword [0x140158280]
lea rax, [0x140158280]
cmp rcx, rax
je 0x140011cb7
test byte [rcx + 0x1c], 4
je 0x140011cb7
mov r9, qword [rsp + 0x50]
lea r8, [0x14011f438]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.140005570
xor edi, edi
cmp qword [rsp + 0x50], 0
je 0x140011ccb
mov rcx, qword [rsp + 0x50]
call fcn.1400e9470
mov rbp, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140011eb4
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14015da88]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x30], 0
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov r15, r8
mov r14d, edx
mov dword [rsp + 0x38], 0x104
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 0xf]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r13, [0x140158280]
test eax, eax
jne 0x140011f64
call fcn.1400b4f5c
mov edi, eax
mov rcx, qword [0x140158280]
cmp rcx, r13
je 0x140011f4e
test byte [rcx + 0x1c], 1
je 0x140011f4e
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x12]
mov r9d, eax
lea r8, [0x14011f438]
call fcn.1400059f4
mov edx, edi
lea rcx, str.ERROR:_OpenProcessToken___Failed__lx_n
call fcn.1400ae8a0
test edi, edi
js 0x14001208e
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.1400123d8
mov edi, eax
test eax, eax
jns 0x140011fca
mov rcx, qword [0x140158280]
cmp rcx, r13
je 0x140011fa3
test byte [rcx + 0x1c], 1
je 0x140011fa3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14011f438]
mov edx, 0x13
mov r9d, eax
call fcn.1400059f4
mov edx, edi
lea rcx, str.ERROR:_RestrictTokenPrivileges___Failed__lx_n
call fcn.1400ae8a0
mov rbx, qword [rsp + 0x40]
xor edi, edi
test rbx, rbx
je 0x140011fcf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x140011fcf
mov rbx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov ecx, 0x10002
lea rdx, [rsp + 0x50]
call qword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x140012027
call fcn.1400b4f5c
mov edi, eax
mov rcx, qword [0x140158280]
cmp rcx, r13
je 0x140012019
test byte [rcx + 0x1c], 1
je 0x140012019
mov rcx, qword [rcx + 0x10]
lea r8, [0x14011f438]
mov edx, 0x14
mov r9d, eax
call fcn.1400059f4
mov edx, edi
lea rcx, str.ERROR:_GetUserNameW___Failed__lx_n
call fcn.1400ae8a0
test edi, edi
js 0x14001208e
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x50]
test rbx, rbx
mov qword [rsp + 0x20], r15
mov r9d, r14d
mov rdx, rsi
cmovne rcx, rbx
call fcn.1400120d0
mov edi, eax
test eax, eax
jns 0x14001208c
mov rcx, qword [0x140158280]
cmp rcx, r13
je 0x14001207c
test byte [rcx + 0x1c], 1
je 0x14001207c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14011f438]
mov edx, 0x15
mov r9d, eax
call fcn.1400059f4
mov edx, edi
lea rcx, str.ERROR:_CreateProcessFromToken___Failed__lx_n
call fcn.1400ae8a0
jmp 0x14001208e
xor edi, edi
test rbx, rbx
je 0x14001209c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400120ac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400e9450
add rsp, 0x270
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret