joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002a49
Capabilities:
Authenticate hmac

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
cmp qword [rbp + 0x20], 0x40
jbe 0x140002a98
mov rax, qword [rbp + 0x20]
mov ecx, eax
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x30]
mov r8d, ecx
mov rcx, rax
call dbg.blake256_hash
lea rax, [rbp - 0x30]
mov qword [rbp - 8], rax
mov qword [rbp + 0x20], 0x20
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.blake256_init
lea rax, [rbp - 0x70]
mov r8d, 0x40
mov edx, 0x36
mov rcx, rax
call sym.memset
mov qword [rbp - 0x10], 0
jmp 0x140002af5
lea rdx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx edx, byte [rax]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
add rax, rcx
movzx eax, byte [rax]
xor edx, eax
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rcx
mov byte [rax], dl
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jb 0x140002ac5
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x70]
mov r8d, 0x200
mov rcx, rax
call dbg.blake256_update
mov rax, qword [rbp + 0x10]
sub rax, 0xffffffffffffff80
mov rcx, rax
call dbg.blake256_init
lea rax, [rbp - 0x70]
mov r8d, 0x40
mov edx, 0x5c
mov rcx, rax
call sym.memset
mov qword [rbp - 0x10], 0
jmp 0x140002b76
lea rdx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx edx, byte [rax]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
add rax, rcx
movzx eax, byte [rax]
xor edx, eax
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rcx
mov byte [rax], dl
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jb 0x140002b46
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0x80]
lea rax, [rbp - 0x70]
mov r8d, 0x200
mov rdx, rax
call dbg.blake256_update
lea rax, [rbp - 0x30]
mov r8d, 0x20
mov edx, 0
mov rcx, rax
call sym.memset
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140002bbe
Capabilities:
Authenticate hmac

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
cmp qword [rbp + 0x20], 0x40
jbe 0x140002c0d
mov rax, qword [rbp + 0x20]
mov ecx, eax
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x30]
mov r8d, ecx
mov rcx, rax
call dbg.blake256_hash
lea rax, [rbp - 0x30]
mov qword [rbp - 8], rax
mov qword [rbp + 0x20], 0x1c
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.blake224_init
lea rax, [rbp - 0x70]
mov r8d, 0x40
mov edx, 0x36
mov rcx, rax
call sym.memset
mov qword [rbp - 0x10], 0
jmp 0x140002c6a
lea rdx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx edx, byte [rax]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
add rax, rcx
movzx eax, byte [rax]
xor edx, eax
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rcx
mov byte [rax], dl
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jb 0x140002c3a
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x70]
mov r8d, 0x200
mov rcx, rax
call dbg.blake224_update
mov rax, qword [rbp + 0x10]
sub rax, 0xffffffffffffff80
mov rcx, rax
call dbg.blake224_init
lea rax, [rbp - 0x70]
mov r8d, 0x40
mov edx, 0x5c
mov rcx, rax
call sym.memset
mov qword [rbp - 0x10], 0
jmp 0x140002ceb
lea rdx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx edx, byte [rax]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
add rax, rcx
movzx eax, byte [rax]
xor edx, eax
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rcx
mov byte [rax], dl
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jb 0x140002cbb
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0x80]
lea rax, [rbp - 0x70]
mov r8d, 0x200
mov rdx, rax
call dbg.blake224_update
lea rax, [rbp - 0x30]
mov r8d, 0x20
mov edx, 0
mov rcx, rax
call sym.memset
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140014033
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
push rbx
sub rsp, 0x118
lea rbp, [rsp + 0x80]
mov rbx, rcx
movdqa xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x80], xmm0
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
mov qword [rbp + 0xc8], r9
mov rax, qword [rbp + 0xb8]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp - 0x70], xmm0
movdqa xmm0, xmmword [rbp - 0x60]
aesenc xmm0, xmmword [rbp - 0x70]
nop
mov rax, qword [rbp + 0xb8]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0xc0]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [rbp - 0x40]
aesenc xmm0, xmmword [rbp - 0x50]
nop
mov rax, qword [rbp + 0xc0]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0xc8]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [rbp - 0x20]
aesenc xmm0, xmmword [rbp - 0x30]
nop
mov rax, qword [rbp + 0xc8]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0xd0]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp]
aesenc xmm0, xmmword [rbp - 0x10]
nop
mov rax, qword [rbp + 0xd0]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0xd8]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp + 0x20], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x10], xmm0
movdqa xmm0, xmmword [rbp + 0x20]
aesenc xmm0, xmmword [rbp + 0x10]
nop
mov rax, qword [rbp + 0xd8]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0xe0]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp + 0x40], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x30], xmm0
movdqa xmm0, xmmword [rbp + 0x40]
aesenc xmm0, xmmword [rbp + 0x30]
nop
mov rax, qword [rbp + 0xe0]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0xe8]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp + 0x60], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x50], xmm0
movdqa xmm0, xmmword [rbp + 0x60]
aesenc xmm0, xmmword [rbp + 0x50]
nop
mov rax, qword [rbp + 0xe8]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0xf0]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp + 0x80], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x70], xmm0
movdqa xmm0, xmmword [rbp + 0x80]
aesenc xmm0, xmmword [rbp + 0x70]
nop
mov rax, qword [rbp + 0xf0]
movaps xmmword [rax], xmm0
nop
add rsp, 0x118
pop rbx
pop rbp
ret
Function at 0x140014513
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 1
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xff
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [rbp - 0x40]
movdqa xmm0, xmmword [rbp - 0x50]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 0
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xaa
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [rbp - 0x20]
movdqa xmm0, xmmword [rbp - 0x30]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
nop
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x1400145fc
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 2
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xff
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [rbp - 0x40]
movdqa xmm0, xmmword [rbp - 0x50]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 0
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xaa
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [rbp - 0x20]
movdqa xmm0, xmmword [rbp - 0x30]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
nop
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x1400146e5
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 4
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xff
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [rbp - 0x40]
movdqa xmm0, xmmword [rbp - 0x50]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 0
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xaa
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [rbp - 0x20]
movdqa xmm0, xmmword [rbp - 0x30]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
nop
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x1400147ce
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 8
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xff
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x40], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [rbp - 0x40]
movdqa xmm0, xmmword [rbp - 0x50]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x10]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x10]
movdqa xmm0, xmmword [rax]
aeskeygenassist xmm0, xmm0, 0
movaps xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pshufd xmm0, xmm0, 0xaa
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg.sl_xor
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
mov rax, qword [rbp + 0x18]
movdqa xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [rbp - 0x20]
movdqa xmm0, xmmword [rbp - 0x30]
pxor xmm0, xmm1
mov rax, qword [rbp + 0x18]
movaps xmmword [rax], xmm0
nop
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x14001e510
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 0x14001f142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400fe148]
test eax, eax
je 0x14001f1da
lea rax, [0x1400fe120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400fe150]
mov qword [rbp - 8], rax
jmp 0x14001f1be
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 0x14001f1b2
cmp qword [rbp - 0x10], 0
je 0x14001f1b2
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 0x14001f178
lea rax, [0x1400fe120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001f1db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001f2e0
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 0x14001f308
mov eax, 0
jmp 0x14001f356
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 0x14001f331
mov eax, 0
jmp 0x14001f356
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 0x14001f351
mov eax, 0
jmp 0x14001f356
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001f35c
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 0x14001f3da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001f3d1
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 0x14001f3d1
mov rax, qword [rbp - 8]
jmp 0x14001f3ef
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 0x14001f3a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002c1a8
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
call sym.__mingw_get_msvcrt_handle
mov rcx, rax
lea rax, str.rand_s
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14002c215
lea rax, [sym.mingw_rand_s]
mov qword [rbp - 8], rax
lea rax, str.advapi32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov rcx, rax
lea rax, str.SystemFunction036
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x1400feca0], rax
mov rax, qword [rbp - 8]
mov qword [sym.init_rand_s], rax
mov rax, qword [sym.init_rand_s]
mov rcx, qword [rbp + 0x10]
call rax
add rsp, 0x30
pop rbp
ret

