joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014540
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x40
mov rbp, qword [rcx]
lea rax, [rsp + 0x60]
xor r14d, r14d
mov rbx, rdx
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x60], r14d
lea r8d, [r14 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140014669
mov rdx, qword [rbx]
mov qword [rsp + 0x68], rsi
mov rsi, qword [rbx + 8]
mov rcx, rsi
mov qword [rsp + 0x70], rdi
mov edi, dword [rsp + 0x60]
sub rcx, rdx
cmp rdi, rcx
jae 0x1400145ab
lea rax, [rdx + rdi]
jmp 0x1400145da
jbe 0x1400145de
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x1400145c6
mov rdx, rdi
mov rcx, rbx
call fcn.140015000
jmp 0x1400145de
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rsi
call fcn.140027290
lea rax, [rdi + rsi]
mov qword [rbx + 8], rax
mov r9, qword [rbx]
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esi, eax
test eax, eax
je 0x14001465f
mov rbp, qword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rbp
mov edi, dword [rsp + 0x60]
sub rcx, rdx
cmp rdi, rcx
jae 0x14001462a
lea rcx, [rdx + rdi]
mov qword [rbx + 8], rcx
jmp 0x14001465d
jbe 0x14001465d
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x140014645
mov rdx, rdi
mov rcx, rbx
call fcn.140015000
jmp 0x14001465d
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.140027290
lea rax, [rdi + rbp]
mov qword [rbx + 8], rax
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
Function at 0x140014bb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rdx + 8]
xor ebx, ebx
sub rbp, qword [rdx]
mov r15, rdx
mov r12, qword [r8 + 8]
mov r13, r8
mov qword [rcx], rbx
mov r14, rcx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov rdx, qword [rdx + 8]
sub rdx, qword [r15]
je 0x140014c34
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x140014c77
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
call fcn.140009770
mov rdx, qword [r15]
mov rdi, qword [r15 + 8]
mov rsi, qword [r14]
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call fcn.140026bf0
lea rax, [rdi + rsi]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov qword [r14 + 8], rax
test rbp, rbp
je 0x140014c61
mov r8, qword [r13]
nop dword [rax]
xor edx, edx
mov rax, rbx
div r12
mov rax, qword [r15]
movzx ecx, byte [rdx + r8]
xor cl, byte [rax + rbx]
mov rax, qword [r14]
mov byte [rbx + rax], cl
inc rbx
cmp rbx, rbp
jb 0x140014c40
mov rbx, qword [rsp + 0x70]
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140006060
int3
Function at 0x140015550
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x78], 0x105
mov ecx, 0x20a
call fcn.140036b8c
mov rbx, rax
test rax, rax
je 0x1400155c9
nop dword [rax]
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov esi, eax
test eax, eax
jne 0x1400155dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140015735
mov rcx, rbx
call fcn.140036b78
mov ecx, dword [rsp + 0x78]
add rcx, rcx
call fcn.140036b8c
mov rbx, rax
test rax, rax
jne 0x140015580
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor r15d, r15d
mov edi, r15d
movabs r14, 0x5c003a0041
mov qword [rsp + 0x80], r14
lea eax, [rdi + 0x41]
mov word [rsp + 0x80], ax
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x14001564f
mov rdx, rbp
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov esi, eax
test eax, eax
jne 0x14001565c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.____Not_mounted:__s_____s__error:_0x_X_n
call fcn.140001db0
inc edi
cmp edi, 0x1a
jae 0x140015735
jmp 0x1400155f2
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.___Mounted:__s_____s_n
call fcn.140001db0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140015693
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140001ef0
nop
mov rdx, qword [0x140061c98]
cmp rdx, qword [0x140061ca0]
je 0x1400156e6
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x20], r15w
add qword [0x140061c98], 0x20
jmp 0x1400156fc
lea r8, [rsp + 0x20]
lea rcx, [0x140061c90]
call fcn.14000c060
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140015735
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015730
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015755
call fcn.140024d14
test rbx, rbx
je 0x140015742
mov rcx, rbx
call fcn.140036b78
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140035a34
int3
Function at 0x140015760
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov r10, rcx
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
movzx eax, byte [rdx + 2]
movzx r9d, byte [rdx + 3]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx + 1]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx]
shl r9d, 8
or r9d, eax
mov dword [rcx + 0x10], r9d
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x18], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [r10 + 0x2c], ecx
mov qword [r10 + 0x30], rax
movzx eax, byte [r8 + 2]
movzx ecx, byte [r8 + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x38], ecx
movzx eax, byte [r8 + 6]
movzx ecx, byte [r8 + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 4]
shl ecx, 8
or ecx, eax
mov rax, r10
mov dword [r10 + 0x3c], ecx
ret
Function at 0x140018040
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x48
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x40], rdi
jb 0x14001805a
mov rcx, qword [rcx]
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001814f
cmp qword [0x140061d30], 0x10
lea rdx, [0x140061d18]
mov r8d, dword [0x140061d28]
lea r9, [rsp + 0x60]
cmovae rdx, qword [0x140061d18]
mov rcx, rax
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x60]
mov rsi, qword [0x140061d28]
test eax, eax
je 0x140018108
cmp rcx, rsi
jne 0x140018108
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400180ec
mov rdx, qword [rbx]
lea rcx, str.___Requirements__Created:__s_n
call fcn.140001db0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
jmp 0x140018171
mov qword [rsp + 0x68], rbp
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140018123
mov rdx, qword [rbx]
mov r9, rbp
mov qword [rsp + 0x20], rsi
mov r8d, eax
lea rcx, str.____Requirements__Can_t_write:__s__error:_0x_X___zu__zu_n
call fcn.140001db0
mov rbp, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
jmp 0x140018171
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140018162
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Requirements__Can_t_open:__s__error:_0x_X_n
call fcn.140001db0
mov rdi, qword [rsp + 0x40]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400181b1
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400181ac
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400181d5
mov rcx, r8
call fcn.140024d14
mov edx, 0x20
mov qword [rbx + 0x10], r14
mov rcx, rbx
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
add rsp, 0x48
pop r14
pop rbx
jmp fcn.140024d14
call fcn.140035a34
int3
Function at 0x14001fb50
Capabilities:
Create restart manager session
Enumerate processes that use resource
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.1400181e0

