joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074410
Capabilities:
Get thread local storage value

Disassembly:
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov esi, r9d
mov rbp, r8
mov rbx, rcx
mov qword [rcx], rdx
mov byte [rcx + 8], 0
movzx eax, byte [rsp + 0x70]
mov byte [rcx + 9], al
mov qword [rcx + 0x10], 0
movzx eax, byte [rsp + 0x78]
mov byte [rcx + 0x20], al
mov qword [rcx + 0x28], r8
mov dword [rcx + 0x30], r9d
lea r9, str.CREATING
mov r8d, esi
mov rdx, rbp
call fcn.1400ae080
mov rcx, qword [0x1402bf880]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400744ad
xor r8d, r8d
lea rdx, str.Retrieving_thread_context_failed._Queuing
mov rcx, rbx
call fcn.1400ae020
jmp 0x14007459b
mov edi, 0x65
lea r14, [0x1402bf838]
mov qword [rsp + 0x28], r14
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov byte [rsp + 0x30], 1
cmp byte [rbx + 9], 0
je 0x1400744fb
mov rax, qword [0x1402bf828]
test rax, rax
jne 0x1400744ee
mov qword [0x1402bf828], rbx
mov qword [0x1402bf820], rbx
jmp 0x14007451b
mov qword [rax + 0x10], rbx
mov qword [0x1402bf828], rbx
jmp 0x14007451b
mov rax, qword [0x1402bf818]
test rax, rax
jne 0x140074510
mov qword [0x1402bf810], rbx
jmp 0x140074514
mov qword [rax + 0x10], rbx
mov qword [0x1402bf818], rbx
inc qword [0x1402bf7f0]
cmp byte [0x1402bf808], 0
jne 0x140074535
mov rcx, rbx
call fcn.140074fa0
mov edi, eax
mov byte [rsp + 0x30], 0
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp edi, 0x65
je 0x14007455a
mov r8d, edi
lea rdx, str.Begin
mov rcx, rbx
call fcn.1400ae020
lea r9, str.WAITTING
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.1400ae080
mov rax, qword [rbx + 0x18]
or edx, 0xffffffff
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea r9, str.ENTERED
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.1400ae080
inc qword [0x1402bf800]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140077610
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 8]
mov rdi, rdx
test rsi, rsi
je 0x14007767b
lea rbx, [rdx + 8]
test rbx, rbx
je 0x14007767b
cmp byte [rcx + 0x4c], 0
je 0x14007767b
mov rcx, rsi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidSid]
test eax, eax
je 0x14007767b
cmp byte [rdi + 0x4c], 0
je 0x14007767b
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidSid]
test eax, eax
je 0x14007767b
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14007e250
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rdi, rcx
lea rax, vtable.Component.0
mov qword [rcx], rax
mov dword [rcx + 8], 0xffffffff
xor esi, esi
mov dword [rcx + 0xc], esi
mov qword [rcx + 0x18], rdx
lea rax, [r8 + 0x98]
test r8, r8
cmove rax, rsi
mov qword [rcx + 0x20], rax
lea rax, vtable.PinningController.0
mov qword [rcx], rax
lea rax, vtable.PinningController.1.0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x28], r8
mov qword [rcx + 0x30], rsi
mov qword [rcx + 0x38], rdx
lea rbx, [rcx + 0x40]
mov qword [rsp + 0x48], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov rcx, rbx
call fcn.14007e5c0
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
mov edx, 0x80000400
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSectionAndSpinCount]
lea rax, str.pinning_sequence_number
mov qword [rdi + 0x78], rax
mov qword [rdi + 0x80], rsi
mov rcx, qword [rdi + 0x38]
lea rax, vtable.SqliteStatement.0
mov qword [rdi + 0x88], rax
mov dword [rdi + 0x90], esi
lea rax, [rcx + 0x10]
test rcx, rcx
cmove rax, rsi
mov qword [rdi + 0x98], rax
lea rdx, str._SELECT_SUM_VALUE_________SELECT_VALUE_FROM_STATISTICS_WHERE_ID__1_________SELECT_SUM_CLUSTERS__FROM_SEGMENTS_WHERE______________FILE_ID__0xFFFFFF___32__OR_______________FILE_ID_IN__SELECT_FILE_ID_FROM_SYSTEM_FILES____AND___________SEGMENT_ID__0_____FROM_STATISTICS__WHERE_ID__6_OR_ID__7
mov qword [rdi + 0xa0], rdx
mov qword [rdi + 0xa8], rsi
mov qword [rdi + 0xb0], rsi
mov byte [rdi + 0xb8], sil
lea r8d, [rsi + 6]
lea rcx, [0x14025c780]
call fcn.1401bfb60
test eax, eax
jne 0x14007e361
mov byte [rdi + 0xb8], 1
lea rax, vtable.TransactionSafeStatement.0
mov qword [rdi + 0x88], rax
mov edx, 0x80000400
lea rcx, [rdi + 0xc0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSectionAndSpinCount]
mov qword [rdi + 0xe8], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400857b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1402bf880]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rcx, qword [0x1402bf880]
mov rbx, rax
mov rdx, qword [rcx]
call qword [rdx + 0x80]
mov ecx, eax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test rbx, rbx
je 0x140085818
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140085806
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401b1788
add rsp, 0x20
pop rbx
ret

