joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca5a0
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push r15
sub rsp, 0x68
mov eax, 0x5a4d
mov r15, rdx
mov rbx, rcx
cmp word [rcx], ax
jne 0x1400ca797
mov qword [r11 - 0x28], r12
movsxd r12, dword [rcx + 0x3c]
add r12, rcx
cmp dword [r12], 0x4550
jne 0x1400ca788
mov r8d, dword [r12 + 0x90]
mov rdx, r12
mov qword [r11 + 0x10], rbp
mov qword [r11 - 0x30], r13
call fcn.1400c8940
xor ebp, ebp
mov qword [rsp + 0x90], rax
mov r13d, ebp
cmp dword [r12 + 0x94], ebp
jbe 0x1400ca76c
mov qword [rsp + 0x58], rdi
mov ecx, ebp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r14
nop
cmp dword [rcx + rax], 0
jne 0x1400ca646
cmp dword [rcx + rax + 4], 0
jne 0x1400ca646
cmp dword [rcx + rax + 8], 0
jne 0x1400ca646
cmp dword [rcx + rax + 0xc], 0
jne 0x1400ca646
cmp dword [rcx + rax + 0x10], 0
je 0x1400ca75d
mov eax, dword [rcx + rax + 0xc]
test eax, eax
je 0x1400ca732
mov r8d, eax
mov rdx, r12
mov rcx, rbx
call fcn.1400c8940
mov qword [rsp + 0x30], rbp
mov rdi, rax
mov qword [rsp + 0x38], 0
mov r14, rbp
mov esi, ebp
test rax, rax
je 0x1400ca6ec
cmp byte [rax], 0
je 0x1400ca6ec
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ca687
inc ebx
test ebx, ebx
jle 0x1400ca6af
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400195a0
mov ebp, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov edx, esi
add esi, ebx
mov dword [rsp + 0x38], esi
cmp esi, ebp
jle 0x1400ca6d2
lea rcx, [rsp + 0x30]
call fcn.140019200
mov ebp, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov eax, 0x3f
mov r9d, ebx
mov r8, rdi
mov word [rsp + 0x20], ax
mov edx, ebx
mov rcx, r14
call fcn.140010ce0
movsxd rbx, dword [r15 + 8]
lea eax, [rbx + 1]
mov dword [r15 + 8], eax
cmp eax, dword [r15 + 0xc]
jle 0x1400ca707
mov edx, ebx
mov rcx, r15
call fcn.140019100
mov rax, rbx
mov qword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x80]
shl rax, 4
add rax, qword [r15]
mov qword [rax], r14
mov dword [rax + 0xc], ebp
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov dword [rax + 8], esi
mov eax, dword [r12 + 0x94]
inc r13
lea rcx, [r13*4]
add rcx, r13
shl rcx, 2
cmp rcx, rax
mov rax, qword [rsp + 0x90]
jb 0x1400ca620
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov al, 1
mov rbp, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
add rsp, 0x68
pop r15
pop rbx
ret
mov r12, qword [rsp + 0x50]
xor al, al
add rsp, 0x68
pop r15
pop rbx
ret
xor al, al
add rsp, 0x68
pop r15
pop rbx
ret
Function at 0x1400ca7b0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x170
mov rax, qword [0x1401674b8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebp, ebp
lea rax, [rsp + 0x30]
mov rsi, rdx
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov rbx, rcx
mov rcx, rsi
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400ca8a5
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400ca8a5
lea ecx, [rax + 1]
mov qword [rsp + 0x1a0], rdi
call fcn.1400134a0
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x34]
mov rdx, rax
mov dword [rsp + 0x34], ebp
mov rcx, rsi
mov qword [rsp + 0x20], rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ca895
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x1400ca895
mov byte [rcx + rdi], bpl
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400c16e0
mov r8, 0xffffffffffffffff
mov rdx, qword [rax + 0x108]
inc r8
cmp word [rdx + r8*2], bp
jne 0x1400ca871
mov rcx, rbx
call fcn.14001cc30
mov rcx, qword [rsp + 0x140]
test rcx, rcx
je 0x1400ca895
call fcn.1400443e0
mov rcx, rdi
call fcn.140013530
mov rdi, qword [rsp + 0x1a0]
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14010f980
add rsp, 0x170
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ca8d0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
lea rax, [rsp + 0x50]
mov rbx, rdx
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], esi
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400ca9f8
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x1400ca9f8
mov eax, dword [rbx + 8]
cmp r8d, eax
jle 0x1400ca93c
mov dword [rbx + 8], r8d
cmp r8d, dword [rbx + 0xc]
jle 0x1400ca957
mov edx, eax
mov rcx, rbx
call fcn.14003eab0
jmp 0x1400ca952
jge 0x1400ca957
mov ecx, eax
sub ecx, r8d
je 0x1400ca957
sub eax, ecx
mov rcx, rbx
mov dword [rbx + 8], eax
call fcn.14007b2e0
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rbx]
lea r9, [rsp + 0x58]
mov rcx, rdi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ca9e6
mov eax, dword [rsp + 0x58]
cmp eax, dword [rsp + 0x50]
jae 0x1400ca9d4
movsxd rdi, dword [rbx + 8]
cmp eax, edi
jle 0x1400ca9bf
mov esi, eax
mov dword [rbx + 8], eax
sub esi, edi
cmp eax, dword [rbx + 0xc]
jle 0x1400ca99d
mov edx, edi
mov rcx, rbx
call fcn.14003eab0
mov rcx, rdi
movsxd r8, esi
add rcx, qword [rbx]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
jge 0x1400ca9d4
mov ecx, edi
sub ecx, eax
je 0x1400ca9d4
sub edi, ecx
mov rcx, rbx
mov dword [rbx + 8], edi
call fcn.14007b2e0
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx + 8], esi
cmp dword [rbx + 0xc], esi
je 0x1400ca9f8
xor edx, edx
mov rcx, rbx
call fcn.140070c50
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400caa20
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
lea rcx, str.Win_RequestExit
call fcn.1400919f0
lea rcx, [0x14015d140]
call fcn.140013d30
test bl, bl
je 0x1400caa90
call fcn.14009f640
test rax, rax
je 0x1400caa6b
call fcn.14009f640
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x68]
call fcn.14009f640
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x20]
movzx eax, byte [0x1401bb361]
neg al
sbb ebx, ebx
and ebx, 3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_PostQuitMessage]

