joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1b60
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x1400a1c43
mov eax, dword [rbx]
test eax, eax
je 0x1400a1c43
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400a1b9f
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x1400a1bbd
mov r8d, 0x7fff
lea rdx, [rbx + 0x189c]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400a1bbd
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x1400a1bd6
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400a1c14
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400a1c14
movzx r9d, byte [rbx + 0x1850]
lea rdx, [rbx + 0x11a9c]
mov ecx, dword [rsp + 0x30]
call fcn.140031b50
test eax, eax
jne 0x1400a1c14
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400a1c43
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400a2120
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp qword [0x140122d78], 0
mov rax, qword [0x14011c188]
mov byte [rax + 0x7f], 1
je 0x1400a21f8
movzx r8d, byte [0x140122e84]
mov qword [rsp + 0x30], rbx
movzx eax, r8b
and al, 0xc0
neg al
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test r8b, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test r8b, 0x30
cmove ecx, edx
mov r9d, ecx
or r9d, 2
test r8b, 3
cmove r9d, ecx
mov eax, r9d
and al, 2
neg al
sbb al, al
and al, 3
movzx edx, al
movzx eax, dl
or al, 0x30
test r9b, 4
movzx ebx, al
cmove ebx, edx
or bl, 0xcc
not bl
and bl, byte [0x140122e82]
je 0x1400a21f3
cmp r9d, 8
jne 0x1400a21d6
movzx r8d, word [0x14011cb34]
xor r9d, r9d
movzx edx, byte [reloc.OLEAUT32.dll_SafeArrayGetElemsize]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
lea ecx, [r9 + 2]
call fcn.14001fbd0
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], 0
movzx edx, bl
xor ecx, ecx
call fcn.140021ee0
mov rbx, qword [rsp + 0x30]
mov ecx, 0x4bf
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test ax, ax
je 0x1400a221c
mov edx, 1
lea ecx, [rdx - 2]
add rsp, 0x38
jmp fcn.140001710
add rsp, 0x38
ret
Function at 0x1400a25f0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400d7a10
sub rsp, rax
xor r9d, r9d
mov dword [rsp + 0x18a0], edx
lea rax, [0x1400f9b50]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x1038], rax
lea rdx, [rsp + 0x20]
mov rax, qword [rcx + 0x10]
xorps xmm0, xmm0
lea rcx, [0x1400a2de0]
mov qword [rsp + 0x1898], rax
mov byte [rsp + 0x1871], r9b
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
movdqa xmmword [rsp + 0x1880], xmm0
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x1400a26a4
mov rax, qword [0x14011c188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a26a4
mov edx, 1
call fcn.140001710
add rsp, 0x11cd8
ret
Function at 0x1400a26b0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x11bd0]
mov eax, 0x11cd0
call fcn.1400d7a10
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rsi, rcx
je 0x1400a28fa
xor ebx, ebx
mov byte [rcx], 1
cmp qword [0x1401244e8], rcx
je 0x1400a2706
mov qword [0x1401244e8], rcx
mov dword [0x1401244f8], ebx
cmp qword [0x1401244f0], rbx
jne 0x1400a2729
mov ecx, 0xfa0
call fcn.140096dd0
test rax, rax
je 0x1400a2919
mov qword [0x1401244f0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x14011c188]
mov rcx, rsi
sub r8, 0xffffffffffffff80
mov rdx, rax
mov rdi, rax
call fcn.1400a2b60
mov ecx, dword [0x1401244f8]
test rax, rax
mov dword [rbp + 0x1774], ebx
setne r15b
mov qword [rbp + 0x1778], rbx
test rax, rax
mov qword [rbp + 0x1780], rbx
mov qword [rbp + 0x1798], rbx
cmove ecx, ebx
mov qword [rbp + 0x17a8], rbx
mov dword [0x1401244f8], ecx
mov qword [rbp + 0x17b0], rbx
test r14b, r14b
je 0x1400a279a
mov byte [rbp + 0x1771], bl
test r15b, r15b
je 0x1400a27a1
mov byte [rbp + 0x1771], 1
mov rax, qword [0x14011c188]
lea rdx, [0x1400f9b50]
mov r8, qword [0x1401244f0]
mov qword [rbp + 0x1788], r8
mov dword [rbp + 0x1790], ecx
mov qword [rbp + 0xf38], rdx
mov qword [rbp + 0xf40], rbx
mov qword [rbp + 0xf48], rdx
mov qword [rbp + 0xf50], rdx
test rax, rax
je 0x1400a27ef
sub rax, 0xffffffffffffff80
mov qword [rsp + 0x28], rax
jmp 0x1400a27f4
mov qword [rsp + 0x28], rbx
test ecx, ecx
mov qword [rbp + 0xf68], rsi
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
setg sil
nop dword [rax]
test r15b, r15b
je 0x1400a2846
mov edx, ebx
test ecx, ecx
jle 0x1400a282f
mov rax, r8
nop
cmp qword [rax], rdi
je 0x1400a2846
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400a2820
cmp ecx, 0x1f4
jge 0x1400a2846
movsxd rax, ecx
inc ecx
mov dword [0x1401244f8], ecx
mov qword [r8 + rax*8], rdi
mov dword [rbp + 0x1790], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a0820]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp + 0x1778]
test rcx, rcx
jne 0x1400a2887
test sil, sil
je 0x1400a28fa
mov r8, qword [0x1401244f0]
mov ecx, ebx
mov dword [0x1401244f8], ebx
xor sil, sil
jmp 0x1400a2810
call fcn.14009f730
movsxd rcx, dword [0x1401244f8]
mov rdx, qword [rbp + 0x1778]
mov r8, qword [0x1401244f0]
test ecx, ecx
jle 0x1400a28b7
mov rax, r8
cmp qword [rax], rdx
je 0x1400a28d2
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400a28a8
cmp ecx, 0x1f4
jge 0x1400a28d2
mov qword [r8 + rcx*8], rdx
inc ecx
mov rdx, qword [rbp + 0x1778]
mov dword [0x1401244f8], ecx
mov rax, qword [0x14011c188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a28f5
mov edx, 1
call fcn.140001710
mov rdx, qword [rbp + 0x1778]
mov rax, rdx
jmp 0x1400a28fc
xor eax, eax
lea r11, [rsp + 0x11cd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140011020
int3
Function at 0x1400a2920
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
mov eax, 0x11cd0
call fcn.1400d7a10
sub rsp, rax
xor ebx, ebx
mov byte [rcx], 0
cmp qword [0x1401244e8], rcx
movzx ebp, dl
mov rdi, rcx
je 0x1400a2959
mov qword [0x1401244e8], rcx
mov dword [0x1401244f8], ebx
cmp qword [0x1401244f0], rbx
jne 0x1400a297c
mov ecx, 0xfa0
call fcn.140096dd0
test rax, rax
je 0x1400a2b4f
mov qword [0x1401244f0], rax
mov qword [rsp + 0x11ce0], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov edx, 4
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x1400a29b6
mov edx, 4
mov rcx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1400a29a0
mov r8, qword [0x14011c188]
mov rdx, rsi
sub r8, 0xffffffffffffff80
mov rcx, rdi
call fcn.1400a2b60
mov ecx, dword [0x1401244f8]
test rax, rax
lea rax, [0x1400f9b50]
mov dword [rsp + 0x20], ebx
cmovne ecx, ebx
mov qword [rsp + 0x1038], rax
mov dword [0x1401244f8], ecx
mov dword [rsp + 0x1874], ebx
mov qword [rsp + 0x1878], rbx
mov qword [rsp + 0x1880], rbx
mov qword [rsp + 0x18a8], rbx
mov qword [rsp + 0x18b0], rbx
test bpl, bpl
je 0x1400a2a28
mov byte [rsp + 0x1871], bl
test ecx, ecx
je 0x1400a2a30
mov byte [rsp + 0x1871], 1
mov rax, qword [0x1401244f0]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x1888], rax
mov rax, qword [rdi + 0x10]
mov dword [rsp + 0x1890], ecx
lea rcx, [0x1400a2c60]
mov qword [rsp + 0x1898], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0x1878]
test rcx, rcx
je 0x1400a2ae1
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
call fcn.14009f730
movsxd rcx, dword [0x1401244f8]
mov rdx, qword [rsp + 0x1878]
mov r8, qword [0x1401244f0]
test ecx, ecx
jle 0x1400a2aaf
mov rax, r8
nop dword [rax]
cmp qword [rax], rdx
je 0x1400a2ac3
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400a2aa0
cmp ecx, 0x1f4
jge 0x1400a2ac3
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x1401244f8], ecx
mov rax, qword [0x14011c188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a2b32
mov edx, 1
call fcn.140001710
jmp 0x1400a2b32
mov eax, dword [0x1401244f8]
test eax, eax
je 0x1400a2b1b
cmp eax, 1
mov dword [0x1401244f8], ebx
setg al
test al, al
je 0x1400a2b32
mov rax, qword [0x1401244f0]
xor edx, edx
mov rcx, rdi
mov dword [0x1401244f8], 1
mov qword [rax], rsi
call fcn.1400a2920
jmp 0x1400a2b32
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call fcn.14009f730
mov rsi, qword [rsp + 0x11ce0]
lea r11, [rsp + 0x11cd0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140011020
int3
Function at 0x1400b84e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b852a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b852a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b852a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b852a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b852a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b852c
xor al, al
add rsp, 0x28
ret

Function at 0x1400ca6f4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400ca553
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ca553
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ca553
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ca553
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ca553
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ca553
cmp dword [rcx + 0xf8], 0
je 0x1400ca553
mov ecx, ebx
call fcn.1400ca610
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400ca3e0
nop
cmp dword [rbp + 0x20], 0
je 0x1400ca5a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ca5ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ca4e4
Function at 0x1400d2ae0
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 0x1400d2b67
mov rsi, rbx
cmp word [rax], bp
je 0x1400d2b26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d2b10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d2b0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400cf070
mov rdi, rax
test rax, rax
je 0x1400d2b54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b9890
mov rbp, rdi
xor ecx, ecx
call fcn.1400cf034
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 0x1400d7940
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d7968
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d7968
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c8580]
mov dword [rax], 1
mov rax, qword [0x1400c8590]
mov dword [rax], 1
mov rax, qword [0x1400c85a0]
mov dword [rax], 1
mov rax, qword [0x1400c8530]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000be00
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 rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14000cad2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400f2148]
test eax, eax
je 0x14000cb6a
lea rax, [0x1400f2120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400f2150]
mov qword [rbp - 8], rax
jmp 0x14000cb4e
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 0x14000cb42
cmp qword [rbp - 0x10], 0
je 0x14000cb42
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 0x14000cb08
lea rax, [0x1400f2120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000cb6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000cc70
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 0x14000cc98
mov eax, 0
jmp 0x14000cce6
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 0x14000ccc1
mov eax, 0
jmp 0x14000cce6
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 0x14000cce1
mov eax, 0
jmp 0x14000cce6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000ccec
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 0x14000cd6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000cd61
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 0x14000cd61
mov rax, qword [rbp - 8]
jmp 0x14000cd7f
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 0x14000cd34
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400179ae
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 0x140017a1b
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 [0x1400f2ca0], rax
mov rax, qword [rbp - 8]
mov qword [sym.init_rand_s], rax
mov rdx, qword [sym.init_rand_s]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call rdx
add rsp, 0x30
pop rbp
ret

Function at 0x14001a100
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400bf178], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x14001a120
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 + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
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 + 0x7b], 0
mov qword [rsp + 0x83], 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 0x14001a222
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001a1fa
add rax, 1
cmp rax, 0x6b
je 0x14001a217
cmp byte [rcx + rax], 0
jne 0x14001a1f0
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14001a217
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001a208

