joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0fac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400943b0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a104d
cmp ebx, dword [rsp + 0x30]
je 0x1400a1046
test esi, esi
je 0x1400a1046
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a1021
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a102e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a100b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a1032
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a104f
mov eax, 1
jmp 0x1400a104f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a53f0
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009982c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009982c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a5540
cmp rax, 0xffffffffffffffff
je 0x1400a5540
xor edi, edi
test rbp, rbp
jle 0x1400a54eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140094984
mov rbx, rax
test rax, rax
jne 0x1400a5478
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a54e1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400922e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009573c
cmp eax, 0xffffffff
je 0x1400a54c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a5488
mov edx, r15d
mov ecx, r14d
call fcn.1400922e8
jmp 0x1400a54e1
cmp byte [rsi + 0x38], dil
je 0x1400a54d8
cmp dword [rsi + 0x34], 5
jne 0x1400a54d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a54e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140095a44
jmp 0x1400a5554
jns 0x1400a5554
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009982c
cmp rax, 0xffffffffffffffff
jne 0x1400a550c
cmp byte [rsi + 0x30], dil
je 0x1400a5554
mov edi, dword [rsi + 0x2c]
jmp 0x1400a5554
mov ecx, r14d
call fcn.14009ea58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a5554
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400a5554
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a554d
mov eax, dword [rsi + 0x2c]
jmp 0x1400a5552
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009982c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400038a8
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
xor r14d, r14d
test rax, rax
je 0x140003936
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140003936
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003926
cmp rbx, rcx
jae 0x140003936
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003911
cmp rbx, rcx
jae 0x140003936
cmp word [rbx], r14w
je 0x140003936
mov rax, rbx
jmp 0x140003938
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400064fc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0
je 0x140006552
mov rcx, qword [rdx + 0x38]
test rcx, rcx
je 0x140006548
mov rax, qword [rcx]
cmp rcx, rdx
setne dl
movabs r10, 0xed1dae5b305f0370
mov rax, qword [rax + 0x20]
call qword [0x140010d18]
and qword [rbx + 0x38], 0
mov eax, 0x80070005
jmp 0x140006609
add rcx, 0x10
call fcn.140004cec
and qword [rdi + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x140006640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
jne 0x1400065d8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400065a9
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400065d4
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x20]
cmp rcx, rbx
setne dl
movabs r10, 0xed1dae5b305f0370
call qword [0x140010d18]
and qword [rbx + 0x38], 0
mov eax, edi
jmp 0x140006609
mov qword [rdi + 8], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140006607
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
movabs r10, 0xed1dae5b305f0370
mov rax, qword [rax + 0x20]
call qword [0x140010d18]
and qword [rbx + 0x38], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140006b54
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rdx]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov r11d, eax
xor r9d, r9d
mov r8, rbx
movabs rdi, 0xcbf29ce484222325
movabs rsi, 0x100000001b3
lea edx, [r11 + r11]
shr rdx, 3
lea r10, [rbx + rdx*8]
cmp rbx, r10
je 0x140006bc9
mov rcx, rdi
xor edx, edx
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, rsi
cmp rdx, 8
jb 0x140006ba8
xor r9, rcx
add r8, 8
cmp r8, r10
jne 0x140006ba3
lea r10, [rbx + r11*2]
jmp 0x140006bf0
mov rcx, rdi
xor edx, edx
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, rsi
cmp rdx, 2
jb 0x140006bd4
xor r9, rcx
add r8, 2
cmp r8, r10
jne 0x140006bcf
mov rbx, qword [rsp + 0x30]
mov rax, r9
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400073c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movabs r9, 0xcbf29ce484222325
mov rbx, rcx
mov r11, r9
xor r10d, r10d
movabs rdi, 0x100000001b3
movzx eax, byte [r10 + r8]
inc r10
xor r11, rax
imul r11, rdi
cmp r10, 8
jb 0x1400073e7
xor ecx, ecx
movzx eax, byte [r8 + rcx + 8]
inc rcx
xor r9, rax
imul r9, rdi
cmp rcx, 8
jb 0x1400073fe
mov rax, qword [rbx + 0x18]
xor r9, r11
and r9, qword [rbx + 0x30]
add r9, r9
mov rcx, qword [rax + r9*8 + 8]
cmp rcx, qword [rbx + 8]
je 0x140007454
mov r10, qword [rax + r9*8]
mov rax, qword [r8]
cmp rax, qword [rcx + 0x10]
jne 0x140007444
mov rax, qword [r8 + 8]
cmp rax, qword [rcx + 0x18]
je 0x14000744f
cmp rcx, r10
je 0x140007454
mov rcx, qword [rcx + 8]
jmp 0x140007431
test rcx, rcx
jne 0x140007458
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 8]
mov rax, rdx
mov rdi, qword [rsp + 0x10]
mov qword [rdx], rcx
ret