Function at 0x1400caec0
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.1400271b0
call fcn.1400c2220
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
Function at 0x1400cb670
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x60]
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mulss xmm6, dword [0x14012cb88]
cvttss2si rax, xmm6
test eax, eax
jne 0x1400cb6a2
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x1400cb6aa
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x50]
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x28], rax
lea rdx, [0x14015a1f0]
lea rax, [0x1400272c0]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.1400447f0
lea rcx, [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [rsp + 0x58]
sub ecx, dword [rsp + 0x60]
add dword [rbx + 0x10], ecx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x1400cb830
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rsi
push r14
sub rsp, 0x288
mov rax, qword [0x1401674b8]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx esi, dl
mov r14, rcx
test dl, dl
je 0x1400cb8f3
xor edx, edx
mov qword [rsp + 0x2b0], rbx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cb8eb
mov rcx, qword [r14]
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rbx
mov edi, eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400cb8e3
cmp dword [rsp + 0x50], edi
jne 0x1400cb8d2
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x1400cb8d2
movzx edx, sil
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.1400cb830
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400cb8a2
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [r14]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010f980
add rsp, 0x288
pop r14
pop rsi
ret
Function at 0x1400cbb50
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov ecx, dword [0x140238534]
mov edx, 0x1c
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140211900], eax
jg 0x1400cbd3b
mov ecx, dword [0x1402118f8]
test ecx, ecx
je 0x1400cbb95
lea eax, [rcx - 1]
test eax, eax
jne 0x1400cbd24
lea r9, [rbp + 0x10]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140143a00]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400cbd1e
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rbp + 0x10]
mov qword [rsp + 0x60], r14
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov edx, r14d
mov dword [rbp - 0x28], edx
mov ecx, r14d
mov dword [rbp - 0x24], ecx
test rdi, rdi
je 0x1400cbc39
cmp word [rdi], cx
je 0x1400cbc39
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], cx
jne 0x1400cbbf4
inc ebx
test ebx, ebx
jle 0x1400cbc14
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1400195a0
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x28]
lea eax, [rbx + rdx]
mov dword [rbp - 0x28], eax
cmp eax, ecx
jle 0x1400cbc27
lea rcx, [rbp - 0x30]
call fcn.140019200
mov rcx, qword [rbp - 0x30]
mov rdx, rdi
movsxd r8, ebx
add r8, r8
call fcn.140032f60
lea r9, [0x140129090]
mov dword [rsp + 0x20], 1
lea r8, [0x14011ecb0]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.14001f940
mov rcx, qword [rax]
mov r9d, dword [rax + 8]
mov qword [rax], r14
mov qword [rbp - 0x40], rcx
mov ecx, dword [rax + 0xc]
mov qword [rax + 8], r14
mov eax, r9d
neg eax
mov dword [rbp - 0x38], r9d
mov dword [rbp - 0x34], ecx
sbb edx, edx
add edx, 2
add edx, r9d
cmp edx, ecx
jle 0x1400cbc92
lea rcx, [rbp - 0x40]
call fcn.1400195a0
mov r8d, 1
lea rdx, [0x140129090]
lea rcx, [rbp - 0x40]
call fcn.14001cc30
mov rcx, qword [0x1402118f0]
mov rsi, qword [rbp - 0x40]
mov ebx, dword [rbp - 0x38]
mov edi, dword [rbp - 0x34]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x1400cbcd0
call fcn.1400443e0
mov rcx, qword [rbp - 0x20]
mov qword [0x1402118f0], rsi
mov rsi, qword [rsp + 0x90]
mov dword [0x1402118f8], ebx
mov rbx, qword [rsp + 0x88]
mov dword [0x1402118fc], edi
mov rdi, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cbd06
call fcn.1400443e0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400cbd14
call fcn.1400443e0
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x1402118f8]
test ecx, ecx
lea rax, [0x14011c560]
cmovne rax, qword [0x1402118f0]
add rsp, 0x70
pop rbp
ret
lea rcx, [0x140211900]
call fcn.14010fb6c
cmp dword [0x140211900], 0xffffffff
jne 0x1400cbb80
lea rcx, [0x140117c60]
call fcn.14010f8d0
lea rcx, [0x140211900]
call fcn.14010fb0c
jmp 0x1400cbb80
Function at 0x1400cbd80
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
test cl, cl
je 0x1400cbe13
cmp word [0x140211b50], 0
jne 0x1400cbe07
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
lea rcx, [0x140211b50]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], 0x100
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
movzx eax, word [0x140211b50]
lea rbx, [0x140211b50]
lea rdi, [0x140211b50]
test ax, ax
je 0x1400cbdf8
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalnum]
test eax, eax
je 0x1400cbdeb
movzx eax, word [rbx]
mov word [rdi], ax
add rdi, 2
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400cbdd4
mov rbx, qword [rsp + 0x38]
xor ecx, ecx
mov word [rdi], cx
mov rdi, qword [rsp + 0x20]
lea rax, [0x140211b50]
add rsp, 0x28
ret
cmp word [0x140211950], 0
jne 0x1400cbe37
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
lea rcx, [0x140211950]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [0x140211950]
add rsp, 0x28
ret
Function at 0x1400cbe50
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov ecx, dword [0x140238534]
mov edx, 0x1c
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140211930], eax
jg 0x1400cc03b
mov ecx, dword [0x140211928]
test ecx, ecx
je 0x1400cbe95
lea eax, [rcx - 1]
test eax, eax
jne 0x1400cc024
lea r9, [rbp + 0x10]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140143a20]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400cc01e
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rbp + 0x10]
mov qword [rsp + 0x60], r14
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov edx, r14d
mov dword [rbp - 0x28], edx
mov ecx, r14d
mov dword [rbp - 0x24], ecx
test rdi, rdi
je 0x1400cbf39
cmp word [rdi], cx
je 0x1400cbf39
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], cx
jne 0x1400cbef4
inc ebx
test ebx, ebx
jle 0x1400cbf14
mov edx, ebx
lea rcx, [rbp - 0x30]
call fcn.1400195a0
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp - 0x28]
lea eax, [rbx + rdx]
mov dword [rbp - 0x28], eax
cmp eax, ecx
jle 0x1400cbf27
lea rcx, [rbp - 0x30]
call fcn.140019200
mov rcx, qword [rbp - 0x30]
mov rdx, rdi
movsxd r8, ebx
add r8, r8
call fcn.140032f60
lea r9, [0x140129090]
mov dword [rsp + 0x20], 1
lea r8, [0x14011ecb0]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.14001f940
mov rcx, qword [rax]
mov r9d, dword [rax + 8]
mov qword [rax], r14
mov qword [rbp - 0x40], rcx
mov ecx, dword [rax + 0xc]
mov qword [rax + 8], r14
mov eax, r9d
neg eax
mov dword [rbp - 0x38], r9d
mov dword [rbp - 0x34], ecx
sbb edx, edx
add edx, 2
add edx, r9d
cmp edx, ecx
jle 0x1400cbf92
lea rcx, [rbp - 0x40]
call fcn.1400195a0
mov r8d, 1
lea rdx, [0x140129090]
lea rcx, [rbp - 0x40]
call fcn.14001cc30
mov rcx, qword [0x140211920]
mov rsi, qword [rbp - 0x40]
mov ebx, dword [rbp - 0x38]
mov edi, dword [rbp - 0x34]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x1400cbfd0
call fcn.1400443e0
mov rcx, qword [rbp - 0x20]
mov qword [0x140211920], rsi
mov rsi, qword [rsp + 0x90]
mov dword [0x140211928], ebx
mov rbx, qword [rsp + 0x88]
mov dword [0x14021192c], edi
mov rdi, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cc006
call fcn.1400443e0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400cc014
call fcn.1400443e0
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x140211928]
test ecx, ecx
lea rax, [0x14011c560]
cmovne rax, qword [0x140211920]
add rsp, 0x70
pop rbp
ret
lea rcx, [0x140211930]
call fcn.14010fb6c
cmp dword [0x140211930], 0xffffffff
jne 0x1400cbe80
lea rcx, [0x140117c80]
call fcn.14010f8d0
lea rcx, [0x140211930]
call fcn.14010fb0c
jmp 0x1400cbe80
Function at 0x1400cc080
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x488
mov rax, qword [0x1401674b8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x140238534]
mov edx, 0x1c
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140211918], eax
jg 0x1400cc272
mov ecx, dword [0x140211910]
test ecx, ecx
je 0x1400cc0d5
lea eax, [rcx - 1]
test eax, eax
jne 0x1400cc249
mov qword [rsp + 0x490], rbx
lea rcx, [rsp + 0x260]
xor edx, edx
mov qword [rsp + 0x480], rdi
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x260]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor edi, edi
mov edx, edi
mov ecx, edi
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], ecx
mov qword [rsp + 0x30], rdi
cmp word [rsp + 0x50], di
je 0x1400cc1ad
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], cx
jne 0x1400cc160
inc ebx
test ebx, ebx
jle 0x1400cc183
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400195a0
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
lea eax, [rdx + rbx]
mov dword [rsp + 0x38], eax
cmp eax, ecx
jle 0x1400cc198
lea rcx, [rsp + 0x30]
call fcn.140019200
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
movsxd r8, ebx
add r8, r8
call fcn.140032f60
lea r9, [0x140129090]
mov dword [rsp + 0x20], 1
lea r8, [0x14011ecb0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14001f940
mov rbx, rax
lea rax, [0x140211908]
cmp rax, rbx
je 0x1400cc215
mov rcx, qword [0x140211908]
test rcx, rcx
je 0x1400cc1f2
call fcn.1400443e0
mov rcx, qword [rbx]
mov qword [0x140211908], rcx
mov qword [rbx], rdi
mov eax, dword [rbx + 8]
mov dword [0x140211910], eax
mov eax, dword [rbx + 0xc]
mov dword [0x140211914], eax
mov qword [rbx + 8], rdi
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x480]
mov rbx, qword [rsp + 0x490]
test rcx, rcx
je 0x1400cc234
call fcn.1400443e0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400cc243
call fcn.1400443e0
mov ecx, dword [0x140211910]
test ecx, ecx
lea rax, [0x14011c560]
cmovne rax, qword [0x140211908]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14010f980
add rsp, 0x488
ret
lea rcx, [0x140211918]
call fcn.14010fb6c
cmp dword [0x140211918], 0xffffffff
jne 0x1400cc0c0
lea rcx, [0x140117ca0]
call fcn.14010f8d0
lea rcx, [0x140211918]
call fcn.14010fb0c
jmp 0x1400cc0c0

