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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov r14d, r9d
mov edi, r8d
mov rbx, rcx
test rcx, rcx
je 0x14008a6d9
mov r8, rdx
mov qword [rsp + 0x50], rbp
mov edx, 0x104
add rcx, 0x30
call fcn.1400dee48
test eax, eax
jne 0x14008a642
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x248], eax
mov dword [rbx + 0x268], r15d
mov qword [rbx + 0x270], r15
mov dword [rbx + 0x238], edi
mov dword [rbx + 0x23c], r14d
mov qword [rbx + 0x240], r15
mov qword [rbx + 0x258], r15
mov qword [rbx + 0x260], r15
mov dword [rbx + 0x24c], 0x40030
mov dword [rbx + 0x250], 0x40030
call fcn.140002190
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14008a642
mov rcx, rbx
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], r15d
mov esi, dword [rbx + 0x248]
mov ecx, esi
call fcn.1400a6bc8
mov rdi, rax
test rax, rax
je 0x14008a57c
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140099b00
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x240], rdi
test rdi, rdi
je 0x14008a642
mov ecx, 0x298
call fcn.14008a350
mov qword [rbx + 0x28], rax
test rax, rax
je 0x14008a642
lea rdx, [rbx + 0x30]
mov dword [rsp + 0x20], r14d
mov r9d, 1
mov rcx, rax
cmp dword [rbx + 0x238], r15d
jne 0x14008a5c8
xor r8d, r8d
jmp 0x14008a5cb
mov r8d, r9d
call fcn.14008b420
test eax, eax
je 0x14008a642
cmp qword [rbx + 0x240], r15
je 0x14008a642
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x258], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x260], rax
cmp qword [rbx + 0x28], r15
je 0x14008a620
mov qword [rsp + 0x28], r15
lea r8, [0x14008a9f0]
mov r9, rbx
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x270], rax
cmp qword [rbx + 0x270], r15
je 0x14008a642
mov eax, 1
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rbx + 0x28]
mov dword [rbx + 0x268], 1
test rcx, rcx
je 0x14008a65a
call fcn.14008af10
mov rcx, qword [rbx + 0x270]
test rcx, rcx
je 0x14008a685
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x270]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x270], r15
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14008a6a5
call fcn.14008b650
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14008a6a1
call fcn.1400a6bb4
mov qword [rbx + 0x28], r15
mov rcx, qword [rbx + 0x240]
test rcx, rcx
je 0x14008a6bd
call fcn.1400a6bb4
mov qword [rbx + 0x240], r15
mov rcx, qword [rbx + 0x18]
lea rdx, [0x14008ac00]
call fcn.140002360
mov eax, r15d
mov qword [rbx + 0x18], r15
jmp 0x14008a62e
mov rbx, qword [rsp + 0x60]
mov eax, r15d
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14008ac30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14008ac87
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14008ac87
call fcn.14008b700
test eax, eax
je 0x14008ac87
cmp qword [rbx + 0x270], 0
je 0x14008ac87
mov rcx, qword [rbx + 0x28]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14008b7f0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14008af70
Capabilities:
Connect pipe

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x1401f3df8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
xor eax, eax
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x14008afe7
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
cmp dword [rdi + 0x214], eax
jne 0x14008afcc
cmp dword [rdi + 0x218], eax
jne 0x14008affa
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14008afcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14008afdb
mov ebx, 1
mov dword [rdi + 0x210], 1
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x30
pop rdi
ret
lea rdx, [rdi + 0x278]
mov qword [rdi + 0x278], rax
mov qword [rdi + 0x280], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14008afd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14008afc5
mov rcx, qword [rdi + 0x208]
lea r9d, [rbx + 1]
lea r8, [rsp + 0x20]
lea rdx, [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test eax, eax
jne 0x14008afd1
jmp 0x14008afdd
Function at 0x14008b710
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x1401f3df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14008b743
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008b7cc
test rdx, rdx
jne 0x14008b755
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008b7cc
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x208]
cmp dword [rbx + 0x218], edi
jne 0x14008b776
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14008b7cc
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + 0x228]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x230], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x14008b7c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14008b7c5
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14008b7c7
mov eax, edi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x14008b7f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x1401f3df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x14008b823
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008b8ac
test rdx, rdx
jne 0x14008b835
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x14008b8ac
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x208]
cmp dword [rbx + 0x218], edi
jne 0x14008b856
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14008b8ac
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + 0x250]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x258], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x14008b8a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14008b8a5
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14008b8a7
mov eax, edi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x14008ccf0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x230
mov rax, qword [0x1401f3df8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov eax, dword [0x1401fa218]
mov rdi, rcx
add eax, 0xfffffffd
cmp eax, 1
jbe 0x14008ce99
mov qword [rsp + 0x248], rbx
lea rcx, [rsp + 0xa4]
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 0x64]
call fcn.140099b00
xor eax, eax
lea rcx, [rsp + 0x110]
xor edx, edx
mov qword [rsp + 0x80], rax
mov r8d, 0x104
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
call fcn.140099b00
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0x104
lea r8d, [rbx + 6]
lea rcx, [rsp + 0x110]
call fcn.140013a60
mov r9, qword [rdi + 8]
lea r8, [rsp + 0x110]
lea rdx, str.__S_s_
lea rcx, [rsp + 0x68]
call fcn.140084d80
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
cmp qword [rsp + 0x54], rbx
je 0x14008ce8d
mov rdx, qword [rsp + 0x54]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov qword [rdi + 0x10], rbx
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
mov qword [rdi + 0x18], rbx
mov dword [rsp + 0xa0], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
jne 0x14008ce66
cmp dword [0x1401ed460], 2
jl 0x14008ce83
test dword [0x1401ed4ac], 0x10000
je 0x14008ce83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str.c:jenkinsworkspacedptf_srcesifproductsesif_uf_sourceswin_rsrc_app.c
lea rax, str.Unable_to_start_capture_program._Error___d
mov ecx, 0x10000
mov qword [rsp + 0x28], rax
lea r8, str.rsrc_app_start_app_in_current_session
lea edx, [rbx + 2]
mov dword [rsp + 0x20], 0x27c
call fcn.140071850
jmp 0x14008ce83
mov rax, qword [rsp + 0x80]
mov ebx, 1
mov qword [rdi + 0x10], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov rcx, qword [rsp + 0x54]
call fcn.1400a6bb4
mov eax, ebx
mov rbx, qword [rsp + 0x248]
jmp 0x14008ce9e
call fcn.14008cec0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x230
pop rdi
ret
Function at 0x14008d850
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14008d892
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0x10]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008d892
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rbx + 0x20], 0xffffffff
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
ret

