joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402de0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x18]
movzx ecx, cx
cmp eax, ecx
invalid
je 0x402cbf
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x54]
mov word [rax + rcx*2], 0
mov eax, dword [rsp + 0x54]
add eax, 0xffffffff
mov dword [rsp + 0x54], eax
jmp 0x402c82
mov dword [rsp + 0x78], 0
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rsp + 0x78]
movsx eax, byte [rax + rcx]
cmp eax, 0
je 0x402d11
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rsp + 0x78]
movsx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x54]
mov word [rcx + rdx*2], ax
mov eax, dword [rsp + 0x54]
add eax, 1
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
jmp 0x402cc7
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0xc]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x20]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.00402a00
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x68]
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call rax
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x40]
and al, 0x40
mov r9d, dword [rax + 0xc]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x20]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x80]
call fcn.00402a00
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0xf0]
xor edx, edx
call rax
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0xc]
cmp eax, ecx
jne 0x402de6
mov ecx, 1
call qword [rsp + 0x90]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
mov edx, eax
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0xc]
or al, 0x48
mov eax, dword [rsp + 0x40]
mov r8d, dword [rax + 0x20]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x24]
mov rcx, qword [rsp + 0x80]
call fcn.00402a00
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x98], 0
add byte [rax], al
add byte [rax - 0x75], cl
test byte [rax + riz], ah
add dword [rax], eax
add byte [rbx + rcx*4 - 0x7c], al
and al, 0x9c
add byte [rax], al
add byte [rax - 0x75], cl
push rsp
and al, 0x48
mov rcx, qword [rsp + 0xf0]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x20], 0
call rax
cmp eax, 0
jne 0x402e84
mov ecx, 1
call qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x98]
add rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
Function at 0x140001484
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov r12d, r8d
mov ebx, r8d
lea r9, [rsp + 0x48]
mov rsi, rcx
and r12d, 0x300
mov rdi, rdx
mov r8d, r12d
or r8d, 9
call fcn.140008a27
test eax, eax
jne 0x140001572
test bl, 2
mov rcx, qword [rsp + 0x48]
lea rbp, [rsp + 0x56]
je 0x140001503
xor edx, edx
xor eax, eax
lea r9, [rsp + 0x44]
mov r8, rbp
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov dword [rsp + 0x44], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x140001543
mov r14d, ebx
mov r13, qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
and r14d, 1
jmp 0x140001522
mov r8d, ebx
mov rdx, rbp
call fcn.140001484
test eax, eax
jne 0x140001555
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov r9d, 0x105
mov r8, rbp
call r13
test eax, eax
jne 0x140001555
mov rcx, qword [rsp + 0x48]
test r14d, r14d
je 0x140001513
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x140001572
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
mov r8d, r12d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140003d0e
Capabilities:
Read file on windows

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x14000c028]
jmp fcn.1400088b1

