joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000fd60
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rcx, qword [0x180052fe8]
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rax, [r11 - 0x68]
lea r8, [r11 - 0x68]
lea rdx, [0x180057b40]
mov qword [r11 - 0x60], rax
lea rax, [r11 - 0x68]
add rcx, 8
xor r9d, r9d
mov qword [r11 - 0x68], rax
call fcn.1800170c8
test eax, eax
je 0x18000ff67
mov rsi, qword [rsp + 0x30]
mov rbp, rsi
mov rsi, qword [rsi]
lea rcx, [rbp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x20
jne 0x18000ff2e
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.180019e44
test eax, eax
je 0x18000ff2e
mov r8d, dword [0x180053010]
xor r9d, r9d
lea rcx, [rsp + 0x50]
lea edx, [r9 + 0x10]
call fcn.180041618
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xa8]
lea rcx, [rbp + 0x28]
call fcn.180016d90
test eax, eax
jne 0x18000ff38
lea rcx, [rsp + 0xb0]
xor r14d, r14d
xor r15d, r15d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r13d, dword [rsp + 0xa0]
cmp r13d, 0x10
jbe 0x18000fe98
mov rcx, qword [rsp + 0xa8]
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov dword [rsp + 0x20], r13d
call fcn.18000f908
mov r13d, dword [rsp + 0xa0]
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rdi, rax
jmp 0x18000fe9a
xor edi, edi
test rdi, rdi
je 0x18000ff0b
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
mov r12d, 1
call fcn.180004b94
test eax, eax
je 0x18000fee8
mov rax, qword [0x180052fe8]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000fef7
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov edx, r13d
mov r9, r15
mov r8, r14
mov qword [rsp + 0x20], rdi
call fcn.180021cac
mov r12d, eax
jmp 0x18000fef2
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r12d, r12d
je 0x18000ff15
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000ff15
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, qword [rsp + 0xa8]
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000ff38
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp]
mov rax, qword [rbp + 8]
mov r8, rbp
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x30]
cmp rsi, r11
jne 0x18000fdbb
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800105fc
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 0x180010630
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
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1800106d6
lea rcx, [0x18005701d]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18005803f]
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 0x1800106c9
mov ecx, dword [0x180053080]
cmp dword [rsp + 0x2c], ecx
jne 0x1800106bc
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1f03ff
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
mov rdi, rax
je 0x1800106bc
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 0x18001067e
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 0x180010d8c
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]
test rax, rax
mov qword [rsp + 0x58], rax
je 0x180010ea0
mov rcx, qword [0x1800530a0]
and dword [rsp + 0x88], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
test r12d, r12d
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
je 0x180010e1e
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x180010e24
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180010e6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ebx, eax
jne 0x180010e8d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov r9d, 0x2710
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, rsi
cmp eax, 1
mov ebx, eax
jne 0x180010e87
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 0x180010e91
jmp 0x180010df6
call qword [sym.imp.KERNEL32.dll_CancelIo]
test edi, edi
jne 0x180010e93
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180010ea8
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 0x180011298
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
test r9, r9
mov r13, rdx
mov r12d, ecx
lea r14d, [rbp + 0x10]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
lea ebx, [rsi + 8]
je 0x1800112f0
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
add r14d, esi
jmp 0x1800112fc
cmp ecx, 0x119
je 0x1800113b7
mov rcx, qword [0x180052eb0]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800113b5
test esi, esi
mov ecx, dword [0x180053080]
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
je 0x180011345
lea rcx, [rax + 0x10]
mov r8d, esi
mov rdx, r15
call sub.ntdll.dll_memcpy
test r13, r13
je 0x18001135e
test ebp, ebp
je 0x18001135e
lea rcx, [rsi + rdi + 0x10]
mov r8, rbp
mov rdx, r13
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180053000]
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 0x1800113a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800113a3
xor ebx, ebx
mov rcx, qword [0x180052eb0]
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 0x180014300
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rbx, rcx
mov rcx, r8
mov r13, r9
mov rsi, r8
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180052eb0]
add eax, eax
xor edx, edx
lea r8d, [rax + 1]
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180014368
lea r8, [rsp + 0x70]
xor r9d, r9d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
cmovne rsi, rdi
mov rcx, qword [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x10000000
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
mov qword [rbx + 0x18], rax
je 0x1800144e7
lea rdx, [0x1800141d4]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x1800144e7
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [rsp + 0xa0]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x38], rbx
mov eax, ebp
mov rdx, r12
neg eax
sbb r8w, r8w
and dword [rsp + 0x30], 0
xor r9d, r9d
and r8w, 0x16b
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
add r8w, 0x50
call qword [sym.imp.WININET.dll_InternetConnectA]
test rax, rax
mov qword [rbx + 0x20], rax
jne 0x180014429
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1800144e7
mov rcx, qword [rbx + 0x30]
mov edx, 0xea60
call fcn.18001404c
test eax, eax
jne 0x1800144e7
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x38], rbx
neg ebp
sbb eax, eax
mov r8, rsi
mov rdx, r13
and eax, 0x7ff180
xor r9d, r9d
add eax, 0x84404000
mov dword [rsp + 0x30], eax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
test rax, rax
mov qword [rbx + 0x28], rax
je 0x1800144e7
mov esi, 4
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
lea ebp, [rsi + 0x1b]
mov rcx, rax
mov dword [rsp + 0x70], esi
mov edx, ebp
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x1800144a7
mov rcx, qword [rbx + 0x28]
bts dword [rsp + 0x40], 8
lea r8, [rsp + 0x40]
mov r9d, esi
mov edx, ebp
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [rbx + 0x28]
lea r8, [rsp + 0x98]
mov r9d, esi
mov edx, 6
call qword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x1800144e7
mov rcx, qword [rbx + 0x28]
lea r8, [rsp + 0x98]
mov r9d, esi
mov edx, 5
call qword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x1800144e7
xor ebx, ebx
jmp 0x1800144ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x180014506
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x180014740
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0xa0
and dword [rax + 8], 0
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
mov esi, edx
mov edx, 0xea60
call fcn.18001404c
test eax, eax
mov ebx, eax
jne 0x18001497b
mov ebx, dword [rdi + 0x40]
test ebx, ebx
jne 0x180014971
cmp qword [rdi], 0
jne 0x180014971
test esi, esi
je 0x180014794
mov rcx, qword [rdi + 0x28]
call fcn.180014270
mov qword [rdi + 8], rax
mov ebx, 8
lea r8, [rsp + 0x38]
xor ecx, ecx
lea edx, [rbx - 7]
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x180014971
mov rcx, qword [0x180052eb0]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180014966
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0xc0]
mov r8d, 0x1000
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180014823
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ebx, eax
jne 0x180014845
mov rcx, qword [rdi + 0x30]
or edx, 0xffffffff
call fcn.18001404c
test eax, eax
mov ebx, eax
jne 0x180014845
mov ebx, dword [rdi + 0x40]
test ebx, ebx
jne 0x180014845
mov r8d, dword [rsp + 0xc0]
test r8d, r8d
je 0x180014843
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x1800147d2
xor ebx, ebx
mov rcx, qword [0x180052eb0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x180014966
mov rcx, qword [rdi + 0x28]
and dword [rsp + 0xd0], ebx
and dword [rsp + 0xd8], ebx
lea rax, [rsp + 0xd8]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xd0]
mov edx, 0x20000013
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180014961
cmp dword [rsp + 0xd0], 0xc8
jne 0x180014961
mov rcx, qword [rsp + 0x38]
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov r11d, dword [rsp + 0x60]
test r11d, r11d
mov dword [rsp + 0xc0], r11d
je 0x18001495a
mov rcx, qword [rsp + 0x38]
and dword [rsp + 0x40], ebx
and dword [rsp + 0x44], ebx
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x28]
movsxd r8, dword [rsp + 0xc0]
mov rcx, qword [0x180052eb0]
add r8, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180014953
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0xc0]
xor r9d, r9d
mov r10, qword [rcx]
mov rdx, rax
call qword [r10 + 0x18]
movsxd r11, dword [rsp + 0xc0]
mov byte [r11 + rsi], bl
mov eax, dword [rsp + 0xc0]
mov qword [rdi], rsi
mov dword [rdi + 0x44], eax
jmp 0x180014966
mov ebx, 8
jmp 0x180014966
mov ebx, 0x10d2
jmp 0x180014966
mov ebx, 0xe8
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180014d5c
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov eax, dword [0x180051244]
mov ebp, r8d
mov r13d, r8d
shr ebp, 0x14
mov r14, rdx
mov r15, rcx
mov ebx, 8
lea r12, [0x1800573eb]
imul ebp, eax
test ebp, ebp
jne 0x180014da1
mov ebp, dword [0x180051244]
mov rcx, qword [0x180052eb0]
test r9, r9
cmovne r12, r9
xor edx, edx
lea r8d, [rdx + 0x50]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180014ece
mov rcx, rax
call fcn.180014088
test eax, eax
je 0x180014eae
cmp dword [rsp + 0xa8], 0
jne 0x180014de5
or dword [rdi + 0x48], 1
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x30], ebp
mov r9d, r13d
mov qword [rsp + 0x28], rax
mov r8, r14
mov rdx, r15
mov rcx, rdi
mov qword [rsp + 0x20], r12
call fcn.180014a94
test eax, eax
mov ebx, eax
jne 0x180014ea6
cmp dword [rsp + 0xa8], eax
je 0x180014ece
mov rcx, qword [rdi + 0x30]
mov edx, ebp
call fcn.18001404c
test eax, eax
mov ebx, eax
jne 0x180014e95
mov ebx, dword [rdi + 0x40]
test ebx, ebx
jne 0x180014ea6
mov rcx, qword [rdi + 0x28]
and dword [rsp + 0x90], ebx
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], 4
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180014e8b
cmp dword [rsp + 0x40], 0xc8
je 0x180014ea6
mov ebx, 0xe8
jmp 0x180014ea6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180014ea6
cmp eax, 0x102
jne 0x180014ea6
add dword [0x180051244], 0xea60
mov rcx, rdi
call fcn.1800140f4
cmp dword [rsp + 0xa8], 0
jne 0x180014ebc
test ebx, ebx
je 0x180014ece
mov rcx, qword [0x180052eb0]
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 r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180016b48
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 [0x180052eb0]
mov rbp, rdx
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
xor eax, eax
cmp rbx, rax
mov qword [rsp + 0x78], rax
jne 0x180016b88
mov eax, 8
jmp 0x180016c70
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 0x180016bfd
test eax, eax
jne 0x180016be9
lea rcx, [0x1800586a8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [0x1800586a8]
mov rcx, rbx
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x180016bf2
add esi, 1
xor eax, eax
mov edx, esi
jmp 0x180016b8c
mov rdx, rbp
mov rcx, rdi
call fcn.18001668c
xor esi, esi
xor edx, edx
jmp 0x180016c43
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 0x180016c33
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call fcn.180016b48
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
mov edx, esi
mov r9d, 0x104
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x180016c03
mov rcx, qword [0x180052eb0]
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 0x180016c80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov rdi, rcx
je 0x180016cec
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov esi, eax
je 0x180016cec
mov rcx, qword [0x180052eb0]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180016cec
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180016cec
mov rcx, qword [0x180052eb0]
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 0x180016d90
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]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x180016e45
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov ebx, eax
jne 0x180016df0
mov ebx, 0xe8
jmp 0x180016e4d
mov rcx, qword [0x180052eb0]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180016e45
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 0x180016e45
cmp ebx, dword [rsp + 0x78]
je 0x180016e36
mov ebx, 0x1e
jmp 0x180016e4d
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x180016e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x180016e5c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x180016e77
test ebx, ebx
je 0x180016e77
mov rcx, qword [0x180052eb0]
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 0x180016ef4
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
add r12d, 1
mov ebp, 0x1388
mov dword [r11 - 0x48], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x180016fd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov ebx, eax
jne 0x180016fcf
test sil, 4
je 0x180016fcf
test ebp, ebp
jle 0x180016fcf
mov rcx, qword [0x1800530a0]
mov edx, 0xc8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180016fca
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]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x180016f62
jmp 0x180016fcf
mov ebx, 0x5b4
cmp rdi, 0xffffffffffffffff
je 0x18001702d
mov r9d, 2
test r9b, sil
je 0x180016fee
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 0x18001701c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x180017024
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 0x1800174fc
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 [0x180052eb0]
xor edx, edx
mov r8d, 0x208
mov esi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800176d7
mov rcx, qword [0x180052eb0]
lea r8d, [rsi + rsi + 0xa]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
mov qword [rsp + 0x30], rax
je 0x1800176c0
mov rcx, qword [0x180052eb0]
xor edx, edx
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x1800176ae
mov rdx, qword [rsp + 0x60]
lea r8, [0x180057b40]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
jne 0x1800175c6
lea ebx, [rax + 4]
jmp 0x18001769c
xor ebx, ebx
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x180017671
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 0x18001761f
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180052eb0]
lea r8d, [rbp + rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180017688
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 0x180017661
mov ebp, dword [rsp + 0x70]
mov edx, 1
mov r8d, ebp
call fcn.1800174fc
test eax, eax
mov ebx, eax
jne 0x180017697
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180017671
test ebp, ebp
jmp 0x18001766f
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180017671
cmp dword [rsp + 0x70], eax
je 0x18001768f
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180017697
jmp 0x1800175c8
mov ebx, 8
jmp 0x180017697
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x180052eb0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180052eb0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1800176d7
mov rcx, qword [0x180052eb0]
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