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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x820
mov rbp, rcx
mov rbx, rdx
test rcx, rcx
je 0x1400b2c31
test rdx, rdx
je 0x1400b2c31
mov r10, qword [rcx]
test r10, r10
je 0x1400b2c31
mov eax, dword [rdx + 0x18]
mov r11, qword [rdx]
lea r12, [rsp + 0x20]
mov ecx, pe_nt_image_headers64
mov rdi, r12
mov r9, rax
shl rax, 0xa
lea rsi, [r11 + rax - 0x400]
rep movsq qword [rdi], qword [rsi]
mov esi, dword [rdx + 0x1c]
cmp esi, 1
jbe 0x1400b2b89
cmp esi, 3
jbe 0x1400b2c43
lea eax, [rsi - 4]
lea r13d, [r9 + r9 - 1]
mov edi, 3
and eax, 0xfffffffe
lea r14d, [rax + 5]
mov r8d, r13d
lea ecx, [r13 + r9]
mov rax, r12
xor edx, edx
shl r8, 0xa
mov r13, rcx
shl rcx, 0xa
add r8, r11
add rcx, r11
nop dword [rax]
movdqu xmm0, xmmword [r8 + rdx]
movdqu xmm1, xmmword [r8 + rdx + 0x10]
add rax, 0x20
pxor xmm0, xmmword [rax - 0x20]
pxor xmm1, xmmword [rax - 0x10]
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
movdqu xmm2, xmmword [rcx + rdx + 0x10]
movdqu xmm3, xmmword [rcx + rdx]
add rdx, 0x20
pxor xmm1, xmm2
pxor xmm0, xmm3
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
cmp rdx, 0x400
jne 0x1400b2b28
lea eax, [rdi + 2]
add r13d, r9d
cmp r14d, eax
je 0x1400b2c48
mov edi, eax
jmp 0x1400b2b03
lea r8, [rsp + 0x420]
mov rdi, r8
mov edx, dword [rbp + 8]
mov ecx, pe_nt_image_headers64
mov rsi, r12
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x420]
mov r9d, 0x400
mov rcx, r10
mov r8, rsi
call fcn.1400b5ec0
mov r9d, dword [0x140279540]
test r9d, r9d
je 0x1400b2bed
mov edx, 0x400
mov rcx, r12
call fcn.1400b26c0
mov r8d, dword [0x140279540]
test r8d, r8d
je 0x1400b2bed
mov edx, 0x400
mov rcx, rsi
call fcn.1400b26c0
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x1400b2c99
mov esi, dword [rbx + 0x10]
mov edx, dword [0x140279540]
mov rcx, qword [rbx]
shl esi, 0xa
test edx, edx
je 0x1400b2c18
test rcx, rcx
je 0x1400b2c18
mov rdx, rsi
call fcn.1400b26c0
mov eax, dword [rbx + 0x2c]
test eax, eax
jne 0x1400b2c31
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbx]
test rax, rax
je 0x1400b2caa
mov rdx, rsi
call rax
nop
add rsp, 0x820
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, 1
add edi, 1
lea r8, [rsp + 0x420]
mov ecx, edi
imul ecx, r9d
sub ecx, 1
mov edx, ecx
mov rax, r12
shl rdx, 0xa
add rdx, r11
nop dword [rax + rax]
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmmword [rax]
add rax, 0x10
add rdx, 0x10
movaps xmmword [rax - 0x10], xmm0
cmp rax, r8
jne 0x1400b2c70
add ecx, r9d
cmp edi, esi
jae 0x1400b2b91
add edi, 1
jmp 0x1400b2c5c
mov edx, dword [rbp + 8]
mov rcx, qword [rbp]
call fcn.1400b3f80
jmp 0x1400b2bf8
call fcn.1400d49b8
jmp 0x1400b2c31
Function at 0x1400b5c10
Capabilities:
Hash data using sha512

