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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x180035a88]
test rbx, rbx
je 0x180004f28
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rbx + 0x30]
test rdi, rdi
je 0x180004f1f
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rsi, rax
test rax, rax
je 0x180004f10
mov rcx, qword [0x180035c60]
lea rbp, [0x180000000]
lea rdx, [rcx + rbp + 0x3ae68]
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180004e8e
mov rax, qword [0x180035c60]
mov rcx, rsi
lea rdx, [rax + rbp + 0x3ae78]
call qword [sym.imp.kERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180004f10
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov r8d, dword [rbx + 0x40]
mov dword [rsp + 0x40], eax
cmp eax, r8d
jbe 0x180004eb5
mov rdx, qword [rbx + 0x38]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x180004f10
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x180004ec9
call qword [sym.imp.kERNEL32.dll_CloseHandle]
and qword [rbx + 0x28], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.18001c888
test eax, eax
jne 0x180004f10
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.180022540
test eax, eax
jne 0x180004efc
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_DeleteFileW]
xor edi, edi
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
test rdi, rdi
je 0x180004f1f
xor edx, edx
mov rcx, rdi
call fcn.18000df20
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000525c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
mov rdi, r8
lea r8, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x18000529d
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800055cc
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
xor ebx, ebx
call qword [sym.imp.kERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x50]
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetReadFile]
or r15d, 0xffffffff
test eax, eax
jne 0x18000565e
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x180005656
mov rax, qword [rdi + 0x38]
lea rdx, [rsp + 0x20]
lea ecx, [r15 + 3]
mov qword [rsp + 0x20], rax
mov rax, qword [0x180035c88]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x28], rax
call qword [sym.imp.kERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
mov ebx, eax
cmove ebx, r15d
test ebx, ebx
jne 0x180005797
mov ebx, dword [rdi + 0x50]
test ebx, ebx
jne 0x180005797
cmp dword [rsp + 0x50], 0
je 0x180005793
lea r8, [rsp + 0x60]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18000578c
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18000577a
mov rcx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov r10, qword [rcx]
xor r9d, r9d
call qword [r10 + 0x20]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.kERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x50]
mov r8d, 0x1000
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180005731
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x180005753
mov rax, qword [rdi + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [0x180035c88]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
call qword [sym.imp.kERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
mov ebx, eax
cmove ebx, r15d
test ebx, ebx
jne 0x180005753
mov ebx, dword [rdi + 0x50]
test ebx, ebx
jne 0x180005753
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x180005751
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x1800056bd
xor ebx, ebx
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x18000577f
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.180007b58
mov ebx, eax
jmp 0x18000577f
mov ebx, 8
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x180005797
mov ebx, 8
jmp 0x180005797
and dword [rdi + 0x58], 0
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1800057a8
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
sub rsp, 0x20
mov rax, qword [0x180035c60]
mov r12, rcx
lea rcx, [0x1800393d2]
add rcx, rax
mov rbp, rdx
mov edi, 8
call fcn.180011ae0
mov rbx, rax
test rax, rax
je 0x180005857
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035a68]
xor edx, edx
add eax, 0x105
movsxd r8, eax
add r8, r8
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180005845
mov r8, qword [0x180035f50]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_CreateDirectoryW]
mov rcx, rsi
mov qword [r12], rsi
call qword [sym.imp.kERNEL32.dll_lstrlenW]
xor edi, edi
mov dword [rbp], eax
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x180005874
Capabilities:
Get hostname
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
lea rdx, [rax + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [rax + 8], ebx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov r11d, dword [rsp + 0x50]
cmp r11d, ebx
je 0x180005998
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x58], r11d
mov dword [rsp + 0x50], ebx
call qword [sym.imp.kERNEL32.dll_GetComputerNameW]
mov r11d, dword [rsp + 0x50]
cmp r11d, ebx
je 0x180005998
mov eax, dword [rsp + 0x58]
mov rcx, qword [0x180035a68]
xor edx, edx
lea eax, [rax + r11 + 2]
mov dword [rsp + 0x58], eax
shl eax, 2
mov r8d, eax
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x180005998
mov ecx, dword [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea esi, [rcx + rcx]
mov dword [rsp + 0x50], ecx
add rsi, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, ebx
je 0x180005986
mov ecx, dword [rsp + 0x50]
lea eax, [rbx + 0x40]
lea rdx, [rsp + 0x58]
dec ecx
mov word [rsi + rcx*2], ax
mov eax, dword [rsp + 0x50]
sub dword [rsp + 0x58], eax
lea rcx, [rsi + rax*2]
call qword [sym.imp.kERNEL32.dll_GetComputerNameW]
cmp eax, ebx
je 0x180005986
mov r9d, dword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
add r9d, dword [rsp + 0x50]
mov r8, rsi
xor edx, edx
lea eax, [r9 + r9 + 2]
mov ecx, 0xfde9
mov dword [rsp + 0x58], r9d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x50], eax
cmp eax, ebx
je 0x180005986
mov eax, eax
mov byte [rax + rdi], bl
mov rbx, rdi
jmp 0x180005998
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180005e14
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
push r14
push r15
sub rsp, 0x60
xor r15d, r15d
mov r13, r8
mov r14, rdx
lea r8, [rax - 0x38]
xor edx, edx
mov r12d, r9d
mov dword [rax - 0x44], r15d
mov dword [rax - 0x48], r15d
mov dword [rax - 0x40], r15d
call fcn.180002e84
mov ebx, eax
cmp eax, r15d
jne 0x180005fe3
mov rcx, qword [0x180035a68]
mov edi, 0x105
xor edx, edx
mov r8, rdi
lea ebx, [r15 + 8]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r15
je 0x180005fd8
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
mov ebp, edi
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r15
je 0x180005fc6
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov r8, rsi
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x48], 0x105
mov dword [rsp + 0x40], ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
cmp eax, 0xea
jne 0x180005f46
cmp dword [rsp + 0x48], 0x105
jbe 0x180005f05
inc dword [rsp + 0x44]
mov ebx, r15d
jmp 0x180005f8f
cmp dword [rsp + 0x40], ebp
jbe 0x180005fb4
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov ebp, dword [rsp + 0x40]
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r15
jne 0x180005efd
mov ebx, 8
jmp 0x180005fb4
cmp eax, r15d
jne 0x180005faa
cmp r12d, r15d
je 0x180005f66
mov r8d, dword [0x180035c90]
mov edx, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
call fcn.1800283c4
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call r14
mov ebx, eax
cmp eax, r15d
jne 0x180005faa
mov rcx, qword [0x180035c88]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180005fb4
jmp 0x180005ea5
cmp ebx, 0x103
cmove ebx, r15d
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
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 0x1800064f4
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x510
and qword [rsp + 0x40], 0
mov r13, rcx
mov r14d, r8d
mov rsi, rdx
lea rcx, [rsp + 0x48]
mov r8d, 0x4c8
xor edx, edx
mov rdi, r9
call sub.ntdll.dll_memset
mov r12, qword [rsi]
and qword [rsp + 0x38], 0
mov rdx, r12
xor ecx, ecx
mov dword [rsp + 0x548], 0xccccfeeb
call fcn.180015700
xor ebp, ebp
test eax, eax
lea ecx, [rbp + 0x10]
mov eax, r14d
cmovne ebp, ecx
and eax, 0xc
cmp al, 0xc
jne 0x18000658e
and qword [rsp + 0x20], 0
mov r8d, ebp
xor r9d, r9d
mov rdx, r13
mov rcx, rsi
or r8d, 0x20
call fcn.180018f68
mov ebx, eax
cmp eax, 0x7f
jne 0x1800066be
mov dword [rsp + 0x70], 0x10000b
test rdi, rdi
jne 0x1800065a8
mov rcx, qword [rsi]
mov edx, ebp
call fcn.18000cf84
mov rdi, rax
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 4
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.180002f50
test eax, eax
je 0x1800066b6
cmp qword [rsp + 0x38], 4
jne 0x1800066af
lea r8, [rsp + 0x548]
mov r9d, 4
mov rdx, rdi
mov rcx, r12
call fcn.1800228bc
test eax, eax
je 0x1800066b6
mov ebx, 0xbb8
mov r14d, 0x64
mov rcx, qword [rsi + 8]
call qword [sym.imp.kERNEL32.dll_ResumeThread]
mov rcx, qword [0x180035c88]
mov edx, r14d
call qword [sym.imp.kERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi + 8]
cmp eax, 0x102
cmovne ebx, r14d
call qword [sym.imp.kERNEL32.dll_SuspendThread]
mov rax, qword [0x1800346f0]
sub ebx, r14d
test rax, rax
je 0x180006657
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x40]
call rax
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test ebx, ebx
jle 0x180006665
cmp qword [rsp + 0x138], rdi
jne 0x180006608
cmp qword [rsp + 0x138], rdi
je 0x180006676
mov ebx, 0x261
jmp 0x18000668f
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, ebp
mov rdx, r13
mov rcx, rsi
call fcn.180018f68
mov ebx, eax
lea r8, [rsp + 0x30]
mov r9d, 4
mov rdx, rdi
mov rcx, r12
call fcn.1800228bc
mov r14d, dword [rsp + 0x550]
jmp 0x1800066be
mov ebx, 0x12b
jmp 0x1800066be
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
test r14b, 4
jne 0x1800066ce
mov rcx, qword [rsi + 8]
call qword [sym.imp.kERNEL32.dll_ResumeThread]
lea r11, [rsp + 0x510]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x180006a0c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov ebx, r8d
test rcx, rcx
je 0x180006a52
test rdx, rdx
je 0x180006a52
test ebx, ebx
je 0x180006a52
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.kERNEL32.dll_WriteFile]
test eax, eax
jne 0x180006a43
call qword [sym.imp.kERNEL32.dll_GetLastError]
jmp 0x180006a57
mov eax, dword [rsp + 0x40]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x1d
jmp 0x180006a57
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x180006a60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180035ca0]
mov rdi, rcx
mov rcx, qword [0x180035bf0]
mov rsi, qword [rax + 0x18]
lea r8, [rsp + 0x48]
mov edx, 1
call fcn.180002e84
mov ebx, eax
test eax, eax
jne 0x180006ac8
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 3]
xor r8d, r8d
mov rdx, rsi
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 rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180007c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r11, r9
mov r8, rdx
mov r14, rcx
xor ebx, ebx
movsxd r10, dword [rcx + 0x3c]
mov edx, 0x14c
lea rax, [r10 + rcx + 0x78]
lea rcx, [r10 + rcx + 0x88]
cmp word [r10 + r14 + 4], dx
cmove rcx, rax
mov eax, dword [rcx]
lea rdi, [r14 + rax]
test eax, eax
je 0x180007eb5
cmp dword [rcx + 4], ebx
je 0x180007eb5
cmp dword [rdi + 0x1c], ebx
je 0x180007eb5
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x28], eax
test eax, eax
je 0x180007eb5
mov ecx, dword [rdi + 0x1c]
add rcx, r14
mov qword [rsp + 0x30], rcx
mov rdx, r8
mov qword [rsp + 0x38], rdx
test r8, r8
je 0x180007d29
cmp r8, 0xffff
jbe 0x180007d37
xor edx, edx
mov qword [rsp + 0x38], rdx
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x28], eax
cmp dword [rdi + 0x24], 0
je 0x180007ea6
mov r12d, dword [rdi + 0x24]
add r12, r14
mov qword [rsp + 0x58], r12
mov esi, dword [rdi + 0x20]
add rsi, r14
mov qword [rsp + 0x50], rsi
xor r9d, r9d
mov dword [rsp + 0x20], r9d
lea r13d, [r9 + 1]
cmp r9d, eax
jae 0x180007eb5
xor r15d, r15d
mov dword [rsp + 0x24], r15d
test rdx, rdx
je 0x180007da0
mov ecx, dword [rdi + 0x10]
movzx eax, word [r12]
add rcx, rax
cmp rdx, rcx
jne 0x180007e5c
mov r15d, r13d
mov dword [rsp + 0x24], r13d
mov rcx, qword [rsp + 0x30]
jmp 0x180007e61
mov r10d, dword [rsi]
add r10, r14
mov qword [rsp + 0x48], r10
test r8, r8
je 0x180007df5
mov al, byte [r8]
cmp byte [r10], al
jne 0x180007e61
mov rdx, r8
mov rcx, r10
call qword [sym.imp.kERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x180007e3b
mov r15d, r13d
mov dword [rsp + 0x24], r13d
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x20]
mov r11, qword [rsp + 0xb8]
jmp 0x180007e61
mov rcx, r10
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov edx, eax
mov rcx, qword [rsp + 0x48]
call fcn.18001e8e8
cmp dword [rsp + 0xb0], eax
cmove r15d, r13d
mov dword [rsp + 0x24], r15d
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x20]
mov r11, qword [rsp + 0xb8]
jmp 0x180007e61
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x20]
mov r11, qword [rsp + 0xb8]
jmp 0x180007e61
mov rcx, qword [rsp + 0x30]
test r15d, r15d
je 0x180007e83
movzx eax, word [r12]
lea rbx, [rcx + rax*4]
mov qword [rsp + 0x40], rbx
test r11, r11
je 0x180007eb5
mov eax, dword [rsi]
add rax, r14
mov qword [r11], rax
jmp 0x180007eb5
add rsi, 4
mov qword [rsp + 0x50], rsi
add r12, 2
mov qword [rsp + 0x58], r12
add r9d, r13d
mov dword [rsp + 0x20], r9d
mov eax, dword [rsp + 0x28]
jmp 0x180007d64
test rdx, rdx
je 0x180007eb5
lea rbx, [rcx + rdx*4 - 4]
mov qword [rsp + 0x40], rbx
jmp 0x180007ebe
mov rax, rbx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180008294
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xor edi, edi
call qword [sym.imp.kERNEL32.dll_GetTickCount]
lea r8d, [rdi + 3]
mov qword [rsp + 0x30], rdi
lea r9, [0x180035cb0]
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x20], r8d
call qword [sym.imp.kERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18000839a
mov rdx, qword [0x180035c60]
lea rcx, [0x1800393c0]
lea r9d, [rdi + 1]
add rdx, rcx
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.180021860
mov rbx, rax
cmp rax, rdi
je 0x18000838a
xor edx, edx
mov rcx, rbp
call qword [sym.imp.kERNEL32.dll_GetFileSize]
lea r8d, [rdi + 2]
lea rdx, [0x180035cb0]
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov r12d, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.kERNEL32.dll_CreateFileMappingA]
cmp rax, rdi
je 0x18000836e
mov rcx, rbx
mov dword [rsi + 0x10], edi
mov qword [rsi], rax
mov dword [rsi + 8], r12d
call qword [sym.imp.kERNEL32.dll_lstrlenA]
lea rcx, [rsi + 0x14]
mov rdx, rbx
mov dword [rsi + 0xc], eax
call qword [sym.imp.kERNEL32.dll_lstrcpyA]
jmp 0x180008376
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x18000838f
mov edi, 8
mov rcx, rbp
call qword [sym.imp.kERNEL32.dll_CloseHandle]
jmp 0x1800083a2
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1800085c0
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 [0x180035a68]
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 0x1800087a5
mov rcx, qword [0x180035a68]
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 0x18000878e
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x250
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18000877c
mov r8, qword [0x180035c60]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x180039ce0]
add r8, rcx
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 0x180008694
lea ebx, [rax + 4]
jmp 0x18000876a
xor ebx, ebx
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x18000873f
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 0x1800086ed
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
lea r8d, [rbp + rbp]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180008756
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 0x18000872f
mov ebp, dword [rsp + 0x70]
mov edx, 1
mov r8d, ebp
call fcn.1800085c0
mov ebx, eax
test eax, eax
jne 0x180008765
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18000873f
test ebp, ebp
jmp 0x18000873d
call qword [sym.imp.kERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000873f
cmp dword [rsp + 0x70], eax
je 0x18000875d
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.kERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180008765
jmp 0x180008696
mov ebx, 8
jmp 0x180008765
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
mov r8, rbp
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1800087a5
mov rcx, qword [0x180035a68]
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