Function at 0x140003ef2
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, r8
mov ebp, r9d
test ecx, ecx
js 0x140003f2c
movsxd rcx, ecx
add rcx, qword [0x14001d1b4]
xor r9d, r9d
xor r8d, r8d
mov dword [0x140031298], ecx
mov edx, ecx
mov rcx, qword [0x14000c020]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 4
call fcn.140003d36
mov ebx, eax
test eax, eax
js 0x140004024
mov rcx, qword [0x14000c020]
lea rdx, [rsp + 0x3c]
mov r8d, 4
call fcn.1400088b1
test eax, eax
jne 0x140003f65
mov ebx, 0xfffffffd
jmp 0x140004024
mov ecx, dword [rsp + 0x3c]
add dword [0x140031298], 4
call fcn.140003d36
mov ebx, eax
test eax, eax
js 0x140004024
mov r8d, dword [rsp + 0x3c]
test rsi, rsi
jne 0x140003fe8
lea rsi, [0x14002d1e0]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
jle 0x140004024
mov eax, 0x4000
mov rcx, qword [0x14000c020]
mov rdx, rsi
cmp r8d, eax
cmovg r8d, eax
mov dword [rsp + 0x38], r8d
call fcn.1400088b1
test eax, eax
je 0x140003f5b
mov r8d, dword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call fcn.1400088de
test eax, eax
je 0x14000401f
mov eax, dword [rsp + 0x38]
sub dword [rsp + 0x3c], eax
add dword [0x140031298], eax
add ebx, eax
jmp 0x140003f90
xor eax, eax
cmp r8d, ebp
mov rcx, qword [0x14000c020]
mov rdx, rsi
cmovg r8d, ebp
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003f5b
mov ebx, dword [rsp + 0x38]
add dword [0x140031298], ebx
jmp 0x140004024
mov ebx, 0xfffffffe
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140004380
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x140010d30]
mov rsi, qword [rax]
lea rbx, [rsi + 0x32000]
mov rcx, rbx
call fcn.140008d2d
mov rcx, rbx
call fcn.140008638
test eax, eax
je 0x1400043d0
mov rcx, rbx
call fcn.140008c2e
mov rcx, rbx
call fcn.14000849b
lea rcx, [rsi + 0x30000]
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000883c
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400043d9
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x140010c80]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400043fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [0x140010c30]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140004418
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
call fcn.140004ac5
mov rax, qword [0x140010d30]
mov edx, 7
mov rcx, qword [rax]
add rcx, 0x34000
add rsp, 0x20
pop rbx
jmp fcn.14000928e
Function at 0x14000766f
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call fcn.1400073b2
mov rdx, rbx
lea r8d, [rax*4]
mov ecx, eax
movsxd rax, r8d
mov r9d, r8d
sub r9d, eax
cmp r9d, eax
jge 0x1400076e9
mov r9d, dword [rdx]
mov r10d, dword [rbx + rax*4]
add rdx, 0x10
mov dword [rdx - 0x10], r10d
mov r10d, dword [rbx + rax*4 + 4]
mov dword [rbx + rax*4], r9d
mov r9d, dword [rdx - 0xc]
mov dword [rdx - 0xc], r10d
mov r10d, dword [rbx + rax*4 + 8]
mov dword [rbx + rax*4 + 4], r9d
mov r9d, dword [rdx - 8]
mov dword [rdx - 8], r10d
mov r10d, dword [rbx + rax*4 + 0xc]
mov dword [rbx + rax*4 + 8], r9d
mov r9d, dword [rdx - 4]
mov dword [rdx - 4], r10d
mov dword [rbx + rax*4 + 0xc], r9d
sub rax, 4
jmp 0x14000768f
mov esi, 1
lea r8, [0x14000f760]
lea rax, [0x140010360]
lea r9, [0x14000eb60]
lea r10, [0x14000f360]
lea r11, [0x14000ef60]
cmp esi, ecx
jge 0x140007813
mov edx, dword [rbx + 0x10]
add rbx, 0x10
inc esi
mov edi, edx
movzx ebp, dl
shr edi, 0x18
movzx ebp, byte [rax + rbp*4]
movzx edi, byte [rax + rdi*4]
mov edi, dword [r8 + rdi*4]
xor edi, dword [r9 + rbp*4]
mov ebp, edx
movzx edx, dh
shr ebp, 0x10
mov edx, edx
movzx ebp, bpl
movzx edx, byte [rax + rdx*4]
movzx ebp, byte [rax + rbp*4]
xor edi, dword [r10 + rbp*4]
xor edi, dword [r11 + rdx*4]
mov edx, dword [rbx + 4]
mov dword [rbx], edi
mov edi, edx
movzx ebp, dl
shr edi, 0x18
movzx ebp, byte [rax + rbp*4]
movzx edi, byte [rax + rdi*4]
mov edi, dword [r8 + rdi*4]
xor edi, dword [r9 + rbp*4]
mov ebp, edx
movzx edx, dh
shr ebp, 0x10
mov edx, edx
movzx ebp, bpl
movzx edx, byte [rax + rdx*4]
movzx ebp, byte [rax + rbp*4]
xor edi, dword [r10 + rbp*4]
xor edi, dword [r11 + rdx*4]
mov edx, dword [rbx + 8]
mov dword [rbx + 4], edi
mov edi, edx
movzx ebp, dl
shr edi, 0x18
movzx ebp, byte [rax + rbp*4]
movzx edi, byte [rax + rdi*4]
mov edi, dword [r8 + rdi*4]
xor edi, dword [r9 + rbp*4]
mov ebp, edx
movzx edx, dh
shr ebp, 0x10
mov edx, edx
movzx ebp, bpl
movzx edx, byte [rax + rdx*4]
movzx ebp, byte [rax + rbp*4]
xor edi, dword [r10 + rbp*4]
xor edi, dword [r11 + rdx*4]
mov edx, dword [rbx + 0xc]
mov dword [rbx + 8], edi
mov edi, edx
movzx ebp, dl
shr edi, 0x18
movzx edi, byte [rax + rdi*4]
movzx ebp, byte [rax + rbp*4]
mov edi, dword [r8 + rdi*4]
xor edi, dword [r9 + rbp*4]
mov ebp, edx
movzx edx, dh
shr ebp, 0x10
mov edx, edx
movzx ebp, bpl
movzx edx, byte [rax + rdx*4]
movzx ebp, byte [rax + rbp*4]
xor edi, dword [r10 + rbp*4]
xor edi, dword [r11 + rdx*4]
mov dword [rbx + 0xc], edi
jmp 0x140007711
mov eax, ecx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140008436
Capabilities:
Create directory

