joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a0d4
Capabilities:
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 rbp, r8
mov r12, rdx
mov rdx, rcx
lea r8, [rax - 0x18]
mov rcx, 0xffffffff80000001
mov esi, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x18000a1cf
test rbp, rbp
je 0x18000a1a0
test esi, esi
je 0x18000a1a0
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000a199
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x70], ebx
je 0x18000a163
mov r8d, dword [0x180039d10]
xor r9d, r9d
mov edx, esi
mov rcx, rdi
call fcn.18002b210
mov rcx, qword [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000a1c4
mov ebx, 8
jmp 0x18000a1c4
and dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r9d, 3
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
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 0x18000a83c
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x18003d874]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rbx
je 0x18000a8fd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180039c14], eax
cmp eax, 0xffffffff
je 0x18000a902
cmp byte [0x180039cf0], 6
ja 0x18000a8b9
lea rcx, [0x18003db60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18003daea]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18003db6f]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18003db76]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18003d80e]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18003db68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18003d8ec]
call fcn.18002a7dc
mov r11, qword [0x180039c60]
mov edx, 0xd
or dword [r11 + 0x34], 1
lea r8, [0x180038b10]
lea rcx, [0x1800389b0]
mov r9d, edx
call fcn.18000ee9c
mov ebx, eax
jmp 0x18000a902
mov ebx, 0x7e
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000ab48
Capabilities:
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r12
sub rsp, 0x70
and dword [rax + 8], 0
or ebp, 0xffffffff
cmp byte [0x180039cf0], 5
mov rbx, rcx
mov rcx, qword [0x180039b48]
mov eax, 0x1388
mov r12, rdx
cmovbe ebp, eax
mov r8d, 0x4000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18000ac31
lea r9, [rsp + 0x80]
mov r8d, 0x4000
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18000abef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18000ac0d
mov rcx, qword [rbx + 0x60]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x18000abdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x18000ac1d
test eax, eax
jne 0x18000ac0d
mov eax, dword [rbx + 0x50]
cmp eax, 1
je 0x18000ac0d
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x18000ac16
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x18000ab9a
mov dword [rbx + 0x50], 1
jmp 0x18000ac1d
mov dword [rbx + 0x50], 2
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000ac38
mov dword [rbx + 0x50], 1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x18000b0f8
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 [0x180039b48]
xor edx, edx
mov r8d, 0x1000
xor edi, edi
mov dword [rax + 0x10], 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18000b1a6
lea r8, [rsp + 0x38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov rsi, rax
test rax, rax
je 0x18000b194
mov edi, 1
mov rcx, qword [rbx + 8]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x18000b16e
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 0x18000b152
mov rcx, rsi
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rcx, qword [0x180039b48]
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
Function at 0x18000b858
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, r9
mov r12d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.18000ad2c
mov r13, rax
cmp rax, rbx
je 0x18000b8c6
mov rdx, rdi
mov rcx, rax
call fcn.18000ac64
mov rdx, qword [rsi + 0x20]
lea r9, [rsi + 0x28]
mov r8d, dword [r9]
mov dword [rsi + 0x2c], r8d
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea ecx, [rbx + 1]
lea r8, [r13 - 0x34]
cmp eax, ebx
cmove ebx, ecx
xor edx, edx
xor ecx, ecx
call fcn.1800200f4
jmp 0x18000b8e8
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
cmp dword [rsp + 0x60], ebx
je 0x18000b8e0
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x18000b8e6
call qword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x18000bfd8
Capabilities:
Read http header

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
xor r14d, r14d
bt edx, 0x1f
mov r13, r9
mov rsi, r8
mov r12d, edx
mov rbp, rcx
jb 0x18000c0f6
call fcn.18000a7a4
mov rdi, rax
test rax, rax
je 0x18000c0f6
mov edx, dword [rax + 0x54]
test dl, 0x40
je 0x18000c04c
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x18000c04c
cmp qword [rbx + 0x18], r14
jne 0x18000c042
mov rcx, rbx
call fcn.18001c354
test eax, eax
jne 0x18000c04c
mov rbp, qword [rbx + 0x30]
mov r14d, 1
lea r8, [rdi - 0x34]
xor edx, edx
xor ecx, ecx
call fcn.1800200f4
test r14d, r14d
je 0x18000c0f6
mov edi, dword [rsp + 0x78]
xor ebx, ebx
cmp r12d, 0xffff
jne 0x18000c087
test edi, edi
jne 0x18000c084
xor edx, edx
mov rcx, rsi
call fcn.18001866c
mov rbx, rax
jmp 0x18000c087
mov rbx, rsi
mov rax, qword [rsp + 0x70]
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x28], rax
mov edx, r12d
mov rcx, rbp
mov qword [rsp + 0x20], r13
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov ebp, eax
test edi, edi
jne 0x18000c123
test eax, eax
je 0x18000c0dd
test r12d, 0x60000000
jne 0x18000c0dd
test rsi, rsi
je 0x18000c0dd
mov edi, dword [r13]
test edi, edi
je 0x18000c0dd
shr edi, 1
mov rdx, rsi
mov rcx, rsi
lea r8d, [rdi + 1]
call qword [sym.imp.ntdll.dll_wcstombs]
mov dword [r13], edi
test rbx, rbx
je 0x18000c123
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000c123
cmp dword [rsp + 0x78], 0
mov rax, qword [rsp + 0x70]
mov r9, r13
mov r8, rsi
mov edx, r12d
mov rcx, rbp
mov qword [rsp + 0x20], rax
je 0x18000c11b
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
jmp 0x18000c121
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebp, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x18000de70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180039b48]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000df2b
lea rdx, [0x18003d3d6]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x180039c88]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x18000df19
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 1]
add eax, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000ef64
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x28], 0
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x18]
lea rcx, [rax - 0x24]
call sub.ntdll.dll_memset
test rbx, rbx
je 0x18000ef98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov dword [rsp + 0x20], 0x1c
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000f03e
lea rcx, [0x18003d01d]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18003dfcf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rsi, rax
call sub.KERNEL32.dll_Thread32First
jmp 0x18000f031
mov ecx, dword [0x180039ce4]
cmp dword [rsp + 0x2c], ecx
jne 0x18000f024
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1f03ff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000f024
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18000efe6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18000f710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
and qword [r11 - 0x38], 0
xor eax, eax
mov rbp, rdx
mov r12d, r9d
mov edi, r8d
mov rsi, rcx
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18000f824
mov rcx, qword [0x180039d08]
and dword [rsp + 0x88], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
test r12d, r12d
je 0x18000f7a2
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x18000f7a8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000f7f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x18000f811
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov r9d, 0x2710
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, rsi
mov ebx, eax
cmp eax, 1
jne 0x18000f80b
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [rsp + 0x88]
add rbp, rax
sub edi, dword [rsp + 0x88]
je 0x18000f815
jmp 0x18000f77a
call qword [sym.imp.KERNEL32.dll_CancelIo]
test edi, edi
jne 0x18000f817
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000f82c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18000fc1c
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov ebp, r8d
mov r15, r9
and dword [rax - 0x38], esi
xor eax, eax
mov r13, rdx
mov r12d, ecx
lea r14d, [rbp + 0x10]
lea ebx, [rsi + 8]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
test r9, r9
je 0x18000fc74
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
add r14d, esi
jmp 0x18000fc80
cmp ecx, 0x119
je 0x18000fd3b
mov rcx, qword [0x180039b48]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000fd39
mov ecx, dword [0x180039ce4]
mov dword [rax + 0xc], esi
mov dword [rax + 4], ecx
movzx ecx, r12w
mov dword [rax], ecx
lea ecx, [rsi + rbp]
mov dword [rax + 8], ecx
test esi, esi
je 0x18000fcc9
lea rcx, [rax + 0x10]
mov r8d, esi
mov rdx, r15
call sub.ntdll.dll_memcpy
test r13, r13
je 0x18000fce2
test ebp, ebp
je 0x18000fce2
lea rcx, [rsi + rdi + 0x10]
mov r8, rbp
mov rdx, r13
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180039c70]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x18000fd25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000fd27
xor ebx, ebx
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800151d4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x180039b48]
mov rbp, rdx
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x78], rax
cmp rbx, rax
jne 0x180015214
mov eax, 8
jmp 0x1800152fa
mov esi, eax
xor edx, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov r8, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x180015288
test eax, eax
jne 0x180015275
lea rcx, [0x18003e688]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [0x18003e688]
mov rcx, rbx
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x18001527d
inc esi
xor eax, eax
mov edx, esi
jmp 0x180015218
mov rdx, rbp
mov rcx, rdi
call fcn.180014cf8
xor esi, esi
xor edx, edx
jmp 0x1800152cd
lea rax, [rsp + 0x78]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800152be
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call fcn.1800151d4
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov edx, esi
mov r9d, 0x104
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x18001528e
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800155b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x180015620
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x180015620
mov rcx, qword [0x180039b48]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180015620
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180015620
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800156c4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov r12, rdx
and qword [rax - 0x28], rdi
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180015779
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
jne 0x180015724
mov ebx, 0xe8
jmp 0x180015781
mov rcx, qword [0x180039b48]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180015779
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180015779
cmp ebx, dword [rsp + 0x78]
je 0x18001576a
mov ebx, 0x1e
jmp 0x180015781
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x180015781
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x180015790
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1800157ab
test ebx, ebx
je 0x1800157ab
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180015828
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, r9d
mov r13d, r8d
mov r8d, r9d
and al, 3
mov esi, r9d
mov r14, rdx
neg al
mov edx, 0xc0000000
mov r15, rcx
sbb r12d, r12d
and qword [r11 - 0x38], 0
shr r8d, 8
and r12d, 3
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
inc r12d
mov ebp, 0x1388
mov dword [r11 - 0x48], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180015908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x20
jne 0x180015902
test sil, 4
je 0x180015902
test ebp, ebp
jle 0x180015902
mov rcx, qword [0x180039d08]
mov edx, 0xc8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800158fd
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r12d
sub ebp, 0xc8
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180015895
jmp 0x180015902
mov ebx, 0x5b4
cmp rdi, 0xffffffffffffffff
je 0x180015960
mov r9d, 2
test r9b, sil
je 0x180015921
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, r13d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001594f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x180015957
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180015e4c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov ebx, 8
mov dword [rsp + 0x78], 0x104
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8d, 0x208
mov esi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180016027
mov rcx, qword [0x180039b48]
lea r8d, [rsi + rsi + 0xa]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180016010
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180015ffe
mov rdx, qword [rsp + 0x60]
lea r8, [0x18003db58]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x180015f16
lea ebx, [rax + 4]
jmp 0x180015fec
xor ebx, ebx
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x180015fc1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x20]
lea ebp, [rax + rcx + 2]
cmp dword [rsp + 0x78], ebp
jae 0x180015f6f
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
lea r8d, [rbp + rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180015fd8
mov dword [rsp + 0x78], ebp
mov rdx, qword [rsp + 0x60]
lea r8, [rsi + 0x2c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [rsi], 0x10
mov rcx, rdi
je 0x180015fb1
mov ebp, dword [rsp + 0x70]
mov edx, 1
mov r8d, ebp
call fcn.180015e4c
mov ebx, eax
test eax, eax
jne 0x180015fe7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180015fc1
test ebp, ebp
jmp 0x180015fbf
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180015fc1
cmp dword [rsp + 0x70], eax
je 0x180015fdf
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180015fe7
jmp 0x180015f18
mov ebx, 8
jmp 0x180015fe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x180016027
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret