joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3760
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 0x1400a3790
xor eax, eax
jmp 0x1400a3853
mov rbp, rbx
cmp word [rax], si
je 0x1400a37b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a379c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a3798
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.1400a1ed4
movsxd r14, eax
test eax, eax
jne 0x1400a37f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a3789
mov rcx, r14
call fcn.14009bc04
mov rdi, rax
test rax, rax
jne 0x1400a380c
xor ecx, ecx
call fcn.14009ad2c
jmp 0x1400a37e8
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.1400a1ed4
test eax, eax
jne 0x1400a383d
mov rcx, rdi
call fcn.14009ad2c
jmp 0x1400a3847
xor ecx, ecx
call fcn.14009ad2c
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 0x1400a69c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009d410
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a6a69
cmp ebx, dword [rsp + 0x30]
je 0x1400a6a62
test esi, esi
je 0x1400a6a62
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a6a3d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a6a4a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a6a27
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a6a4e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a6a6b
mov eax, 1
jmp 0x1400a6a6b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400aa2f4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14008d628
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400aa37e
cmp byte [rbp - 0x21], r15b
je 0x1400aa379
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400aa3b4
call fcn.14009b088
test eax, eax
jne 0x1400aa3a0
cmp byte [rbp - 0x21], r15b
je 0x1400aa398
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400aa3b4
cmp byte [rbp - 0x21], r15b
je 0x1400aa3b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140097aec
test eax, eax
jne 0x1400aa454
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008d628
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400aa3f3
cmp byte [rbp - 0x21], r15b
je 0x1400aa428
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400aa428
call fcn.14009b088
test eax, eax
jne 0x1400aa414
cmp byte [rbp - 0x21], r15b
je 0x1400aa40d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400aa428
cmp byte [rbp - 0x21], r15b
je 0x1400aa425
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140097aec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400aa454
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400aa457
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400aa465
mov rcx, rdi
call fcn.14009ad2c
cmp byte [rbp + 0x3f], r15b
je 0x1400aa474
mov rcx, qword [rbp + 0x27]
call fcn.14009ad2c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400ab1dc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009d9e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009d9e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ab32c
cmp rax, 0xffffffffffffffff
je 0x1400ab32c
xor edi, edi
test rbp, rbp
jle 0x1400ab2d7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009acb4
mov rbx, rax
test rax, rax
jne 0x1400ab264
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ab2cd
mov edx, 0x8000
mov ecx, r14d
call fcn.140099134
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009f328
cmp eax, 0xffffffff
je 0x1400ab2ad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ab274
mov edx, r15d
mov ecx, r14d
call fcn.140099134
jmp 0x1400ab2cd
cmp byte [rsi + 0x38], dil
je 0x1400ab2c4
cmp dword [rsi + 0x34], 5
jne 0x1400ab2c4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400ab2cd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009ad2c
jmp 0x1400ab340
jns 0x1400ab340
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009d9e0
cmp rax, 0xffffffffffffffff
jne 0x1400ab2f8
cmp byte [rsi + 0x30], dil
je 0x1400ab340
mov edi, dword [rsi + 0x2c]
jmp 0x1400ab340
mov ecx, r14d
call fcn.1400a4474
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ab340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400ab340
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ab339
mov eax, dword [rsi + 0x2c]
jmp 0x1400ab33e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009d9e0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400ac220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ac248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ac248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000ac10
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1801f7e40]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000ac63
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x18000ac77
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18013fb90
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov r9d, reloc.WS2_32.dll_recv
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x18000ac5d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18013fb90
add rsp, 0x68
ret

Function at 0x18000ace0
Capabilities:
Query service status