Disassembly:
sub rsp, 0x68
lea rax, [0x14000e9f0]
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
sub rax, 0x10
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x38], 0x40001
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x140008496
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x68
ret

Function at 0x14000849b
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400084b6
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400084bd
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x78
xor r9d, r9d
xor r8d, r8d
mov dword [0x14004eea0], 0x68
lea rax, [rsp + 0x58]
mov rdx, rcx
xor ecx, ecx
mov dword [rsp + 0x28], 0x4000000
mov qword [rsp + 0x48], rax
lea rax, [0x14004eea0]
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], ecx
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
xor eax, eax
test edx, edx
je 0x140008524
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x58]
add rsp, 0x78
ret

Function at 0x140008529
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
mov dword [rcx], 0x70
mov qword [rcx + 0x40], rax
jmp qword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x14000876a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140008791
mov edx, eax
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140008799
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
call fcn.14000876a
mov esi, eax
cmp eax, 0xffffffff
je 0x1400087e6
mov rcx, rbx
test dil, 1
je 0x1400087de
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400087d7
and dil, 4
jne 0x1400087e6
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400087e6
mov eax, 1
jmp 0x1400087e8
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400087c0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400087f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov dword [rsp + 0x58], edx
mov edi, r8d
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
cmp eax, 0xffffffff
jne 0x140008817
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov r8d, 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rdi
ret

Function at 0x14000883c
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12, qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, 0x64
movabs rbp, 0x610073006e
mov rbx, rcx
mov rdi, rdx
mov qword [rsp + 0x28], rbp
call r13
mov ecx, 0x1a
xor edx, edx
xor r8d, r8d
div ecx
mov r9, rbx
mov rcx, rdi
add word [rsp + 0x2c], dx
lea rdx, [rsp + 0x28]
call r12
test eax, eax
jne 0x1400088a1
dec esi
jne 0x14000886b
mov word [rbx], 0
xor ebx, ebx
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400088b1
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400088d8
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x1400088de
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140008905
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x1400089a9
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rax, qword [0x140010c90]
inc dword [rax + 0x10]
add rsp, 0x28
ret

Function at 0x140008abf
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, r8
xor r8d, r8d
mov rbx, r9
cmp dword [rsp + 0x80], 0
setne r8b
lea r9, [rsp + 0x38]
mov dword [rsp + 0x30], 0x2000
shl r8d, 9
or r8d, 0x20019
call fcn.140008a27
test eax, eax
je 0x140008b02
mov word [rbx], 0
jmp 0x140008b4c
lea rax, [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [rbx + 0x1ffe], 0
test esi, esi
jne 0x140008afb
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140008afb
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x140008e02
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
test ecx, ecx
je 0x140008e2e
mov rcx, qword [0x14000c040]
cmp rcx, 0xffffffffffffffff
je 0x140008e1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14000c040], 0xffffffffffffffff
jmp 0x140008eca
cmp dword [0x140046420], 0
je 0x140008eca
cmp word [0x14004a440], 0
mov rax, qword [0x14000c040]
je 0x140008ec0
inc rax
je 0x140008e88
lea rbx, [0x140045420]
lea rdx, [0x14000e3f6]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14000c040]
mov rdx, rbx
lea r8d, [rax + rax]
add rsp, 0x20
pop rbx
jmp fcn.1400088de
lea rcx, [0x14004a440]
mov r8d, 4
mov edx, 0x40000000
call fcn.1400087f0
mov qword [0x14000c040], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140008eca
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [0x14000c040], 0xffffffffffffffff
jne 0x140008e51
add rsp, 0x20
pop rbx
ret

