joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4565e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x456757
movzx edx, byte [rax]
test edx, edx
jne 0x456614
nop dword [rax]
test r8b, r8b
jne 0x456614
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x456627
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x456717
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x456705
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x4566f7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45667d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x4566c0
mov eax, 1
cmp rax, rbx
ja 0x4566ab
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046a700
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x4566ef
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x4566b3
mov rcx, r11
mov eax, r12d
jmp 0x456682
mov rcx, rbx
call fcn.0046a640
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046a640
mov eax, r8d
mov rcx, rbx
call fcn.0046a700
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45674d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x456710
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45662d
mov eax, edx
mov rcx, rbx
call fcn.0046a640
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046a640
nop
int3
Function at 0x45dfa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45e04f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x0045e0a0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00468240
xorps xmm15, xmm15
mov r14, qword [0x00adb030]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00468380
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0045dfa0
Function at 0x46a1c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00adb320]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00adad54], 0
je 0x46a1f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00adb640]
aesenc xmm0, xmmword [0x00adb650]
aesenc xmm0, xmmword [0x00adb660]
movq rax, xmm0
ret
jmp 0x40b4c0
Function at 0x7a7a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00a71c60]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x7a7a7d
mov rcx, r8
call fcn.007a78f0
test eax, eax
je 0x7a7a7d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x7a7a7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x7a7a74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x7a7a7f
add rax, 0x28
cmp rax, r9
jne 0x7a7a60
xor eax, eax
add rsp, 0x28
ret
Function at 0x7a9160
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, r8
mov r12, rdx
mov r14, rcx
test r8, r8
je 0x7a9182
mov byte [r15], 0
mov r8d, dword [r12 + 8]
xor esi, esi
test r8, r8
je 0x7a9389
mov rbp, qword [r12]
test rbp, rbp
je 0x7a9389
movabs rax, 0xc6a4a7935bd1e995
movabs rdx, 0x35253c9ade8f4ca8
imul rdx, r8
movabs rbx, 0x9747b28c9747b28c
xor rbx, rdx
cmp r8d, 1
jne 0x7a91ce
xor edi, edi
jmp 0x7a9225
mov edx, r8d
and edx, 0xfffffffe
xor edi, edi
nop word cs:[rax + rax]
mov rcx, qword [rbp + rdi*8]
imul rcx, rax
mov rsi, rcx
shr rsi, 0x2f
xor rsi, rcx
imul rsi, rax
xor rsi, rbx
imul rsi, rax
mov rcx, qword [rbp + rdi*8 + 8]
imul rcx, rax
mov rbx, rcx
shr rbx, 0x2f
xor rbx, rcx
imul rbx, rax
xor rbx, rsi
imul rbx, rax
add rdi, 2
cmp rdx, rdi
jne 0x7a91e0
test r8b, 1
je 0x7a924c
mov rdx, qword [rbp + rdi*8]
imul rdx, rax
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rax
xor rcx, rbx
imul rcx, rax
mov rbx, rcx
mov ecx, dword [r12 + 0xc]
imul rcx, rax
mov rdx, rcx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, rax
xor rdx, rbx
imul rdx, rax
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rax
mov rdi, rcx
shr rdi, 0x2f
xor rdi, rcx
mov eax, edi
and eax, 0xfffff
lea rbx, [r14 + rax*4]
mov r13d, 0x7fffffff
and r13d, dword [r14 + rax*4]
lea rcx, [r14 + 0x400008]
mov ebp, r13d
nop word cs:[rax + rax]
nop dword [rax + rax]
test ebp, ebp
je 0x7a92f3
mov esi, ebp
mov ebp, ebp
mov rdx, rbp
shr rdx, 0x10
mov rax, qword [r14 + rdx*8 + 0x400010]
test rax, rax
je 0x7a92e2
movzx edx, bp
shl rdx, 4
mov ebp, dword [rax + rdx + 8]
cmp qword [rax + rdx], rdi
jne 0x7a92b0
jmp 0x7a9389
mov qword [rsp + 0x28], rcx
call fcn.007b4440
mov rcx, qword [rsp + 0x28]
jmp 0x7a92cc
mov rbp, rcx
mov qword [rsp + 0x28], r15
mov rcx, rbx
call fcn.007a93d0
mov r15d, eax
cmp eax, r13d
je 0x7a9333
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, r15d
mov r9, rdi
call fcn.007b4860
test eax, eax
je 0x7a9333
mov esi, eax
mov dword [rbx], r15d
jmp 0x7a9389
mov esi, 1
lock xadd dword [r14 + 0x400000], esi
add esi, 1
js 0x7a939c
mov r13, rbx
mov rdx, rsi
shr rdx, 0x10
mov rbx, qword [r14 + rdx*8 + 0x400010]
test rbx, rbx
je 0x7a93c3
movzx ebp, si
shl rbp, 4
lea rcx, [rbx + rbp]
mov r8, r12
mov r9, rdi
call fcn.007a10a0
mov dword [rbx + rbp + 8], r15d
mov dword [r13], esi
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x7a9389
mov byte [rax], 1
mov eax, esi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, esi
and r9d, 0x7fffffff
mov qword [rsp + 0x20], rsi
lea rcx, [0x00a71700]
lea r8, [0x00a71732]
mov edx, 0x8c
call fcn.00767fd0
mov rcx, rbp
call fcn.007b4440
mov rbx, rax
jmp 0x7a935d
Function at 0x7aa730
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r9
test r8, r8
mov edi, 1
cmovne rdi, r8
mov rax, rdi
add rax, r9
jae 0x7aa772
mov rdx, qword [0x007ebd60]
lea rcx, [0x00a70858]
mov r8, rdi
mov r9, rsi
call fcn.007942b0
xor eax, eax
jmp 0x7aa865
mov r14, rdx
mov r15, rcx
mov rax, rdi
cmp rsi, 9
jb 0x7aa78c
mov rcx, rdi
mov rdx, rsi
call fcn.007b0ef0
cmp rsi, 0x20000
ja 0x7aa7af
cmp rax, 0x20000
ja 0x7aa7af
cmp rax, 0x100
ja 0x7aa7da
add rax, 0xf
shr rax, 4
jmp 0x7aa813
lea rcx, [r15 + 0x40dc0]
add r15, 0x81008
mov rdx, r15
mov r8, rdi
mov r9, rsi
call fcn.007aabe0
cmp rsi, 9
jae 0x7aa85c
jmp 0x7aa865
bsr rdx, rax
xor rdx, 0x3f
mov cl, 0x3d
sub cl, dl
mov rbx, rax
shr rbx, cl
and ebx, 3
mov edi, 0xffffffff
shl edi, cl
not edi
and eax, edi
xor rdx, 0x3f
shl rdx, 2
or rdx, rbx
cmp eax, 1
sbb rdx, 0xffffffffffffffff
add rdx, 0xfffffffffffffff0
mov rax, rdx
test rax, rax
je 0x7aa871
cmp rax, 0x36
jae 0x7aa895
mov rbx, rax
shl rbx, 0xa
lea rdi, [r14 + rbx]
mov rcx, qword [r14 + rbx]
test rcx, rcx
je 0x7aa8dd
lea rax, [rcx - 1]
mov qword [rdi], rax
mov rdx, qword [rdi + rcx*8 + 0x10]
mov rax, qword [rdi + rcx*8 + 0x18]
prefetchnta byte [rdx]
mov rcx, qword [r14 + rbx + 0x10]
add qword [r14 + 0xd810], rcx
cmp rsi, 9
jb 0x7aa865
add rsi, 0xffffffffffffffff
and rsi, rax
jne 0x7aa8b9
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x20], 0
lea rcx, [0x00a70929]
lea r8, [0x00a70962]
mov edx, 0xa0
xor r9d, r9d
call fcn.00767fd0
mov qword [rsp + 0x20], 0x36
lea rcx, [0x00a70929]
lea r8, [0x00a7097a]
mov edx, 0xa1
mov r9, rax
call fcn.00767fd0
mov qword [rsp + 0x20], 0
lea rcx, [0x00a708b8]
lea r8, [0x00a708ee]
mov edx, 0x49
mov r9, rsi
call fcn.00767fd0
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9, rax
call fcn.007ae7d0
test al, al
je 0x7aa8fa
mov rcx, qword [rdi]
jmp 0x7aa836
xor eax, eax
cmp rsi, 9
jae 0x7aa85c
jmp 0x7aa865
Function at 0x140f7423c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f74246
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f7426f
pop rbp
sub rbp, 0x33
sub rbp, 0xf7423c
sub rsp, 0x20
jmp 0x140f7428e
mov rax, 0xf7423c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff9d8e7591
add byte [rax - 0x39], cl
ret 0x7591
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f742ad
invalid
jmp 0x140f742c4
imul ecx, dword [rcx - 0x27], 0x18
fstp dword [rax]
js 0x140f742e2
sbb byte [rbp - 0x266e6e6f], ch
adc byte [rax - 0x67], dl
nop
xchg ecx, eax
xchg ecx, eax
fst dword [rax + 0x5156d978]
cdq
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
fst dword [rsi + 0x53]
mov ecx, 0xd9919191
jae 0x140f742c2
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
fldenv [rsi + 0x73]
fst dword [rax - 0x62efe5b0]
nop
push rax
sbb dl, byte [rax]
popfq
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
fst dword [rax - 0x263e3e87]
sub dword [rcx], ebx
sar dword [rax - 0x6e6e6e6f], cl
xchg ecx, eax
fldcw word [rax]
and byte [rsi + 0x5c], ch
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
fst dword [rax - 0x2ad42688]
sub esi, dword [rdi - 0x6e6e6e17]
xchg ecx, eax
jns 0x140f742ad
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
js 0x140f742a5
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
push rax
jns 0x140f742b7
movabs al, byte [0x919191955010d980]
fldcw word [rsi + 0x59]
sahf
adc al, 0x7f
outsb dx, byte [rsi]
outsb dx, byte [rsi]
outsb dx, byte [rsi]
push rdx
leave
retf

