joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006892c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rax, qword [0x14017eea0]
xor rax, rbp
mov qword [rbp], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x1400689dc
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x1400689dc
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400689d5
mov rcx, qword [rsi + 0x68]
lea r9, [rbp]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea rbx, [rbp - 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rbp - 0x20]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x1400689d9
cmp eax, 1
je 0x1400689a5
test eax, eax
jne 0x1400689d5
mov byte [rsi + 0x71], 0
mov rbx, qword [rbp - 0x28]
sub rbx, rdi
je 0x1400689cb
mov r9, qword [rsi + 0x80]
lea rcx, [rbp - 0x20]
mov edx, 1
mov r8, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rbx, rax
jne 0x1400689d5
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x1400689dc
xor edi, edi
jmp 0x1400689dc
mov dil, 1
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1400b72d0
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007a636
Capabilities:
Parse pe header

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe8], 0xfffffffffffffffe
mov r14, r8
mov rbx, rdx
mov rsi, rcx
lea rdi, [rcx + 0x20]
mov rcx, rdi
call fcn.14007ac34
lea r9, [rbp - 0x58]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
call fcn.14009870a
test al, al
je 0x14007a6dd
movzx eax, word [rbp - 0x58]
cmp eax, 0x5a4d
jne 0x14007a732
mov rcx, rdi
call fcn.14007ac34
movsxd rdi, dword [rbp - 0x1c]
add rdi, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, rdi
mov r9, rbx
call fcn.14009870a
test al, al
je 0x14007a787
cmp dword [rbx], 0x4550
jne 0x14007a7d9
mov al, 1
test r14, r14
je 0x14007a834
mov qword [r14], rdi
jmp 0x14007a834
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS64_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x154
call fcn.1400067ee
lea rdx, str.could_not_read_dos_header_from
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007a722
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
jmp 0x14007a829
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS64_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x15a
call fcn.1400067ee
lea rdx, str.invalid_e_magic_in_dos_header_of
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007a777
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
jmp 0x14007a829
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS64_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x162
call fcn.1400067ee
lea rdx, str.could_not_read_nt_headers_from
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007a7cc
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
jmp 0x14007a829
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS64_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x168
call fcn.1400067ee
lea rdx, str.invalid_signature_in_nt_headers_of
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007a81e
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
lea rcx, [rbp - 0x18]
call fcn.140006ed2
xor eax, eax
add rsp, 0x170
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14007a8f2
Capabilities:
Parse pe header

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe8], 0xfffffffffffffffe
mov r14, r8
mov rbx, rdx
mov rsi, rcx
lea rdi, [rcx + 0x20]
mov rcx, rdi
call fcn.14007ac34
lea r9, [rbp - 0x58]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
call fcn.14009870a
test al, al
je 0x14007a999
movzx eax, word [rbp - 0x58]
cmp eax, 0x5a4d
jne 0x14007a9ee
mov rcx, rdi
call fcn.14007ac34
movsxd rdi, dword [rbp - 0x1c]
add rdi, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, rdi
mov r9, rbx
call fcn.14009870a
test al, al
je 0x14007aa43
cmp dword [rbx], 0x4550
jne 0x14007aa95
mov al, 1
test r14, r14
je 0x14007aaf0
mov qword [r14], rdi
jmp 0x14007aaf0
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x154
call fcn.1400067ee
lea rdx, str.could_not_read_dos_header_from
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007a9de
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
jmp 0x14007aae5
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x15a
call fcn.1400067ee
lea rdx, str.invalid_e_magic_in_dos_header_of
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007aa33
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
jmp 0x14007aae5
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x162
call fcn.1400067ee
lea rdx, str.could_not_read_nt_headers_from
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007aa88
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
jmp 0x14007aae5
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_NtHeadersType___crashpad::WinVMAddress___const__NtHeadersType___IMAGE_NT_HEADERS_
lea r8, str.xplat_third_partycrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rbp - 0x18]
mov rcx, rdi
mov r9d, 0x168
call fcn.1400067ee
lea rdx, str.invalid_signature_in_nt_headers_of
mov rcx, rdi
call fcn.1400035ea
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14007aada
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14000468b
lea rcx, [rbp - 0x18]
call fcn.140006ed2
xor eax, eax
add rsp, 0x170
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14007ea52
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r14, r9
mov r15, rdx
mov rax, rcx
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x10], rax
mov r9, qword [rax]
mov rbx, qword [r9 + 8]
cmp byte [rbx + 0x19], 0
je 0x14007ea92
mov qword [rbp - 8], r9
mov rdi, r9
jmp 0x14007ead1
mov rax, qword [r14]
mov rdi, rbx
mov rbx, qword [rbx + 0x20]
xor esi, esi
cmp rbx, rax
setae sil
xor edx, edx
cmp rax, rbx
setb dl
test r8b, r8b
cmovne edx, esi
mov ebx, edx
xor bl, 1
movzx ebx, bl
shl rbx, 4
mov rbx, qword [rdi + rbx]
cmp byte [rbx + 0x19], 0
je 0x14007ea95
mov qword [rbp - 8], rdi
test dl, dl
je 0x14007eb0b
cmp rdi, qword [r9]
je 0x14007eaec
lea rcx, [rbp - 8]
call fcn.140004370
mov r8b, 1
mov rax, qword [rbp - 8]
mov rcx, qword [rbp + 0x60]
jmp 0x14007eb11
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov r8b, 1
mov r9, rdi
call fcn.1400306f2
jmp 0x14007eb34
xor r8d, r8d
mov rax, rdi
mov rax, qword [rax + 0x20]
cmp rax, qword [r14]
jae 0x14007eb42
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov r9, rdi
call fcn.1400306f2
mov rax, qword [rbp - 0x18]
mov qword [r15], rax
mov byte [r15 + 8], 1
jmp 0x14007eb58
mov edx, 0x30
call fcn.1400b72ac
mov rax, qword [rbp - 8]
mov qword [r15], rax
mov byte [r15 + 8], 0
mov rax, r15
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret

Function at 0x14008089a
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov ecx, dword [0x140181448]
cmp ecx, 0xffffffff
je 0x14008099b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 8], rax
test rax, rax
je 0x1400809a3
mov rcx, rax
cmp qword [rax + 0x30], 0
sete al
lea r14, [rbp - 0x10]
mov r15, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rsi, qword [sym.imp.KERNEL32.dll_HeapFree]
test al, 1
je 0x140080943
cmp qword [rcx + 0x18], 0
jne 0x140080943
jmp 0x140080992
mov rax, qword [rdi + 8]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140080932
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rdi]
mov rax, qword [rbx]
mov rcx, rbx
xor edx, edx
call qword [rax]
call r15
mov rcx, rax
xor edx, edx
mov r8, rbx
call rsi
call r15
mov rcx, rax
xor edx, edx
mov r8, rdi
call rsi
mov rcx, qword [rbp - 8]
mov rdi, qword [rcx + 0x18]
test rdi, rdi
jne 0x140080902
jmp 0x140080984
mov rax, qword [rcx + 0x28]
mov rdi, qword [rax]
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x140080971
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x140080971
mov rcx, rax
call qword [rdi + 0x28]
mov rcx, qword [rbp - 8]
add rcx, 0x28
mov rdx, r14
mov r8, rdi
call fcn.14008113e
mov rcx, qword [rbp - 8]
cmp qword [rcx + 0x30], 0
jne 0x14008094e
mov al, 1
jmp 0x1400808f2
xor ecx, ecx
call fcn.140081191
jmp 0x1400809a3
mov qword [rbp - 8], 0
lea rcx, [rbp - 8]
call fcn.1400807fc
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x140081191
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
lea rcx, [0x14018aae8]
lea rdx, [0x1400815fb]
call fcn.1400811ce
mov ecx, dword [0x140181448]
cmp ecx, 0xffffffff
je 0x1400811c6
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x140082c24
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
mov r9d, 0x1505
sub rcx, rdx
je 0x140082cac
movabs r8, 0x400000000003
mov al, byte [rdx + rcx - 1]
add al, 0xd2
cmp al, 0x2e
ja 0x140082c60
movzx eax, al
bt r8, rax
jae 0x140082c60
dec rcx
jne 0x140082c46
jmp 0x140082cac
mov r9d, 0x1505
mov r10b, 1
xor eax, eax
mov sil, byte [rdx + rax]
xor r11d, r11d
lea edi, [rsi - 0x2e]
cmp dil, 0x2e
ja 0x140082c91
movzx edi, dil
bt r8, rdi
jae 0x140082c91
test r10b, 1
jne 0x140082ca4
mov sil, 0x2e
mov r11b, 1
mov edi, r9d
shl edi, 5
add edi, r9d
movzx r9d, sil
add r9d, edi
mov r10d, r11d
inc rax
cmp rcx, rax
jne 0x140082c6b
mov eax, r9d
pop rdi
pop rsi
pop rbp
ret
Function at 0x140088998
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rax, r8
mov r14, rdx
mov rbx, rcx
movabs r9, 0xcbf29ce484222325
xor ecx, ecx
movabs rdx, 0x100000001b3
movzx edi, byte [rax + rcx]
xor r9, rdi
imul r9, rdx
inc rcx
cmp rcx, 4
jne 0x1400889d1
and r9, qword [rbx + 0x30]
mov rdi, qword [rbx + 8]
mov rcx, qword [rbx + 0x18]
mov rdx, r9
shl rdx, 4
mov r8, qword [rcx + rdx]
cmp r8, rdi
je 0x140088a14
lea rdx, [r9 + r9]
shl rdx, 3
or rdx, 8
mov rcx, qword [rcx + rdx]
mov rdi, qword [rcx]
mov eax, dword [rax]
cmp rdi, r8
je 0x140088a4d
mov rdi, qword [rdi + 8]
cmp eax, dword [rdi + 0x10]
jne 0x140088a16
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rcx], rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
dec qword [rbx + 0x10]
mov edx, 0x20
mov rcx, rsi
call fcn.1400b72ac
mov qword [r14], rdi
xor eax, eax
jmp 0x140088a9e
mov rax, qword [rsi]
cmp r8, rax
je 0x140088a7a
mov rcx, qword [rsi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], r8
mov rdx, qword [r8 + 8]
mov qword [rdx], rsi
mov qword [r8 + 8], rcx
mov rcx, qword [rsi + 8]
mov qword [rax + 8], rcx
mov qword [rsi + 8], rdx
mov rcx, rbx
mov rdx, rsi
mov qword [rbp - 0x10], rsi
call fcn.14005da90
mov rcx, rbx
mov qword [rbp - 0x18], rbx
call fcn.140088b62
mov rax, qword [rbp - 0x10]
mov qword [r14], rax
mov al, 1
mov byte [r14 + 8], al
mov rax, r14
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

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

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movabs r8, 0xcbf29ce484222325
xor eax, eax
movabs rcx, 0x100000001b3
movzx edx, byte [rdi + rax + 0x10]
xor r8, rdx
imul r8, rcx
inc rax
cmp rax, 4
jne 0x140088cce
and r8, qword [rbx + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.14005de14
mov rsi, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rax], rsi
mov rcx, qword [rdi]
mov qword [rcx + 8], rax
dec qword [rbx + 0x10]
mov edx, 0x20
mov rcx, rdi
call fcn.1400b72ac
mov qword [r14], rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

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

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
mov rax, rdx
movabs rdx, 0xcbf29ce484222325
xor esi, esi
movabs r9, 0x100000001b3
movzx edi, byte [r8 + rsi]
xor rdx, rdi
imul rdx, r9
inc rsi
cmp rsi, 4
jne 0x140088eeb
and rdx, qword [rcx + 0x30]
mov r9, qword [rcx + 8]
mov r10, qword [rcx + 0x18]
mov rcx, rdx
shl rcx, 4
mov r11, qword [r10 + rcx]
lea rdi, [rdx + rdx]
inc rdi
mov edx, dword [r8]
mov rcx, r11
cmp r9, r11
je 0x140088f32
mov rsi, qword [r10 + rdi*8]
mov rsi, qword [rsi]
jmp 0x140088f35
mov rsi, r11
cmp rcx, rsi
je 0x140088f47
cmp dword [rcx + 0x10], edx
je 0x140088f44
mov rcx, qword [rcx]
jmp 0x140088f24
mov r9, rcx
mov qword [rax], r9
pop rdi
pop rsi
pop rbp
ret
Function at 0x140088f4e
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rax, r8
mov r14, rdx
mov rbx, rcx
movabs r9, 0xcbf29ce484222325
xor ecx, ecx
movabs rdx, 0x100000001b3
movzx edi, byte [rax + rcx]
xor r9, rdi
imul r9, rdx
inc rcx
cmp rcx, 4
jne 0x140088f87
and r9, qword [rbx + 0x30]
mov rdi, qword [rbx + 8]
mov rcx, qword [rbx + 0x18]
mov rdx, r9
shl rdx, 4
mov r8, qword [rcx + rdx]
cmp r8, rdi
je 0x140088fca
lea rdx, [r9 + r9]
shl rdx, 3
or rdx, 8
mov rcx, qword [rcx + rdx]
mov rdi, qword [rcx]
mov eax, dword [rax]
cmp rdi, r8
je 0x140089003
mov rdi, qword [rdi + 8]
cmp eax, dword [rdi + 0x10]
jne 0x140088fcc
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rcx], rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
dec qword [rbx + 0x10]
mov edx, 0x68
mov rcx, rsi
call fcn.1400b72ac
mov qword [r14], rdi
xor eax, eax
jmp 0x140089054
mov rax, qword [rsi]
cmp r8, rax
je 0x140089030
mov rcx, qword [rsi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], r8
mov rdx, qword [r8 + 8]
mov qword [rdx], rsi
mov qword [r8 + 8], rcx
mov rcx, qword [rsi + 8]
mov qword [rax + 8], rcx
mov qword [rsi + 8], rdx
mov rcx, rbx
mov rdx, rsi
mov qword [rbp - 0x10], rsi
call fcn.14005da90
mov rcx, rbx
mov qword [rbp - 0x18], rbx
call fcn.140089124
mov rax, qword [rbp - 0x10]
mov qword [r14], rax
mov al, 1
mov byte [r14 + 8], al
mov rax, r14
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

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

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movabs r8, 0xcbf29ce484222325
xor eax, eax
movabs rcx, 0x100000001b3
movzx edx, byte [rdi + rax + 0x10]
xor r8, rdx
imul r8, rcx
inc rax
cmp rax, 4
jne 0x140089564
and r8, qword [rbx + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.14005de14
mov rsi, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rax], rsi
mov rcx, qword [rdi]
mov qword [rcx + 8], rax
dec qword [rbx + 0x10]
mov edx, 0x68
mov rcx, rdi
call fcn.1400b72ac
mov qword [r14], rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x1400897fc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov rax, qword [0x14017eea0]
xor rax, rbp
mov qword [rbp - 8], rax
xor esi, esi
lea rdi, [rbp - 0xc]
mov dword [rdi], esi
lea rax, [rbp - 0x10]
mov dword [rax], 4
mov r8, qword [str.BootId]
mov rdx, qword [str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
mov r9d, send
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
cmove esi, dword [rdi]
mov rcx, qword [rbp - 8]
xor rcx, rbp
call fcn.1400b72d0
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008a4cc
Capabilities:
Get common file path

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x200
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x178], 0xfffffffffffffffe
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
lea rbx, [rbp + 0x150]
mov qword [rbx], 0
call fcn.14008a355
movzx edx, al
shl edx, 0x11
mov rcx, rdi
xor r8d, r8d
mov r9, rbx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14008a55e
mov rdi, qword [rbp + 0x150]
movaps xmm0, xmmword [0x1400fc010]
movups xmmword [rsi + 0x10], xmm0
mov word [rsi], 0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.14000c3e8
mov rax, rsi
add rsp, 0x200
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov edi, eax
lea rcx, [0x140185478]
lea rdx, [0x1400b7f30]
lea r8, [0x140185480]
call fcn.1400b7960
test eax, eax
jne 0x14008a583
call sub.api_ms_win_crt_runtime_l1_1_0.dll_terminate
mov rax, qword [0x140185480]
lea rcx, [0x140185480]
lea rsi, [rbp + 0x158]
mov rdx, rsi
mov r8d, edi
call qword [rax + 0x10]
test r14b, r14b
je 0x14008a5b7
mov eax, dword [0x14018ae18]
cmp eax, 0x7fffffff
jb 0x14008a64c
movaps xmm0, xmmword [section..rdata]
lea rcx, [rbp - 0x40]
movups xmmword [rcx + 0x10], xmm0
mov byte [rcx], 0
mov rdx, qword [rbp + 0x168]
add rdx, 0x10
call fcn.14001175a
lea rdx, str.Cant_get_path.
lea rcx, [rbp - 0x40]
mov r8d, send
call fcn.1400052c6
mov r8, qword [rbp + 0x168]
cmp qword [rbp + 0x170], 0xf
jbe 0x14008a607
mov rsi, qword [rbp + 0x158]
lea rdi, [rbp - 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400052c6
cmp qword [rbp - 0x28], 0xf
jbe 0x14008a621
mov rdi, qword [rbp - 0x40]
lea rsi, [rbp + 0x118]
mov rcx, rsi
mov rdx, rdi
call fcn.140005442
lea rax, vtable.std::runtime_error.0
mov qword [rsi], rax
lea rdx, [0x140139b70]
mov rcx, rsi
call sub.VCRUNTIME140.dll__CxxThrowException
movups xmm0, xmmword [str.xplat_archonZeratul_sharedAppUtils_srcPathUtils_win.cpp]
lea rcx, [rbp - 0x40]
movaps xmmword [rcx], xmm0
lea r8, [0x14018ae18]
xor edx, edx
call fcn.14003d7a4
cmp eax, 0x7ffffffe
ja 0x14008a5b7
lea rax, str.GetKnownFolder
lea rcx, [rbp + 0x130]
mov qword [rcx], rax
lea rax, [0x140124d65]
mov qword [rcx + 8], rax
lea rax, str.xplat_archonZeratul_sharedAppUtils_srcPathUtils_win.cpp
lea r9, [rbp + 0x140]
mov qword [r9], rax
lea rax, [0x140125011]
mov qword [r9 + 8], rax
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x44
lea rdx, [0x14018ae18]
lea rcx, [rbp - 0x40]
mov r8d, 0x7ffffffe
call fcn.14003da1a
lea rcx, [rbp + 0x18]
lea rdx, str.Cant_get_path.
call fcn.1400035ea
mov r8, qword [rbp + 0x168]
cmp qword [rbp + 0x170], 0xf
jbe 0x14008a700
mov rdx, qword [rbp + 0x158]
jmp 0x14008a707
lea rdx, [rbp + 0x158]
mov rcx, rax
call fcn.14000468b
lea rcx, [rbp - 0x40]
call fcn.14003daac
jmp 0x14008a5b7
Function at 0x14008fd42
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rax, qword [0x14017eea0]
xor rax, rbp
mov qword [rbp], rax
cmp ecx, 2
je 0x14008fd7c
mov esi, 0xffffffff
cmp ecx, 1
jne 0x14008fd8c
lea rsi, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsi + 4]
jmp 0x14008fd8c
lea rsi, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsi + 0x20]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1400b72d0
mov eax, esi
add rsp, 0x58
pop rsi
pop rbp
ret

Function at 0x14008fec8
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x14008fef9
movsx edx, byte [rax]
lea rcx, str.tTyY1
mov r8d, 6
call sub.VCRUNTIME140.dll_memchr
test rax, rax
setne al
jmp 0x14008fefb
xor eax, eax
add rsp, 0x20
pop rbp
ret

Function at 0x140090124
Capabilities:
Get hostname

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
lea rdx, [rbp - 4]
mov dword [rdx], send
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x140090167
lea rdi, [rbp - 0x20]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.14000451c
jmp 0x14009017f
cmp qword [rsi + 0x18], 0x10
mov rax, rsi
jb 0x140090174
mov rax, qword [rsi]
mov qword [rsi + 0x10], 0
mov byte [rax], 0
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140091576
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r15, r8
mov r12, rdx
mov rax, qword [0x14017eea0]
xor rax, rbp
mov qword [rbp - 8], rax
cmp byte [0x14018b198], 0
je 0x14009164f
cmp byte [0x14018ae51], 0
je 0x14009164f
dec ecx
cmp ecx, 3
jae 0x14009164f
shl ecx, 4
movabs rsi, 0xc000c000e
shr rsi, cl
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdi, [rbp - 0x20]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx r14d, word [rdi + 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rdi, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, rbx
mov edx, esi
call rdi
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 1
mov rcx, r12
mov rdx, r15
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rcx, rbx
mov edx, r14d
call rdi
jmp 0x14009166d
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 1
mov rcx, r12
mov rdx, r15
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, qword [rbp - 8]
xor rcx, rbp
call fcn.1400b72d0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret