joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000af3c
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.18000a410
mov r13, rax
cmp rax, rbx
je 0x18000afaa
mov rdx, rdi
mov rcx, rax
call fcn.18000a348
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.18001dbd4
jmp 0x18000afcc
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
cmp dword [rsp + 0x60], ebx
je 0x18000afc4
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x18000afca
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 0x18000b6bc
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 0x18000b7da
call fcn.180009e88
mov rdi, rax
test rax, rax
je 0x18000b7da
mov edx, dword [rax + 0x54]
test dl, 0x40
je 0x18000b730
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x18000b730
cmp qword [rbx + 0x18], r14
jne 0x18000b726
mov rcx, rbx
call fcn.18001a8c0
test eax, eax
jne 0x18000b730
mov rbp, qword [rbx + 0x30]
mov r14d, 1
lea r8, [rdi - 0x34]
xor edx, edx
xor ecx, ecx
call fcn.18001dbd4
test r14d, r14d
je 0x18000b7da
mov edi, dword [rsp + 0x78]
xor ebx, ebx
cmp r12d, 0xffff
jne 0x18000b76b
test edi, edi
jne 0x18000b768
xor edx, edx
mov rcx, rsi
call fcn.18001744c
mov rbx, rax
jmp 0x18000b76b
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 0x18000b807
test eax, eax
je 0x18000b7c1
test r12d, 0x60000000
jne 0x18000b7c1
test rsi, rsi
je 0x18000b7c1
mov edi, dword [r13]
test edi, edi
je 0x18000b7c1
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 0x18000b807
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000b807
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 0x18000b7ff
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
jmp 0x18000b805
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 0x18000d61c
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 [0x180037ae8]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000d6d7
lea rdx, [0x18003b343]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x180037c28]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x18000d6c5
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 [0x180037ae8]
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 0x18000e710
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 0x18000e744
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 0x18000e7ea
lea rcx, [0x18003b01d]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18003bf3c]
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 0x18000e7dd
mov ecx, dword [0x180037c88]
cmp dword [rsp + 0x2c], ecx
jne 0x18000e7d0
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 0x18000e7d0
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 0x18000e792
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 0x18000eebc
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 0x18000efd0
mov rcx, qword [0x180037ca8]
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 0x18000ef4e
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x18000ef54
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000ef9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x18000efbd
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 0x18000efb7
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 0x18000efc1
jmp 0x18000ef26
call qword [sym.imp.KERNEL32.dll_CancelIo]
test edi, edi
jne 0x18000efc3
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000efd8
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 0x18000f3c8
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 0x18000f420
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
add r14d, esi
jmp 0x18000f42c
cmp ecx, 0x119
je 0x18000f4e7
mov rcx, qword [0x180037ae8]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000f4e5
mov ecx, dword [0x180037c88]
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 0x18000f475
lea rcx, [rax + 0x10]
mov r8d, esi
mov rdx, r15
call sub.ntdll.dll_memcpy
test r13, r13
je 0x18000f48e
test ebp, ebp
je 0x18000f48e
lea rcx, [rsi + rdi + 0x10]
mov r8, rbp
mov rdx, r13
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180037c08]
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 0x18000f4d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000f4d3
xor ebx, ebx
mov rcx, qword [0x180037ae8]
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 0x180013fe4
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 [0x180037ae8]
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 0x180014024
mov eax, 8
jmp 0x18001410a
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 0x180014098
test eax, eax
jne 0x180014085
lea rcx, [0x18003c648]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [0x18003c648]
mov rcx, rbx
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x18001408d
inc esi
xor eax, eax
mov edx, esi
jmp 0x180014028
mov rdx, rbp
mov rcx, rdi
call fcn.180013b08
xor esi, esi
xor edx, edx
jmp 0x1800140dd
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 0x1800140ce
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call fcn.180013fe4
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 0x18001409e
mov rcx, qword [0x180037ae8]
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 0x1800143c4
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 0x180014430
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x180014430
mov rcx, qword [0x180037ae8]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180014430
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180014430
mov rcx, qword [0x180037ae8]
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 0x1800144d4
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 0x180014589
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
jne 0x180014534
mov ebx, 0xe8
jmp 0x180014591
mov rcx, qword [0x180037ae8]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180014589
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 0x180014589
cmp ebx, dword [rsp + 0x78]
je 0x18001457a
mov ebx, 0x1e
jmp 0x180014591
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x180014591
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x1800145a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1800145bb
test ebx, ebx
je 0x1800145bb
mov rcx, qword [0x180037ae8]
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 0x180014638
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 0x180014718
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x20
jne 0x180014712
test sil, 4
je 0x180014712
test ebp, ebp
jle 0x180014712
mov rcx, qword [0x180037ca8]
mov edx, 0xc8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18001470d
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 0x1800146a5
jmp 0x180014712
mov ebx, 0x5b4
cmp rdi, 0xffffffffffffffff
je 0x180014770
mov r9d, 2
test r9b, sil
je 0x180014731
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 0x18001475f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x180014767
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 0x180014c5c
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 [0x180037ae8]
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 0x180014e37
mov rcx, qword [0x180037ae8]
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 0x180014e20
mov rcx, qword [0x180037ae8]
xor edx, edx
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180014e0e
mov rdx, qword [rsp + 0x60]
lea r8, [0x18003ba60]
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 0x180014d26
lea ebx, [rax + 4]
jmp 0x180014dfc
xor ebx, ebx
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x180014dd1
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 0x180014d7f
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180037ae8]
lea r8d, [rbp + rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180014de8
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 0x180014dc1
mov ebp, dword [rsp + 0x70]
mov edx, 1
mov r8d, ebp
call fcn.180014c5c
mov ebx, eax
test eax, eax
jne 0x180014df7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180014dd1
test ebp, ebp
jmp 0x180014dcf
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180014dd1
cmp dword [rsp + 0x70], eax
je 0x180014def
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180014df7
jmp 0x180014d28
mov ebx, 8
jmp 0x180014df7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180037ae8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x180014e37
mov rcx, qword [0x180037ae8]
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
Function at 0x180014e98
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
test eax, eax
je 0x180014f30
mov rcx, qword [0x180037ae8]
lea r8d, [rax + 0x1d]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180014f30
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180014f1c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
lea r8d, [rsi + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x180014f1c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x18003b3bd]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180014f30
mov rcx, qword [0x180037ae8]
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 0x180014f44
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x2365
call fcn.180014e98
mov rbx, rax
test rax, rax
je 0x180014ff7
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test rax, rax
je 0x180014f8d
lea rcx, [rbx + 4]
cmp rax, rcx
jbe 0x180014f8d
cmp dword [rax - 5], 0x776f4c5c
jne 0x180014f8d
lea rcx, [rax - 4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
xor edx, edx
mov rcx, rbx
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180014fe3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
xor eax, 0x2365
mov rcx, rbx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x180014fe3
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x18003b3bd]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180014ff7
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1800150f0
Capabilities:
Allocate or change rwx memory

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
sub rsp, 0x20
and dword [rax + 0x18], 0
xor esi, esi
cmp byte [0x180037c8c], 6
mov rbp, rdx
mov rbx, rcx
mov edi, 8
ja 0x18001519c
test rcx, rcx
je 0x18001519c
mov rax, qword [rdx + 0x30]
movabs r13, 0x8000000000000000
test qword [rax + 8], r13
jne 0x180015143
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
test eax, eax
je 0x18001519c
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], rbx
test qword [rcx + 8], r13
jne 0x180015179
lea ecx, [rdi - 2]
mov byte [rcx + rbx], 0x7e
jmp 0x180015186
movabs rax, 0x4000000000000000
or qword [rbx], rax
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1800157a4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x40
mov rdi, r9
mov r13d, r8d
mov rsi, rdx
mov r12, rcx
and qword [rax - 0x18], 0
lea r9, [rax - 0x18]
xor r8d, r8d
mov rdx, qword [rcx + 8]
mov rcx, rsi
call fcn.180018218
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18001597e
and dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov edx, 4
lea r8d, [rdx + 0x3c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180015974
mov qword [rdi + 0x30], r12
mov eax, dword [rbx]
add rax, rsi
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
mov eax, dword [rbx]
mov qword [rdi + 0x20], rax
mov r9, rdi
mov r8d, r13d
mov rdx, rsi
mov rcx, r12
call fcn.180015680
mov ebx, eax
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x180015987
mov eax, dword [0x180037c70]
test eax, eax
je 0x1800158d4
mov rdx, qword [rdi + 0x10]
mov rcx, rsi
call fcn.180015520
mov rbx, rax
test rax, rax
je 0x1800158d4
lea r9, [rsp + 0x20]
mov r8d, 0x40
lea r13d, [r8 - 0x32]
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800158d4
and dword [rbx + 2], 0
mov rax, qword [rdi + 0x28]
mov qword [rbx + 6], rax
mov eax, 0x25ff
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov qword [rdi + 0x28], rbx
mov qword [r12 + 0x18], rbx
mov r8d, dword [rsp + 0x20]
lea eax, [r13 + 0x12]
cmp r8d, 0x40
cmovne r8d, eax
mov dword [rsp + 0x20], r8d
lea r9, [rsp + 0x20]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rdi + 0x28]
sub rax, rsi
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov edx, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [rdi + 0x38], 0x102
bt dword [rdi + 0x38], 9
jae 0x180015912
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call fcn.1800150f0
lea rcx, [0x180037fc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180037fb0]
mov qword [rdi], r11
lea rax, [0x180037fb0]
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
mov qword [0x180037fb0], rdi
lea rcx, [0x180037fc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x20]
lea rax, [rsi + r11]
mov qword [r12 + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov rcx, rsi
call fcn.1800164c4
test rax, rax
je 0x180015987
and dword [rax + 0x80], ebx
jmp 0x180015987
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180015987
mov ebx, 2
mov dword [rsp + 0x28], ebx
jmp 0x18001598b
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop r13
ret