Function at 0x1400034ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400034f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400034f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400034f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400034f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400034f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400034f8
xor al, al
add rsp, 0x28
ret
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.1400278c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rcx
xor edx, edx
lea rcx, str.Shell_TrayWnd
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.140008e10
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.1400278c0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
lea r8, [0x14003bde0]
xor edx, edx
lea rcx, [0x14003aa74]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14000134c
lea rcx, [rsp + 0x40]
call fcn.140001130
mov ecx, dword [0x14003aa74]
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 [0x14003aa74]
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 [0x14003aa74]
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.140008e10
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, [0x1400339c0]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call fcn.140017940
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.140008e10
add rsp, 0x308
ret
Function at 0x140001d90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e8c
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e8c
mov rcx, rbx
mov dword [rbx], 0x114
call rax
test eax, eax
jne 0x140001e8c
mov ebx, 0x5c
mov dword [rsp + 0x38], eax
mov edx, ebx
mov dword [rsp + 0x3c], 4
lea rcx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersion
call fcn.14000cb98
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000cb98
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000cb98
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e75
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, [0x140034190]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008e10
add rsp, 0x50
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008e10
add rsp, 0x50
pop rbx
ret
Function at 0x140002790
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 r14
sub rsp, 0xc0
mov rsi, rcx
xor r14d, r14d
mov qword [rcx], r14
mov edx, 0x67
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140002834
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002834
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbp, rbp
je 0x140002834
test eax, eax
je 0x140002834
mov ecx, 0x18
call fcn.1400186e4
mov rbx, rax
test rax, rax
je 0x140002834
mov ecx, edi
call fcn.1400186e4
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r14
test rax, rax
jne 0x140002854
mov rcx, rbx
call fcn.14001830c
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov r8, rdi
mov qword [rsi], rbx
mov rdx, rbp
mov rcx, rax
call fcn.140027e20
lea rax, [0x1400026e0]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
lea rax, [0x1400026f0]
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0x28], rax
lea rax, [fcn.140001bf0]
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [0x140002750]
mov qword [rsp + 0x38], rax
lea rax, [0x140002760]
movaps xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [fcn.140001bf0]
mov qword [rsp + 0x48], rax
lea rax, [fcn.140001bf0]
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0xb0], r14
call fcn.140006800
jmp 0x140002836
Function at 0x140002910
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.ExplorerPatchercleanup
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140017940
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [0x140033980]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140017940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, 0xa
lea rdx, [rsp + 0x30]
mov r8d, r9d
mov ecx, eax
call fcn.140018a94
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140017940
lea r8, [0x140034554]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140017940
mov ecx, dword [0x14003aa70]
lea rdx, [rsp + 0x48]
mov r9d, 0xa
mov r8d, r9d
lea eax, [rcx + 1]
mov dword [0x14003aa70], eax
call fcn.140018a94
lea r8, [rsp + 0x48]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140017940
lea r8, [0x140034558]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140017940
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140008e10
add rsp, 0x280
pop rbx
ret
Function at 0x140003730
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rsi, rcx
mov r8, rcx
lea rcx, [rsp + 0x480]
mov edx, 0x104
call fcn.1400178d8
lea r8, [0x1400345ec]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call fcn.140017940
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400037b0
mov eax, 1
jmp 0x14000389b
lea rdx, [0x1400345f4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003856
lea rdx, [0x1400345f8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003856
mov r8, rsi
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.1400178d8
lea r8, [0x140033980]
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140017940
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140017940
test byte [rsp + 0x20], 0x10
lea rcx, [rsp + 0x270]
je 0x14000383b
call fcn.140003730
jmp 0x140003852
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140003856
lea rcx, [rsp + 0x270]
call fcn.140002910
test eax, eax
je 0x1400038bc
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400037b0
mov qword [rsp + 0x6b8], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x12
mov rbx, qword [rsp + 0x6b8]
jne 0x1400038c5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140008e10
mov rsi, qword [rsp + 0x6c0]
add rsp, 0x6a0
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x14000389b
Function at 0x14000981c
Capabilities:
Parse pe header

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