joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400077dc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov r11, r8
mov rsi, rdx
mov r9, rcx
movabs rcx, 0xcbf29ce484222325
mov r10, rcx
xor edx, edx
movabs r8, 0x100000001b3
movzx eax, byte [rdx + r11]
xor r10, rax
imul r10, r8
inc rdx
cmp rdx, 8
jb 0x140007812
xor edx, edx
movzx eax, byte [r11 + rdx + 8]
xor rcx, rax
imul rcx, r8
inc rdx
cmp rdx, 8
jb 0x140007829
xor rcx, r10
mov r8, qword [r9 + 0x30]
and r8, rcx
mov rdi, qword [r9 + 8]
mov r10, r8
add r10, r10
mov rcx, qword [r9 + 0x18]
cmp rdi, qword [rcx + r10*8]
je 0x1400078b7
mov rdi, qword [rcx + r10*8 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [rcx + r10*8]
je 0x1400078b7
mov rdi, qword [rdi + 8]
mov rax, qword [r11]
cmp rax, qword [rdi + 0x10]
jne 0x140007865
mov rax, qword [r11 + 8]
cmp rax, qword [rdi + 0x18]
jne 0x140007865
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov edx, 0x28
mov rcx, rbx
call fcn.14000d2e8
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14000794e
mov rax, qword [rbx]
cmp rdi, rax
je 0x1400078ec
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8]
add r8, r8
cmp rax, qword [r9 + 8]
jne 0x14000790c
mov qword [rdx + r8*8], rbx
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x14000793b
cmp rax, rdi
jne 0x140007917
mov qword [rdx + r8*8], rbx
jmp 0x14000793b
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rbx
je 0x14000793b
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r10*8 + 8], rcx
mov rcx, r9
call fcn.140007bc8
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007a44
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov r11, r8
mov rsi, rdx
mov r9, rcx
movabs rcx, 0xcbf29ce484222325
mov r10, rcx
xor edx, edx
movabs r8, 0x100000001b3
movzx eax, byte [rdx + r11]
xor r10, rax
imul r10, r8
inc rdx
cmp rdx, 8
jb 0x140007a7a
xor edx, edx
movzx eax, byte [r11 + rdx + 8]
xor rcx, rax
imul rcx, r8
inc rdx
cmp rdx, 8
jb 0x140007a91
xor rcx, r10
mov r8, qword [r9 + 0x30]
and r8, rcx
mov rdi, qword [r9 + 8]
mov r10, r8
add r10, r10
mov rcx, qword [r9 + 0x18]
cmp rdi, qword [rcx + r10*8]
je 0x140007b1f
mov rdi, qword [rcx + r10*8 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [rcx + r10*8]
je 0x140007b1f
mov rdi, qword [rdi + 8]
mov rax, qword [r11]
cmp rax, qword [rdi + 0x10]
jne 0x140007acd
mov rax, qword [r11 + 8]
cmp rax, qword [rdi + 0x18]
jne 0x140007acd
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov edx, 0x20
mov rcx, rbx
call fcn.14000d2e8
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x140007bb6
mov rax, qword [rbx]
cmp rdi, rax
je 0x140007b54
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8]
add r8, r8
cmp rax, qword [r9 + 8]
jne 0x140007b74
mov qword [rdx + r8*8], rbx
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x140007ba3
cmp rax, rdi
jne 0x140007b7f
mov qword [rdx + r8*8], rbx
jmp 0x140007ba3
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rbx
je 0x140007ba3
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r10*8 + 8], rcx
mov rcx, r9
call fcn.140006ef4
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140009604
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
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov rsi, rcx
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov r9d, ebp
movzx eax, byte [r9 + rdx]
xor r8, rax
movabs rcx, 0x100000001b3
imul r8, rcx
inc r9
cmp r9, 4
jb 0x140009631
mov rcx, qword [rsi + 0x30]
and rcx, r8
mov rdx, qword [rsi + 0x18]
mov rax, rcx
add rax, rax
mov rax, qword [rdx + rax*8]
lea r8, [rcx + rcx]
lea r14, [rsi + 8]
mov rbx, qword [r14]
cmp qword [rdx + r8*8], rbx
jne 0x14000967b
mov rcx, rbx
jmp 0x140009683
mov rcx, qword [rdx + r8*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x14000969a
mov ecx, dword [r15]
cmp dword [rax + 0x10], ecx
je 0x140009695
mov rax, qword [rax]
jmp 0x140009670
mov rcx, rax
jmp 0x1400096a0
mov rax, rbx
mov rcx, rbx
cmp rcx, rbx
jne 0x14000972c
mov rbx, qword [rbx]
movabs rax, 0x492492492492492
cmp qword [r14 + 8], rax
jne 0x1400096d0
lea rcx, str.list_T__too_long
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop dword [rax + rax]
int3
mov rdi, qword [rbx + 8]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rbp
mov ecx, 0x38
call fcn.14000d32c
mov ecx, dword [r15]
mov dword [rax + 0x10], ecx
mov qword [rax + 0x28], rbp
mov qword [rax + 0x30], 7
mov word [rax + 0x18], bp
mov qword [rax], rbx
mov qword [rax + 8], rdi
inc qword [r14 + 8]
mov qword [rbx + 8], rax
mov qword [rdi], rax
mov r9, qword [r14]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000a9ec
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14000a9ec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
movabs rcx, 0xcbf29ce484222325
xor edx, edx
movzx eax, byte [rdx + r10]
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
inc rdx
cmp rdx, 4
jb 0x14000aa1c
mov r8, qword [r9 + 0x30]
and r8, rcx
mov rdi, qword [r9 + 8]
mov rax, r8
add rax, rax
mov rcx, qword [r9 + 0x18]
mov rdx, qword [rcx + rax*8]
cmp rdi, rdx
je 0x14000aab0
mov rdi, qword [rcx + rax*8 + 8]
mov rdi, qword [rdi]
cmp rdi, rdx
je 0x14000aab0
mov rdi, qword [rdi + 8]
mov eax, dword [rdi + 0x10]
cmp dword [r10], eax
jne 0x14000aa61
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
lea rcx, [rbx + 0x18]
call fcn.140002728
mov edx, 0x38
mov rcx, rbx
call fcn.14000d2e8
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14000ab4d
mov rax, qword [rbx]
cmp rdi, rax
je 0x14000aae5
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov r10, r8
add r10, r10
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8]
add r8, r8
cmp rax, qword [r9 + 8]
jne 0x14000ab0b
mov qword [rdx + r8*8], rbx
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x14000ab3a
cmp rax, rdi
jne 0x14000ab16
mov qword [rdx + r8*8], rbx
jmp 0x14000ab3a
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rbx
je 0x14000ab3a
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r10*8 + 8], rcx
mov rcx, r9
call fcn.14000ab64
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ad90
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 rdi, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rdi + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000adb4
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x14000ae0b
cmp qword [rcx + rdx*8], rdi
jne 0x14000ae00
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x14000ae04
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14000ae18
cmp qword [rcx + rdx*8], rdi
jne 0x14000ae18
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rax, qword [rdi + 8]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
lea rcx, [rdi + 0x18]
dec qword [r9 + 0x10]
call fcn.140002728
mov edx, 0x38
mov rcx, rdi
call fcn.14000d2e8
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400170d0]
lea rcx, [0x1400170d0]
mov rax, qword [rax + 0x18]
call qword [case.0x14000e696.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov r8, rdi
lea rdx, str._sDiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x40]
call fcn.14000b370
mov rbx, qword [rsp + 0x40]
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 0x14000b29f
lea rcx, [rsp + 0x40]
call fcn.14000b2ec
mov r8, rdi
lea rdx, str._s_amd64DiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x40]
call fcn.14000b370
mov rbx, qword [rsp + 0x40]
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 0x14000b29f
lea rcx, [rsp + 0x40]
call fcn.14000b2ec
lea r9, str.Team_ToolsDiagnosticsHubCollector
mov r8, rdi
lea rdx, str._s_s_amd64DiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x40]
call fcn.14000b370
mov rbx, qword [rsp + 0x40]
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 0x14000b29f
mov edi, 0x80070057
jmp 0x14000b2b2
mov rdx, rsi
mov rcx, rbx
call fcn.14000aed4
mov edi, eax
test eax, eax
js 0x14000b2b2
xor edi, edi
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000b2d3
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14000e696.0]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b580
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 edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
call fcn.14000b764
mov ebp, eax
test eax, eax
jne 0x14000b73b
mov r9d, dword [rsp + 0x90]
lea rcx, [rbx + 0x50]
lea r8, str.Merging_ETL_files_with_flags__Flags:_0x_08x_
lea rdx, str.onecorecomdiagnostics_standardcollectorcorediagnosticshub.commonkerneltracecontrol.cpp
call fcn.140008c30
mov r9d, dword [rsp + 0x90]
mov r8d, edi
mov rax, qword [rbx + 8]
mov rdx, r14
mov rcx, r15
call qword [case.0x14000e696.0]
mov ebp, eax
test eax, eax
jne 0x14000b73b
lea rsi, [rbx + 0xf8]
mov rax, qword [rsi + 8]
cmp qword [rsi], rax
je 0x14000b73b
test edi, edi
je 0x14000b6b2
mov r12d, edi
mov rcx, qword [r14]
xor edi, edi
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
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 0x14000b672
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 0x14000b686
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r9, qword [r14]
lea r8, str.__s__I64d_
lea rdx, str.OriginalEtlFile_Name_ByteSize_
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call fcn.140008c30
add r14, 8
sub r12, 1
jne 0x14000b61b
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 0x14000b709
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 0x14000b71d
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_
mov rcx, rsi
lea rdx, str.MergedEtlFile_Name_ByteSize_
call fcn.140008c30
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 0x14000da34
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d780
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000da8a
mov ecx, 1
call fcn.14000d780
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
push rax
in al, 0x55
sub edi, dword [rsi]
jrcxz 0x140025ce7
mov ss, word [0x1827db5b7]
mov ds, word [rsi - 0x7b1184b7]
and rax, 0x1893f765
sti
invalid
Function at 0x140012aa0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1a0
mov rdi, rcx
add rcx, 0x10
call fcn.140008640
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x88]
mov r11d, dword [rsp + 0x84]
mov dword [rdi + 4], eax
mov eax, dword [rsp + 0x8c]
lea rdx, [rsp + 0x94]
lea rcx, [rdi + 0x10]
mov dword [rdi], r11d
mov dword [rdi + 8], eax
call fcn.140011cb0
lea rdx, [0x140096be0]
lea rcx, [rdi + 0x10]
call fcn.140013be0
lea rdx, [0x140096be0]
lea rcx, [rdi + 0x10]
call fcn.140013ca0
mov eax, dword [rdi]
mov byte [rdi + 0x3a], 0
sub eax, 5
mov byte [rdi + 0x34], 0
mov byte [rdi + 0x35], 0
mov byte [rdi + 0x30], 0
mov byte [rdi + 0x31], 0
mov byte [rdi + 0x36], 0
mov byte [rdi + 0x37], 0
mov byte [rdi + 0x38], 0
mov byte [rdi + 0x39], 0
mov byte [rdi + 0x32], 0
mov byte [rdi + 0x33], 0
je 0x140033121
cmp eax, 1
jne 0x140012b7c
mov byte [rdi + 0x35], al
mov byte [rdi + 0x31], al
mov byte [rdi + 0x39], al
cmp byte [rsp + 0x19a], al
jne 0x140033110
mov byte [rdi + 0x38], al
xor esi, esi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
call fcn.140012c30
test al, al
je 0x140012bd5
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x1b0], esi
call fcn.140012c30
test al, al
je 0x140033179
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x1b0]
mov rcx, rax
call rbx
cmp dword [rsp + 0x1b0], 1
je 0x140033185
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], esi
lea r8d, [rdx + 0x2c]
call fcn.140018a40
cmp byte [rdi + 0x3a], sil
jne 0x14003318e
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rsp + 0x20]
movzx eax, word [rsp + 0x50]
mov word [rdi + 0x3c], ax
test rcx, rcx
je 0x140012c17
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x1a0]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov byte [rdi + 0x37], 1
mov byte [rdi + 0x33], 1
mov byte [rdi + 0x32], 1
jmp 0x140012b7c
mov eax, dword [rdi + 4]
test eax, eax
jne 0x140033135
mov byte [rdi + 0x35], 1
mov byte [rdi + 0x34], 1
jmp 0x140012b7c
cmp eax, 1
jne 0x140033148
mov byte [rdi + 0x35], al
mov byte [rdi + 0x31], al
mov byte [rdi + 0x30], al
jmp 0x140012b7c
cmp eax, 2
jne 0x140012b7c
cmp byte [rsp + 0x19a], 1
mov byte [rdi + 0x35], 1
mov byte [rdi + 0x31], 1
mov byte [rdi + 0x37], 1
jne 0x140033170
mov byte [rdi + 0x30], 1
jmp 0x140012b7c
mov byte [rdi + 0x36], 1
jmp 0x140012b7c
lea rbx, [0x140044a00]
jmp 0x140012bb4
mov byte [rdi + 0x3a], 1
jmp 0x140012bd5
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
call fcn.140043fe0
test al, al
je 0x1400331c7
lea rcx, [rsp + 0x38]
call fcn.140052130
lea rcx, [rsp + 0x50]
call rax
lea rcx, [rsp + 0x38]
call fcn.140045ab0
nop
jmp 0x140012bfe
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x38]
call fcn.140045ab0
nop
jmp 0x140012bfe
Function at 0x140015e20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x60]
mov rdi, rcx
cmp dword [rcx + 0x64], esi
je 0x140015e4e
movsxd rcx, dword [rdi + 0x64]
movzx eax, byte [rcx + rdi + 0x1c]
inc ecx
mov dword [rdi + 0x64], ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 4
mov qword [rsp + 0x30], rbx
cmp esi, eax
cmovg esi, eax
sub eax, esi
movsxd rbx, esi
lea rdx, [rbx + rcx + 0x18]
movsxd r8, eax
add rcx, 0x18
call fcn.140018610
movsxd r11, dword [rdi + 0x60]
mov rcx, rdi
sub r11, rbx
sub rcx, rbx
mov r8, rbx
lea rdx, [r11 + rdi + 0x1c]
add rcx, 0x1c
call fcn.140018610
mov r9, qword [rdi + 8]
mov edx, 1
lea r8d, [rdx + 0x3f]
lea rcx, [rdi + 0x1c]
mov dword [rdi + 0x5c], esi
call fcn.14001a6e8
mov rbx, qword [rsp + 0x30]
mov dword [rdi + 0x64], 0
mov dword [rdi + 0x60], eax
test eax, eax
jne 0x140015e35
mov rcx, qword [rdi + 8]
call fcn.14001a708
test eax, eax
je 0x1400318e0
or eax, 0xffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rdi + 8]
call fcn.14001a740
test eax, eax
jne 0x140015ed2
jmp 0x140015e43