Function at 0x14001a5c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400f2d40], 1
je 0x14001a638
lea rdi, [0x1400f2d40]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x1400f2d40]
test esi, esi
jne 0x14001a648
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400bf178], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x1400f2d40], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14001a638
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.leaveOnceObject.part.0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001a618
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x14001a618
Function at 0x14001a670
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x14001a788
test rax, rax
je 0x14001a788
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 0x14001a796
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
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.part.0.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400bf178]
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 0x14001a79c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.replace_spin_keys.part.0
nop
jmp sym.__pthread_self_lite.part.0.cold

Function at 0x14001a7b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400bf178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001a7d0
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.__pthread_self_lite.part.0
Function at 0x14001a920
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rbx
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
call sym._fpreset
lea rcx, [0x1400bf168]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov rdx, qword [rbp + 0x10]
mov ecx, dword [0x1400bf178]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rsi, qword [rbp + 0x10]
mov rcx, rbx
mov dword [rsi + 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
jne 0x14001aa60
lea rcx, [0x1400bf168]
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14001aa71
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rdx + 8]
call rax
mov rbx, rax
nop
nop
lea rcx, [0x1400bf168]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], rbx
test rcx, rcx
je 0x14001a9e5
call sym._pthread_cleanup_dest.part.0
mov rax, qword [rbp + 0x10]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x30]
mov rsi, qword [rax + 8]
test rcx, rcx
je 0x14001aa0c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
xor edx, edx
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], rdx
je 0x14001aa83
mov rcx, rbx
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
lea rbx, [0x1400bf168]
mov rcx, rbx
call sym.pthread_mutex_unlock
test eax, eax
jne 0x14001aa7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001aa4a
lea rcx, [0x1400bf168]
call sym.pthread_mutex_lock
jmp 0x14001a9e5
mov ebx, pe_nt_image_headers64
jmp 0x14001a9be
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
mov rax, qword [rbp + 0x10]
mov rcx, rbx
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rcx, qword [rbp + 0x10]
call sym.push_pthread_mem
mov ecx, dword [0x1400bf178]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14001aa43