Function at 0x14008e170
Capabilities:
Modify service

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1401f3df8]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov qword [rsp + 0x70], rbx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14008e1bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
call fcn.1400124d0
jmp 0x14008e285
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14008e1fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400124d0
jmp 0x14008e277
xor eax, eax
mov dword [rsp + 0x4c], 0x1388
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov edx, 2
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 1
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14008e256
lea rdx, str.Error:_Unable_to_update_service_failure_actions._n
lea ecx, [rax + 3]
call fcn.1400124d0
lea r8, [0x1401bf2a0]
mov ecx, 3
lea rdx, str._S_service_failure_actions_successfully_updated._n
call fcn.1400124d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
lea rcx, str.esifsvc
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x14008e2b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_start_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400124d0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x68
ret
Function at 0x14008e8b0
Capabilities:
Start service

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14008e8eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
add rsp, 0x20
pop rbx
jmp fcn.1400124d0
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14008e928
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400124d0
jmp 0x14008e984
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14008e963
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14008e963
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_start_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400124d0
jmp 0x14008e97b
lea r8, [0x1401bf2a0]
mov ecx, 3
lea rdx, str._S_started._n
call fcn.1400124d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]

Function at 0x14008e9a0
Capabilities:
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f3df8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14008e9f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
call fcn.1400124d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x50
pop rbx
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14008ea35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400124d0
jmp 0x14008ea94
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14008ea73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14008ea73
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error:_Unable_to_stop_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400124d0
lea r8, [0x1401bf2a0]
mov ecx, 3
lea rdx, str._S_stopped_n
call fcn.1400124d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140097fb0
add rsp, 0x50
pop rbx
ret
Function at 0x1400df510
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400df2ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400df2ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400df2ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400df2ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400df2ff
cmp dword [rcx + 0x84], 0xe
jbe 0x1400df2ff
cmp dword [rcx + 0xf8], 0
je 0x1400df2ff
mov ecx, ebx
call fcn.1400df430
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400df08c
cmp dword [rbp + 0x20], 0
je 0x1400df34c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400df354
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400df298

Function at 0x1400e7d94
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e7db4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a7e80
or eax, 0xffffffff
jmp 0x1400e7db6
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002560
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002588
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400025ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400025b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002609
test ecx, ecx
jle 0x1400025e9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002609
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002609
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002630
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002652
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002668
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002684
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002686
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400026c2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000275e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400026fd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000273e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000275e
cmp rbx, rax
ja 0x140002710
test rbx, rbx
je 0x14000275e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002b80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002bad
xor eax, eax
jmp 0x140002d19
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002be7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002be7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002d19
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002d0c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002c2a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002c55
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002d11
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002cc4
sub eax, 1
je 0x140002cc4
cmp eax, 2
jne 0x140002d0c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002d11
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002cf2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002d0c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002d11
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006050
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003140
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003213
cmp byte [rcx + 0x71], 0
je 0x140003213
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000320f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400031d4
sub eax, 1
je 0x1400031d8
cmp eax, 2
jne 0x14000320f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006050
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003206
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000320f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400031bc
xor al, al
jmp 0x1400031bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006050
add rsp, 0x60
pop rbx
ret