Function at 0x140015ee0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x20
mov ebx, r8d
mov r13, rdx
mov rdi, rcx
call fcn.140015e20
cmp eax, 0xffffffff
je 0x140016014
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
xor r12d, r12d
lea edx, [r12 + 1]
mov rcx, rdi
mov qword [rsp + 0x58], r14
call fcn.140015d50
lea r11d, [rbx - 1]
xor esi, esi
movsxd r14, r11d
test r11d, r11d
jle 0x140015f7f
mov qword [rsp + 0x40], rbp
mov ebp, dword [rdi + 0x60]
cmp dword [rdi + 0x64], ebp
je 0x140015fa1
movsxd rcx, dword [rdi + 0x64]
movzx edx, byte [rcx + rdi + 0x1c]
lea eax, [rcx + 1]
mov dword [rdi + 0x64], eax
cmp edx, 0xd
je 0x140015f69
cmp edx, 0xffffffff
je 0x140015f7a
cmp edx, 0xa
je 0x140015f7a
mov byte [rsi + r13], dl
inc rsi
inc r12d
cmp rsi, r14
jl 0x140015f32
jmp 0x140015f7a
mov rcx, rdi
call fcn.140015e20
cmp eax, 0xa
jne 0x140031929
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
movsxd rax, r12d
mov r12, qword [rsp + 0x50]
mov byte [rax + r13], 0
mov al, 1
add rsp, 0x20
pop r13
pop rdi
pop rbx
ret
cmp ebp, 4
jle 0x140015fab
mov ebp, 4
mov eax, 4
movsxd rbx, ebp
lea rcx, [rdi + 0x18]
sub eax, ebp
lea rdx, [rbx + rdi + 0x18]
movsxd r8, eax
call fcn.140018610
movsxd r11, dword [rdi + 0x60]
mov rcx, rdi
sub r11, rbx
sub rcx, rbx
mov r8, rbx
lea rdx, [r11 + rdi + 0x1c]
add rcx, 0x1c
call fcn.140018610
mov r9, qword [rdi + 8]
mov edx, 1
lea r8d, [rdx + 0x3f]
lea rcx, [rdi + 0x1c]
mov dword [rdi + 0x5c], ebp
call fcn.14001a6e8
mov dword [rdi + 0x64], 0
mov dword [rdi + 0x60], eax
test eax, eax
jne 0x140015f3a
jmp 0x140031900
xor al, al
add rsp, 0x20
pop r13
pop rdi
pop rbx
ret
mov rcx, qword [rdi + 8]
call fcn.14001a708
test eax, eax
jne 0x140015f7a
mov rcx, qword [rdi + 8]
call fcn.14001a740
test eax, eax
jne 0x140015f7a
xor edx, edx
jmp 0x140015f58
cmp eax, 0xffffffff
je 0x140015f7a
mov edx, 1
mov rcx, rdi
call fcn.140015d50
nop
jmp 0x140015f7a
Function at 0x140016670
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
test al, 2
jne 0x1400319f0
test al, 1
jne 0x1400319f0
add rsp, 0x20
pop rbx
ret
test al, 1
je 0x140031a0e
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x30]
call fcn.14001a02c
cmp qword [rsp + 0x30], 0
jne 0x14001668b
mov eax, dword [rbx]
test al, 0x20
je 0x140031a39
mov r9, qword [rbx + 8]
mov edx, 1
lea rcx, [0x140098244]
lea r8d, [rdx + 1]
call fcn.14001a224
mov dword [rbx + 0x14], 1
jmp 0x14001668b
test al, 0x40
je 0x140031a62
mov r9, qword [rbx + 8]
mov edx, 1
lea rcx, [0x140098308]
lea r8d, [rdx + 1]
call fcn.14001a224
mov dword [rbx + 0x14], 2
jmp 0x14001668b
test al, al
jns 0x14001668b
mov r9, qword [rbx + 8]
mov edx, 1
lea rcx, [0x140098d50]
lea r8d, [rdx + 2]
call fcn.14001a224
mov dword [rbx + 0x14], 4
jmp 0x14001668b