Function at 0x140021440
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rbx, rcx
xor r15d, r15d
mov dword [rbp - 0x19], r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov esi, 1
mov dword [rbp - 0x19], esi
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
mov edi, r15d
movabs r12, 0x7ffffffffffffffe
bt r14d, edi
jae 0x140021607
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov r8d, 2
lea rdx, [0x140056bec]
lea rcx, [rbp - 0x11]
call fcn.140001ef0
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
add word [rax], di
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [rax - 2]
test ecx, 0xfffffffa
jne 0x1400215cb
cmp eax, 7
je 0x1400215cb
mov rax, r12
mov rcx, qword [rbp - 1]
sub rax, rcx
cmp rax, 4
jb 0x140021631
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 4
lea r9, str.__
lea rcx, [rbp + 0xf]
call fcn.1400087a0
or esi, 2
mov dword [rbp - 0x19], esi
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14002158e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021589
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002163d
call fcn.140024d14
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rbp + 0x1f]
movups xmmword [rbp - 1], xmm1
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x1400215bb
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.140002140
add qword [rbx + 8], 0x20
jmp 0x1400215cb
lea r8, [rbp - 0x11]
mov rdx, rax
mov rcx, rbx
call fcn.140022bf0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140021607
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140021602
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021637
call fcn.140024d14
inc edi
cmp edi, 0x1a
jb 0x140021496
mov rax, rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400016c0
nop
call fcn.140035a34
nop
call fcn.140035a34
int3
Function at 0x140021650
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x40], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, r14d
nop dword [rax + rax]
bt esi, edi
jae 0x140021842
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov r8d, 2
lea rdx, [0x140056bec]
lea rcx, [rsp + 0x20]
call fcn.140001ef0
nop
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rax, qword [rsp + 0x20]
add word [rax], di
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x140021804
mov dword [rbp + 0x7a8], 0x404
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea r8, [rbp + 0x7a8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x1400217f5
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140021760
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001ef0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400217a8
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x48], r14w
add qword [rbx + 8], 0x20
jmp 0x1400217ba
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.14000c060
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140021804
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400217ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021868
call fcn.140024d14
jmp 0x140021804
mov edx, eax
lea rcx, str.____WNetGetConnection_failed_0x_X_n
call fcn.140001db0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140021842
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14002183d
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002186e
call fcn.140024d14
inc edi
cmp edi, 0x1a
jb 0x1400216a0
mov rax, rbx
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140035a34
nop
call fcn.140035a34
int3
Function at 0x140021eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor r12d, r12d
mov rsi, qword [r8]
mov r8, rsi
lea edx, [r12 + 0x65]
lea rcx, str.____Get_resource_with_id__i_and_type__s..._n
call fcn.140001db0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140022036
mov r8, rsi
lea edx, [r12 + 0x65]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140022036
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140022036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x140022036
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov esi, r12d
mov qword [rsp + 0x38], r12
test eax, eax
je 0x140021f97
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140009770
mov r8d, ebx
xor edx, edx
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.140027290
lea r15, [rbx + rdi]
mov qword [rsp + 0x30], r15
mov rsi, qword [rsp + 0x38]
jmp 0x140021fa1
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
sub r15, rdi
mov r8, r15
mov rdx, rbp
mov rcx, rdi
call fcn.140026bf0
mov byte [r14], 1
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
test r15, r15
je 0x140022000
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x140022081
mov rdx, r15
lea rcx, [r14 + 8]
call fcn.140009770
mov rbx, qword [r14 + 8]
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.140026bf0
lea rax, [r15 + rbx]
mov qword [r14 + 0x10], rax
test rdi, rdi
je 0x140022059
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x140022029
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002207b
mov rdx, rsi
mov rcx, rdi
call fcn.140024d14
jmp 0x140022059
mov r8, rsi
mov edx, 0x65
lea rcx, str.____Resource_with_id__i_and_type__s_not_found_n
call fcn.140001db0
mov byte [r14], r12b
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
call fcn.140035a34
nop
call fcn.140006060
nop
int3
Function at 0x140022090
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov rdx, rcx
jb 0x1400220ad
mov rdx, qword [rcx]
lea rcx, str.____Run_sync_command:__s_n
call fcn.140001db0
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
mov rdx, rbx
cmp qword [rbx + 0x18], 8
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0x50], xmm0
jb 0x14002210a
mov rdx, qword [rbx]
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400221a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14002215b
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Failed_to_run_sync_command:__s__error_0x_X_n
call fcn.140001db0
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400221a5
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400221a0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002221c
mov rcx, r8
call fcn.140024d14
xor al, al
jmp 0x1400221fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400221fa
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400221f5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002221c
mov rcx, r8
call fcn.140024d14
mov al, 1
mov word [rbx], di
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
call fcn.140035a34
int3
Function at 0x1400225e0
Capabilities:
Create process on windows
Get explorer pid
Spoof parent pid

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xe8
mov rbx, rcx
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140022600
mov rdx, qword [rcx]
lea rcx, str.____RunNonElevated:__s_n
call fcn.140001db0
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rsp + 0x118]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x118]
xor edx, edx
mov ecx, 0x80
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x128], rax
lea r9, [rsp + 0x120]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rsp + 0x120]
call fcn.140024d60
mov rsi, rax
lea r9, [rsp + 0x120]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x128]
xor edx, edx
mov r8d, 0x20000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
mov dword [rsp + 0xd4], eax
mov qword [rsp + 0xd8], rsi
mov dword [rsp + 0x70], 0x70
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140022703
mov rdx, qword [rbx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80010
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test eax, eax
jne 0x140022763
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140022754
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Failed_to_RunNonElevated:__s__error_0x_X_n
call fcn.140001db0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140024d14
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400227d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400227cb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400227ef
mov rcx, r8
call fcn.140024d14
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
movzx eax, dil
add rsp, 0xe8
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140035a34
int3