joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c030
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x740
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x138
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x768]
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x718], rax
lea rcx, [0x1400b4100]
call fcn.140021842
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rbp + 0x740]
add rcx, rax
mov rax, rcx
mov dx, 0x5c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14003c0c6
mov rax, qword [rbp + 8]
add rax, 2
mov dx, 0x5c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14003c0d7
mov eax, 0x80004005
jmp 0x14003c229
mov rax, qword [rbp + 8]
movzx eax, word [rax]
mov word [rbp + 0x24], ax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
lea rax, [rbp + 0x280]
lea rcx, [0x14006f854]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x286]
mov rdi, rax
xor eax, eax
mov ecx, 0x202
rep stosb byte [rdi], al
mov eax, 0x41
mov word [rbp + 0x4a4], ax
jmp 0x14003c138
movzx eax, word [rbp + 0x4a4]
inc ax
mov word [rbp + 0x4a4], ax
movzx eax, word [rbp + 0x4a4]
cmp eax, 0x5a
jge 0x14003c219
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rbp + 0x4a4]
mov word [rbp + rax + 0x280], cx
mov eax, 2
imul rax, rax, 0
mov qword [rbp + 0x708], rax
cmp qword [rbp + 0x708], 0x208
jae 0x14003c17f
jmp 0x14003c184
call fcn.1400210fe
xor eax, eax
mov rcx, qword [rbp + 0x708]
mov word [rbp + rcx + 0x50], ax
mov r8d, 0x104
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x14003c214
mov rdx, qword [rbp + 0x740]
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14003c214
lea r8, [0x14006f85c]
mov edx, 0x104
lea rcx, [rbp + 0x280]
call fcn.140020b8b
mov rax, qword [rbp + 8]
add rax, 2
mov r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x280]
call fcn.140020b8b
lea r8, [rbp + 0x280]
mov rdx, qword [rbp + 0x748]
mov rcx, qword [rbp + 0x740]
call fcn.1400213ba
xor eax, eax
jmp 0x14003c229
jmp 0x14003c127
mov rax, qword [rbp + 8]
movzx ecx, word [rbp + 0x24]
mov word [rax], cx
mov eax, 0x80004005
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x718]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x720]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140044f30
Capabilities:
Get hostname

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1400b414a]
call fcn.140021842
mov dword [rbp + 0x24], 0
lea r8, [rbp + 0x24]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [rbp + 0x24]
inc eax
mov eax, eax
mov qword [rbp + 0xf8], rax
mov eax, 2
mov rcx, qword [rbp + 0xf8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140044fc5
xor eax, eax
jmp 0x140044fee
lea r8, [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140044fea
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140044fee
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140073500]
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140045060
Capabilities:
Get hostname

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1400b414a]
call fcn.140021842
mov dword [rbp + 0x24], SafeArrayLock
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0xf8], rax
mov eax, 2
mov rcx, qword [rbp + 0xf8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400450e0
xor eax, eax
jmp 0x140045104
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140045100
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140045104
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140073480]
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140045170
Capabilities:
Get session user name

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1400b414a]
call fcn.140021842
mov dword [rbp + 0x24], 0x101
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0xf8], rax
mov eax, 2
mov rcx, qword [rbp + 0xf8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400451f0
xor eax, eax
jmp 0x140045214
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140045210
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140045214
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140073400]
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x180022c50
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x1800288e0]
syscall
ret
Function at 0x140002dc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008b30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008b30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0a4]
mov rbx, rcx
test esi, esi
jle 0x140002f60
mov rax, qword [0x14000f0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e60
mov rcx, rbx
call fcn.140003880
mov rdi, rax
test rax, rax
je 0x140002f82
mov rax, qword [0x14000f0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002efe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f10
add dword [0x14000f0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002dc0
nop dword [rax]
xor esi, esi
jmp 0x140002e88
mov rax, qword [0x14000f0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002dc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002dc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400034f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f0e0]
test rbx, rbx
je 0x14000354c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003543
test rsi, rsi
je 0x140003543
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003528
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003880
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bd40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400038fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400038f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038a0
add rax, 0x28
cmp rax, r9
jne 0x1400038e0
xor eax, eax
ret

Function at 0x140003900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bd40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000391f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003928
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000391f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400039c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bd40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400039df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400039e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
lea rbp, [rsp - 0x710]
sub rsp, 0x810
lea rax, [rbp + 0x728]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREdialerconfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001099
jmp 0x14000104b

Function at 0x1400010c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3e8]
sub rsp, 0x4b0
mov eax, dword [0x140005010]
lea rdx, [rbp + 0x400]
mov rdi, qword [0x140005008]
mov r14d, ecx
mov dword [rsp + 0x60], eax
xor ebx, ebx
call fcn.1400019ac
test eax, eax
je 0x1400014c5
cmp dword [rbp + 0x400], ebx
je 0x1400014c5
mov r8d, r14d
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400014c5
mov r8d, r14d
xor edx, edx
mov ecx, 0x410
mov r15d, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
add byte [rbp + rcx*4 + 0x6b], al
add dword [rbx + rcx*4 - 0x10], ecx
test rax, rax
je 0x140001208
mov r9d, 0x104
lea r8, [rbp - 0x70]
xor edx, edx
mov rcx, rax
Function at 0x140001c64
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
xor esi, esi
mov word [rbp + 0x73], 0x100
lea rax, [rbp + 0x7f]
mov dword [rbp + 0x6f], esi
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov dword [rsp + 0x48], esi
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x40], esi
xor r9d, r9d
mov dword [rsp + 0x38], esi
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov dl, 1
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001d9c
lea rax, [rbp + 0x17]
mov qword [rbp + 0x77], rax
lea ecx, [rsi + 0x30]
mov rax, qword [rbp + 0x77]
mov byte [rax], sil
mov rax, qword [rbp + 0x77]
inc rax
mov qword [rbp + 0x77], rax
sub rcx, 1
jne 0x140001ccc
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 9]
xor r8d, r8d
mov dword [rbp + 0x17], 0x1f01ff
lea rdx, [rbp + 0x17]
mov qword [rbp + 0x1b], 2
mov dword [rbp + 0x33], esi
mov dword [rbp + 0x37], 5
lea ecx, [r8 + 1]
mov qword [rbp + 0x3f], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140001d9c
lea edx, [rax + 0x28]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001d9c
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140001d9c
mov r8, qword [rbp - 9]
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140001d9c
lea rax, [rbp - 1]
mov dword [rbp - 1], 0x18
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov eax, 0x400
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov r9d, 0xff
mov rcx, rdi
mov dword [rsp + 0x20], eax
lea edx, [r8 + 3]
mov qword [rbp + 7], rbx
mov dword [rbp + 0xf], esi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x140001da0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001db4
Capabilities:
Resolve function by parsing pe exports
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
xor edi, edi
mov r12, rdx
mov r15d, edi
mov r10, rcx

