joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aebd0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
movabs rax, 0xc2b2ae3d27d4eb4f
movabs r9, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
movabs r10, 0x27d4eb2f165667c5
cmp rdx, 0x20
jb 0x1400aed1c
lea rbp, [rcx + rdx]
add rbp, 0xffffffffffffffe1
movabs r13, 0x60ea27eeadc0b5d6
add r13, r8
lea r12, [r8 + rax]
movabs r15, 0x61c8864e7a143579
add r15, r8
nop word cs:[rax + rax]
mov r14, qword [rcx]
imul r14, rax
add r14, r13
rol r14, 0x1f
mov r13, r14
imul r13, r9
mov rbx, qword [rcx + 8]
imul rbx, rax
add rbx, r12
rol rbx, 0x1f
mov r12, rbx
mov rdi, qword [rcx + 0x10]
imul rdi, rax
add rdi, r8
rol rdi, 0x1f
imul r12, r9
mov r8, rdi
imul r8, r9
mov rsi, qword [rcx + 0x18]
imul rsi, rax
add rsi, r15
rol rsi, 0x1f
mov r15, rsi
imul r15, r9
add rcx, 0x20
cmp rcx, rbp
jb 0x1400aec40
rol r13, 1
rol r12, 7
rol r8, 0xc
rol r15, 0x12
add r12, r13
add r15, r8
add r15, r12
movabs r8, 0xdef35b010f796ca9
imul r14, r8
rol r14, 0x1f
imul r14, r9
xor r14, r15
imul r14, r9
add r14, r11
imul rbx, r8
rol rbx, 0x1f
imul rbx, r9
xor rbx, r14
imul rbx, r9
imul rdi, r8
rol rdi, 0x1f
add rbx, r11
imul rdi, r9
xor rdi, rbx
imul rdi, r9
add rdi, r11
imul rsi, r8
rol rsi, 0x1f
imul rsi, r9
xor rsi, rdi
imul rsi, r9
add rsi, r11
jmp 0x1400aed22
add r8, r10
mov rsi, r8
add rsi, rdx
and edx, 0x1f
cmp rdx, 8
jb 0x1400aedc9
lea rdi, [rdx - 8]
test dil, 8
jne 0x1400aed6b
mov r8, qword [rcx]
imul r8, rax
rol r8, 0x1f
imul r8, r9
add rcx, 8
xor r8, rsi
rol r8, 0x1b
imul r8, r9
add r8, r11
mov rdx, rdi
mov rsi, r8
cmp rdi, 8
jae 0x1400aed80
jmp 0x1400aedcf
cmp rdi, 8
jb 0x1400aedcf
nop word cs:[rax + rax]
mov r8, qword [rcx]
imul r8, rax
rol r8, 0x1f
imul r8, r9
xor r8, rsi
rol r8, 0x1b
imul r8, r9
add r8, r11
mov rsi, qword [rcx + 8]
imul rsi, rax
rol rsi, 0x1f
imul rsi, r9
xor rsi, r8
add rcx, 0x10
rol rsi, 0x1b
imul rsi, r9
add rsi, r11
add rdx, 0xfffffffffffffff0
cmp rdx, 7
ja 0x1400aed80
mov r8, rsi
mov rdi, rdx
movabs rdx, 0x165667b19e3779f9
cmp rdi, 4
jb 0x1400aedff
mov r11d, dword [rcx]
imul r11, r9
xor r11, r8
add rcx, 4
rol r11, 0x17
imul r11, rax
add r11, rdx
add rdi, 0xfffffffffffffffc
mov r8, r11
test rdi, rdi
je 0x1400aeeba
mov r11, rdi
and r11, 3
je 0x1400aee4f
xor esi, esi
nop word cs:[rax + rax]
movzx ebx, byte [rcx + rsi]
imul rbx, r10
xor rbx, r8
rol rbx, 0xb
mov r8, rbx
imul r8, r9
inc rsi
cmp r11, rsi
jne 0x1400aee20
mov r11, rdi
sub r11, rsi
add rcx, rsi
cmp rdi, 4
jae 0x1400aee58
jmp 0x1400aeeba
mov r11, rdi
cmp rdi, 4
jb 0x1400aeeba
xor esi, esi
nop word [rax + rax]
movzx edi, byte [rcx + rsi]
imul rdi, r10
xor rdi, r8
rol rdi, 0xb
imul rdi, r9
movzx r8d, byte [rcx + rsi + 1]
imul r8, r10
xor r8, rdi
rol r8, 0xb
imul r8, r9
movzx edi, byte [rcx + rsi + 2]
imul rdi, r10
xor rdi, r8
rol rdi, 0xb
imul rdi, r9
movzx r8d, byte [rcx + rsi + 3]
imul r8, r10
xor r8, rdi
rol r8, 0xb
imul r8, r9
add rsi, 4
cmp r11, rsi
jne 0x1400aee60
mov rcx, r8
shr rcx, 0x21
xor rcx, r8
imul rcx, rax
mov r8, rcx
shr r8, 0x1d
xor r8, rcx
imul r8, rdx
mov rax, r8
shr rax, 0x20
xor rax, r8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400af110
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
movabs rax, 0xc2b2ae3d27d4eb4f
movabs rdx, 0x9e3779b185ebca87
movabs r9, 0x85ebca77c2b2ae63
movabs r8, 0x27d4eb2f165667c5
mov r10, qword [rcx]
cmp r10, 0x20
jb 0x1400af1dc
mov rbx, qword [rcx + 8]
mov r11, rbx
rol r11, 1
mov rdi, qword [rcx + 0x10]
mov r14, rdi
rol r14, 7
add r14, r11
mov rsi, qword [rcx + 0x18]
mov r15, rsi
rol r15, 0xc
mov r11, qword [rcx + 0x20]
mov r12, r11
rol r12, 0x12
add r12, r15
add r12, r14
imul rbx, rax
rol rbx, 0x1f
imul rbx, rdx
xor rbx, r12
imul rbx, rdx
add rbx, r9
imul rdi, rax
rol rdi, 0x1f
imul rdi, rdx
xor rdi, rbx
imul rdi, rdx
imul rsi, rax
rol rsi, 0x1f
add rdi, r9
imul rsi, rdx
xor rsi, rdi
imul rsi, rdx
add rsi, r9
imul r11, rax
rol r11, 0x1f
imul r11, rdx
xor r11, rsi
imul r11, rdx
add r11, r9
jmp 0x1400af1e3
mov r11, qword [rcx + 0x18]
add r11, r8
add r11, r10
lea rbx, [rcx + 0x28]
and r10d, 0x1f
cmp r10, 8
jb 0x1400af289
lea rdi, [r10 - 8]
test dil, 8
jne 0x1400af235
mov rsi, qword [rcx + 0x28]
imul rsi, rax
rol rsi, 0x1f
imul rsi, rdx
add rcx, 0x30
xor rsi, r11
rol rsi, 0x1b
imul rsi, rdx
add rsi, r9
mov r10, rdi
mov r11, rsi
mov rbx, rcx
cmp rdi, 8
jae 0x1400af240
jmp 0x1400af292
cmp rdi, 8
jb 0x1400af292
nop dword [rax + rax]
mov rcx, qword [rbx]
imul rcx, rax
rol rcx, 0x1f
imul rcx, rdx
xor rcx, r11
rol rcx, 0x1b
imul rcx, rdx
add rcx, r9
mov r11, qword [rbx + 8]
imul r11, rax
rol r11, 0x1f
imul r11, rdx
xor r11, rcx
add rbx, 0x10
rol r11, 0x1b
imul r11, rdx
add r11, r9
add r10, 0xfffffffffffffff0
cmp r10, 7
ja 0x1400af240
mov rcx, rbx
mov rsi, r11
mov rdi, r10
movabs r9, 0x165667b19e3779f9
cmp rdi, 4
jb 0x1400af2c2
mov r10d, dword [rcx]
imul r10, rdx
xor r10, rsi
add rcx, 4
rol r10, 0x17
imul r10, rax
add r10, r9
add rdi, 0xfffffffffffffffc
mov rsi, r10
test rdi, rdi
je 0x1400af37c
mov r10, rdi
and r10, 3
je 0x1400af310
xor r11d, r11d
nop word [rax + rax]
movzx ebx, byte [rcx + r11]
imul rbx, r8
xor rbx, rsi
rol rbx, 0xb
mov rsi, rbx
imul rsi, rdx
inc r11
cmp r10, r11
jne 0x1400af2e0
mov r10, rdi
sub r10, r11
add rcx, r11
cmp rdi, 4
jae 0x1400af319
jmp 0x1400af37c
mov r10, rdi
cmp rdi, 4
jb 0x1400af37c
xor r11d, r11d
nop dword [rax]
movzx edi, byte [rcx + r11]
imul rdi, r8
xor rdi, rsi
rol rdi, 0xb
imul rdi, rdx
movzx esi, byte [rcx + r11 + 1]
imul rsi, r8
xor rsi, rdi
rol rsi, 0xb
imul rsi, rdx
movzx edi, byte [rcx + r11 + 2]
imul rdi, r8
xor rdi, rsi
rol rdi, 0xb
imul rdi, rdx
movzx esi, byte [rcx + r11 + 3]
imul rsi, r8
xor rsi, rdi
rol rsi, 0xb
imul rsi, rdx
add r11, 4
cmp r10, r11
jne 0x1400af320
mov rcx, rsi
shr rcx, 0x21
xor rcx, rsi
imul rcx, rax
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r9
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14011f880
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rax, qword [0x14018e218]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x40], 0
mov qword [rcx], 0
lea rsi, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rdi, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14011f950]
lea r9, [rsp + 0x30]
xor ecx, ecx
xor edx, edx
call fcn.14013235c
mov qword [rbx], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
cmp dword [rsp + 0x40], 0
jne 0x14011f928
mov rbx, qword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
nop
mov rcx, rsi
mov rdx, rdi
mov r8d, 0xffffffff
xor r9d, r9d
call rbx
cmp dword [rsp + 0x40], 0
je 0x14011f910
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14011fde0
xor eax, eax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x140132568
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140132698

Function at 0x140146aec
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140146ac9
call fcn.140134bd8
mov dword [rax], 0x16
call fcn.140135370
or eax, 0xffffffff
jmp 0x140146ae6
sub dword [rcx + 0x10], 1
jns 0x140146ad8
add rsp, 0x28
jmp fcn.14014e578
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140146aa8
Function at 0x2fc4cc750
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cd830
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cd152
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cd1ea
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cd1ce
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 0x2fc4cd1c2
cmp qword [rbp - 0x10], 0
je 0x2fc4cd1c2
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 0x2fc4cd188
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cd1eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cd2f0
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 0x2fc4cd318
mov eax, 0
jmp 0x2fc4cd366
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 0x2fc4cd341
mov eax, 0
jmp 0x2fc4cd366
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 0x2fc4cd361
mov eax, 0
jmp 0x2fc4cd366
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cd36c
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 0x2fc4cd3ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cd3e1
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 0x2fc4cd3e1
mov rax, qword [rbp - 8]
jmp 0x2fc4cd3ff
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 0x2fc4cd3b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000ae80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140014d60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140014d60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000aef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e00a4]
test esi, esi
mov rbx, rcx
jle 0x14000b020
mov rax, qword [0x1400e00a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000af3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000afc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000af20
mov rcx, rbx
call fcn.14000b940
test rax, rax
mov rdi, rax
je 0x14000b042
mov rax, qword [0x1400e00a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ba80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e00a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b027
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000afbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000afd0
add dword [0x1400e00a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400e00a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000afbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ae80
nop dword [rax]
xor esi, esi
jmp 0x14000af48
mov rax, qword [0x1400e00a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ae80
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000ae80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b5b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e0100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e00e0]
test rbx, rbx
je 0x14000b60c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000b603
test rsi, rsi
je 0x14000b603
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b5e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b940
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ba4d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b960
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b968
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b960
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b9bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000b9b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b960
add rax, 0x28
cmp rax, r9
jne 0x14000b9a0
xor eax, eax
ret

Function at 0x14000b9c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba4d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b9df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b9e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b9df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000ba80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba4d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000ba9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000baa8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140017290
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 dword [rsp + 0x87], 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 0x14001739a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140017372
add rax, 1
cmp rax, 0x6b
je 0x14001738f
cmp byte [rcx + rax], 0
jne 0x140017368
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001738f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140017383
Function at 0x140017710
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e0d20], 1
je 0x140017788
lea rdi, [0x1400e0d20]
mov rcx, rdi
call fcn.140017010
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016920
mov esi, dword [0x1400e0d20]
test esi, esi
jne 0x140017798
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2158], eax
je 0x1400b1636
mov dword [0x1400e0d20], 1
mov rcx, rbp
call fcn.140016c10
test rbx, rbx
je 0x140017788
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400173b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017768
mov ecx, 2
call qword [fcn.140014d60]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017768
call sub.msvcrt.dll_abort
nop

Function at 0x1400177c0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400174c0
cmp qword [0x1400e3048], 0
mov rbx, rax
je 0x1400178d8
test rax, rax
je 0x1400178d8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140016f10
cmp eax, 1
je 0x1400178e6
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
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b163c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b2158]
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 0x1400178ec
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 fcn.140017290
nop
jmp fcn.1400b163c

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

Disassembly:
sub rsp, 0x28
call fcn.140017710
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017920
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400177c0
Function at 0x140018090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x1400181b8
cmp eax, 1
je 0x1400180eb
call fcn.140017010
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016920
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018100
cmp r12d, 1
jne 0x140018190
mov rcx, rbp
call fcn.140016c10
test rdi, rdi
je 0x1400180eb
mov rcx, rdi
call fcn.1400173b0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140017490]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017710
mov ecx, dword [0x1400b2158]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400181f8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017710
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x1400181e0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017710
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x1400181d0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400180d6
mov ecx, 2
call qword [fcn.140014d60]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400180d6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400177c0
test rax, rax
jne 0x140018179
jmp 0x1400b1655
call fcn.1400177c0
test rax, rax
jne 0x140018155
jmp 0x1400b166e
call fcn.1400177c0
test rax, rax
jne 0x14001812f
jmp 0x1400b1664
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140018480
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140017710
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400184f8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140016f20
cmp esi, dword [rbx + 0x48]
jae 0x1400184d3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400184d3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140016f60
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400177c0
mov rbx, rax
jmp 0x1400184ad