Disassembly:
pxor xmm0, xmm0
movabs r8, 0xbb67ae8584caa73b
movabs r9, 0x3c6ef372fe94f82b
movabs r10, 0xa54ff53a5f1d36f1
movabs rax, 0x6a09e667f3bcc908
movabs r11, 0x510e527fade682d1
or rdx, 0x1010000
mov qword [rcx + 8], r8
movabs r8, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x10], r9
xor rdx, rax
movabs r9, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x18], r10
movabs r10, 0x5be0cd19137e2179
mov qword [rcx + 0x20], r11
mov qword [rcx + 0x28], r8
mov qword [rcx + 0x30], r9
mov qword [rcx + 0x38], r10
mov qword [rcx + 0xd0], 0
mov qword [rcx], rdx
movups xmmword [rcx + 0x40], xmm0
ret
Function at 0x1400c8e40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140233e90]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400c8eb9
mov rcx, r10
call fcn.1400c8d10
test eax, eax
je 0x1400c8eb9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400c8eb6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400c8ead
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400c8eb9
add r8, 0x28
cmp r8, r9
jne 0x1400c8e98
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400c9570
Capabilities:
Get thread local storage value

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

Function at 0x1400d60d0
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 0x1400d61d2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400d61aa
add rax, 1
cmp rax, 0x6b
je 0x1400d61c7
cmp byte [rcx + rax], 0
jne 0x1400d61a0
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400d61c7
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
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400d61bb
Function at 0x1400d6570
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1402fa8d0], 1
je 0x1400d65e8
lea rdi, [0x1402fa8d0]
mov rcx, rdi
call fcn.1400d5e50
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400d5760
mov esi, dword [0x1402fa8d0]
test esi, esi
jne 0x1400d65f8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140217508], eax
cmp eax, 0xffffffff
je 0x1402160b6
mov dword [0x1402fa8d0], 1
mov rcx, rbp
call fcn.1400d5a50
test rbx, rbx
je 0x1400d65e8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400d61f0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400d65c8
mov ecx, 2
call qword [fcn.1400d4fa0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400d65c8
call sub.msvcrt.dll_abort
nop

Function at 0x1400d6620
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400d6300
cmp qword [0x1402ff050], 0
mov rbx, rax
je 0x1400d6738
test rax, rax
je 0x1400d6738
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 fcn.1400d5d50
cmp eax, 1
je 0x1400d6746
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 fcn.1402160bc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140217508]
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 0x1400d674c
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.1400d60d0
nop
jmp fcn.1402160bc

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

Disassembly:
sub rsp, 0x28
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d6780
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400d6620
Function at 0x1400d6ef0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400d7018
cmp eax, 1
je 0x1400d6f4b
call fcn.1400d5e50
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400d5760
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400d6f60
cmp r12d, 1
jne 0x1400d6ff0
mov rcx, rbp
call fcn.1400d5a50
test rdi, rdi
je 0x1400d6f4b
mov rcx, rdi
call fcn.1400d61f0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400d62d0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400d6570
mov ecx, dword [0x140217508]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400d7058
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400d6570
mov ecx, dword [0x140217508]
call r12
test rax, rax
je 0x1400d7040
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400d6570
mov ecx, dword [0x140217508]
call r12
test rax, rax
je 0x1400d7030
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400d6f36
mov ecx, 2
call qword [fcn.1400d4fa0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400d6f36
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400d6620
test rax, rax
jne 0x1400d6fd9
jmp 0x1402160d5
call fcn.1400d6620
test rax, rax
jne 0x1400d6fb5
jmp 0x1402160ee
call fcn.1400d6620
test rax, rax
jne 0x1400d6f8f
jmp 0x1402160e4
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 0x1400d72e0
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.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7358
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400d5d60
cmp esi, dword [rbx + 0x48]
jae 0x1400d7333
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400d7333
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400d5da0
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.1400d6620
mov rbx, rax
jmp 0x1400d730d
Function at 0x1400d7370
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7470
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400d5d60
cmp esi, dword [rbx + 0x48]
jae 0x1400d73f0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400d5da0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400d747d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x1400d747d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400d73bf
call fcn.1400d6620
mov rbx, rax
jmp 0x1400d73aa
mov rcx, r13
call fcn.1400d5da0
mov eax, 0xc
jmp 0x1400d73dd

Function at 0x1400d7500
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d7528
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400d6620
test rax, rax
jne 0x1400d751a
add rsp, 0x28
ret

Function at 0x1400d7590
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d75b8
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400d6620
test rax, rax
jne 0x1400d75aa
jmp 0x1400d75ae

Function at 0x1400d76d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402fa8d8]
test eax, eax
jne 0x1400d76e8
xor eax, eax
add rsp, 0x28
ret
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d7718
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400d76de
test byte [rax + 0x40], 3
je 0x1400d76de
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400d76e0
call fcn.1400d6620
test rax, rax
jne 0x1400d76fe
jmp 0x1400d76de