Function at 0x1400166e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx]
mov dword [rcx + 0x14], 0
mov byte [rcx + 0x10], 0
test al, 4
jne 0x14001679b
test al, 0x10
jne 0x14001679b
mov qword [rsp + 0x38], rbx
mov r8, rdx
mov rbx, rcx
test al, al
js 0x140031950
test al, 0x20
jne 0x14003195c
test al, 0x40
jne 0x140031968
lea rdx, [0x140098d54]
mov rcx, r8
call fcn.140019ebc
test rax, rax
je 0x140016796
mov edx, 1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rsi
lea r8d, [rdx + 2]
mov r9, rax
mov qword [rsp + 0x20], rdi
mov rdi, rax
call fcn.14001a6e8
mov rcx, rdi
mov rsi, rax
call fcn.14001a354
movzx ecx, byte [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
cmp rsi, 2
jb 0x140016788
cmp cl, 0xff
je 0x140031974
cmp cl, 0xfe
je 0x14003198f
cmp cl, 0xef
je 0x1400319aa
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
mov dword [rcx + 0x14], 4
jmp 0x140016724
mov dword [rcx + 0x14], 1
jmp 0x140016724
mov dword [rcx + 0x14], 2
jmp 0x140016724
cmp byte [rsp + 0x31], 0xfe
jne 0x140016788
mov dword [rbx + 0x14], 1
mov byte [rbx + 0x10], 1
jmp 0x140016791
cmp byte [rsp + 0x31], 0xff
jne 0x140016788
mov dword [rbx + 0x14], 2
mov byte [rbx + 0x10], 1
jmp 0x140016791
cmp rsi, 3
jb 0x140016791
cmp byte [rsp + 0x31], 0xbb
jne 0x140016791
cmp byte [rsp + 0x32], 0xbf
jne 0x140016791
mov dword [rbx + 0x14], 4
mov byte [rbx + 0x10], 1
jmp 0x140016791