Function at 0x140002078
Capabilities:
Read file via mapping

Disassembly:
test rcx, rcx
je 0x14000228a
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rbx, rcx
lea rdx, [0x140003470]
lea rcx, [rsp + 0x60]
xor r13d, r13d
Function at 0x140002328
Capabilities:
Acquire debug privileges
Extract resource via kernel32 functions
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
lea rcx, str.ntdll.dll
call fcn.140002078
mov edx, 0x11c
lea rax, [rsp + 0x70]
mov ecx, edx
mov qword [rbp + 0xc0], rax
xor edi, edi
mov rax, qword [rbp + 0xc0]
mov byte [rax], dil
mov rax, qword [rbp + 0xc0]
inc rax
mov qword [rbp + 0xc0], rax
sub rcx, 1
jne 0x14000235c
mov dword [rsp + 0x70], edx
mov r8b, 3
lea edx, [rcx + 2]
mov qword [rsp + 0x74], 0xa
mov word [rbp + 0x84], di
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov edx, 0x23
lea rcx, [rsp + 0x70]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea rcx, str.kernel32.dll
call fcn.140002078
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x410
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002486
lea r8, [rbp + 0xc8]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000247d
lea r8, [rbp + 0xb0]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000247d
mov rax, qword [rbp + 0xb0]
lea r8, [rsp + 0x60]
mov rcx, qword [rbp + 0xc8]
mov r9d, 0x10
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x6c], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14000247d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x14000352c]
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x14000269d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x140005010], eax
test eax, eax
je 0x14000269d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000269d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140005008], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, eax
add rsp, 0x190
pop rdi
pop rbx
pop rbp
ret
Function at 0x140002c18
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
lea rcx, str..pipedialercontrol_redirect64
and dword [rax - 0x20], 0
mov edi, r8d
mov rsi, rdx
mov dword [rax - 0x28], 3
xor r8d, r8d
mov edx, 0xc0000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002cad
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rsi, rsi
je 0x140002ca4
test edi, edi
je 0x140002ca4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140009931
Capabilities:
Encode data using base64

Disassembly:
push r14
mov qword [rsp + 0x50], rax
setge r10b
not r15b
shr r10w, 0x55
or r15b, 0x89
movabs rcx, 0x288db39c5ac7330
add qword [rsp + 0x40], 0xfffffffffffd3745
sub r10d, r15d
xor ecx, 0xda2078b5
jg 0x1400c669a

Function at 0x14000996a
Capabilities:
Encode data using base64

Disassembly:
mov word [rsp + r12*8 - 0x56fd72c8], 0x65ba
mov r12, qword [rsp + r9*2 + 0x20]
jge 0x14007ac79

Function at 0x14000d050
Capabilities:
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
add qword [rsp + r10*2 - 0x500], 0xffffffffbff35a33
Function at 0x140012581
Capabilities:
Resolve function by parsing pe exports
Terminate process
Use process replacement