Function at 0x1400d7730
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d7770
test ebx, ebx
jle 0x1400d7760
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400d6620
test rax, rax
jne 0x1400d774d
add rsp, 0x20
pop rbx
ret
Function at 0x1400d7860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d78d8
test byte [rbx + 0x40], 0xc
jne 0x1400d788f
mov eax, dword [0x1402fa8d8]
test eax, eax
jne 0x1400d78a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400d5760
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400d78c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400d78c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400d78ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400d5a50
call fcn.1400d6620
mov rbx, rax
test rax, rax
jne 0x1400d787f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400d790a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400d5a50
call fcn.1400d7780
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400d7990
call fcn.1400d5510
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400d79c8
call fcn.1400d6570
mov ecx, dword [0x140217508]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7a20
test esi, esi
je 0x1400d79a6
call fcn.1400d7860
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400d7a00
mov edx, edi
call fcn.1400d55c0
call fcn.1400d7860
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d7a10
call fcn.1400d7860
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400d7860
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6570
mov ecx, dword [0x140217508]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400d7965
call fcn.1400d6620
mov rbx, rax
jmp 0x1400d7965
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d797e
call fcn.1400d6620
jmp 0x1400d79a6
call fcn.1400d6620
mov rbx, rax
jmp 0x1400d7961
Function at 0x1400d7920
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d78d8
test byte [rbx + 0x40], 0xc
jne 0x1400d788f
mov eax, dword [0x1402fa8d8]
test eax, eax
jne 0x1400d78a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400d5760
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400d78c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400d78c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400d78ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400d5a50
call fcn.1400d6620
mov rbx, rax
test rax, rax
jne 0x1400d787f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400d790a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400d5a50
call fcn.1400d7780
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400d7990
call fcn.1400d5510
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400d79c8
call fcn.1400d6570
mov ecx, dword [0x140217508]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7a20
test esi, esi
je 0x1400d79a6
call fcn.1400d7860
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400d7a00
mov edx, edi
call fcn.1400d55c0
call fcn.1400d7860
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d7a10
call fcn.1400d7860
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400d7860
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400d6570
mov ecx, dword [0x140217508]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400d7965
call fcn.1400d6620
mov rbx, rax
jmp 0x1400d7965
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d797e
call fcn.1400d6620
jmp 0x1400d79a6
call fcn.1400d6620
mov rbx, rax
jmp 0x1400d7961

Function at 0x1400d7a30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400d7aa0
test esi, esi
je 0x1400d7a80
call fcn.1400d7860
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400d7ab0
mov edx, esi
call fcn.1400d55c0
call fcn.1400d7860
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400d7860
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400d7860
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400d6620
mov rbx, rax
jmp 0x1400d7a51
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d7a6a
Function at 0x1400d8040
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.1400d6300
mov rbx, rax
test rax, rax
je 0x1400d8277
test rbp, rbp
je 0x1400d807b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400d80f0
test esi, esi
jne 0x1400d80e0
xor ecx, ecx
mov esi, 1
call r14
jmp 0x1400d80af
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x1400d80af
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.1400d5d50
cmp eax, 1
je 0x1400d82c7
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x1400d8260
xor edx, edx
test rdi, rdi
je 0x1400d815d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x1400d8288
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x1400d68d0]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400d8228
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400d8200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x1400d81e0
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400d81c7
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x1400d81a1
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x1400d81a1
mov rcx, qword [rbx + 0x30]
lea rsi, [rbx + 0x38]
test rcx, rcx
je 0x1400d823b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.1400d5be0
mov rcx, r12
call fcn.1400d5d50
cmp eax, 1
je 0x1400d82c7
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x1400d826d
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x1400d82b0
mov eax, 0xb
jmp 0x1400d81d1
call fcn.1400d6570
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d82c0
mov eax, dword [rax + 0xc0]
jmp 0x1400d8155
mov rcx, rbx
call fcn.1400d63d0
jmp 0x1400d8277
call fcn.1400d6620
jmp 0x1400d829e
call fcn.1400d60d0
nop
nop dword [rax]