Disassembly:
push rbx
push rdi
sub rsp, 0x88
mov rax, qword [0x1801f7e40]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x18000ae12
cmp qword [rbx + 0x18], 7
mov r8, rbx
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x80], r14
jbe 0x18000ad3d
mov r8, qword [rbx]
xor r14d, r14d
xor edx, edx
mov qword [rsp + 0x38], r14
xor ecx, ecx
mov qword [rsp + 0x30], r14
mov r9d, 0xffffffff
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
mov rcx, rbp
call fcn.18014015c
cmp qword [rbx + 0x18], 7
mov rsi, rax
jbe 0x18000ad7c
mov rbx, qword [rbx]
mov qword [rsp + 0x38], r14
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8d, 4
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rcx, rsi
mov rbx, rax
call fcn.18013fbb0
mov r14, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
test rbx, rbx
je 0x18000ae09
lea rax, [rsp + 0x40]
mov r9d, Ordinal_41
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
test eax, eax
jne 0x18000ae16
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x18000ae29
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18013fb90
add rsp, 0x88
pop rdi
pop rbx
ret
Function at 0x18000ae40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x1801f7e40]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000ae9b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x18000aea2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000af8a
mov qword [rsp + 0x2a0], rdi
xor edi, edi
nop dword [rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x18000aed0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.180015e10
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x18000aef6
mov rax, qword [rbx]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [rbx + 0x10]
jne 0x18000afab
test rdx, rdx
je 0x18000af38
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x18000afab
add rax, 2
sub rdx, 1
jne 0x18000af24
mov edi, dword [rsp + 0x48]
cmp r10, 7
jbe 0x18000af77
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x18000af6f
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000affd
mov rcx, r9
call fcn.18013fbb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18013fb90
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rsi
ret
cmp r10, 7
jbe 0x18000afe2
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x18000afda
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000affd
mov rcx, r9
call fcn.18013fbb0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000aeb0
jmp 0x18000af77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18000b4a0
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerRecentDocs
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftCurrentVersionExplorerComDlg32LastVisitedPidlMRU
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerComDlg32CIDSizeMRU
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftShell
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftCurrentVersionExplorerComDlg32LastVisitedMRU
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerRunMRU
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerTypedPaths
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUds
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUdll
mov rcx, 0xffffffff80000001
add rsp, 0x28
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x18000c570
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x1801f7e40]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [rsp + 0x40]
mov r9d, 9
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFeatureUsageAppSwitched
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000c6c5
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x290], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x280], rdi
xor edx, edx
xor edi, edi
mov dword [rsp + 0x50], 0x104
mov qword [rsp + 0x38], rdi
mov ebx, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x18000c6aa
nop word [rax + rax]
lea rdx, str.PerceptionSimulationControler
lea rcx, [rsp + 0x60]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x18000c66d
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerFeatureUsageAppSwitched
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000c66d
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
inc ebx
mov qword [rsp + 0x28], rdi
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x18000c610
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x290]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18013fb90
add rsp, 0x288
ret
Function at 0x18000cf30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13e0
call fcn.180140ae0
sub rsp, rax
mov rax, qword [0x1801f7e40]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13c4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x44], eax
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x18000cf70
mov dword [rsp + 0x40], 0x270
mov ebx, 0x140
mov dword [rsp + 0x20], 2
lea rcx, [rsp + 0x40]
call fcn.180018930
mov ecx, eax
imul rax, rcx, 0x439
cmp eax, 0x319
ja 0x18000cfda
nop
lea rcx, [rsp + 0x40]
call fcn.180018930
mov ecx, eax
imul rax, rcx, 0x439
cmp eax, 0x31a
jb 0x18000cfc0
shr rax, 0x20
lea rcx, [rsp + 0x40]
add eax, 0x80000000
xor eax, 0x80000000
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.180018930
mov ecx, eax
imul rax, rcx, 0x7bd
cmp eax, 0x32f
ja 0x18000d02a
nop dword [rax]
lea rcx, [rsp + 0x40]
call fcn.180018930
mov ecx, eax
imul rax, rcx, 0x7bd
cmp eax, 0x330
jb 0x18000d010
mov rdx, qword [0x180206400]
shr rax, 0x20
add eax, 0x80000000
movss dword [rsp + 0x28], xmm1
xor eax, 0x80000000
cmp rdx, qword [0x180206408]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x24], xmm0
je 0x18000d072
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x180206400], 8
movsd qword [rsp + 0x24], xmm0
jmp 0x18000d083
lea r8, [rsp + 0x24]
lea rcx, [0x1802063f8]
call fcn.180017900
lea rcx, [rsp + 0x40]
call fcn.180018930
sar eax, 0x1f
lea rcx, [rsp + 0x40]
and eax, 2
dec eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.180018930
mov rdx, qword [0x180206430]
sar eax, 0x1f
and eax, 2
dec eax
movss dword [rsp + 0x30], xmm1
cmp rdx, qword [0x180206438]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x2c], xmm0
je 0x18000d0e8
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x180206430], 8
movsd qword [rsp + 0x2c], xmm0
jmp 0x18000d0f9
lea r8, [rsp + 0x2c]
lea rcx, [0x180206428]
call fcn.180017900
mov rdx, qword [0x180206418]
cmp rdx, qword [0x180206420]
je 0x18000d119
mov dword [rdx], 2
add qword [0x180206418], 4
jmp 0x18000d123
lea r8, [rsp + 0x20]
call fcn.180017340
sub rbx, 1
jne 0x18000cfa4
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.18013fb90
add rsp, 0x13e0
pop rbx
ret
Function at 0x180012620
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x1800127b5
cmp rcx, rbp
je 0x1800127b5
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x1800126bc
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x1800127dc
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1800126d3
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x1800126d3
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1800126e6
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x180012733
mov r8d, eax
cmp eax, 0x800
jae 0x180012700
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x180012733
cmp eax, 0x10000
jae 0x18001271a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x180012733
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x1800127b5
add qword [rsi], 2
test dil, dil
jne 0x180012754
cmp r10d, 3
jae 0x180012760
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x18001278e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x180012770
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x1800127b5
cmp qword [rbx], rbp
jne 0x18001267d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x1800127bf
Function at 0x180013280
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1800132a8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1800132ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800132d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180013329
test ecx, ecx
jle 0x180013309
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180013329
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180013329
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180013350
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180013372
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180013388
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800133a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800133a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800133e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18001347e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18001341d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18001345e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18001347e
cmp rbx, rax
ja 0x180013430
test rbx, rbx
je 0x18001347e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret