joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076784
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x10
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x28], rdx
mov ecx, edx
mov r8d, dword [rsp + 0x2c]
xor r10d, r10d
movups xmmword [rsp], xmm0
mov edx, dword [rsp + 0xc]
mov r11d, dword [rsp + 8]
mov ebx, dword [rsp + 4]
mov r9d, dword [rsp]
mov eax, edx
ror ecx, 8
add ecx, r8d
mov edx, ebx
xor ecx, r9d
ror edx, 8
add edx, r9d
rol r8d, 3
xor edx, r10d
rol r9d, 3
xor r9d, edx
xor r8d, ecx
inc r10d
mov ebx, r11d
mov r11d, eax
cmp r10d, 0x1b
jb 0x1400767b1
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], r8d
mov rax, qword [rsp + 0x28]
add rsp, 0x10
pop rbx
ret

Function at 0x1400767f8
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
test r9d, r9d
je 0x140076946
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x10
mov r11, rcx
lea rax, [rbp - 0x10]
sub r11, rax
lea r14, [rdx + 0xf]
mov rdi, r8
mov r12d, 0x10
lea rax, [rbp - 0x10]
cmp rax, r14
ja 0x14007684f
lea rax, [rbp - 1]
cmp rax, rdx
jb 0x14007684f
movups xmm0, xmmword [rdx]
movdqu xmmword [rbp - 0x10], xmm0
jmp 0x140076857
movups xmm0, xmmword [rdx]
movdqu xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov r8d, 4
mov eax, dword [r11 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x140076861
mov r8d, dword [rbp - 4]
mov rbx, r12
mov eax, dword [rbp - 8]
mov r10d, dword [rbp - 0xc]
mov ecx, dword [rbp - 0x10]
add ecx, r10d
add eax, r8d
rol r10d, 5
xor r10d, ecx
rol r8d, 8
xor r8d, eax
rol ecx, 0x10
add eax, r10d
add ecx, r8d
rol r10d, 7
rol r8d, 0xd
xor r10d, eax
xor r8d, ecx
rol eax, 0x10
sub rbx, 1
jne 0x140076882
mov dword [rbp - 4], r8d
lea r8d, [rbx + 4]
mov dword [rbp - 0x10], ecx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0xc], r10d
mov dword [rbp - 8], eax
mov eax, dword [rcx + r11]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x1400768cc
cmp r9d, r12d
mov ecx, r9d
cmova ecx, r12d
mov r10d, ecx
test ecx, ecx
je 0x14007690a
lea rbx, [rbp - 0x10]
mov r8, rdi
sub rbx, rdi
mov esi, r10d
mov al, byte [rbx + r8]
xor byte [r8], al
inc r8
sub rsi, 1
jne 0x1400768fa
sub r9d, ecx
mov r8d, r12d
add rdi, r10
lea eax, [r8 - 1]
add byte [rax + rdx], 1
jne 0x140076925
dec r8d
test r8d, r8d
jg 0x140076913
test r9d, r9d
jne 0x140076833
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x10
pop r14
pop r12
pop rbp
ret
Function at 0x140076948
Capabilities:
Decompress data using aplib

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
mov al, byte [rcx]
or r14d, 0xffffffff
and dword [rbp - 0xc], 0
xor r9d, r9d
mov byte [rdx], al
xor edi, edi
lea rax, [rdx + 1]
mov rbx, rdx
mov qword [rbp - 0x18], rax
mov r11d, r14d
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea esi, [rdi + 1]
lea rcx, [rbp - 0x20]
call fcn.140076b8c
test eax, eax
je 0x140076b48
lea rcx, [rbp - 0x20]
call fcn.140076b8c
test eax, eax
je 0x140076a4e
lea rcx, [rbp - 0x20]
call fcn.140076b8c
test eax, eax
je 0x140076a0a
xor r9d, r9d
lea r10d, [r9 + 4]
lea rcx, [rbp - 0x20]
call fcn.140076b8c
lea r9d, [rax + r9*2]
sub r10d, esi
jne 0x1400769c3
test r9d, r9d
je 0x1400769f7
mov rdx, qword [rbp - 0x18]
mov rax, rdx
mov ecx, r9d
sub rax, rcx
mov al, byte [rax]
mov byte [rdx], al
add rdx, rsi
mov qword [rbp - 0x18], rdx
jmp 0x140076b62
mov rax, qword [rbp - 0x18]
mov byte [rax], 0
add rax, rsi
mov qword [rbp - 0x18], rax
jmp 0x140076b62
mov rax, qword [rbp - 0x20]
movzx r11d, byte [rax]
add rax, rsi
mov ecx, r11d
mov qword [rbp - 0x20], rax
and ecx, esi
add ecx, 2
shr r11d, 1
je 0x140076a47
mov rdx, qword [rbp - 0x18]
mov r8d, r11d
neg r8
mov al, byte [r8 + rdx]
mov byte [rdx], al
add rdx, rsi
add ecx, r14d
jne 0x140076a30
mov qword [rbp - 0x18], rdx
jmp 0x140076b43
mov edi, esi
jmp 0x140076b43
mov r10d, esi
lea rcx, [rbp - 0x20]
call fcn.140076b8c
lea rcx, [rbp - 0x20]
lea r10d, [rax + r10*2]
call fcn.140076b8c
test eax, eax
jne 0x140076a51
test r9d, r9d
jne 0x140076ab8
cmp r10d, 2
jne 0x140076ab8
mov r9d, esi
lea rcx, [rbp - 0x20]
call fcn.140076b8c
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call fcn.140076b8c
test eax, eax
jne 0x140076a79
test r9d, r9d
je 0x140076b43
mov rcx, qword [rbp - 0x18]
mov edx, r11d
neg rdx
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, rsi
add r9d, r14d
jne 0x140076aa6
jmp 0x140076b3f
mov rcx, qword [rbp - 0x20]
xor r9d, esi
sub r10d, r9d
mov r9d, esi
shl r10d, 8
movzx r11d, byte [rcx]
add r11d, 0xfffffe00
add r11d, r10d
add rcx, rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x20]
call fcn.140076b8c
lea rcx, [rbp - 0x20]
lea r9d, [rax + r9*2]
call fcn.140076b8c
test eax, eax
jne 0x140076ade
cmp r11d, 0x7d00
lea eax, [r9 + 1]
cmovb eax, r9d
cmp r11d, 0x500
lea ecx, [rax + 1]
cmovb ecx, eax
cmp r11d, 0x80
lea r8d, [rcx + 2]
cmovae r8d, ecx
test r8d, r8d
je 0x140076b43
mov rcx, qword [rbp - 0x18]
mov edx, r11d
neg rdx
mov al, byte [rdx + rcx]
mov byte [rcx], al
add rcx, rsi
add r8d, r14d
jne 0x140076b32
mov qword [rbp - 0x18], rcx
mov r9d, esi
jmp 0x140076b65
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
mov al, byte [rdx]
mov byte [rcx], al
add rcx, rsi
add rdx, rsi
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rdx
xor r9d, r9d
test edi, edi
je 0x14007698d
mov eax, dword [rbp - 0x18]
mov rsi, qword [rsp + 0x58]
sub eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
Function at 0x1400795d5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [rsp + 0x18]
mov edx, dword [rsp + 0x1c]
push rbx
push rbp
push rsi
mov esi, dword [rsp + 0x20]
xor ebx, ebx
push rdi
lea edi, [rsp + 0x10]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
mov ecx, dword [rsp + 0x14]
mov esi, dword [rsp + 0x1c]
mov ebp, dword [rsp + 0x18]
mov edi, dword [rsp + 0x10]
mov dword [rsp + 0x28], ecx
mov ecx, esi
ror eax, 8
mov esi, dword [rsp + 0x28]
add eax, edx
ror esi, 8
xor eax, edi
add esi, edi
rol edx, 3
xor esi, ebx
rol edi, 3
xor edx, eax
mov dword [rsp + 0x28], ebp
xor edi, esi
mov ebp, ecx
cmp r11d, 0x1b
jb 0x140079606
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0x10
ret