Function at 0x14002e240
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400cb188], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret

Function at 0x14002e260
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14002e372
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14002e34a
add rax, 1
cmp rax, 0x6b
je 0x14002e367
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14002e340
cmp edx, 0x6a
je 0x14002e367
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14002e35b
Function at 0x14002e710
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400fed20]
mov rcx, rsi
call sym.enterOnceObject
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call sym.pthread_mutex_lock
mov ebx, dword [0x1400fed20]
test ebx, ebx
jne 0x14002e780
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400cb188], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.part.0.constprop.0.isra.0.cold
mov dword [0x1400fed20], 1
mov rcx, r13
call sym.pthread_mutex_unlock
test r12, r12
je 0x14002e7b2
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp sym.leaveOnceObject.part.0
cmp ebx, 1
je 0x14002e761
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf_1
mov rcx, r13
call sym.pthread_mutex_unlock
test r12, r12
jne 0x14002e76e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x14002e900
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push r12
push rsi
push rbx
sub rsp, 0x28
mov qword [rbp + 0x10], rcx
call sym._fpreset
lea rcx, [0x1400cb178]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
cmp dword [0x1400fed20], 1
je 0x14002e93f
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov rdx, qword [rbp + 0x10]
mov ecx, dword [0x1400cb188]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [rbp + 0x10]
mov rcx, r12
mov dword [rbx + 0x70], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x14002ea10
lea rcx, [0x1400cb178]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
je 0x14002e9b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x14002ea6e
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [0x1400cb178]
mov rcx, rsi
call sym.pthread_mutex_unlock
test eax, eax
jne 0x14002ea66
xor ecx, ecx
call r12
jmp 0x14002e9fd
lea rcx, [0x1400cb178]
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14002eaa4
mov rsi, qword [rbp + 0x10]
mov rcx, qword [rsi + 8]
call rax
mov r12, rax
nop
nop
lea rcx, [0x1400cb178]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], r12
test rcx, rcx
je 0x14002e98b
call sym._pthread_cleanup_dest.part.0
jmp 0x14002e98b
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
mov rax, qword [rbp + 0x10]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
mov rcx, qword [rbp + 0x10]
call sym.push_pthread_mem
mov ecx, dword [0x1400cb188]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14002e9ef
mov r12d, pe_nt_image_headers64
jmp 0x14002ea36
Function at 0x14002eab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x1400fed20], 1
je 0x14002eac7
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x1400cb188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x14002eaf0
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x14002eadb
test rax, rax
je 0x14002eadb
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14002ebfa
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400cb188]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.replace_spin_keys.part.0
nop