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

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov r13, qword [rcx]
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x30], 0
lea r12, [rsp + 0x30]
mov qword [rsp + 0x38], 0
call sym.writeStackTrace__system_2430
lea rcx, [rsp + 0x20]
mov edx, 0xc8
call sym.rawNewString
movdqu xmm0, xmmword [rsp + 0x20]
mov edx, 0x1c
mov rcx, r12
movaps xmmword [rsp + 0x30], xmm0
call sym.prepareAdd
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
movabs rcx, 0x64656c646e61686e
lea rax, [rdx + rax + 8]
movabs rdx, 0x75203a726f727245
mov qword [rax], rdx
movabs rdx, 0x6974706563786520
mov qword [rax + 8], rcx
mov rcx, r12
mov qword [rax + 0x10], rdx
mov rdx, r13
mov dword [rax + 0x18], 0x203a6e6f
mov byte [rax + 0x1c], 0
add qword [rsp + 0x30], 0x1c
call sym.prepareAdd
test r13, r13
jle 0x1400020bd
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea r8, [r13 + 1]
lea rcx, [rdx + rax + 8]
lea rdx, [rbx + 8]
call sym.memcpy
add qword [rsp + 0x30], r13
movabs rbx, 0x7463656665446e
xor edx, edx
mov rcx, r12
call sym.prepareAdd
mov rcx, r12
mov edx, 2
call sym.prepareAdd
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, r12
lea rax, [rdx + rax + 8]
mov edx, 0x5b20
mov word [rax], dx
mov edx, 0xf
mov byte [rax + 2], 0
add qword [rsp + 0x30], 2
call sym.prepareAdd
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
movabs rcx, 0x6f69747265737341
mov qword [rdx + rax + 8], rcx
mov rcx, r12
mov qword [rdx + rax + 0x10], rbx
mov edx, 2
add qword [rsp + 0x30], 0xf
call sym.prepareAdd
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, 0xa5d
lea rax, [rdx + rax + 8]
mov word [rax], cx
mov ecx, 2
mov byte [rax + 2], 0
mov rbx, qword [rsp + 0x38]
lea rax, [0x140023140]
add qword [rsp + 0x30], 2
lea r12, [rbx + 8]
cmove r12, rax
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r13, rax
call sym.strlen
mov r9, r13
mov edx, 1
mov rcx, r12
mov r8, rax
call sym.fwrite
mov rcx, r13
call sym.fflush
mov ecx, 1
call sym.exit
nop
nop

Function at 0x140003130
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sym.fread
mov r12, rax
cmp rbx, rax
je 0x140003163
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x140003170
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call sym.checkErr__systemZio_153.part.0
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
Function at 0x1400031c0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x50
lea rax, [0x1400231a0]
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x30], 0
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x38], rax
call sym.mnewString
movdqu xmm0, xmmword [rsp + 0x20]
mov rbx, qword [0x140028130]
movaps xmmword [rsp + 0x40], xmm0
mov rcx, qword [rsp + 0x48]
add rcx, 8
mov r9, r13
mov r8d, 0xfa0
mov edx, 1
call sym.fread
mov r12, rax
cmp rax, 0xfa0
je 0x140003290
mov rcx, r13
call sym.ferror
test eax, eax
je 0x14000325a
mov rcx, r13
call sym.checkErr__systemZio_153.part.0
cmp byte [rbx], 0
lea r13, [rsp + 0x40]
je 0x1400032e8
mov rcx, r13
call sym.eqdestroy___system_2650
movdqa xmm1, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm1
add rsp, 0x50
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
cmp byte [rbx], 0
jne 0x14000333b
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call sym.prepareAdd
mov r12, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test r12, r12
jle 0x140003224
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea r8, [r12 + 1]
lea r9, [rdx + rax + 8]
lea rdx, [rcx + 8]
mov rcx, r9
call sym.memcpy
add qword [rsp + 0x30], r12
jmp 0x14000321f
mov rdx, r12
mov rcx, r13
call sym.setLengthStrV2
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140003268
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rdx, 8
lea r8, [rbx + 1]
lea rcx, [rcx + rax + 8]
call sym.memcpy
add qword [rsp + 0x30], rbx
jmp 0x140003268
lea r13, [rsp + 0x40]
jmp 0x140003268
Function at 0x140003350
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
lea r15, [rsp + 0x20]
mov r12, rdx
mov r13, rcx
mov rdx, r8
mov qword [rsp + 0x30], 0
mov rcx, r15
mov rbx, r8
mov qword [rsp + 0x38], 0
call sym.mnewString
mov r9, r12
mov r8, rbx
mov edx, 1
movdqu xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x38]
lea rcx, [rax + 8]
call sym.fread
mov r14, rax
cmp rbx, rax
je 0x1400033c2
mov rcx, r12
call sym.ferror
test eax, eax
jne 0x140003410
mov rdi, qword [0x140028130]
cmp byte [rdi], 0
jne 0x1400033eb
mov rcx, r12
call sym.fgetc
mov rdx, r12
mov esi, eax
mov ecx, eax
call sym.ungetc
test esi, esi
jns 0x140003430
cmp rbx, r14
jg 0x140003420
movdqa xmm1, xmmword [rsp + 0x30]
mov rax, r13
movups xmmword [r13], xmm1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
call sym.checkErr__systemZio_153.part.0
jmp 0x1400033c2
lea rcx, [rsp + 0x30]
mov rdx, r14
call sym.setLengthStrV2
jmp 0x1400033eb
mov qword [rsp + 0x40], 0
mov rdx, r12
mov rcx, r15
mov qword [rsp + 0x48], 0
call sym.readAllBuffer__systemZio_451
movdqu xmm2, xmmword [rsp + 0x20]
cmp byte [rdi], 0
movaps xmmword [rsp + 0x40], xmm2
jne 0x14000349c
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x14000349c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rdx, 8
lea r8, [rbx + 1]
lea rcx, [rcx + rax + 8]
call sym.memcpy
add qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
call sym.eqdestroy___system_2650
jmp 0x1400033eb

