joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140099948
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.14008b304
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400999d2
cmp byte [rbp - 0x21], r15b
je 0x1400999cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140099a08
call fcn.14008f00c
test eax, eax
jne 0x1400999f4
cmp byte [rbp - 0x21], r15b
je 0x1400999ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140099a08
cmp byte [rbp - 0x21], r15b
je 0x140099a05
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.14008a0a4
test eax, eax
jne 0x140099aa8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008b304
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140099a47
cmp byte [rbp - 0x21], r15b
je 0x140099a7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140099a7c
call fcn.14008f00c
test eax, eax
jne 0x140099a68
cmp byte [rbp - 0x21], r15b
je 0x140099a61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140099a7c
cmp byte [rbp - 0x21], r15b
je 0x140099a79
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.14008a0a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140099aa8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140099aab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140099ab9
mov rcx, rdi
call fcn.14008a040
cmp byte [rbp + 0x3f], r15b
je 0x140099ac8
mov rcx, qword [rbp + 0x27]
call fcn.14008a040
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 0x1400a6690
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rbx + 0x13]
mov dl, 1
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp eax, ebx
jl 0x180001824
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x180001829
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180001829
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180001834
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [0x1800266d0]
mov esi, 0x104
xor edx, edx
mov r8, rsi
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180001936
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x18000191c
mov dx, 0x3a
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
lea rdx, [0x18002914c]
mov r8, rdi
lea rcx, [rax + 2]
mov rbx, rax
mov byte [rax + 1], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rbx + 2]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x18000191c
mov rdx, qword [0x180026870]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001900
xor ebx, ebx
jmp 0x180001908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x180001924
call fcn.1800017ec
jmp 0x180001922
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001948
Capabilities:
Access pe header
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov esi, r9d
mov r13d, edx
mov rbp, rcx
mov ebx, 8
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180001a79
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x1800266d0]
xor edx, edx
lea r8d, [rax + 0x11]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180001a7e
lea ecx, [r12 + 1]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + rbx]
lea rdx, [0x18002915b]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.180016374
test eax, eax
mov ebx, eax
jne 0x180001a65
test esi, esi
je 0x180001a65
lea r8, [rsp + 0x30]
lea rdx, [0x180029261]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x180001a65
movsx r8d, byte [0x1800291f0]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
add eax, 1
lea rdx, [rbx + 1]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001a7e
mov ebx, 0xb
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x180001a9c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rsi, r8
mov r13, rdx
mov r14, rcx
lea r8, [rsp + 0x48]
lea rdx, [0x180029261]
mov rcx, 0xffffffff80000001
mov rdi, r9
xor ebp, ebp
lea r12, [r9 + 0x208]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001b81
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r8, rdi
mov edx, ebp
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x98], 0x208
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
mov ebx, eax
jne 0x180001b72
cmp dword [rsp + 0x44], 1
jne 0x180001b61
mov eax, dword [rsp + 0x98]
mov rdx, r14
mov rcx, r12
shr rax, 1
and word [r12 + rax*2], bx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x180001b66
add ebp, 1
jmp 0x180001aea
test rsi, rsi
mov qword [r13], rdi
je 0x180001b72
mov qword [rsi], r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180001b93
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x180001bb0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rcx, qword [0x1800266d0]
mov rbx, r8
xor edx, edx
mov r8d, 0x410
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180001bf3
lea rdx, [rsp + 0x48]
mov r9, rax
xor r8d, r8d
mov rcx, rbx
call fcn.180001a9c
mov ebx, eax
jmp 0x180001bf8
mov ebx, 8
test ebx, ebx
jne 0x180001c71
lea r8, [rsp + 0x30]
lea rdx, [0x180029261]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001c5d
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180001c52
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x1800266d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180001da8
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180026828]
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001e05
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
mov ebx, eax
call fcn.1800157bc
mov rcx, qword [rsp + 0x38]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180001f10
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and qword [rsp + 0x70], 0
cmp edx, 0x20
mov ebp, r8d
mov rbx, rcx
jb 0x180002078
mov r9d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x14]
add r9d, dword [rcx + 0x10]
lea r9d, [r9 + rax + 0x20]
cmp edx, r9d
jne 0x180002078
add qword [rcx], rcx
add qword [rcx + 8], rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180002071
mov eax, dword [0x180026864]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x88]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x38], rax
call fcn.180019338
test eax, eax
mov edi, eax
jne 0x18000207d
cmp dword [rbx + 0x18], eax
je 0x18000202e
mov ecx, 0xd80
call fcn.1800146c8
test rax, rax
mov rsi, rax
je 0x18000202e
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.180001e14
test eax, eax
jne 0x18000201c
mov r9d, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x70]
lea rdx, [rbx + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001e14
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x18000201c
mov rcx, qword [0x1800266d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800266d0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x18000207d
mov rcx, qword [rsp + 0x88]
lea rdx, [0x18002a12d]
xor r9d, r9d
xor r8d, r8d
call fcn.1800172dc
test rax, rax
je 0x18000206a
mov eax, dword [rax]
add rax, qword [rsp + 0x88]
je 0x18000206a
lea rcx, [0x180026040]
xor edx, edx
call rax
jmp 0x18000207d
mov edi, 0x7f
jmp 0x18000207d
mov edi, 0xb
jmp 0x18000207d
mov edi, 0x57
mov rcx, qword [0x1800266d0]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x18002a160]
mov r8d, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor r9d, r9d
mov rdx, rbx
mov r8d, eax
mov ecx, 0x10d
call fcn.18000fe04
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180002488
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x1800266d0]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180002528
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x22]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, 1
test eax, eax
jne 0x1800024dc
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180014628
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x20]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x180002504
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180014628
lea rcx, [0x18002940c]
mov edx, ebx
call fcn.1800020f0
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000252d
mov ebx, 8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800028ec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov r12, rdx
cmp r8, rbx
mov r13, rcx
mov ebp, ebx
je 0x180002921
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x1800266d0]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x1800029ab
cmp ebp, ebx
mov qword [rax], r13
mov qword [rax + 8], r12
je 0x18000295a
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x18000295d
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x180002890]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rbx
je 0x18000298f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800029b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800029b0
mov ebx, 8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180002ac4
Capabilities:
Create directory

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 r13
push r14
sub rsp, 0x30
mov esi, r8d
mov ebp, edx
mov r12, rcx
mov rbx, qword [0x180026748]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsp + 0x20]
bswap r11d
bswap eax
mov rcx, rbx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], r11d
mov byte [rsp + 0x28], sil
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
mov r13d, eax
lea ecx, [r13 + 1]
mov r14d, ecx
lea r8, [rcx + 0x13]
mov rcx, qword [0x1800266d0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180002bd3
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rdi
call fcn.180013c3c
test rax, rax
mov rbx, rax
je 0x180002b8c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002b7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rbx, [r14 + rdi]
lea rcx, [rsp + 0x20]
mov edx, 9
mov r8, rbx
mov byte [r13 + rdi], 0x5c
call fcn.18001694c
xor r9d, r9d
mov r8d, ebp
mov rdx, r12
mov rcx, rdi
mov byte [rbx + 0x12], 0
call fcn.180013f90
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002bd8
mov ebx, 8
cmp ebx, 0x50
je 0x180002ae9
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x1800045f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rsi, r9
mov qword [rax - 0x30], r8
and qword [rax - 0x38], 0
mov r12, rdx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [rsi]
mov rbp, r8
lea r9, [rax - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x180004698
mov r8d, dword [rbp]
mov rcx, qword [0x1800266d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180004693
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x18000467f
mov qword [r12], rbx
jmp 0x180004698
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180004698
mov edi, 8
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x1800046bc
Capabilities:
Delete registry value
Set registry value

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
sub rsp, 0x40
mov rdi, rdx
mov rdx, qword [0x180026808]
mov r12d, r8d
mov rsi, rcx
lea r8, [rax - 0x18]
mov rcx, 0xffffffff80000001
mov ebp, r9d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180004737
test rdi, rdi
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
je 0x180004724
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x18000472a
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x180004f18
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180026800]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rdi, rcx
call fcn.180016c74
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180004fa4
mov rcx, qword [0x1800266d0]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180004fa4
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x180004f92
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.18001b764
xor dword [rdi], eax
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180005010
mov rcx, qword [0x1800266d0]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180005010
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x180004ffe
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.18001b764
xor dword [rdi + 0xc], eax
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
cpuid
mov r8d, eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0x50]
xor eax, edx
xor eax, ecx
xor eax, r8d
mov dword [rdi + 4], eax
add rsp, 0x30
pop rdi
ret
Function at 0x180005038
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x30
mov rdx, qword [0x180026808]
mov edi, dword [0x180025ff0]
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea r13, [0x180025ff0]
test eax, eax
mov ebx, eax
jne 0x180005111
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800291a4]
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x1800050b7
cmp dword [rsp + 0x50], 0x28
je 0x1800050c3
lea rcx, [0x180025ff8]
call fcn.180004f18
movzx eax, word [0x180025ff4]
bt ax, 0xf
jb 0x180005106
mov rcx, qword [rsp + 0x60]
or ax, 0x805c
lea rdx, [0x1800291a4]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov word [0x180025ff4], ax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x180025ff0], 0
jne 0x180005150
test edi, edi
mov dword [0x180025ff0], edi
je 0x180005146
mov r9d, 3
lea rcx, [0x1800291a4]
mov rdx, r13
lea r8d, [r9 + 0x25]
call fcn.1800046bc
cmp dword [0x180025ff0], 0
jne 0x180005150
mov dword [0x180025ff0], 0x3e8
cmp qword [0x1800266f8], 0
jne 0x1800051b5
mov rcx, qword [0x1800266d0]
xor edx, edx
lea r8d, [rdx + 0x27]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [0x1800266f8], rax
je 0x1800051b5
mov edx, dword [0x180026004]
mov ecx, dword [0x180026000]
mov r9d, dword [0x180025ffc]
mov r8d, dword [0x180025ff8]
bswap edx
bswap ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, [0x18002939b]
bswap r9d
bswap r8d
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, ebx
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret

Function at 0x1800051c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, qword [0x180026808]
mov rdi, rcx
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x18000521f
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 3]
lea rdx, [0x1800291a4]
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800052a0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [0x1800266d0]
xor edx, edx
mov r8d, 0x1000
xor edi, edi
mov dword [rax + 0x10], 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18000534e
lea r8, [rsp + 0x38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
test rax, rax
mov rsi, rax
je 0x18000533c
mov edi, 1
mov rcx, qword [rbx + 8]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x180005316
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x38], 0x1000
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x1800052fa
mov rcx, rsi
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x20
pop rdi
ret