Function at 0x140086ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1402bf880]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x140086ecb
mov eax, 0x1392
add rsp, 0x28
ret
mov ecx, 8
mov qword [rsp + 0x30], rbx
call fcn.1401b17d0
mov rbx, rax
test rax, rax
je 0x140086f83
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov qword [rax], 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140086f17
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x140086f4f
mov rcx, qword [0x1402bf880]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
je 0x140086f47
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140086f65
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
call fcn.1401b1788
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0xe
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140086fa0
Capabilities:
Listen for remote procedure calls

Disassembly:
sub rsp, 0x28
mov r8d, 1
mov edx, 0x4d2
mov ecx, r8d
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
jne 0x140086fc1
add rsp, 0x28
ret
mov rcx, qword [0x1402b9860]
lea rdx, [0x1402b9860]
cmp rcx, rdx
je 0x140086ffb
test dword [rcx + 0x44], 0x400000
je 0x140086ffb
cmp byte [rcx + 0x41], 2
jb 0x140086ffb
mov rcx, qword [rcx + 0x38]
lea r8, [0x14022bfc0]
mov edx, 0x1a
mov r9d, eax
call fcn.140024fa0
mov eax, 0x1f
add rsp, 0x28
ret
Function at 0x140094da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov rdx, qword [rcx]
lea rax, [rsp + 0x30]
mov rsi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140094e35
mov rdx, qword [rsi + 8]
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140094e35
mov eax, dword [rsp + 0x38]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140095120
Capabilities:
Set registry value

Disassembly:
jmp 0x140095130
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x30]
mov rdx, qword [rcx]
mov rdi, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400951ac
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140095130
Capabilities:
Set registry value

Disassembly:
jmp 0x140095130
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x30]
mov rdx, qword [rcx]
mov rdi, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400951ac
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140096bc0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r15, r8
mov rbp, rdx
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x88], esi
cmp qword [rdx + 8], rsi
jne 0x140096d5a
lea r12, [0x1402b9860]
mov rcx, qword [0x1402b9860]
cmp rcx, r12
je 0x140096c2d
test byte [rcx + 0x44], 8
je 0x140096c2d
cmp byte [rcx + 0x41], 4
jb 0x140096c2d
lea edx, [rsi + 0x2e]
lea r8, [0x14022de08]
mov rcx, qword [rcx + 0x38]
call fcn.140022ad0
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
lea rcx, [r14 + 0x6f0]
mov r8, r15
lea rdx, [rsp + 0x38]
call fcn.140093650
nop
mov rdx, rax
mov rcx, rbp
call fcn.140033330
nop
lea rcx, [rsp + 0x38]
call fcn.140033800
rdtsc
shl rdx, 0x20
or rax, rdx
lea rcx, [r14 + 0x568]
mov r9, qword [rcx]
mov r8, rax
mov rdx, rbx
call qword [r9 + 0x38]
mov rdi, qword [0x1402b9860]
cmp rdi, r12
je 0x140096ceb
test byte [rdi + 0x44], 8
je 0x140096ceb
cmp byte [rdi + 0x41], 3
jb 0x140096ceb
lea rdx, [rsp + 0x98]
mov rcx, rbp
call fcn.1400332b0
mov rbx, rax
lea rdx, [rsp + 0x88]
mov rcx, rbp
call fcn.1400332a0
mov esi, 3
lea edx, [rsi + 0x2c]
mov qword [rsp + 0x28], r15
mov r8, qword [rbx]
mov qword [rsp + 0x20], r8
mov r9, qword [rax]
lea r8, [0x14022de08]
mov rcx, qword [rdi + 0x38]
call fcn.140024700
mov rdi, qword [0x1402b9860]
test sil, 2
je 0x140096d08
and esi, 0xfffffffd
lea rcx, [rsp + 0x88]
call fcn.1400332f0
mov rdi, qword [0x1402b9860]
test sil, 1
je 0x140096d22
lea rcx, [rsp + 0x98]
call fcn.1400332f0
mov rdi, qword [0x1402b9860]
cmp qword [rbp + 8], 0
jne 0x140096d5a
cmp rdi, r12
je 0x140096d53
test byte [rdi + 0x44], 8
je 0x140096d53
cmp byte [rdi + 0x41], 3
jb 0x140096d53
lea r9, [r14 + 0x10]
mov edx, 0x30
lea r8, [0x14022de08]
mov rcx, qword [rdi + 0x38]
call fcn.1400293b0
mov eax, 0x70
jmp 0x140096d5c
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400993a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [r8], 0
mov rdi, r8
mov r14, rdx
mov rsi, rcx
jbe 0x140099481
xor r15d, r15d
cmp dword [rdi], 6
jb 0x1400994bd
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov r8d, 6
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140099411
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x140099483
jmp 0x140099417
mov eax, dword [rsp + 0x38]
sub dword [rdi], eax
mov edx, dword [rdi]
mov r8d, dword [rsp + 0x32]
lea rcx, [rdx + 6]
cmp r8, rcx
ja 0x1400994b6
movzx ecx, word [rsp + 0x30]
lea eax, [r8 - 6]
sub edx, eax
mov dword [rsp + 0x3c], eax
mov dword [rdi], edx
call fcn.14009b6e0
mov rbx, rax
test rax, rax
je 0x1400994b6
mov r9, qword [rax]
lea r8, [rsp + 0x3c]
mov rdx, r14
mov rcx, rax
call qword [r9 + 0x30]
mov ebp, eax
test eax, eax
jne 0x1400994a4
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140099470
mov qword [rax + 0x18], rbx
jmp 0x140099474
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
cmp dword [rdi], r15d
ja 0x1400993d5
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x18]
mov eax, ebp
jmp 0x140099483
mov eax, 0xd
jmp 0x140099483
mov eax, 0x452
jmp 0x140099483