Disassembly:
add qword [rsp + 0x28], 0xffffffffbff4bd3e
call fcn.1400dde1a
mov qword [rsp], 0xffffffffc4d8e4b6
call fcn.1400e7143
add qword [rsp + 8], 0xffffffffbff5681f
movabs r10, 0xd337e99a8002de1f
call fcn.14005f9e0
push r10
ja 0x1400a8110
and qword [rsp + 0x10], 0xffffffffbba63636
add qword [rsp + 8], 0xfffffffffffff50e
movzx r13w, byte [rsp + 0x11]
test r13d, r13d
jbe 0x140078572
test byte [rsp + 0x10], 0xbe
mov rbp, qword [rsp + 0x10]
mov rbp, qword [rsp + 8]
mov qword [rsp + r10 - 0x75873ef6], rcx
xchg qword [rsp + rcx - 0x7587c09a], rax
mov r10, qword [rsp + r10 - 0x75873f06]
or rcx, rdx
cmp byte [rsp + 0x30], 0xc
call fcn.1400a0133
xor qword [rsp + 0x30], 0xffffffffb5127ea7
neg qword [rsp + 0x30]
call fcn.1400c4147
add qword [rsp + 0x10], 0xfffffffffffbcf1f
mov r10, r14
movabs rbp, 0x690440b8bd18ba2e
push r15
add bpl, 0x10
add r10b, r10b
mov rbp, qword [rsp + 0x18]
mov rbp, qword [rbp + riz]
jo 0x140053c3e
cmovg r8w, di
jno 0x1400b9314
push r14
pushfq
movabs r14, 0x3abb0d31273fb7aa
xor r14b, 0x2a
jg 0x14005d6e0
mov qword [rsp + 0x10], 0x4bc8a8f
mov r14, qword [rsp + 8]
popfq
lea rsp, [rsp + 8]
call fcn.1400e7143
add cl, cl
wait
invalid
add word [rsp + 8], r11w
push r14
mov qword [rsp + 0x20], rax
push r12
sub qword [rsp + 0x18], 0xffffffffeb93a795
mov r12, r11
call fcn.1400d565d
jo 0x14007efcd
mov r13d, dword [rsp + rdx - 0x2fde]
lea rdi, [rdi + rdx - 0x4becf54b]
add r13d, r14d
cmp dword [rsp + rdx*4 - 0xbffc], 0x360f921d
not r14
jae 0x14009c013
add word [rsp], r14w
test r14d, esi
add qword [rsp + r14*4 + 0x2a14], 0xfffffffffffd7b9b
call fcn.140091ef6
neg qword [rsp + r14 - 0x6800fea2]
add qword [rsp + r14 - 0x6800fefa], 0xffffffffbff74cd9
xchg qword [rsp + r14 - 0x6800fe9a], rdx
mov r14, qword [rsp + r14 - 0x6800feca]
not word [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
add dword [rsp + 0x60], ebp
add qword [rsp + 0x58], 0xffffffffbffe1e51
call fcn.14008f248

Function at 0x140013705
Capabilities:
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
not r10b
and ebp, 0x43ae782c
not bp
mov rsi, qword [rsp + rbp*8 - 0x4bee0]
mov rsi, qword [rsi + r10*2 - 0x4fe]
setno r10b
jl 0x1400bbb0e
ja 0x140084752
push qword [rsp]
popfq
lea rsp, [rsp + 0x18]
ret
jns 0x14000d05c
or word [rsp + rbp - 0x1d9], 0x3f1c
lea rbp, [rbp + rbp*4 - 0x5b4d45cc]
not ebp
mov rbx, qword [rsp + rbp - 0x5b4d3b9e]
mov rbp, qword [rsp + rbp - 0x5b4d3bae]
call fcn.140053478
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x28]
call fcn.1400e7143

Function at 0x140021bea
Capabilities:
Connect pipe

Disassembly:
jbe fcn.140093fd7
mov r11, qword [rsp + 0x28]
mov qword [rsp + 0x28], rdi
call fcn.1400a1090
jb 0x14006ea1e
shl byte [rsp + 0x30], 0xd
je 0x14001fe69
invalid

Function at 0x14002f360
Capabilities:
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
call fcn.1400b995f
invalid
jne 0x140062f2d
shl r14b, 0x5a
or r14b, 0x99
mov r14, qword [rsp + 0x28]
jbe 0x14005bc4d
je 0x14001b760
call fcn.140096999
mov esp, 0xccccccd2
int3
Function at 0x14004ee96
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
setl bl
mov al, 3
bswap r11
neg ax
push rsi

Function at 0x14004fd63
Capabilities:
Resolve function by parsing pe exports
Terminate process
Use process replacement

Disassembly:
cmovae r11, qword [rsp + 0x38]
mov r9, qword [rsp + 0x18]
not r11d
setg byte [rsp + r11 - 0x2319c8c7]
jbe 0x1400af123
shr r15, 0x4f
Function at 0x140054270
Capabilities:
Execute shellcode via indirect call
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push r8
push r13
mov qword [rsp + 0x30], rdx
ja 0x1400aad32