Function at 0x140079638
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
mov edx, dword [rsp + 0x10]
sub esp, 0x14
push rbx
mov ebx, dword [rsp + 0x20]
push rbp
mov ebp, dword [rsp + 0x28]
test edx, edx
je 0x14007973d
xor eax, eax
lea ecx, [rbx + 0xf]
mov dword [rsp + 0x2c], ecx
sub eax, ebx
push rsi
mov dword [rsp + 0xc], eax
push rdi
lea eax, [rsp + 0x14]
cmp eax, ecx
ja 0x14007966f
lea eax, [rsp + 0x23]
mov esi, ebx
lea edi, [rsp + 0x14]
xor ecx, ecx
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
mov esi, dword [rsp + 0x28]
mov eax, dword [rsi + rcx*4]
xor dword [rsp + rcx*4 + 0x14], eax
cmp r9d, 4
jb 0x14007967f
mov esi, dword [rsp + 0x20]
mov eax, dword [rsp + 0x1c]
mov edi, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x14]
mov dword [rsp + 0x30], 0x10
add ecx, edi
add eax, esi
rol edi, 5
xor edi, ecx
rol esi, 8
xor esi, eax
rol ecx, 0x10
add eax, edi
add ecx, esi
rol edi, 7
rol esi, 0xd
xor edi, eax
xor esi, ecx
rol eax, 0x10
sub dword [rsp + 0x30], 1
jne 0x1400796a4
mov ebx, dword [rsp + 0x28]
mov dword [rsp + 0x14], ecx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x18], edi
mov dword [rsp + 0x1c], eax
mov eax, dword [rbx + rcx*4]
xor dword [rsp + rcx*4 + 0x14], eax
cmp r9d, 4
jb 0x1400796e3
push 0x10
pop rsi
cmp edx, esi
mov ecx, edx
cmova ecx, esi
test ecx, ecx
je 0x140079713
lea edi, [rsp + 0x14]
mov esi, ebp
sub edi, ebp
mov ebx, ecx
mov al, byte [rdi + rsi]
xor byte [rsi], al
sub ebx, 1
jne 0x140079708
mov ebx, dword [rsp + 0x10]
sub edx, ecx
add ebp, ecx
mov ecx, dword [rsp + 0x34]
add byte [rcx], 1
jne 0x14007972c
lea rax, [r11 + rcx]
test eax, eax
jg 0x14007971f
mov ebx, dword [rsp + 0x2c]
lea ecx, [rbx + 0xf]
test edx, edx
jne 0x140079663
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0x14
ret
Function at 0x140079743
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [rsp + 0x18]
and dword [rsp + 0x10], 0
push rbx
push rbp
mov ebp, dword [rsp + 0x24]
mov al, byte [rcx]
push rsi
push rdi
mov byte [rbp], al
or edi, 0xffffffff
lea eax, [rbp + 1]
xor esi, esi
mov dword [rsp + 0x18], eax
xor ebx, ebx
lea eax, [rcx + 1]
mov dword [rsp + 0x10], ebx
mov dword [rsp + 0x14], eax
lea eax, [rsp + 0x14]
push rax
call fcn.1400798e6
pop rcx
test eax, eax
je 0x1400798ba
lea eax, [rsp + 0x14]
push rax
call fcn.1400798e6
test eax, eax
lea eax, [rsp + 0x18]
pop rcx
push rax
je 0x140079819
call fcn.1400798e6
pop rcx
test eax, eax
je 0x1400797dd
push 4
xor esi, esi
pop rbx
lea eax, [rsp + 0x14]
push rax
call fcn.1400798e6
pop rcx
lea esi, [rax + rsi*2]
sub ebx, 1
jne 0x1400797ab
mov edx, dword [rsp + 0x18]
test esi, esi
je 0x1400797d0
mov eax, edx
sub eax, esi
mov al, byte [rax]
mov byte [rdx], al
jmp 0x1400797d3
mov byte [rdx], 0
mov ebx, dword [rsp + 0x10]
jmp 0x1400798cc
mov eax, dword [rsp + 0x14]
mov edx, dword [rsp + 0x18]
movzx edi, byte [rax]
mov ecx, edi
mov dword [rsp + 0x14], eax
and ecx, 1
add ecx, 2
shr edi, 1
je 0x14007980d
mov esi, edx
sub esi, edi
mov al, byte [rsi]
mov byte [rdx], al
sub ecx, 1
jne 0x1400797fd
jmp 0x1400798b1
xor ebx, ebx
mov dword [r12 + r12 + 0x10], ebx
jmp 0x1400798b5
call fcn.14007991d
mov edx, eax
pop rcx
test esi, esi
jne 0x140079850
cmp edx, 2
jne 0x140079850
lea eax, [rsp + 0x14]
push rax
call fcn.14007991d
mov edx, dword [rsp + 0x1c]
mov esi, eax
pop rcx
test esi, esi
je 0x1400798b5
mov ecx, edx
sub ecx, edi
mov al, byte [rcx]
mov byte [rdx], al
sub r14d, 1
jne 0x140079843
jmp 0x1400798b1
mov ecx, dword [rsp + 0x14]
lea eax, [rsp + 0x14]
xor esi, 1
sub edx, esi
shl edx, 8
movzx edi, byte [rcx]
add edi, 0xfffffe00
add edi, edx
push r8
mov dword [rsp + 0x18], ecx
call fcn.14007991d
pop rcx
mov ecx, eax
cmp edi, 0x7d00
jb 0x140079882
mov edx, dword [r12 + 0x18]
mov edx, dword [rsp + 0x18]
lea eax, [rcx + 1]
cmp edi, 0x500
cmovb eax, ecx
cmp edi, 0x80
lea esi, [rax + 2]
cmovae esi, eax
test esi, esi
je 0x1400798b5
mov ecx, edx
sub ecx, edi
mov al, byte [rcx]
mov byte [rdx], al
sub r14d, 1
jne 0x1400798a6
mov dword [rsp + 0x18], edx
xor esi, esi
jmp 0x1400798d2
mov ecx, dword [rsp + 0x14]
mov edx, dword [rsp + 0x18]
mov al, byte [rcx]
mov byte [rdx], al
mov dword [r12 + 0x14], ecx
xor esi, esi
mov dword [rsp + 0x18], edx
test ebx, ebx
je 0x140079775
pop rdi
pop rsi
sub edx, ebp
pop rbp
mov eax, edx
pop rbx
add esp, 0x14
ret
Function at 0x140002170
Capabilities:
Encode data using xor

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
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a450
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a501
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000de3c
cmp rax, 1
jne 0x14000a537
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a4dd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a4d0
cmp rcx, 1
jb 0x14000a537
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a4a0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bad0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000db40
int3
Function at 0x14000a5c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a605
xor al, al
jmp 0x14000a652
cmp word [rbx], 0
je 0x14000a61d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a610
cmp word [rsp + 0x30], 0
je 0x14000a64b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a673
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a630
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bad0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000db40
int3
Function at 0x14000af50
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001c380
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002dd30]
lea rsi, [0x14002fd70]
mov rdi, rcx
test r11d, r11d
jne 0x14000afc9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a680
test al, al
je 0x14000b0af
lea rcx, [rsp + 0x20]
call fcn.14001146c
movsxd r11, dword [0x14002dd30]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002dd30], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b004
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000aff4
add rax, 2
test ecx, ecx
jne 0x14000afe0
test edx, edx
je 0x14000b027
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000afd4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b010
cmp rax, 2
jne 0x14000b02b
cmp word [rdi + 2], 0x3a
jne 0x14000b02b
mov al, 1
jmp 0x14000b08e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b058
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b058
mov bl, 1
jmp 0x14000b05c
test bl, bl
je 0x14000b083
cmp dword [0x14002dd30], 0x400
jge 0x14000b083
mov rcx, rdi
call fcn.14001146c
movsxd rdx, dword [0x14002dd30]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002dd30], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bad0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000adf0
int3
Function at 0x14000b1d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd38]
test rcx, rcx
je 0x14000b20b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b1fe
mov rcx, qword [0x14002dd38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031d88], 0
je 0x14000b2fe
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400259f0]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002dd70]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b2df
test al, 0x10
je 0x14000b2df
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b285
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000db34
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d9c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d9c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d9c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d9c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d9c7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d9c7
cmp dword [rcx + 0xf8], 0
je 0x14000d9c7
mov ecx, ebx
call fcn.14000da68
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d858
cmp dword [rbp + 0x20], 0
je 0x14000da14
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000da1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d960
Function at 0x140001130
Capabilities:
Enumerate process modules
Find taskbar
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
mov eax, 0x2280
call fcn.14001a6f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rcx
xor edx, edx
lea rcx, [0x140024a78]
call qword [sym.imp.USER32.dll_FindWindowW]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8, [rsp + 0x34]
mov dword [r14], ebx
mov edx, 0x2000
mov qword [r14 + 4], 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x34]
shr rbp, 2
test rbp, rbp
je 0x140001250
mov qword [rsp + 0x2298], rdi
mov qword [rsp + 0x2290], rsi
mov edi, dword [rsp + rbx*4 + 0x60]
cmp edi, dword [rsp + 0x30]
jne 0x140001238
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001238
mov r8d, 0x104
lea rdx, [rsp + 0x2060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rax, qword [rsp + 0x38]
cmp eax, dword [r14 + 4]
jae 0x14000122f
mov dword [r14], edi
mov qword [r14 + 4], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp rbx, rbp
jl 0x1400011c2
mov rdi, qword [rsp + 0x2298]
mov rsi, qword [rsp + 0x2290]
mov rax, r14
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.1400050c0
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140001280
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov eax, 0x2a48
call fcn.14001a6f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
lea r8, [0x14002bde0]
xor edx, edx
lea rcx, [0x14002aa80]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14000134c
lea rcx, [rsp + 0x40]
call fcn.140001130
mov ecx, dword [0x14002aa80]
mov r9d, 1
xor r8d, r8d
xor edx, edx
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov ecx, dword [0x14002aa80]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10
lea rdx, [rsp + 0x58]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp dword [rsp + 0x54], 0
jne 0x14000134c
mov ecx, dword [0x14002aa80]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
xor eax, eax
mov rcx, qword [rsp + 0x2a30]
xor rcx, rsp
call fcn.1400050c0
add rsp, 0x2a48
ret
Function at 0x140001660
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140024ab0]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call fcn.14000df40
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400050c0
add rsp, 0x308
ret