Function at 0x1400cc9d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
test r8d, r8d
je 0x1400cca0f
test rcx, rcx
je 0x1400cca0f
xor eax, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
test rbx, rbx
je 0x1400cca11
mov ecx, dword [rsp + 0x50]
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x1400d9f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x18], 0
mov rbp, r9
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
jle 0x1400d9f48
add rcx, 0x10
call fcn.14004aab0
test al, al
je case.default.0x1400da049
lea rcx, [rdi + 0x20]
mov rdx, rbx
call fcn.14004aab0
test al, al
jne case.default.0x1400da049
cmp dword [rdi + 0x38], 0
movzx ebx, byte [rsp + 0x50]
jle 0x1400d9f91
mov rax, qword [rdi + 0x30]
movsxd rcx, dword [rdi + 0x38]
add rcx, rax
cmp rax, rcx
je case.default.0x1400da049
nop dword [rax + rax]
cmp byte [rax], bl
je 0x1400d9f91
inc rax
cmp rax, rcx
jne 0x1400d9f80
jmp case.default.0x1400da049
mov rax, qword [rdi + 0x40]
movsxd rcx, dword [rdi + 0x48]
add rcx, rax
cmp rax, rcx
je 0x1400d9fb1
cmp byte [rax], bl
je case.default.0x1400da049
inc rax
cmp rax, rcx
jne 0x1400d9fa1
cmp dword [rdi + 0x58], 0
jle 0x1400d9fe2
mov rax, qword [rdi + 0x50]
movsxd rcx, dword [rdi + 0x58]
add rcx, rax
cmp rax, rcx
je case.default.0x1400da049
nop dword [rax + rax]
cmp byte [rax], sil
je 0x1400d9fe2
inc rax
cmp rax, rcx
jne 0x1400d9fd0
jmp case.default.0x1400da049
mov rax, qword [rdi + 0x60]
movsxd rcx, dword [rdi + 0x68]
add rcx, rax
cmp rax, rcx
je 0x1400da003
cmp byte [rax], sil
je case.default.0x1400da049
inc rax
cmp rax, rcx
jne 0x1400d9ff2
cmp bl, 5
jne 0x1400da02f
cmp dword [rdi + 0x78], 0
mov rdx, rbp
jle 0x1400da01f
lea rcx, [rdi + 0x70]
call fcn.14004aab0
jmp 0x1400da0a0
lea rcx, [rdi + 0x80]
call fcn.14004aab0
test al, al
jne case.default.0x1400da049
movsxd rax, dword [rdi + 8]
cmp eax, 0xd
ja case.default.0x1400da049
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xda0b8]
add rcx, rdx
jmp rcx
cmp bl, 5
setne al
jmp 0x1400da0a0
mov al, 1
jmp 0x1400da0a0
movzx eax, byte [rsp + 0x60]
jmp 0x1400da0a0
movzx eax, byte [rsp + 0x60]
xor al, 1
jmp 0x1400da0a0
sub bl, 4
cmp bl, 1
setbe al
jmp 0x1400da0a0
movzx eax, byte [rsp + 0x58]
jmp 0x1400da0a0
cmp bl, 4
sete al
jmp 0x1400da0a0
cmp bl, 5
sete al
jmp 0x1400da0a0
sub bl, 3
test bl, 0xfd
setne al
jmp 0x1400da0a0
cmp bl, 5
je case.default.0x1400da049
cmp bl, 2
jne case.0x1400da049.2
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f3b10
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1401674b8]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x60]
mov r15, rdx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov r13, rcx
mov r12d, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400f3c92
test eax, eax
jne 0x1400f3cbe
mov rsi, rbx
mov qword [rsp + 0x48], rbx
mov edi, ebx
mov qword [rsp + 0x50], 0
mov r14d, ebx
cmp word [rsp + 0x60], ax
je 0x1400f3c17
lea rax, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400f3bb5
inc ebx
test ebx, ebx
jle 0x1400f3bdf
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1400195a0
mov r14d, dword [rsp + 0x54]
mov edi, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov edx, edi
add edi, ebx
mov dword [rsp + 0x50], edi
cmp edi, r14d
jle 0x1400f3c04
lea rcx, [rsp + 0x48]
call fcn.140019200
mov r14d, dword [rsp + 0x54]
mov edi, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
movsxd r8, ebx
lea rdx, [rsp + 0x60]
add r8, r8
mov rcx, rsi
call fcn.140032f60
movsxd rbx, dword [r15 + 8]
lea eax, [rbx + 1]
mov dword [r15 + 8], eax
cmp eax, dword [r15 + 0xc]
jle 0x1400f3c32
mov edx, ebx
mov rcx, r15
call fcn.140019100
mov rax, rbx
lea r9, [rsp + 0x40]
xor ebx, ebx
shl rax, 4
add rax, qword [r15]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rbx
inc r12d
mov qword [rsp + 0x30], rbx
mov edx, r12d
mov qword [rsp + 0x28], rbx
mov rcx, r13
mov qword [rax], rsi
mov dword [rax + 8], edi
mov dword [rax + 0xc], r14d
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400f3b84
mov al, 1
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14010f980
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor al, al
jmp 0x1400f3c94