joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140127a44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140127a5a
mov al, 1
jmp 0x140127aba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140127a6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140127ab8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14012de7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140127ab8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140127ab8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140127ab8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140127aba
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140127b8c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14021ddf0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140127be3
cmp word [rdx], r13w
jne 0x140127be3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140127be8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140127d0d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140127d2e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140127c21
mov rdx, r9
mov word [rbx], cx
jmp 0x140127c48
cmp r9, r8
jae 0x140127c58
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140127c02
jmp 0x140127d0d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140127d02
cmp dword [rsp + 0x80], esi
je 0x140127d02
lea r8, [0x14021ddf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140127cda
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140127caa
mov word [rbx], r13w
jmp 0x140127d0a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140127cb7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140127d0a
cmp word [rsp + 0x70], r13w
jne 0x140127ce7
cmp rbx, r14
je 0x140127ca4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401287f4
cmp word [rsp + 0x70], r13w
je 0x140127d0d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14021ddf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140127d07
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140127d0d
Function at 0x14012d474
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14012d4fb
mov rsi, rbx
cmp word [rax], bp
je 0x14012d4ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012d4a4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012d4a0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140123280
mov rdi, rax
test rax, rax
je 0x14012d4e8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140134d20
mov rbp, rdi
xor ecx, ecx
call fcn.140123244
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401303d0
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.140122ee4
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 0x140130471
cmp ebx, dword [rsp + 0x30]
je 0x14013046a
test esi, esi
je 0x14013046a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140130445
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140130452
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14013042f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140130456
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140130473
mov eax, 1
jmp 0x140130473
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140134218
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.1401287f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401287f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140134368
cmp rax, 0xffffffffffffffff
je 0x140134368
xor edi, edi
test rbp, rbp
jle 0x140134313
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401255d0
mov rbx, rax
test rax, rax
jne 0x1401342a0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140134309
mov edx, 0x8000
mov ecx, r14d
call fcn.140120acc
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.1401274dc
cmp eax, 0xffffffff
je 0x1401342e9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401342b0
mov edx, r15d
mov ecx, r14d
call fcn.140120acc
jmp 0x140134309
cmp byte [rsi + 0x38], dil
je 0x140134300
cmp dword [rsi + 0x34], 5
jne 0x140134300
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140134309
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140123244
jmp 0x14013437c
jns 0x14013437c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401287f4
cmp rax, 0xffffffffffffffff
jne 0x140134334
cmp byte [rsi + 0x30], dil
je 0x14013437c
mov edi, dword [rsi + 0x2c]
jmp 0x14013437c
mov ecx, r14d
call fcn.14012de7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14013437c
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 0x14013437c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140134375
mov eax, dword [rsi + 0x2c]
jmp 0x14013437a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401287f4
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 0x140134950
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140134978
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140134978
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800022d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x18007f080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, r8
mov r9, rcx
test r8, r8
jne 0x180002311
mov eax, 0x80004003
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003efb0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r8d, edx
movzx edx, dl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs r10, 0x100000001b3
imul rdx, r10
mov eax, r8d
shr rax, 8
movzx ecx, al
xor rdx, rcx
imul rdx, r10
mov eax, r8d
shr rax, 0x10
movzx ecx, al
xor rdx, rcx
imul rdx, r10
mov eax, r8d
shr rax, 0x18
xor rdx, rax
imul rdx, r10
mov eax, r8d
shr rax, 0x20
xor rdx, rax
imul rdx, r10
mov eax, r8d
shr rax, 0x28
xor rdx, rax
imul rdx, r10
mov eax, r8d
shr rax, 0x30
xor rdx, rax
imul rdx, r10
mov eax, r8d
shr rax, 0x38
xor rdx, rax
imul rdx, r10
mov rcx, qword [r9 + 0xb0]
and rcx, rdx
shl rcx, 4
add rcx, qword [r9 + 0x98]
mov rax, qword [rcx + 8]
cmp rax, qword [r9 + 0x88]
je 0x180002433
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x1800023d4
cmp rax, rcx
je 0x180002433
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x1800023c5
mov rcx, qword [rax + 0x18]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
test rcx, rcx
je 0x180002403
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [0x1800665c0]
call qword [rax]
test eax, eax
js 0x18000242b
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x180002412
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rdi], rbx
test rbx, rbx
je 0x180002424
lea rcx, [rsp + 0x20]
call fcn.180008c60
xor eax, eax
jmp 0x1800022f9
mov ecx, eax
call fcn.18000d540
int3
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.18003e4c8
int3
Function at 0x180002440
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18007f080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, r8
mov r9, rcx
test r8, r8
jne 0x180002478
mov eax, 0x80004003
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003efb0
add rsp, 0x30
pop rbx
ret
mov r8d, edx
movabs rcx, 0x100000001b3
movzx edx, dl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
mov qword [rsp + 0x20], r8
movzx eax, byte [rsp + 0x21]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x22]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x23]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x24]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x25]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x26]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x27]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r9 + 0x70]
and rcx, rdx
shl rcx, 4
add rcx, qword [r9 + 0x58]
mov rax, qword [rcx + 8]
cmp rax, qword [r9 + 0x48]
je 0x18000256d
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x180002523
cmp rax, rcx
je 0x18000256d
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x180002514
mov rcx, qword [rax + 0x18]
xor eax, eax
test rcx, rcx
je 0x18000254d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov rax, qword [rcx]
lea rdx, [0x1800665b0]
call qword [rax]
test eax, eax
js 0x180002565
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003efb0
add rsp, 0x30
pop rbx
ret
mov ecx, eax
call fcn.18000d540
int3
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.18003e4c8
int3
Function at 0x18000a090
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18000a23d
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180008c80
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 0x18000a206
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18000a180
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18000a1f5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18000a1bd
mov r10, qword [rdx]
cmp r10, rax
je 0x18000a1b7
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
mov qword [r11 + 8], rax
jmp 0x18000a1f5
cmp r9, rdx
je 0x18000a1d1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18000a217
cmp r9, rdx
jne 0x18000a1c2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18000a130
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
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 0x18000a1f5
lea rcx, str.invalid_hash_bucket_count
call fcn.18003e4a4
int3
Function at 0x18000a250
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18000a41b
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180008c80
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 0x18000a3e4
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18000a35d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18000a3d3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x18000a39a
mov r10, qword [rdx]
cmp r10, rax
je 0x18000a394
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
mov qword [r11 + 8], rax
jmp 0x18000a3d3
cmp r9, rdx
je 0x18000a3af
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x18000a3f5
cmp r9, rdx
jne 0x18000a3a0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18000a2e1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
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 0x18000a3d3
lea rcx, str.invalid_hash_bucket_count
call fcn.18003e4a4
int3
Function at 0x18000e580
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.18003fab0
sub rsp, rax
mov r15, r8
mov r14d, edx
mov rsi, rcx
mov r12, qword [rbp + 0x1428]
xor edi, edi
mov word [rbp + 0x3c0], di
mov byte [rbp - 0x40], dil
mov rbx, qword [rbp + 0x1430]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.18000bcb0
mov r13d, eax
mov dword [rsp + 0x20], 3
mov ecx, edi
mov eax, 8
cmp dword [rbx + 8], 1
cmove ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, 1
lock xadd dword [0x180085540], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x1438]
test rcx, rcx
je 0x18000e621
cmp word [rcx], di
mov qword [rsp + 0x38], rcx
jne 0x18000e626
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], r13d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rsi
mov qword [rsp + 0x68], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1800854d8]
test rax, rax
je 0x18000e683
call rax
mov qword [rbp - 0x60], rax
jmp 0x18000e687
mov qword [rbp - 0x60], rdi
mov rax, qword [0x1800854e0]
test rax, rax
je 0x18000e69a
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1800854e8]
test rax, rax
je 0x18000e6b7
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1800854f0]
test rax, rax
je 0x18000e6ca
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1800854f8]
test rax, rax
je 0x18000e6e4
test byte [rsp + 0x24], 2
jne 0x18000e6e4
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], edi
jl 0x18000e700
mov dword [rsp + 0x28], 0x8000ffff
mov ecx, 0x8000ffff
call fcn.18000c490
mov dword [rsp + 0x2c], eax
cmp byte [0x180085500], dil
jne 0x18000e72c
mov rax, qword [0x180085508]
test rax, rax
je 0x18000e71c
call rax
movzx edi, al
jmp 0x18000e728
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne dil
test edi, edi
je 0x18000e733
test byte [rsp + 0x24], 2
je 0x18000e756
mov rax, qword [0x180085528]
test rax, rax
je 0x18000e7ac
cmp byte [0x180085520], 0
jne 0x18000e7ac
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x18000e7ac
mov rax, qword [0x180085528]
test rax, rax
je 0x18000e77f
cmp byte [0x180085520], 0
jne 0x18000e77f
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x18000e79f
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.18000bdf0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x18000e7bc
cmp byte [0x180085530], 0
je 0x18000e7cb
mov rax, qword [0x180085538]
test rax, rax
je 0x18000e7cb
call rax
nop
lea rcx, [rsp + 0x20]
call fcn.18000c0d0
int3
Function at 0x18000fbb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
xor esi, esi
mov r14, rcx
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov edx, 0xc0000000
lea rcx, str..pipeOpenGlassHostPipe
lea r9d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFile2]
mov qword [rsp + 0x58], rbp
mov rbx, rax
mov qword [rsp + 0x60], rdi
nop dword [rax]
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x18000fc9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x18000fc7e
mov edx, 0xbb8
lea rcx, str..pipeOpenGlassHostPipe
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x18000fc6e
mov r9d, 3
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea rcx, str..pipeOpenGlassHostPipe
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFile2]
lea rcx, [rbx - 1]
mov rbp, rax
cmp rcx, 0xfffffffffffffffd
ja 0x18000fc69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rbp
jmp 0x18000fbf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x79
mov ecx, 0x41d
jmp 0x18000fc86
mov ecx, 0x426
cmp eax, 2
cmove eax, ecx
test eax, eax
je 0x18000fcdf
mov rcx, qword [rsp + 0x48]
mov edx, eax
call fcn.180010e50
jmp 0x18000fcdd
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rdx, r14
mov rcx, rbx
lea r8d, [r9 + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000fcd3
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rdx, r14
mov rcx, rbx
lea r8d, [r9 + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000fcea
mov rcx, qword [rsp + 0x48]
call fcn.180011020
mov esi, eax
cmp rbx, 0xffffffffffffffff
je 0x18000fcf3
test rbx, rbx
je 0x18000fcf3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, esi
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1800105d0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18001077e
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1800853c8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1800853d8]
lea rdx, [rdi + rdi]
call fcn.180008c80
mov rax, qword [0x1800853c8]
lea r9, [rdi - 1]
mov qword [0x1800853f0], r9
mov qword [0x1800853f8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180010773
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1800853d8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800106bf
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180010734
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1800106fc
mov r10, qword [rdx]
cmp r10, rax
je 0x1800106f6
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
mov qword [r11 + 8], rax
jmp 0x180010734
cmp r9, rdx
je 0x180010710
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180010748
cmp r9, rdx
jne 0x180010701
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18001076e
mov r9, qword [0x1800853f0]
jmp 0x180010670
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 0x180010734
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18003e4a4
int3