Function at 0x1400091ec
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rsi, [0x14004aea0]
mov rdx, rcx
mov rcx, rsi
call fcn.140008c13
mov rcx, rsi
call fcn.140008662
mov rbx, rax
test rax, rax
jne 0x140009219
xor eax, eax
jmp 0x140009286
mov rcx, rax
call fcn.140008d2d
mov rax, qword [0x140010cb0]
test byte [rax], 0x80
je 0x14000923b
mov ax, word [rbx]
test ax, ax
je 0x140009215
cmp ax, 0x5c
je 0x140009215
sub rbx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_lstrlenW]
sar rbx, 1
mov rcx, rsi
call rdi
mov rcx, rsi
cdqe
cmp rax, rbx
jle 0x140009270
call fcn.1400091bd
test rax, rax
je 0x140009266
test byte [rax], 0x10
je 0x140009215
mov rcx, rsi
call fcn.1400085fb
jmp 0x140009248
call fcn.140008c2e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
setne al
movzx eax, al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000952d
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov edx, 0x104
lea rbx, [rsp + 0x24]
mov qword [rsp + 0x270], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9, qword [rsp + 0x270]
lea edx, [rax - 1]
cmp edx, 0x103
ja 0x140009571
cmp word [rsp + rdx*2 + 0x24], 0x5c
sete dl
movzx edx, dl
jmp 0x140009578
xor eax, eax
mov edx, 1
mov eax, eax
add rdx, rdx
add rax, rax
lea rcx, [rbx + rax]
lea rax, [0x14000e3e0]
lea r8, [rax + rdx]
lea rdx, str._s_S.dll
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0x260
pop rbx
ret
Function at 0x140000384
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x48]
sub rsp, 0x148
lea rax, [rbp + 0x70]
mov dword [rbp + 0x60], 0x100
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x68], 1
lea rdx, [0x140000230]
mov rcx, 0xffffffff80000001
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140000487
and qword [rsp + 0x38], rbx
and qword [rsp + 0x30], rbx
and qword [rsp + 0x28], rbx
and qword [rsp + 0x20], rbx
xor edx, edx
jmp 0x140000462
lea rax, [rbp + 0x78]
mov dword [rbp + 0x60], 0x100
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140000446
mov rcx, qword [rbp + 0x78]
lea rax, [rbp + 0x68]
mov dword [rsp + 0x28], 4
lea rdx, [0x140000258]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
inc ebx
and qword [rsp + 0x30], 0
mov edx, ebx
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, qword [rbp + 0x70]
lea r9, [rbp + 0x60]
lea r8, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov rcx, qword [rbp + 0x70]
test eax, eax
je 0x1400003e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x148
pop rbx
pop rbp
ret
Function at 0x140005860
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
movabs rcx, 0xfe624e212ac18000
lea r14, [0x1400f7470]
add rcx, qword [rbp - 0x11]
movabs rax, 0x1ca213d840baf7d5
imul rcx
sar rdx, 0x19
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, byte [0x1400f7473]
imul rcx, rdx, 0x7530
cmp rcx, qword [r14 + rax*8 + 0x1a8]
jge 0x1400058df
mov rax, qword [r14 + rax*8 + 0x198]
jmp 0x140005a70
mov r9d, 2
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], rsi
lea rdx, [rbp + 0x27]
lea rsi, [rcx + 0x7530]
mov qword [rsp + 0xd0], rdi
xor ecx, ecx
lea r8d, [r9 + 0x1e]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
lea rax, [rbp + 0x27]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x28], 0x20
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov ecx, 0x1e1
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov edi, eax
test eax, eax
jns 0x14000598e
test byte [0x1400f8b38], 4
je 0x14000598e
mov dword [rbp - 0x11], eax
lea r9d, [rbx + 3]
lea rax, [rbp - 0x11]
mov qword [rbp + 0xf], 4
mov qword [rbp + 7], rax
lea rdx, [0x1400d0948]
lea rax, [0x1400d9220]
mov qword [rbp + 0x1f], 0x1b
mov qword [rbp + 0x17], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.140001460
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x1400059a4
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x1400059f4
test byte [0x1400f8b38], 4
je 0x1400059f0
mov dword [rbp - 0x11], eax
lea rdx, [0x1400d0948]
lea rax, [rbp - 0x11]
mov qword [rbp + 0xf], 4
mov qword [rbp + 7], rax
mov r9d, 3
lea rax, str.Create_stateless_retry_key
mov qword [rbp + 0x1f], 0x1b
mov qword [rbp + 0x17], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.140001460
xor eax, eax
jmp 0x140005a58
cmp byte [0x1400f7473], bl
mov edi, 8
mov rax, rbx
cmove rax, rdi
mov qword [rax + r14 + 0x1a8], rsi
mov rax, rbx
movzx edx, byte [0x1400f7473]
test dl, dl
cmove rax, rdi
mov rcx, qword [rax + r14 + 0x198]
test rcx, rcx
je 0x140005a38
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
movzx edx, byte [0x1400f7473]
mov rax, qword [rbp - 0x19]
test dl, dl
cmove rbx, rdi
mov qword [rbx + r14 + 0x198], rax
cmp byte [0x1400f7473], 0
sete byte [0x1400f7473]
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14007f5b0
mov r14, qword [rsp + 0xd8]
add rsp, 0xb0
pop rbp
ret
Function at 0x1400103f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rdx]
mov rbx, r8
movaps xmmword [r8], xmm0
movups xmm1, xmmword [rdx + 0x10]
movaps xmmword [r8 + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movaps xmmword [r8 + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [r8 + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movaps xmmword [r8 + 0x40], xmm0
movzx r10d, byte [0x1400f757c]
cmp r10b, 0xc
jb 0x1400104a6
mov r9, qword [rcx + 0x40]
mov r8b, 0xc
movsd xmm0, qword [r9]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [r9 + 8]
mov dword [rsp + 0x38], eax
jbe 0x1400104c2
add r9, 0xc
nop dword [rax]
nop word [rax + rax]
movzx ecx, r8b
lea r9, [r9 + 1]
mov eax, 0xaaaaaaab
inc r8b
mul ecx
shr edx, 3
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
movsxd rax, ecx
lea rcx, [rsp + 0x30]
add rcx, rax
movzx eax, byte [r9 - 1]
xor byte [rcx], al
cmp r8b, r10b
jb 0x140010470
jmp 0x1400104c2
mov rdx, qword [rcx + 0x40]
xor eax, eax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov r8, r10
mov dword [rsp + 0x38], eax
call fcn.140081340
lea rcx, [0x1400f75e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
lea r10, [0x1400f7470]
movzx r9d, byte [0x1400f7473]
xor edx, edx
shr rcx, 1
mov r11d, 8
test r9b, r9b
cmove edx, r11d
mov r8, qword [rdx + r10 + 0x1a8]
lea rax, [r8 - 0x7530]
cmp rcx, rax
jl 0x140010577
cmp rcx, r8
jge 0x140010516
mov rcx, qword [rdx + r10 + 0x198]
jmp 0x140010528
cmp rcx, qword [r10 + r9*8 + 0x1a8]
jge 0x140010577
mov rcx, qword [r10 + r9*8 + 0x198]
test rcx, rcx
je 0x140010577
lea rax, [rbx + 8]
mov edx, 0x44
mov qword [rsp + 0x28], rax
mov r8d, r11d
mov word [rsp + 0x20], dx
mov r9, rbx
lea rdx, [rsp + 0x30]
call fcn.140057970
lea rcx, [0x1400f75e0]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
setns al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x70
pop rbx
ret
lea rcx, [0x1400f75e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x70
pop rbx
ret