Function at 0x140007df0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
add rcx, 0x28
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
mov rdx, r8
movabs r10, 0x100000001b3
lea ebx, [r9 + 1]
movzx eax, byte [r9 + rdi]
add r9, rbx
xor rdx, rax
imul rdx, r10
cmp r9, 8
jb 0x140007e38
xor ecx, ecx
movzx eax, byte [rdi + rcx + 8]
add rcx, rbx
xor r8, rax
imul r8, r10
cmp rcx, 8
jb 0x140007e4f
mov rax, qword [rsi + 0x48]
xor r8, rdx
and r8, qword [rsi + 0x60]
add r8, r8
mov rcx, qword [rax + r8*8 + 8]
cmp rcx, qword [rsi + 0x38]
je 0x140007eaa
mov rdx, qword [rax + r8*8]
mov rax, qword [rdi]
cmp rax, qword [rcx + 0x10]
jne 0x140007e94
mov rax, qword [rdi + 8]
cmp rax, qword [rcx + 0x18]
je 0x140007e9f
cmp rcx, rdx
je 0x140007eaa
mov rcx, qword [rcx + 8]
jmp 0x140007e81
test rcx, rcx
je 0x140007eaa
cmp rcx, qword [rsi + 0x38]
jne 0x140007eac
xor bl, bl
lea rcx, [rsi + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c260
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x14000c290
cvtsi2ss xmm0, rdx
jmp 0x14000c2a5
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_ceilf
movss xmm1, dword [0x140012414]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14000c2d3
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14000c2d3
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14000c301
cmp rbx, 0x200
jae 0x14000c2fe
shl rbx, 3
cmp rbx, rcx
jae 0x14000c301
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x14000c330
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop dword [rax + rax]
int3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140009164
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000c469
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x14000c389
mov r10, qword [rsi + 0x30]
mov r11, qword [rsi + 0x18]
and r10, r8
add r10, r10
cmp qword [r11 + r10*8], rbx
jne 0x14000c3cb
mov qword [r11 + r10*8], rax
mov qword [r11 + r10*8 + 8], rax
jmp 0x14000c461
mov rdx, qword [r11 + r10*8 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000c405
mov rdi, qword [rdx]
cmp rdi, rax
je 0x14000c3c1
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000c3c1
lea rdi, [rdx + 8]
cmp qword [r11 + r10*8], rdx
je 0x14000c43e
mov rdx, qword [rdi]
cmp r8d, dword [rdx + 0x10]
jne 0x14000c405
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000c461
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdx
mov rdx, qword [rdi]
mov qword [rdx], rax
mov qword [rdi], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + r10*8], rax
mov rax, rcx
jmp 0x14000c370
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000ce7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14000cea0
mov eax, 0x80004003
jmp 0x14000d00c
mov rax, qword [0x1400170d0]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400170d0]
mov rax, qword [rax + 0x18]
call qword [0x140010d18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8, rdi
lea rdx, str._sDiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x30]
call fcn.14000cbf8
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000cfa3
lea rcx, [rsp + 0x30]
call fcn.1400032c4
mov r8, rdi
lea rdx, str._s_amd64DiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x30]
call fcn.14000cbf8
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000cfa3
lea rcx, [rsp + 0x30]
call fcn.1400032c4
lea r9, str.Team_ToolsDiagnosticsHubCollector
mov r8, rdi
lea rdx, str._s_s_amd64DiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x30]
call fcn.14000cbf8
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000cfa3
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000cf9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x140010d18]
mov eax, 0x80070057
jmp 0x14000d00c
mov rdx, rsi
mov rcx, rbx
call fcn.14000cd50
mov edi, eax
lea rdx, [rbx - 0x18]
test eax, eax
jns 0x14000cfe3
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000cfdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x140010d18]
mov eax, edi
jmp 0x14000d00c
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000d00a
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x140010d18]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d258
Capabilities:
Get file size

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
push r14
push r15
sub rsp, 0x50
mov ebx, r9d
mov rdi, r8
mov r15, rdx
mov rsi, rcx
call fcn.14000d198
mov ebp, eax
test eax, eax
jne 0x14000d426
mov r9d, dword [rsp + 0x90]
lea rcx, [rsi + 0x50]
lea r8, str.Merging_ETL_files_with_flags__Flags:_0x_08x_
lea rdx, str.onecorecomdiagnostics_standardcollectorcorediagnosticshub.commonkerneltracecontrol.cpp
call fcn.14000c23c
movabs r10, 0xd96c1e8f305a2170
mov r9d, dword [rsp + 0x90]
mov r8d, ebx
mov rax, qword [rsi + 8]
mov rdx, rdi
mov rcx, r15
call qword [0x140010d18]
mov ebp, eax
test eax, eax
jne 0x14000d426
mov rax, qword [rsi + 0x100]
cmp qword [rsi + 0xf8], rax
je 0x14000d426
test ebx, ebx
je 0x14000d399
mov r12d, ebx
mov rcx, qword [rdi]
xor r14d, r14d
and qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000d35a
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
cmovne r14, qword [rsp + 0x40]
test rbx, rbx
je 0x14000d369
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r9, qword [rdi]
lea r8, str.__s__I64d_
lea rdx, str.OriginalEtlFile_Name_ByteSize_
mov qword [rsp + 0x20], r14
lea rcx, [rsi + 0xf8]
call fcn.14000c23c
add rdi, 8
sub r12, 1
jne 0x14000d2fd
xor edi, edi
xor r9d, r9d
and qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000d3f5
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
cmovne rdi, qword [rsp + 0x40]
test rbx, rbx
je 0x14000d404
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r9, r15
mov qword [rsp + 0x20], rdi
lea r8, str.__s__I64d_
lea rdx, str.MergedEtlFile_Name_ByteSize_
lea rcx, [rsi + 0xf8]
call fcn.14000c23c
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14000bb70
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
call fcn.14000b800
mov r11, rax
test rax, rax
je 0x14000bc13
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x14000bc13
movsxd rcx, dword [r11 + 0x3c]
cmp dword [rcx + r11], 0x4550
jne 0x14000bc13
mov eax, dword [rcx + r11 + 0x88]
test eax, eax
je 0x14000bc13
mov ebx, dword [rax + r11 + 0x1c]
xor r9d, r9d
mov r10d, dword [rax + r11 + 0x20]
mov ebp, dword [rax + r11 + 0x24]
add r10, r11
add rbp, r11
lea rsi, [r11 + rbx]
test ebx, ebx
je 0x14000bc13
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000bc03
inc rax
test ecx, ecx
jne 0x14000bbf0
test edx, edx
je 0x14000bc2a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x14000bbe0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x14000bc15

Function at 0x140012160
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 0x140012188
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 0x1400121ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400121b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140012209
test ecx, ecx
jle 0x1400121e9
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 0x140012209
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140012209
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 0x140012230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140012261
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14001227f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001229b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001229d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400122d9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001236e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140012314
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 0x14001234e
nop dword [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 0x14001236e
cmp rbx, rax
ja 0x140012320
test rbx, rbx
je 0x14001236e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400127b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400127d4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140012817
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140012817
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140012948
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001285a
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 0x140012885
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
cmove edi, ecx
mov eax, edi
jmp 0x14001294d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x1400128fa
sub eax, 1
je 0x1400128fa
cmp eax, 2
jne 0x140012948
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x14001294d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14001292b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140012948
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001294d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret