joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bae0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x46bb1f
jb 0x46bb34
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x46bba0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x46bc70
jb 0x46bccf
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.0046ba80
aeskeygenassist xmm1, xmm0, 1
call fcn.0046baa0
aeskeygenassist xmm1, xmm2, 2
call fcn.0046ba80
aeskeygenassist xmm1, xmm0, 2
call fcn.0046baa0
aeskeygenassist xmm1, xmm2, 4
call fcn.0046ba80
aeskeygenassist xmm1, xmm0, 4
call fcn.0046baa0
aeskeygenassist xmm1, xmm2, 8
call fcn.0046ba80
aeskeygenassist xmm1, xmm0, 8
call fcn.0046baa0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0046ba80
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0046baa0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0046ba80
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0046baa0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0046ba80
jmp 0x46bd3d
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.0046b9e0
aeskeygenassist xmm1, xmm2, 2
call fcn.0046ba40
aeskeygenassist xmm1, xmm2, 4
call fcn.0046b9e0
aeskeygenassist xmm1, xmm2, 8
call fcn.0046ba40
aeskeygenassist xmm1, xmm2, 0x10
call fcn.0046b9e0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.0046ba40
aeskeygenassist xmm1, xmm2, 0x40
call fcn.0046b9e0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.0046ba40
jmp 0x46bd3d
aeskeygenassist xmm1, xmm0, 1
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 2
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 4
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 8
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.0046b9a0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.0046b9a0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x46bd4a
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x483480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x483573
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
movabs rdx, 0x32e2a322f56d656b
mov qword [rsp + 0x1e], rdx
mov dword [rsp + 0x26], 0x6c6cf3ed
movabs rdx, 0x303020506020906
mov qword [rsp + 0x2a], rdx
movabs rdx, 0x608060408020303
mov qword [rsp + 0x30], rdx
xor eax, eax
jmp 0x4834eb
movzx r9d, byte [rsp + rsi + 0x1e]
lea edx, [r9 + rdx]
lea edx, [rdx + 0x73]
mov byte [rsp + rdi + 0x1e], dl
mov byte [rsp + rsi + 0x1e], r8b
add rax, 2
cmp rax, 0xe
jge 0x48352d
movzx edx, byte [rsp + rax + 0x2a]
lea rsi, [rax + 1]
nop word [rax + rax]
cmp rsi, 0xe
jae 0x483565
movzx esi, byte [rsp + rax + 0x2b]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0xc
jae 0x483554
movzx r8d, byte [rsp + rdi + 0x1e]
lea r8d, [r8 + rdx]
lea r8d, [r8 + 0x73]
cmp rsi, 0xc
jb 0x4834d1
jmp 0x483548
xor eax, eax
lea rbx, [rsp + 0x1e]
mov ecx, 0xc
call fcn.00440040
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov eax, esi
mov ecx, 0xc
call fcn.00451020
mov eax, edi
mov ecx, 0xc
nop dword [rax + rax]
call fcn.00451020
mov rax, rsi
mov ecx, 0xe
call fcn.00451020
nop
call fcn.0044e940
jmp fcn.00483480
Function at 0x6d89c400
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8bd5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d89c588
mov rax, qword [0x6d8bd5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d89c44c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d89c4d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d89c430
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d89c5bd
mov rax, qword [0x6d8bd5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8bd5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d89c5a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d89c4ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d89c530
add dword [0x6d8bd5e4], 1
cmp edi, 8
jae 0x6d89c503
test dil, 4
jne 0x6d89c574
test edi, edi
je 0x6d89c4f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d89c58f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d89c4f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d89c51c
jmp 0x6d89c4f8
add rsi, qword [0x6d8bd5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d89c4ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d89c4f8
xor esi, esi
jmp 0x6d89c457
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d89c4f8
mov rax, qword [0x6d8bd5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d89cd10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8bd8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8bd8a0]
test rbx, rbx
je 0x6d89cd64
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d89cd5b
test rsi, rsi
je 0x6d89cd5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d89cd40
lea rcx, [0x6d8bd8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d89cfa0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d89cfb0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d89cfc0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d89d001
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d89cff8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d89d003
add rax, 0x28
cmp rax, r9
jne 0x6d89cfe4
xor eax, eax
ret

Function at 0x6d89d0a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ba1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d89d10d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89d10d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89d10d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d89d104
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d89d10f
add rax, 0x28
cmp rax, r9
jne 0x6d89d0f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d89d210
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ba1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d89d230
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89d228
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89d28d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d89d284
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d89d294
add rax, 0x28
cmp rax, r9
jne 0x6d89d270
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d89d2b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8ba1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d89d31e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89d31e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d89d31e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d89d31e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d89d315
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d89d325
add rcx, 0x28
cmp rcx, rax
jne 0x6d89d300
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d89d338
jmp 0x6d89d31e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d89d346
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d89d31e
test r9d, r9d
jg 0x6d89d330
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d89d6b0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000aec0
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.140014ec0
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.140014ec0
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 0x14000af30
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 0x14000b060
mov rax, qword [0x1400e00a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000af7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b005
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000af60
mov rcx, rbx
call fcn.14000b980
test rax, rax
mov rdi, rax
je 0x14000b082
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.14000bac0
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 0x14000b067
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000affe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b010
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 0x14000affe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000aec0
nop dword [rax]
xor esi, esi
jmp 0x14000af88
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.14000aec0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000aec0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b5f0
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 0x14000b64c
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 0x14000b643
test rsi, rsi
je 0x14000b643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b628
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 0x14000b980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400ba4b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b9a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b9a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b9a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b9fd
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 0x14000b9f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b9a0
add rax, 0x28
cmp rax, r9
jne 0x14000b9e0
xor eax, eax
ret

Function at 0x14000ba00
Capabilities:
Parse pe header

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

Function at 0x14000bac0
Capabilities:
Parse pe header

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

Function at 0x140017400
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 0x14001750a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x1400174e2
add rax, 1
cmp rax, 0x6b
je 0x1400174ff
cmp byte [rcx + rax], 0
jne 0x1400174d8
cmp eax, 0x6a
movsxd rdx, eax
je 0x1400174ff
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 0x1400174f3
Function at 0x140017880
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e0d20], 1
je 0x1400178f8
lea rdi, [0x1400e0d20]
mov rcx, rdi
call fcn.140017180
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016a90
mov esi, dword [0x1400e0d20]
test esi, esi
jne 0x140017908
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2168], eax
je 0x1400b16f6
mov dword [0x1400e0d20], 1
mov rcx, rbp
call fcn.140016d80
test rbx, rbx
je 0x1400178f8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140017520
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400178d8
mov ecx, 2
call qword [fcn.140014ec0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400178d8
call sub.msvcrt.dll_abort
nop

Function at 0x140017930
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140017630
cmp qword [0x1400e3048], 0
mov rbx, rax
je 0x140017a48
test rax, rax
je 0x140017a48
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.140017080
cmp eax, 1
je 0x140017a56
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.1400b16fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b2168]
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 0x140017a5c
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.140017400
nop
jmp fcn.1400b16fc

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

Disassembly:
sub rsp, 0x28
call fcn.140017880
mov ecx, dword [0x1400b2168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017a90
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140017930
Function at 0x140018200
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 0x140018328
cmp eax, 1
je 0x14001825b
call fcn.140017180
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016a90
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018270
cmp r12d, 1
jne 0x140018300
mov rcx, rbp
call fcn.140016d80
test rdi, rdi
je 0x14001825b
mov rcx, rdi
call fcn.140017520
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140017600]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017880
mov ecx, dword [0x1400b2168]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140018368
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017880
mov ecx, dword [0x1400b2168]
call r12
test rax, rax
je 0x140018350
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017880
mov ecx, dword [0x1400b2168]
call r12
test rax, rax
je 0x140018340
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140018246
mov ecx, 2
call qword [fcn.140014ec0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140018246
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017930
test rax, rax
jne 0x1400182e9
jmp 0x1400b1715
call fcn.140017930
test rax, rax
jne 0x1400182c5
jmp 0x1400b172e
call fcn.140017930
test rax, rax
jne 0x14001829f
jmp 0x1400b1724
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 0x1400185f0
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.140017880
mov ecx, dword [0x1400b2168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018668
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140017090
cmp esi, dword [rbx + 0x48]
jae 0x140018643
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140018643
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400170d0
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.140017930
mov rbx, rax
jmp 0x14001861d