Function at 0x140003780
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400037a1
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x14000c200
Capabilities:
Query environment variable

Disassembly:
push r12
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [rdx + 8]
cmp qword [rdx], 0
movdqu xmm6, xmmword [r8]
mov qword [rsp + 0x30], 0
mov r12, rcx
lea rcx, [rax + 8]
lea rax, [0x140023c5f]
mov qword [rsp + 0x38], 0
cmove rcx, rax
call sym.getenv
mov rdx, rax
test rax, rax
je 0x14000c280
lea rcx, [rsp + 0x20]
call sym.cstrToNimstr
movdqu xmm1, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm1
movdqa xmm0, xmmword [rsp + 0x30]
movaps xmm6, xmmword [rsp + 0x40]
mov rax, r12
movups xmmword [r12], xmm0
add rsp, 0x50
pop r12
ret
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x20], xmm6
call sym.eqcopy___system_2653
jmp 0x14000c25e
Function at 0x14000dd90
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
mov r9, rdx
test rdx, rdx
je 0x14000ddf6
mov rcx, qword [rcx]
mov r8, qword [r10 + 8]
cmp rdx, 0xffffffffffffffff
je 0x14000de00
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
lea rax, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov r11, r8
xor rcx, r8
ror r8, 0x1c
shl r11, 0xe
xor rcx, r11
mov r11, rdx
add r11, rax
jb 0x14000ddb4
movq xmm0, rcx
lea rcx, [r9 + 1]
movq xmm1, r8
xor edx, edx
div rcx
punpcklqdq xmm0, xmm1
movups xmmword [r10], xmm0
mov r9, rdx
mov rax, r9
ret
lea r9, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov rax, r8
xor rcx, r8
ror r8, 0x1c
shl rax, 0xe
movq xmm2, r8
xor rcx, rax
mov rax, r9
movq xmm0, rcx
punpcklqdq xmm0, xmm2
movups xmmword [r10], xmm0
ret