Function at 0x140099ae0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x30], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
je 0x140099b0e
mov eax, 0x4df
jmp 0x140099b77
mov ecx, dword [r8]
mov eax, 2
shr ecx, 1
inc ecx
mul rcx
mov qword [rdi + 0x38], rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401c0494
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x140099b44
mov eax, 0xe
jmp 0x140099b77
mov r8d, dword [rbx]
lea r9, [rsp + 0x30]
xor ecx, ecx
mov rdx, rax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140099b6f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x140099b77
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140099b90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov r9, r8
mov qword [rsp + 0x20], 0
mov r8d, dword [rcx + 0x38]
mov rax, rdx
mov rdx, qword [rcx + 0x30]
mov rcx, rax
lea r8d, [r8*2 + 2]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x140099bcb
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14009a1c0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009a21d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret

Function at 0x14009a240
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009a275
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14009aa50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [r8], 6
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jae 0x14009aa7d
mov eax, 0x452
jmp 0x14009aaef
xor eax, eax
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [rax + 6]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009aaaf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14009aab5
jmp 0x14009aaef
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
mov edx, dword [rsp + 0x34]
cmp dx, 0xc
je 0x14009aac6
mov eax, 0xd
jmp 0x14009aaef
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x36]
add rcx, 6
cmp rax, rcx
ja 0x14009aabf
movzx eax, word [rsp + 0x38]
mov r8, rbx
mov dword [rdi + 0x12], edx
mov rcx, rdi
mov rdx, rsi
mov word [rdi + 0x16], ax
call fcn.140099350
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14009ac00
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009ac35
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14009ac40
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009ac9d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret

Function at 0x14009b250
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009b285
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14009b290
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009b2ed
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret

Function at 0x14009b930
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009b98d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret

Function at 0x14009b9b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009b9e5
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14009cd60
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x1402b9860]
lea rsi, [0x1402b9860]
cmp rcx, rsi
je 0x14009cda9
test byte [rcx + 0x44], 2
je 0x14009cda9
cmp byte [rcx + 0x41], 4
jb 0x14009cda9
mov rcx, qword [rcx + 0x38]
lea r8, [0x14022f178]
mov edx, 0x26
call fcn.140022ad0
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140032c90
cmp qword [rax + 0x18], 8
jb 0x14009cdc4
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov r8, qword [rsp + 0x38]
test eax, eax
sete bl
cmp r8, 8
jb 0x14009cdef
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140007b00
test bl, bl
je 0x14009ce5e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x14009ce1c
mov rcx, qword [0x1402b9860]
cmp rcx, rsi
je 0x14009ce8b
test byte [rcx + 0x44], al
je 0x14009ce8b
cmp byte [rcx + 0x41], 5
jb 0x14009ce8b
lea edx, [rax + 0x25]
jmp 0x14009ce7b
mov rcx, qword [0x1402b9860]
cmp rcx, rsi
je 0x14009ce4c
test byte [rcx + 0x44], 2
je 0x14009ce4c
cmp byte [rcx + 0x41], 5
jb 0x14009ce4c
mov rcx, qword [rcx + 0x38]
lea r8, [0x14022f178]
mov edx, 0x28
mov r9d, ebx
call fcn.140025240
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [0x1402b9860]
cmp rcx, rsi
je 0x14009ce8b
test byte [rcx + 0x44], 2
je 0x14009ce8b
cmp byte [rcx + 0x41], 5
jb 0x14009ce8b
mov edx, 0x29
mov rcx, qword [rcx + 0x38]
lea r8, [0x14022f178]
call fcn.140022ad0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret