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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x1400a9243]
mov rdi, qword [rcx]
mov rbp, qword [rcx + 8]
test rdi, rdi
lea rcx, [rbp + 8]
cmove rcx, rax
mov r13, rdx
lea rdx, [0x1400a926d]
mov rsi, r8
call fcn.1400052c0
mov rcx, qword [0x1400cfed0]
mov r12, rax
call fcn.14009d6d0
cmp byte [rax], 0
mov rbx, rax
jne 0x1400060f1
test r12, r12
je 0x140006110
test rsi, rsi
jle 0x140006200
mov rcx, r13
mov r9, r12
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140006100
movzx esi, byte [rbx]
mov byte [rbx], 0
mov rcx, r12
call sub.msvcrt.dll_fclose
cmp byte [rbx], 0
jne 0x1400060f1
mov byte [rbx], sil
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, r12
call fcn.140005550
jmp 0x1400060db
mov edx, 8
mov ecx, 0x40
movabs rbx, 0x6f20746f6e6e6163
call fcn.14000a460
lea rdx, [rdi + 0xd]
lea rcx, [rsp + 0x30]
mov r12, rax
mov rax, qword [0x1400cfdc0]
mov qword [r12], rax
lea rax, [0x1400a9244]
mov qword [r12 + 0x10], rax
call fcn.14000a0a0
mov rsi, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov edx, 0x20
lea rax, [rsi + r13 + 8]
mov qword [rax], rbx
mov rbx, rsi
add rbx, 0xd
mov dword [rax + 8], 0x3a6e6570
mov word [rax + 0xc], dx
jo 0x140006230
test rdi, rdi
jle 0x1400061b1
mov r8, rdi
add r8, 1
jo 0x14000623d
test r8, r8
js 0x140006210
lea rcx, [rbx + r13 + 8]
lea rdx, [rbp + 8]
call sub.msvcrt.dll_memcpy
add rdi, rbx
jo 0x14000623d
mov rbx, rdi
mov qword [r12 + 0x18], rbx
lea r9, str.syncio.nim
mov rcx, r12
lea r8, str.writeFile
mov qword [r12 + 0x20], r13
lea rdx, [0x1400a9244]
mov qword [r12 + 8], 0
mov qword [rsp + 0x20], 0x371
call fcn.14000b630
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rsi - 1]
xor ecx, ecx
call fcn.14000b8e0
jmp 0x1400060db
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call fcn.1400093d0
jmp 0x1400061b1
call fcn.140008cc0
mov rbx, rsi
jmp 0x140006180
call fcn.140008cc0
jmp 0x1400061b1

Function at 0x140006600
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 0x140006621
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.1400a6718
Function at 0x14000d130
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
xor r12d, r12d
lea rdi, [0x1400a8400]
mov rsi, rcx
mov rbx, rdx
lea rbp, [rsp + 0x20]
lea rcx, [0x1400da040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13, qword [fcn.1400a6d00]
jmp 0x14000d17a
add r12, 1
jo 0x14000d248
cmp r12, rbx
jge 0x14000d1d0
test r12, r12
js 0x14000d228
mov r14, r12
mov ecx, 1
call r13
shl r14, 4
xor r8d, r8d
mov rdx, rbp
add r14, rsi
mov rcx, rax
movdqu xmm0, xmmword [r14]
movups xmmword [rsp + 0x20], xmm0
call fcn.14000cfe0
mov rcx, rdi
call fcn.14009d6d0
cmp byte [rax], 0
je 0x14000d170
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbx, qword [fcn.1400a6d00]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x1400a9491]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.1400a6718
lea rcx, [0x1400da040]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.14000b8e0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140008cc0

Function at 0x1400131b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x140013210
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x1400131d0
lea rdx, [rax + rax*8]
mov rax, rdx
shr rax, 0xb
xor rax, rdx
mov rdx, rax
shl rdx, 0xf
add rax, rdx
ret
xor eax, eax
ret
Function at 0x140015b30
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdi, [rdx + 3]
test rdx, rdx
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x140015cec
test rdx, rdx
jle 0x140015ba8
mov ebx, dword [rcx]
mov rcx, qword [0x1400cfed0]
call fcn.14009d6d0
cmp byte [rax], 0
jne 0x140015bb3
xor r13d, r13d
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x140015bc8
cmp rsi, rcx
jle 0x140015baa
mov ebx, dword [rbp + rcx]
add rcx, 4
jmp 0x140015b77
xor ecx, ecx
lea rdx, [rsi - 1]
call fcn.14000b8e0
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, rsi
and eax, 3
je 0x140015d17
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x140015d1e
cmp r8, rax
jb 0x140015d1e
test rdx, rdx
jne 0x140015ce2
cmp rsi, r8
jle 0x140015cd1
test r8, r8
js 0x140015cd1
movzx edx, byte [rbp + r8]
test rax, rax
je 0x140015c74
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x140015d28
cmp r9, rax
jb 0x140015d28
mov r8, r9
test r10, r10
jne 0x140015ce2
cmp rsi, r9
jle 0x140015cd1
test r9, r9
js 0x140015cd1
movzx r8d, byte [rbp + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x140015c74
test rcx, rcx
js 0x140015cce
cmp rsi, rcx
jle 0x140015cce
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x1400cfed0]
call fcn.14009d6d0
cmp byte [rax], 0
jne 0x140015bb3
imul ebx, ebx, 0x1b873593
mov eax, r13d
xor eax, esi
xor eax, ebx
mov r12d, eax
shr r12d, 0x10
xor eax, r12d
imul r12d, eax, 0x85ebca6b
mov eax, r12d
shr eax, 0xd
xor eax, r12d
imul eax, eax, 0xc2b2ae35
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
jmp 0x140015bb3
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call fcn.14000b8e0
jmp 0x140015bb3
call fcn.140008cc0
jmp 0x140015bb3
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x140015d14
sub rax, 1
xor ecx, ecx
xor r13d, r13d
mov r8, rax
jmp 0x140015bf8
xor r13d, r13d
xor ebx, ebx
jmp 0x140015c7d
mov edx, 1
jmp 0x140015bef
mov r10d, 1
jmp 0x140015c31
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rdx, rdx
js 0x140015d68
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
add rsp, 0x28
jmp 0x140015b30
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call fcn.14000e8b0
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015d40
Capabilities:
Hash data using murmur3

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdi, [rdx + 3]
test rdx, rdx
mov rbp, rcx
mov rsi, rdx
cmovns rdi, rdx
and rdi, 0xfffffffffffffffc
jle 0x140015cec
test rdx, rdx
jle 0x140015ba8
mov ebx, dword [rcx]
mov rcx, qword [0x1400cfed0]
call fcn.14009d6d0
cmp byte [rax], 0
jne 0x140015bb3
xor r13d, r13d
mov ecx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r13d
rol eax, 0xd
lea r13d, [rax + rax*4 - 0x19ab949c]
cmp rcx, rdi
jge 0x140015bc8
cmp rsi, rcx
jle 0x140015baa
mov ebx, dword [rbp + rcx]
add rcx, 4
jmp 0x140015b77
xor ecx, ecx
lea rdx, [rsi - 1]
call fcn.14000b8e0
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, rsi
and eax, 3
je 0x140015d17
sub rax, 1
mov r8, rcx
xor edx, edx
add r8, rax
js 0x140015d1e
cmp r8, rax
jb 0x140015d1e
test rdx, rdx
jne 0x140015ce2
cmp rsi, r8
jle 0x140015cd1
test r8, r8
js 0x140015cd1
movzx edx, byte [rbp + r8]
test rax, rax
je 0x140015c74
sub rax, 1
mov r9, rcx
xor r10d, r10d
add r9, rax
js 0x140015d28
cmp r9, rax
jb 0x140015d28
mov r8, r9
test r10, r10
jne 0x140015ce2
cmp rsi, r9
jle 0x140015cd1
test r9, r9
js 0x140015cd1
movzx r8d, byte [rbp + r9]
shl edx, 8
or edx, r8d
test rax, rax
je 0x140015c74
test rcx, rcx
js 0x140015cce
cmp rsi, rcx
jle 0x140015cce
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x1400cfed0]
call fcn.14009d6d0
cmp byte [rax], 0
jne 0x140015bb3
imul ebx, ebx, 0x1b873593
mov eax, r13d
xor eax, esi
xor eax, ebx
mov r12d, eax
shr r12d, 0x10
xor eax, r12d
imul r12d, eax, 0x85ebca6b
mov eax, r12d
shr eax, 0xd
xor eax, r12d
imul eax, eax, 0xc2b2ae35
mov r12d, eax
shr r12d, 0x10
xor r12d, eax
jmp 0x140015bb3
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call fcn.14000b8e0
jmp 0x140015bb3
call fcn.140008cc0
jmp 0x140015bb3
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x140015d14
sub rax, 1
xor ecx, ecx
xor r13d, r13d
mov r8, rax
jmp 0x140015bf8
xor r13d, r13d
xor ebx, ebx
jmp 0x140015c7d
mov edx, 1
jmp 0x140015bef
mov r10d, 1
jmp 0x140015c31
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rdx, rdx
js 0x140015d68
lea rax, [rcx + 8]
test rcx, rcx
cmovne rcx, rax
add rsp, 0x28
jmp 0x140015b30
lea r9, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, r9
call fcn.14000e8b0
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400533d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
lea rbp, [rdx + 7]
mov rsi, rcx
mov r14, rdx
cmovns rbp, rdx
mov ebx, r8d
sar rbp, 3
cmp rdx, 7
jle 0x1400534e5
mov rcx, qword [0x1400cfed0]
call fcn.14009d6d0
cmp byte [rax], 0
jne 0x1400534d8
xor ecx, ecx
lea r8, [0x1400b2a80]
nop word [rax + rax]
mov edx, dword [rsi + rcx*8 + 4]
mov eax, dword [rsi + rcx*8]
add rcx, 1
mov r9d, edx
xor eax, ebx
movzx r10d, dl
movzx edi, dh
shr r9d, 0x18
shr edx, 0x10
mov ebx, dword [r8 + r9*4]
movzx r9d, al
xor ebx, dword [r8 + r10*4 + 0xc00]
movzx edx, dl
xor ebx, dword [r8 + r9*4 + 0x1c00]
mov r9d, eax
shr r9d, 0x18
xor ebx, dword [r8 + r9*4 + 0x1000]
xor ebx, dword [r8 + rdi*4 + 0x800]
xor ebx, dword [r8 + rdx*4 + 0x400]
movzx edx, ah
shr eax, 0x10
xor ebx, dword [r8 + rdx*4 + 0x1800]
movzx edx, al
xor ebx, dword [r8 + rdx*4 + 0x1400]
cmp rbp, rcx
jg 0x140053420
lea rdx, [rbp*8]
cmp r14, 7
mov ebp, 8
cmovle rdx, rbp
cmp r14, rdx
jle 0x1400534d8
add rdx, rsi
lea r8, [0x1400b2a80]
add rsi, r14
nop dword [rax]
movzx ecx, byte [rdx]
add rdx, 1
xor ecx, ebx
shr ebx, 8
movzx ecx, cl
xor ebx, dword [r8 + rcx*4]
cmp rsi, rdx
jne 0x1400534c0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r14
ret
xor edx, edx
jmp 0x1400534ab
Function at 0x14006fba0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x70], xmm7
movups xmmword [rsp + 0x80], xmm8
movups xmmword [rsp + 0x90], xmm9
movdqu xmm4, xmmword [rcx]
movdqu xmm6, xmmword [rcx + 0x10]
movdqu xmm1, xmmword [rcx + 0x20]
movdqu xmm3, xmmword [rcx + 0x30]
mov r9, rdx
movd xmm0, r8d
lea rdx, [rdx - 0x40]
mov qword [rsp], 0
mov qword [rsp + 8], 0
pxor xmm0, xmm4
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
cmp rdx, 0x3f
jle 0x14006fe70
lea rdx, [r9 - 0x80]
movdqu xmm5, xmmword [0x1400c6ed0]
lea rax, [rcx + 0x40]
mov r8, rdx
and r8, 0xffffffffffffffc0
lea r8, [rcx + r8 + 0x80]
nop word [rax + rax]
movdqu xmm9, xmm0
movdqu xmm7, xmm1
movdqu xmm4, xmm3
add rax, 0x40
movdqu xmm8, xmm6
pclmulqdq xmm6, xmm5, 0x11
pclmulqdq xmm9, xmm5, 0
movdqu xmm2, xmm6
pclmulqdq xmm0, xmm5, 0x11
movdqu xmm6, xmmword [rax - 0x40]
pclmulqdq xmm8, xmm5, 0
pxor xmm0, xmm9
pclmulqdq xmm7, xmm5, 0
pxor xmm2, xmm8
pxor xmm0, xmm6
movdqu xmm6, xmmword [rax - 0x30]
pclmulqdq xmm1, xmm5, 0x11
pclmulqdq xmm4, xmm5, 0
pxor xmm1, xmm7
pclmulqdq xmm3, xmm5, 0x11
movdqu xmm7, xmmword [rax - 0x20]
pxor xmm6, xmm2
movdqu xmm2, xmmword [rax - 0x10]
pxor xmm3, xmm4
pxor xmm1, xmm7
pxor xmm3, xmm2
cmp r8, rax
jne 0x14006fc80
mov r8, rdx
shr r8, 6
lea rax, [r8 + 2]
shl r8, 6
shl rax, 6
sub rdx, r8
movdqu xmm4, xmmword [0x1400c6ec0]
movdqu xmm5, xmm0
movdqu xmm2, xmm0
pclmulqdq xmm5, xmm4, 0
pclmulqdq xmm2, xmm4, 0x11
pxor xmm2, xmm5
pxor xmm2, xmm6
movdqu xmm0, xmm2
pclmulqdq xmm2, xmm4, 0x11
pclmulqdq xmm0, xmm4, 0
pxor xmm2, xmm0
pxor xmm1, xmm2
movdqu xmm0, xmm1
pclmulqdq xmm1, xmm4, 0x11
pclmulqdq xmm0, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm3
cmp rdx, 0xf
jle 0x14006fde4
movdqu xmm1, xmm0
movdqu xmm7, xmmword [rcx + rax]
pclmulqdq xmm0, xmm4, 0x11
lea r8, [rdx - 0x10]
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp r8, 0xf
jle 0x14006fde4
movdqu xmm1, xmm0
movdqu xmm7, xmmword [rcx + rax + 0x10]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm7
cmp rdx, 0x2f
jle 0x14006fde4
movdqu xmm1, xmm0
movdqu xmm2, xmmword [rcx + rax + 0x20]
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm4, 0
pxor xmm0, xmm1
pxor xmm0, xmm2
movdqu xmm1, xmm0
psrldq xmm0, 8
movups xmm6, xmmword [rsp + 0x60]
movdqu xmm2, xmmword [0x1400c6ee0]
pclmulqdq xmm1, xmm4, 0x10
movups xmm7, xmmword [rsp + 0x70]
movdqu xmm3, xmmword [0x1400c6f00]
movups xmm8, xmmword [rsp + 0x80]
pxor xmm0, xmm1
movups xmm9, xmmword [rsp + 0x90]
movdqu xmm1, xmm0
pand xmm0, xmm2
pclmulqdq xmm0, xmmword [0x1400c6ef0], 0
psrldq xmm1, 4
pxor xmm1, xmm0
movdqu 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, 0xa8
ret
mov eax, 0x40
jmp 0x14006fd21
Function at 0x14006fe80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
lea r11, [rdx + 7]
mov r9, rcx
mov r10, rdx
cmovns r11, rdx
mov eax, r8d
lea rcx, [0x1400c6f20]
xor ebx, ebx
sar r11, 3
cmp rdx, 7
jle 0x14006ff70
nop dword [rax]
mov edx, dword [r9 + rbx*8 + 4]
xor eax, dword [r9 + rbx*8]
add rbx, 1
mov esi, edx
movzx r8d, dl
shr esi, 0x18
mov r8d, dword [rcx + r8*4 + 0xc00]
xor r8d, dword [rcx + rsi*4]
movzx esi, al
xor r8d, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor r8d, dword [rcx + rsi*4 + 0x1000]
movzx esi, dh
shr edx, 0x10
movzx edx, dl
xor r8d, dword [rcx + rsi*4 + 0x800]
xor r8d, dword [rcx + rdx*4 + 0x400]
movzx edx, ah
shr eax, 0x10
xor r8d, dword [rcx + rdx*4 + 0x1800]
movzx edx, al
mov eax, dword [rcx + rdx*4 + 0x1400]
xor eax, r8d
cmp r11, rbx
jg 0x14006feb0
shl r11, 3
mov edx, 8
cmp r10, 7
cmovle r11, rdx
cmp r10, r11
jle 0x14006ff6b
add r11, r9
lea rcx, [0x1400c6f20]
add r9, r10
nop word cs:[rax + rax]
movzx r8d, byte [r11]
add r11, 1
xor r8d, eax
shr eax, 8
movzx r8d, r8b
xor eax, dword [rcx + r8*4]
cmp r9, r11
jne 0x14006ff50
pop rbx
pop rsi
ret
xor r11d, r11d
jmp 0x14006ff34
Function at 0x14009c770
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400a6d00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400a6d00
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14009c7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400daae4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14009c990
mov rax, qword [0x1400daae8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14009c82c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14009c8b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14009c810
mov rcx, r12
call fcn.14009d290
mov rbp, rax
test rax, rax
je 0x14009c9ed
mov rax, qword [0x1400daae8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14009d3c0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400daae8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009c9d2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009c8b0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14009c940
add dword [0x1400daae4], 1
cmp ebx, 8
jae 0x14009c8e8
test bl, 4
jne 0x14009c9a0
test ebx, ebx
je 0x14009c8d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14009c9c0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14009c8d9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14009c91a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400daae8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009c8b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009c770
xor edi, edi
jmp 0x14009c837
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14009c8d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14009c8d9
mov rax, qword [0x1400daae8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14009c770
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14009c770
nop
nop dword [rax]
Function at 0x14009cf00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400dab40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400dab20]
test rbx, rbx
je 0x14009cf54
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14009cf4b
test r12, r12
je 0x14009cf4b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009cf30
lea rcx, [0x1400dab40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14009d290
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400cfef0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14009d309
mov rcx, r10
call fcn.14009d160
test eax, eax
je 0x14009d309
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14009d306
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14009d2fd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14009d309
add r8, 0x28
cmp r8, r9
jne 0x14009d2e8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14009d670
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x1400dabc0], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400dabc8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14009d6c0
lea rdx, [0x14009d580]
mov dword [0x1400dabb8], eax
call fcn.1400a7030
test eax, eax
jne 0x14009d6c8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009d6b7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14009d6d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x1400cfe30]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x14009d710
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14009d778
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14009d790
mov r13d, dword [0x1400dabb8]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x14009d808
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x14009d850
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x14009d6f9
mov rcx, r12
call fcn.14009d5d0
mov qword [r13 + rsi*8 + 8], rax
jmp 0x14009d6f9
call fcn.14009d5d0
mov qword [r12 + 0x10], rax
jmp 0x14009d6f9
mov r10d, dword [r13]
test r10d, r10d
je 0x14009d8b2
mov r9d, dword [0x1400a8ce0]
test r9d, r9d
je 0x14009d8e0
lock add dword [0x1400dabc0], 1
jne 0x14009d914
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x14009d8c0
mov eax, dword [r13]
test eax, eax
je 0x14009d719
mov eax, 0xffffffff
lock xadd dword [0x1400dabc0], eax
sub eax, 1
js 0x14009d719
mov rcx, qword [0x1400dabc8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14009d719
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x14009d93b
mov qword [rax], rbx
mov ecx, dword [0x1400dabb8]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14009d757
call rdi
jmp 0x14009d757
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x14009d93b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call fcn.1400a66b0
jmp 0x14009d829
call fcn.14009d670
mov dword [0x1400a8ce0], 1
mov edx, dword [r13]
test edx, edx
jne 0x14009d7ad
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x14009d719
mov rax, qword [0x1400dabb0]
lea rsi, [rax + 1]
mov qword [0x1400dabb0], rsi
mov qword [r12 + 0x10], rsi
jmp 0x14009d7c9
lock add dword [0x1400a8ce4], 1
je 0x14009d897
mov r8d, dword [0x1400a8ce0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x1400a8ce0]
test r8d, r8d
jne 0x14009d8a6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x14009d908
jmp 0x14009d8a6
mov rcx, qword [0x1400dabc8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14009d7bb
lock sub dword [0x1400dabc0], 1
jmp 0x14009d7bb
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14009d960
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14009d96a
mov qword [rcx + 8], r8
test r9, r9
je 0x14009d974
cmp qword [rcx], rdx
je 0x14009d978
ret
mov qword [rcx + 0x18], r9
ret