Function at 0x14000de40
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
mov r11, rcx
xor edx, edx
test r9, r9
je 0x14000dea5
mov rcx, qword [rcx]
mov r8, qword [r11 + 8]
cmp r9, 0xffffffffffffffff
je 0x14000deb0
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
lea rax, [r8 + rcx]
xor r8, rcx
ror rcx, 9
mov r10, r8
xor rcx, r8
ror r8, 0x1c
shl r10, 0xe
xor rcx, r10
mov r10, rdx
add r10, rax
jb 0x14000de66
movq xmm0, rcx
lea rcx, [r9 + 1]
movq xmm1, r8
xor edx, edx
div rcx
punpcklqdq xmm0, xmm1
movups xmmword [r11], xmm0
mov rax, rdx
ret
mov rdx, rcx
mov rax, rcx
xor rdx, r8
ror rax, 9
mov r9, rdx
xor rax, rdx
ror rdx, 0x1c
shl r9, 0xe
movq xmm2, rdx
lea rdx, [rcx + r8]
xor rax, r9
movq xmm0, rax
mov rax, rdx
punpcklqdq xmm0, xmm2
movups xmmword [r11], xmm0
ret
Function at 0x14000def0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
call dbg.__popcountdi2
mov rcx, qword [rbx + 8]
movsxd rsi, eax
call dbg.__popcountdi2
mov rcx, qword [rbx + 0x10]
cdqe
add rsi, rax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x18]
movsxd rbp, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x19]
add rbp, rsi
movsxd rsi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1a]
add rsi, rbp
movsxd rbp, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1b]
add rbp, rsi
movsxd rsi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1c]
add rsi, rbp
movsxd rbp, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1d]
add rbp, rsi
movsxd rsi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1e]
add rsi, rbp
movsxd rbp, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1f]
add rbp, rsi
movsxd rsi, eax
call dbg.__popcountdi2
add rsi, rbp
xor edx, edx
movsxd r9, eax
add r9, rsi
mov r11, r9
sub r11, 1
je 0x14000e006
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
cmp r11, 0xffffffffffffffff
je 0x14000e051
mov rax, 0xffffffffffffffff
xor edx, edx
div r11
mov r10, rdx
lea rax, [r8 + rcx]
mov rdx, rcx
xor r8, rcx
mov rsi, r10
ror rdx, 9
mov rcx, r8
xor rdx, r8
shl rcx, 0xe
xor rcx, rdx
ror r8, 0x1c
add rsi, rax
jb 0x14000dfc9
xor edx, edx
movq xmm0, rcx
movq xmm1, r8
div r9
punpcklqdq xmm0, xmm1
movups xmmword [rdi], xmm0
xor eax, eax
jmp 0x14000e020
sub rdx, 1
add rax, 1
cmp rax, 0x100
je 0x14000e046
mov ecx, eax
shr cl, 3
movzx ecx, cl
movzx r8d, byte [rbx + rcx]
mov ecx, eax
and ecx, 7
bt r8d, ecx
jae 0x14000e014
test rdx, rdx
jne 0x14000e010
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rcx
mov rax, rcx
xor rdx, r8
ror rax, 9
mov r9, rdx
xor rax, rdx
ror rdx, 0x1c
shl r9, 0xe
movq xmm2, rdx
lea rdx, [rcx + r8]
xor rax, r9
movq xmm0, rax
punpcklqdq xmm0, xmm2
movups xmmword [rdi], xmm0
jmp 0x14000e006
Function at 0x14000e090
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
call dbg.__popcountdi2
mov rcx, qword [rbx + 8]
movsxd rsi, eax
call dbg.__popcountdi2
mov rcx, qword [rbx + 0x10]
cdqe
add rsi, rax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x18]
movsxd rdi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x19]
add rdi, rsi
movsxd rsi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1a]
add rsi, rdi
movsxd rdi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1b]
add rdi, rsi
movsxd rsi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1c]
add rsi, rdi
movsxd rdi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1d]
add rdi, rsi
movsxd rsi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1e]
add rsi, rdi
movsxd rdi, eax
call dbg.__popcountdi2
movzx ecx, byte [rbx + 0x1f]
add rdi, rsi
movsxd rsi, eax
call dbg.__popcountdi2
add rsi, rdi
xor edx, edx
movsxd r9, eax
add r9, rsi
mov r11, r9
sub r11, 1
je 0x14000e1ad
mov rcx, qword [0x14002e5f0]
mov r8, qword [0x14002e5f8]
cmp r11, 0xffffffffffffffff
je 0x14000e1f7
mov rax, 0xffffffffffffffff
xor edx, edx
div r11
mov r10, rdx
lea rax, [r8 + rcx]
mov rdx, rcx
xor r8, rcx
mov rdi, r10
ror rdx, 9
mov rcx, r8
xor rdx, r8
shl rcx, 0xe
xor rcx, rdx
ror r8, 0x1c
add rdi, rax
jb 0x14000e16c
xor edx, edx
movq xmm0, rcx
movq xmm1, r8
div r9
punpcklqdq xmm0, xmm1
movaps xmmword [0x14002e5f0], xmm0
xor eax, eax
jmp 0x14000e1c8
sub rdx, 1
add rax, 1
cmp rax, 0x100
je 0x14000e1ed
mov ecx, eax
shr cl, 3
movzx ecx, cl
movzx r8d, byte [rbx + rcx]
mov ecx, eax
and ecx, 7
bt r8d, ecx
jae 0x14000e1bc
test rdx, rdx
jne 0x14000e1b8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, rcx
mov rax, rcx
xor rdx, r8
ror rax, 9
mov r9, rdx
xor rax, rdx
ror rdx, 0x1c
shl r9, 0xe
movq xmm2, rdx
lea rdx, [rcx + r8]
xor rax, r9
movq xmm0, rax
punpcklqdq xmm0, xmm2
movaps xmmword [0x14002e5f0], xmm0
jmp 0x14000e1ad
Function at 0x1400119c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movdqu xmm6, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm5, xmmword [rcx + 0x30]
movd xmm0, r8d
lea rax, [rdx - 0x40]
pxor xmm0, xmm6
cmp rax, 0x3f
jle 0x140011c00
add rdx, 0xffffffffffffff80
movdqa xmm4, xmmword [0x1400247b0]
lea rax, [rcx + 0x40]
mov r8, rdx
and r8, 0xffffffffffffffc0
lea r8, [rcx + r8 + 0x80]
nop dword [rax]
movdqa xmm7, xmm3
movdqa xmm6, xmm2
movdqa xmm1, xmm5
add rax, 0x40
movdqa xmm8, xmm0
pclmulqdq xmm7, xmm4, 0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm8, xmm4, 0
pclmulqdq xmm5, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm3, xmm4, 0x11
pclmulqdq xmm2, xmm4, 0x11
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
movdqu xmm8, xmmword [rax - 0x40]
pxor xmm1, xmm5
movdqu xmm7, xmmword [rax - 0x30]
movdqu xmm6, xmmword [rax - 0x20]
movdqu xmm5, xmmword [rax - 0x10]
pxor xmm0, xmm8
pxor xmm3, xmm7
pxor xmm2, xmm6
pxor xmm5, xmm1
cmp rax, r8
jne 0x140011a20
mov rax, rdx
shr rax, 6
lea r8, [rax + 2]
shl rax, 6
mov r9, rax
mov rax, rdx
shl r8, 6
sub rax, r9
movdqa xmm4, xmmword [0x1400247a0]
movdqa xmm1, xmm0
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 0x11
pxor xmm0, xmm1
pxor xmm0, xmm3
movdqa xmm3, xmm0
movdqa xmm1, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm1, xmm4, 0x11
pxor xmm1, xmm3
pxor xmm1, xmm2
movdqa xmm2, xmm1
pclmulqdq xmm1, xmm4, 0x11
pclmulqdq xmm2, xmm4, 0
movdqa xmm0, xmm1
pxor xmm0, xmm2
pxor xmm0, xmm5
cmp rax, 0xf
jle 0x140011b8c
movdqa xmm1, xmm0
movdqu xmm7, xmmword [rcx + r8]
pclmulqdq xmm0, xmm4, 0x11
lea rdx, [rax - 0x10]
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp rdx, 0xf
jle 0x140011b8c
movdqa xmm1, xmm0
movdqu xmm7, xmmword [rcx + r8 + 0x10]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp rax, 0x2f
jle 0x140011b8c
movdqa xmm1, xmm0
movdqu xmm2, xmmword [rcx + r8 + 0x20]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm2
movdqa xmm1, xmm0
movdqa xmm2, xmmword [0x1400247c0]
psrldq xmm0, 8
movdqa xmm3, xmmword [0x1400247e0]
pclmulqdq xmm1, xmm4, 0x10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
pxor xmm1, xmm0
movaps xmm8, xmmword [rsp + 0x20]
movdqa xmm0, xmm1
pand xmm1, xmm2
pclmulqdq xmm1, xmmword [0x1400247d0], 0
psrldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm0, xmm1
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0x10
pand xmm0, xmm2
pclmulqdq xmm0, xmm3, 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
add rsp, 0x38
ret
mov r8d, 0x40
jmp 0x140011ac2
Function at 0x140011c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x140024800]
sar r8, 3
cmp rdx, 7
jle 0x140011cf8
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
mov esi, esi
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
mov ebx, ebx
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x140011c40
shl r8, 3
mov edx, 8
cmp r10, 7
cmovle r8, rdx
cmp r10, r8
jle 0x140011cf0
add r8, r9
lea rcx, [0x140024800]
add r9, r10
nop dword [rax]
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x140011cd8
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x140011cbf
Function at 0x14001a2f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14001af22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14002e828]
test eax, eax
je 0x14001afba
lea rax, [0x14002e800]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14002e830]
mov qword [rbp - 8], rax
jmp 0x14001af9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001af92
cmp qword [rbp - 0x10], 0
je 0x14001af92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001af58
lea rax, [0x14002e800]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001afbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001b0c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001b0e8
mov eax, 0
jmp 0x14001b136
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001b111
mov eax, 0
jmp 0x14001b136
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001b131
mov eax, 0
jmp 0x14001b136
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001b13c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001b1ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001b1b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001b1b1
mov rax, qword [rbp - 8]
jmp 0x14001b1cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001b184
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002c00
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, qword [rcx]
mov qword [rsp + 0x50], rbx
movsxd rdx, dword [rdx]
mov rcx, qword [rbx + 0x18]
mov rcx, qword [rcx + 0x40]
call fcn.14003d060
mov rdx, rax
mov rcx, qword [rbx + 0x10]
test byte [rax + 8], 0xf
jne 0x140002c47
mov byte [rcx + 8], 0
jmp 0x140002c54
mov rax, qword [rax]
mov qword [rcx], rax
movzx eax, byte [rdx + 8]
mov byte [rcx + 8], al
add qword [rbx + 0x10], 0x10
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400116c0
mov r10, rax
mov r13, rax
shr r13, 0x38
mov rcx, rax
shr rcx, 0x30
movzx r12d, cl
mov rcx, rax
shr rcx, 0x28
movzx r14d, cl
mov rdx, rax
shr rdx, 0x20
movzx ebp, dl
mov rdx, rax
shr rdx, 0x18
movzx esi, dl
shr rax, 0x10
movzx edi, al
mov rax, r10
shr rax, 8
movzx ebx, al
movzx r15d, r10b
mov edx, 0xfffffffe
mov rcx, qword [rsp + 0x50]
call fcn.1400110f0
nop
movabs rax, 0xcbf29ce484222325
xor r15, rax
movabs rax, 0x100000001b3
imul r15, rax
xor r15, rbx
imul r15, rax
xor r15, rdi
imul r15, rax
xor r15, rsi
imul r15, rax
xor r15, rbp
imul r15, rax
xor r15, r14
imul r15, rax
xor r15, r12
imul r15, rax
xor r15, r13
imul rax, r15
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140006d40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push r14
sub rsp, 0x68
movabs rax, 0xfffffffffffffff
mov qword [rsp + 0x20], rcx
mov r14, rcx
mov ebx, 1
bsr rcx, rax
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x140006d7b
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x90], rbp
lea rax, [rdx - 1]
mov rbp, qword [r14 + 8]
or rax, rbx
bsr rcx, rax
mov qword [rsp + 0x60], rsi
mov r8, rbp
inc ecx
mov qword [rsp + 0x58], rdi
shl rbx, cl
mov qword [rsp + 0x40], r15
lea r15, [r14 + 0x18]
mov rcx, r15
lea rdx, [rbx + rbx]
call fcn.1400052a0
mov qword [r14 + 0x38], rbx
lea rax, [rbx - 1]
mov qword [r14 + 0x30], rax
mov rdi, qword [r14 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x140006f3f
mov qword [rsp + 0x50], r12
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x48], r13
movabs r10, 0x100000001b3
nop word [rax + rax]
movups xmm0, xmmword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rsi, qword [rsi]
movaps xmmword [rsp + 0x30], xmm0
test r8, r8
je 0x140006e34
mov r9, qword [rsp + 0x30]
nop dword [rax]
movzx ecx, byte [rdx + r9]
inc rdx
xor rax, rcx
imul rax, r10
cmp rdx, r8
jb 0x140006e20
mov r13, qword [r14 + 0x30]
and r13, rax
shl r13, 4
add r13, qword [r15]
mov r12, qword [r13]
cmp r12, rbp
jne 0x140006e58
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x140006f1b
mov rbx, qword [r13 + 8]
cmp r8, qword [rbx + 0x18]
jne 0x140006ea3
mov rdx, qword [rbx + 0x10]
movq rcx, xmm0
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006ea3
mov r8, qword [rbx]
cmp r8, rdi
je 0x140006e9d
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13 + 8], rdi
jmp 0x140006f11
mov r14, rbx
cmp r12, rbx
je 0x140006ee7
movups xmm0, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
mov r15, qword [rsp + 0x38]
nop dword [rax]
mov rbx, qword [rbx + 8]
mov r14, rbx
cmp r15, qword [rbx + 0x18]
jne 0x140006ee2
mov rdx, qword [rbx + 0x10]
mov r8, r15
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140006f5e
cmp r12, rbx
jne 0x140006ec0
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r14
mov rax, qword [r14 + 8]
mov qword [rax], rdi
mov qword [r14 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
mov r14, qword [rsp + 0x20]
movabs r10, 0x100000001b3
lea r15, [r14 + 0x18]
mov rdi, rsi
movabs rax, 0xcbf29ce484222325
cmp rsi, rbp
jne 0x140006e00
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x40]
add rsp, 0x68
pop r14
pop rbx
ret
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x140006f0c