joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
test esi, esi
mov rbx, rcx
jle 0x1400019d0
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001975
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400019f2
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000196e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001980
add dword [0x14000c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000196e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400018f8
mov rax, qword [0x14000c098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140001fbc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001fb3
test rsi, rsi
je 0x140001fb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400021e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x1400021f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002208
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002210
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002220
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000226d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002264
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000226f
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002300
mov rdx, qword [0x140009740]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400022ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022ee
cmp word [rax + 0x18], 0x20b
jne 0x1400022ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002300
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400022d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002300
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400022d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002310
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002330
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002338
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002330
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000238d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002384
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002330
add rax, 0x28
cmp rax, r9
jne 0x140002370
xor eax, eax
ret

Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023af
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023f0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002440
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002437
test rcx, rcx
je 0x1400023f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002428
xor eax, eax
ret

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000246f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002478
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002490
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024b0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400024b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002504
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002510
add rdx, 0x28
cmp r9, rdx
jne 0x1400024f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140009740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002542
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002550
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002542
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002542
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002542
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400025a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002590
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ae
test ecx, ecx
jg 0x1400025c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000ec0f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001b550]
jne 0x140006aba
rol rcx, 0x10
test cx, 0xffff
jne 0x140006ab6
repz ret
ror rcx, 0x10
jmp 0x14000eb68
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001cd00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001cdf8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000ebed
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001cd00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000ec0f
mov rax, qword [rsp + 0x88]
mov qword [0x14001cdf8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001cd98], rax
mov rax, qword [0x14001cdf8]
mov qword [0x14001cc70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001cd80], rax
mov dword [0x14001cc60], 0xc0000409
mov dword [0x14001cc64], 1
mov rax, qword [0x14001b550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001b558]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001ccf8], eax
mov ecx, 1
call fcn.14000ea58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400171b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001ccf8], 0
jne 0x14000ec96
mov ecx, 1
call fcn.14000ea58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800ab1a8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
and dword [rax - 0x38], 0
mov rdi, rcx
mov r8d, dword [0x18028de40]
mov sil, dl
mov dword [rax - 0x30], 0x3f800000
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + r8*8]
mov eax, dword [rcx + rax]
cmp dword [0x1802c4640], eax
jg 0x1800ab36c
movabs rbx, 0xcbf29ce484222325
xor edx, edx
mov rcx, rbx
movabs rbp, 0x100000001b3
movzx eax, byte [rsp + rdx + 0x60]
inc rdx
xor rcx, rax
imul rcx, rbp
cmp rdx, 8
jb 0x1800ab212
mov rax, qword [0x1802c4630]
mov rdx, qword [0x1802c4618]
and rax, rcx
mov r9, qword [0x1802c4608]
add rax, rax
mov rcx, qword [rdx + rax*8 + 8]
cmp rcx, r9
je 0x1800ab263
mov r8, qword [rdx + rax*8]
jmp 0x1800ab25b
cmp rcx, r8
je 0x1800ab263
mov rcx, qword [rcx + 8]
cmp rdi, qword [rcx + 0x10]
jne 0x1800ab252
jmp 0x1800ab265
xor ecx, ecx
test rcx, rcx
mov rax, r9
cmovne rax, rcx
cmp rax, r9
jne 0x1800ab2e6
and dword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
call fcn.1800ab658
xor ecx, ecx
movzx eax, byte [rsp + rcx + 0x60]
inc rcx
xor rbx, rax
imul rbx, rbp
cmp rcx, 8
jb 0x1800ab28f
and rbx, qword [0x1802c4630]
mov rdx, qword [0x1802c4618]
add rbx, rbx
mov rax, qword [0x1802c4608]
mov rcx, qword [rdx + rbx*8 + 8]
cmp rcx, rax
je 0x1800ab2dd
mov r8, qword [rdx + rbx*8]
jmp 0x1800ab2d5
cmp rcx, r8
je 0x1800ab2dd
mov rcx, qword [rcx + 8]
cmp rdi, qword [rcx + 0x10]
jne 0x1800ab2cc
jmp 0x1800ab2df
xor ecx, ecx
test rcx, rcx
cmovne rax, rcx
mov rcx, qword [0x18028e880]
lea rdx, [rax + 0x18]
movss xmm1, dword [0x1800a11d4]
movss xmm0, dword [rdx]
subss xmm1, dword [rcx + 0x20]
mulss xmm1, dword [0x1800a1114]
test sil, sil
je 0x1800ab31e
comiss xmm0, dword [0x1800a11d4]
jae 0x1800ab32f
addss xmm0, xmm1
jmp 0x1800ab32b
comiss xmm0, dword [0x1800a10c4]
jbe 0x1800ab32f
subss xmm0, xmm1
movss dword [rdx], xmm0
comiss xmm0, dword [0x1800a10c4]
mov rbx, qword [rsp + 0x68]
lea rcx, [rsp + 0x20]
mov rbp, qword [rsp + 0x70]
lea rax, [rsp + 0x28]
mov rsi, qword [rsp + 0x78]
cmovae rcx, rdx
comiss xmm0, dword [0x1800a11d4]
cmovbe rax, rcx
movss xmm0, dword [rax]
movss dword [rdx], xmm0
add rsp, 0x50
pop rdi
ret
lea rcx, [0x1802c4640]
call fcn.18012d574
cmp dword [0x1802c4640], 0xffffffff
jne 0x1800ab1f9
mov ecx, 0x20
call fcn.18012d490
xorps xmm0, xmm0
lea rcx, [0x1802c4618]
mov r8, rax
mov edx, 0x10
mov qword [rax], rax
mov qword [rax + 8], rax
and qword [0x1802c4618], 0
mov qword [0x1802c4608], rax
movdqa xmmword [0x1802c4620], xmm0
mov qword [0x1802c4630], 7
mov qword [0x1802c4638], 8
mov dword [0x1802c4600], 0x3f800000
call fcn.1800ab518
lea rcx, [0x18019950c]
call fcn.18012d944
lea rcx, [0x1802c4640]
call fcn.18012d508
jmp 0x1800ab1f9
Function at 0x1800ab658
Capabilities:
Encode data using xor
Hash data using fnv

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, 0x30
mov r12, r8
mov rsi, rdx
xor ecx, ecx
movabs r15, 0xcbf29ce484222325
movzx eax, byte [r8 + rcx]
movabs rdx, 0x100000001b3
xor r15, rax
inc rcx
imul r15, rdx
cmp rcx, 8
jb 0x1800ab687
mov rax, qword [0x1802c4630]
mov rcx, qword [0x1802c4618]
and rax, r15
mov r14, qword [0x1802c4608]
add rax, rax
mov rbx, qword [rcx + rax*8 + 8]
cmp rbx, r14
jne 0x1800ab6f2
mov rbx, r14
mov rbp, r14
movabs rax, 0x7ffffffffffffff
cmp qword [0x1802c4610], rax
jne 0x1800ab731
lea rcx, [0x18009bf70]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rdx, qword [rcx + rax*8]
mov rax, qword [r8]
jmp 0x1800ab704
cmp rbx, rdx
je 0x1800ab727
mov rbx, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jne 0x1800ab6fb
mov r14, qword [rbx]
mov rax, rbx
mov rbp, r14
mov rbx, r14
test rax, rax
je 0x1800ab6d1
mov qword [rsi], rax
mov byte [rsi + 8], 0
jmp 0x1800ab878
mov r14, rbx
xor eax, eax
mov rbp, rbx
jmp 0x1800ab716
mov ecx, 0x20
call fcn.18012d490
movups xmm0, xmmword [r12]
mov rdi, rax
xorps xmm1, xmm1
movdqu xmmword [rax + 0x10], xmm0
mov r8, qword [0x1802c4610]
lea rcx, [r8 + 1]
test rcx, rcx
js 0x1800ab762
cvtsi2ss xmm1, rcx
jmp 0x1800ab777
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
mov rcx, qword [0x1802c4638]
xorps xmm0, xmm0
test rcx, rcx
js 0x1800ab78d
cvtsi2ss xmm0, rcx
jmp 0x1800ab7a2
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x1802c4600]
comiss xmm0, xmm1
jae 0x1800ab810
call fcn.1800ab89c
mov rcx, qword [0x1802c4630]
mov rdx, qword [0x1802c4618]
and rcx, r15
mov rbx, qword [0x1802c4608]
add rcx, rcx
mov rax, qword [rdx + rcx*8 + 8]
cmp rax, rbx
je 0x1800ab7fc
mov r8, qword [rdx + rcx*8]
mov rcx, qword [rdi + 0x10]
jmp 0x1800ab7f3
mov rbx, rax
cmp rax, r8
je 0x1800ab853
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x1800ab7e7
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov r14, qword [rsp + 0x20]
mov rbp, rbx
mov r8, qword [0x1802c4610]
mov rdx, qword [rbx + 8]
inc r8
mov qword [0x1802c4610], r8
mov qword [rdi], r14
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rax, qword [0x1802c4630]
mov rcx, qword [0x1802c4618]
and rax, r15
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [0x1802c4608]
jne 0x1800ab85a
mov qword [rcx + rax*8], rdi
jmp 0x1800ab86c
mov qword [rsp + 0x20], rax
jmp 0x1800ab801
cmp r8, rbp
jne 0x1800ab865
mov qword [rcx + rax*8], rdi
jmp 0x1800ab871
cmp qword [rcx + rax*8 + 8], rdx
jne 0x1800ab871
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1800ab89c
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 rcx, qword [0x1802c4610]
mov esi, 1
add rcx, rsi
xorps xmm1, xmm1
js 0x1800ab8c6
cvtsi2ss xmm1, rcx
jmp 0x1800ab8db
mov rax, rcx
and rcx, rsi
shr rax, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm1, dword [0x1802c4600]
cvttss2si ecx, xmm1
cmp ecx, 0x80000000
je 0x1800ab90e
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
je 0x1800ab90e
unpcklps xmm1, xmm1
movmskps eax, xmm1
and eax, esi
xor eax, esi
add ecx, eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movss xmm0, dword [0x1800a144c]
xor ecx, ecx
comiss xmm1, xmm0
jb 0x1800ab933
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x1800ab933
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x1802c4638]
cvttss2si rax, xmm1
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x1800ab968
cmp rdx, 0x200
jae 0x1800ab965
shl rdx, 3
cmp rdx, rcx
jae 0x1800ab968
mov rdx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov rax, rsi
shl rax, cl
cmp rdx, rax
jbe 0x1800ab98f
lea rcx, [0x18009bf90]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbx, qword [0x1802c4608]
lea rax, [rdx - 1]
or rax, rsi
mov rdi, rsi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1802c4618]
lea rdx, [rdi + rdi]
call fcn.1800ab518
mov rax, qword [0x1802c4608]
lea r9, [rdi - 1]
mov qword [0x1802c4630], r9
mov qword [0x1802c4638], rdi
mov rax, qword [rax]
mov rdx, rax
cmp rax, rbx
je 0x1800abadb
mov rdx, qword [rdx]
movabs r11, 0xcbf29ce484222325
xor r8d, r8d
movzx ecx, byte [rax + r8 + 0x10]
movabs r10, 0x100000001b3
xor r11, rcx
add r8, rsi
imul r11, r10
cmp r8, 8
jb 0x1800ab9f4
mov rdi, qword [0x1802c4618]
and r11, r9
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x1800aba32
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x1800abaa1
mov rcx, qword [rdi + r11*8 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rcx + 0x10]
jne 0x1800aba76
mov r8, qword [rcx]
cmp r8, rax
je 0x1800aba2b
mov r10, qword [rax + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rcx, qword [r8 + 8]
mov qword [rcx], rax
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rax + 8], rcx
jmp 0x1800aba2b
mov rcx, qword [rcx + 8]
cmp r8, qword [rcx + 0x10]
je 0x1800abab5
cmp qword [rdi + r11*8], rcx
jne 0x1800aba6c
mov r10, qword [rax + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rax
mov qword [rcx + 8], r9
mov qword [rdx + 8], r10
mov qword [rax + 8], r8
mov qword [rdi + r11*8], rax
mov rax, rdx
cmp rdx, rbx
je 0x1800abadb
mov r9, qword [0x1802c4630]
jmp 0x1800ab9e4
mov r10, qword [rcx]
mov r9, qword [rax + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rcx, qword [r10 + 8]
mov qword [rcx], rax
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rax + 8], rcx
jmp 0x1800abaa1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800abaec
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x70
mov eax, dword [0x18009c048]
mov rbx, rcx
movups xmm0, xmmword [0x18009c020]
mov dword [rsp + 0x68], eax
movzx eax, word [0x18009c04c]
movups xmm1, xmmword [0x18009c030]
mov word [rsp + 0x6c], ax
mov eax, 0x30
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x18009c040]
movsd qword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x50], xmm1
jmp 0x1800abb51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800abb58
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x1800abbb1
inc ax
mov word [rsp + 0x6a], ax
jmp 0x1800abb73
cmp eax, 0xe7
jne 0x1800abbb1
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1800abbb1
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800abb38
mov byte [rbx], 1
mov al, 1
add rsp, 0x70
pop rbx
ret
xor al, al
jmp 0x1800abbab

Function at 0x1800abbb8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
test r8, r8
jne 0x1800abbcc
lea eax, [r8 + 1]
jmp 0x1800abc0d
test rcx, rcx
je 0x1800abc0b
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800abc0b
test rdx, rdx
je 0x1800abc0b
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 1
cmp eax, ecx
jne 0x1800abc05
cmp dword [rsp + 0x50], ebx
je 0x1800abc07
xor cl, cl
mov al, cl
jmp 0x1800abc0d
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1800abc14
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1800abca7
test rcx, rcx
je 0x1800abca7
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800abca7
and qword [rax - 0x10], 0
xor r9d, r9d
and dword [rax + 0x10], 0
lea rax, [rax + 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1800abc95
mov eax, dword [rsp + 0x48]
cmp rax, rdi
jb 0x1800abca7
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov r8d, edi
and qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1800abc95
jmp 0x1800abca9
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], 0
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret