joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000051a8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov esi, r8d
mov r8, rcx
xor ecx, ecx
mov rbp, rdx
mov r9, rdx
mov qword [rax - 0x30], rcx
xor edx, edx
mov dword [rax - 0x38], ecx
mov dword [rax + 0x20], ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1000051ed
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
jmp 0x10000531a
mov rax, qword [0x1000197c8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
and dword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 2]
mov r9d, esi
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_WaitForMultipleObjectsEx]
mov ebx, eax
cmp eax, 0x102
jne 0x10000522b
call qword [sym.imp.API_MS_Win_Core_Debug_L1_1_0.dll_IsDebuggerPresent]
test eax, eax
jne 0x1000051fe
test ebx, ebx
je 0x1000051fe
cmp ebx, 0x102
jne 0x1000052e0
cmp dword [0x1000197ec], 0
je 0x1000052d6
xor edx, edx
lea r8, [0x100001cf0]
mov dword [0x1000197f0], 1
lea ecx, [rdx + 2]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
jne 0x10000527b
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [rsp + 0x78], eax
jmp 0x10000530d
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
and dword [0x1000197ec], 0
mov dword [0x1000197e8], 1
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
test rax, rax
je 0x1000052c4
lea r9, [0x100001d80]
mov edx, 0x1000000
mov r8d, 2
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov rcx, qword [rsp + 0x60]
mov r8d, esi
mov rdx, rbp
call fcn.1000051a8
jmp 0x100005272
mov dword [rsp + 0x78], 0x5b4
jmp 0x10000530d
cmp ebx, 1
jne 0x1000052fc
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetExitCodeThread]
test eax, eax
jne 0x10000530d
jmp 0x10000526c
cmp ebx, 0xffffffff
je 0x10000526c
mov dword [rsp + 0x78], 0xd
mov rcx, rdi
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000b6f8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov rdx, rcx
mov rcx, qword [0x1000197d8]
lea r8d, [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_WriteFile]
cmp eax, ebx
jne 0x10000b72c
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x10000b746
mov rcx, qword [0x1000197d0]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov rcx, qword [0x1000197c8]
call qword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_SetEvent]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x10000bb84
Capabilities:
Check systemkerneldebuggerinformation
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rcx
lea r8, [0x100002308]
lea rdx, [0x100003900]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call fcn.100010a8c
cmp eax, ebx
je 0x10000bc68
sub eax, 1
je 0x10000bc2d
cmp eax, 1
je 0x10000bbda
lea r8, [0x1000039d0]
lea ecx, [rbx + 0x23]
xor edx, edx
call qword [sym.imp.ntdll.dll_DbgPrintEx]
jmp 0x10000bc68
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcessId]
xor edx, edx
lea r8, [0x100003978]
lea ecx, [rdx + 0x23]
mov r9d, eax
call qword [sym.imp.ntdll.dll_DbgPrintEx]
jmp 0x10000bc0f
lea r8, [0x1000039cc]
call qword [sym.imp.ntdll.dll_DbgPrintEx]
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
call qword [sym.imp.API_MS_Win_Core_Debug_L1_1_0.dll_IsDebuggerPresent]
xor edx, edx
lea ecx, [rdx + 0x23]
cmp eax, ebx
je 0x10000bbf7
lea r8, [0x1000039b8]
call qword [sym.imp.ntdll.dll_DbgPrintEx]
jmp 0x10000bc63
call qword [sym.imp.API_MS_Win_Core_Debug_L1_1_0.dll_IsDebuggerPresent]
cmp eax, ebx
jne 0x10000bc63
xor eax, eax
lea rdx, [rsp + 0x48]
xor r9d, r9d
lea r8d, [rax + 2]
lea ecx, [rax + 0x23]
mov word [rsp + 0x48], ax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, ebx
jl 0x10000bc68
cmp byte [rsp + 0x48], bl
je 0x10000bc68
cmp byte [rsp + 0x49], bl
jne 0x10000bc68
mov ebx, 1
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x10000c16c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov rbx, rcx
xor edi, edi
lea rdx, [0x100003b00]
mov r9d, 0x20019
and dword [rcx], edi
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000c205
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, [0x100003b68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10000c1f0
mov eax, dword [rsp + 0x48]
mov edi, 1
mov dword [rbx], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
and qword [rsp + 0x50], 0
test edi, edi
jne 0x10000c279
lea rax, [rsp + 0x50]
lea rdx, [0x100003b90]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000c279
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, [0x100003b68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10000c26e
mov eax, dword [rsp + 0x48]
mov dword [rbx], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x10000c28c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x40], di
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x38]
lea r9d, [rdi + 1]
lea rdx, [0x100003c10]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov rbx, rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10000c362
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x100003c98]
xor r8d, r8d
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, edi
jne 0x10000c352
cmp dword [rsp + 0x34], 1
jne 0x10000c352
cmp dword [rsp + 0x30], 0x208
ja 0x10000c352
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, qword [rsp + 0x38]
cmp rcx, rdi
je 0x10000c362
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.100014800
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x10000cfb4
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x40
and dword [rsp + 0x50], 0
and qword [r11 - 0x18], 0
mov r9d, 4
mov rdi, rdx
lea rax, [r11 + 0x20]
lea r8, [r11 + 0x18]
lea edx, [r9 + 4]
mov rbx, rcx
mov qword [r11 - 0x28], rax
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x10000d040
mov r9d, 2
cmp dword [rsp + 0x60], r9d
je 0x10000d023
lea rax, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x20], r9d
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_DuplicateTokenEx]
test eax, eax
je 0x10000d050
mov rbx, qword [rsp + 0x30]
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10000d050
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x10000d144
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xcc0
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0xcb0], rax
mov rdi, rdx
mov rdx, qword [rdx + 4]
mov rsi, rcx
lea rcx, [0x1000020d0]
xor ebx, ebx
cmp rdx, qword [rcx]
jne 0x10000d18e
mov rdx, qword [rdi + 0xc]
cmp rdx, qword [rcx + 8]
jne 0x10000d18e
mov eax, ebx
jmp 0x10000d193
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10000d27e
mov rdx, rdi
mov rcx, rsi
call fcn.10000c028
cmp eax, ebx
je 0x10000d27e
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x620
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x60], 0x620
call qword [sym.imp.SETUPAPI.dll_SetupDiGetSelectedDriverW]
cmp eax, ebx
jne 0x10000d1f3
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, 0xe0000203
jne 0x10000d27e
jmp 0x10000d279
lea rcx, [rsp + 0x680]
xor edx, edx
mov r8d, 0x630
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x680]
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x680], 0x630
mov dword [rsp + 0x20], 0x630
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
cmp eax, ebx
jne 0x10000d248
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x10000d27e
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetSystemInfo]
movzx edx, word [rsp + 0x30]
lea rcx, [rsp + 0x8a0]
call fcn.10000cec0
cmp eax, ebx
je 0x10000d27e
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.100014800
lea r11, [rsp + 0xcc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10000e3b8
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
mov rsi, rax
mov ebx, 1
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
lea r9, [0x100004598]
lea r8, [0x100003d70]
lea rdx, [0x100003d90]
mov rdi, 0xffffffff80000002
mov rcx, rdi
call fcn.100010a8c
xor edx, edx
cmp eax, ebx
sete dl
test edx, edx
je 0x10000e51f
lea eax, [rbx + 0x77]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [0x1000045b0]
lea r8, [0x100003d70]
lea rdx, [0x100003d90]
mov rcx, rdi
call fcn.100010a8c
mov edi, eax
cmp dword [0x10001979c], 0
je 0x10000e498
mov cl, byte [0x1000197a0]
cmp cl, 4
jae 0x10000e453
test cl, cl
jne 0x10000e47c
movabs rdx, 0x8000000000000000
test qword [0x100019788], rdx
je 0x10000e47c
mov rcx, qword [0x100019790]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10000e47c
mov al, bl
jmp 0x10000e47e
xor al, al
test al, al
je 0x10000e498
mov r8d, edi
lea rdx, [0x1000018f0]
mov rcx, qword [0x100019770]
call fcn.10000c5a4
mov dword [rsp + 0x40], 0x13
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.10000edbc
mov rbx, rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], edi
lea r9, [0x1000045d0]
mov edx, 0x800000
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
mov dword [rsp + 0x20], 0x20013
mov r9d, 7
mov r8d, edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
nop
cmp rbx, 0xffffffffffffffff
je 0x10000e51f
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_SetThreadToken]
test eax, eax
jne 0x10000e511
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
test rbx, rbx
je 0x10000e51f
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x10000fce4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
xor edi, edi
mov ebx, edi
cmp rcx, rdi
jne 0x10000fd07
lea ebx, [rdi + 0x57]
jmp 0x10000fd90
cmp dword [0x100019840], edi
jne 0x10000fd7b
xor r9d, r9d
lea r8d, [r9 + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [r9 + 3]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, edi
je 0x10000fd35
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
jmp 0x10000fd90
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, edi
jne 0x10000fd52
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov ebx, eax
jmp 0x10000fd90
lea rdx, [0x1000197a8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_FileTimeToSystemTime]
cmp eax, edi
jne 0x10000fd71
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov ebx, eax
jmp 0x10000fd90
mov dword [0x100019840], 1
movdqu xmm0, xmmword [0x1000197a8]
movdqu xmmword [rsi], xmm0
jmp 0x10000fd90
mov ecx, ebx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
cmp ebx, edi
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x100011ee4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x11c
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100011f46
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100011fe3
movzx eax, byte [rsp + 0x18a]
movzx ecx, word [rsp + 0x188]
movzx edx, word [rsp + 0x186]
movzx r8d, word [rsp + 0x184]
lea r9, [0x100004b08]
mov qword [rsp + 0x50], r9
mov r9d, dword [rsp + 0x74]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x78]
lea r8, [0x100004c00]
lea rcx, [rsp + 0x190]
mov edx, 0xff
mov dword [rsp + 0x20], eax
call fcn.10000f5bc
test eax, eax
js 0x100011fe3
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x190]
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_WriteFile]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.100014800
add rsp, 0x2a0
pop rbx
ret
Function at 0x1000125b8
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov dword [r11 + 0x20], r9d
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
or qword [rdx], 0xffffffffffffffff
and qword [rdx + 8], 0
and qword [rdx + 0x10], 0
and dword [rdx + 0x2c], 0
and dword [rdx + 0x30], 0
and dword [r11 + 0x20], 0
lea rax, [r11 + 0x20]
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
mov qword [r11 - 0x50], rax
mov r14d, r8d
mov rbx, rdx
mov qword [r11 - 0x58], rdx
xor edx, edx
mov r9d, 0x7530
xor r8d, r8d
call fcn.100013720
mov ebp, eax
test eax, eax
jne 0x100012727
mov esi, dword [rsp + 0x98]
test esi, esi
jne 0x100012664
mov rcx, qword [rbx]
call fcn.100011ee4
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
btr dword [rdi + 0xc], 0xc
mov rcx, rdi
mov esi, eax
call fcn.10001136c
bt eax, 0xc
jae 0x1000126cf
btr eax, 0xc
mov rcx, rdi
mov edx, eax
call fcn.100011238
jmp 0x1000126cf
cmp dword [rsp + 0xa0], 0
je 0x1000126cf
cmp esi, dword [rdi + 8]
jb 0x1000126cf
cmp dword [rdi + 0x18], 4
jae 0x1000126cf
bt dword [rdi + 0xc], 0xd
jb 0x1000126cf
mov rcx, qword [rbx]
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
mov rcx, qword [rdi + 0x10]
or qword [rbx], 0xffffffffffffffff
lea rax, [rsp + 0x98]
mov r9d, 0x7530
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov edx, 0x10000
mov qword [rsp + 0x20], rbx
call fcn.100013720
mov ebp, eax
test eax, eax
jne 0x100012727
mov esi, dword [rsp + 0x98]
cmp esi, dword [rdi + 8]
jb 0x1000126cf
mov dword [rbx + 0x30], 1
mov rcx, qword [rbx]
lea edx, [rsi + r14]
lea r9, [rbx + 0x10]
lea r8, [rbx + 8]
call fcn.1000137a8
mov ebp, eax
test eax, eax
jne 0x100012727
mov eax, esi
mov qword [rbx + 0x20], rdi
xor edi, edi
add rax, qword [rbx + 0x10]
xor edx, edx
mov qword [rbx + 0x18], rax
jmp 0x100012701
inc edi
mov edx, edi
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.1000119cc
test eax, eax
jne 0x1000126fd
mov ecx, dword [rbx + 0x18]
lea eax, [rdi + rdi*4]
shl eax, 2
sub ecx, eax
sub ecx, dword [rbx + 0x10]
xor ebp, ebp
mov dword [rbx + 0x28], ecx
jmp 0x10001274b
mov rcx, rbx
call fcn.10001276c
mov r11d, dword [0x1000198b0]
mov eax, r11d
inc r11d
mov dword [0x1000198b0], r11d
cmp eax, 5
jbe 0x10001274b
and dword [rdi], 0
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1000129e4
Capabilities:
Check for time delay via gettickcount

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
xor r12d, r12d
lea r8, [rax - 0x28]
xor edx, edx
mov rsi, rcx
mov ebp, r12d
mov edi, r12d
call fcn.1000119cc
cmp eax, r12d
je 0x100012ab5
inc edi
lea r8, [rsp + 0x20]
mov rcx, rsi
mov edx, edi
call fcn.1000119cc
cmp eax, r12d
jne 0x100012a1d
cmp edi, r12d
je 0x100012ab5
mov rbx, qword [rsi + 0x20]
mov ecx, dword [rsi + 0x18]
mov eax, dword [rbx + 8]
sub ecx, dword [rsi + 0x10]
add eax, 0x40000
cmp ecx, eax
jb 0x100012aaf
mov ecx, dword [rbx + 0x1c]
cmp ecx, r12d
je 0x100012a92
cmp edi, ecx
jne 0x100012a71
inc dword [rbx + 0x28]
cmp dword [rbx + 0x28], 4
jb 0x100012aca
mov dword [rbx + 0x1c], r12d
mov dword [rbx + 0x20], r12d
mov dword [rbx + 0x28], r12d
jmp 0x100012ac5
jbe 0x100012a92
cmp dword [rbx + 0x20], r12d
je 0x100012a9f
mov eax, edi
sub eax, ecx
cmp dword [rbx + 0x20], eax
jb 0x100012a9f
call qword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetTickCount]
sub eax, dword [rbx + 0x24]
cmp eax, 0x493e0
jbe 0x100012aca
mov dword [rbx + 0x1c], edi
mov dword [rbx + 0x20], r12d
mov dword [rbx + 0x28], r12d
jmp 0x100012aca
sub edi, ecx
mov dword [rbx + 0x20], edi
call qword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetTickCount]
mov dword [rbx + 0x24], eax
jmp 0x100012aca
mov dword [rbx + 0x1c], r12d
jmp 0x100012a95
mov rax, qword [rsi + 0x20]
mov dword [rax + 0x1c], r12d
mov dword [rax + 0x20], r12d
mov dword [rax + 0x28], r12d
mov ebp, 1
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, 0x40
pop r12
ret
Function at 0x100012af0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x290
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov edi, ebx
mov r12d, ebx
mov dword [rsp + 0x24], ebx
mov rcx, qword [rcx + 0x20]
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
call fcn.100012894
cmp eax, ebx
jne 0x100012b59
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x100012be6
mov rdx, qword [rsi + 0x20]
xor r8d, r8d
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
cmp eax, ebx
jne 0x100012b80
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x100012be6
mov r12d, 1
mov dword [rsp + 0x24], r12d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [rsi + 0x2c], ebx
mov r8, qword [rsi + 0x10]
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.1000138b0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 8], rbx
mov rcx, qword [rsi]
call fcn.100013b20
cmp eax, ebx
jne 0x100012bc8
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x100012be6
mov r12d, ebx
mov dword [rsp + 0x24], ebx
mov rcx, rsi
call fcn.10001276c
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.100013c04
jmp 0x100012bfd
cmp r12d, ebx
je 0x100012c2c
cmp qword [rsi], 0xffffffffffffffff
je 0x100012c2c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp eax, ebx
je 0x100012c2c
cmp dword [rsp + 0x58], 1
jbe 0x100012c2c
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
cmp edi, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.100014800
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x100013304
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
xor edi, edi
mov ebx, edi
mov r8d, 0x104
lea rdx, [rsp + 0x30]
call fcn.100012894
cmp eax, edi
jne 0x100013350
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov ebx, eax
mov dword [rsp + 0x20], eax
jmp 0x100013373
mov r8d, 5
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, edi
jne 0x100013373
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov ebx, eax
mov dword [rsp + 0x20], eax
jmp 0x100013380
mov ecx, ebx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
cmp ebx, edi
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.100014800
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x100013720
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [rsp + 0x70]
or edx, 0xc0000000
mov qword [rax - 0x18], rbx
mov dword [rax - 0x20], r9d
and dword [rax - 0x28], 0
mov r9d, 4
lea r8d, [r9 - 3]
call fcn.100013690
mov edi, eax
test eax, eax
jne 0x100013794
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov dword [rcx], eax
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100013794
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov rcx, qword [rbx]
mov edi, eax
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
or qword [rbx], 0xffffffffffffffff
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1000138b0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ebx, 1
test r8, r8
je 0x1000138da
mov rcx, r8
call qword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_UnmapViewOfFile]
mov ebx, eax
test rsi, rsi
je 0x1000138f9
test ebx, ebx
je 0x1000138f7
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
test eax, eax
je 0x1000138f7
mov ebx, 1
jmp 0x1000138f9
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x100013908
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret