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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x28]
add qword [rcx], r8
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rcx + 0x18]
mov rbx, qword [rcx + 0x20]
mov r12, rcx
mov r13, rdx
mov r14, r8
test eax, eax
je 0x1401ed3ea
mov r15d, 8
lea rcx, [rcx + rax + 0x38]
sub r15d, eax
cmp r8, r15
jb 0x1401ed4a6
mov r8, r15
sub r14, r15
add r13, r15
call sub.msvcrt.dll_memcpy
mov rcx, qword [r12 + 0x38]
mov edx, dword [r12 + 0x30]
xor rbx, rcx
test edx, edx
jle 0x1401ed3e7
xor eax, eax
nop dword [rax + rax]
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp eax, edx
jne 0x1401ed3b0
xor rdi, rcx
mov r9d, r14d
and r14, 0xfffffffffffffff8
lea r8, [r13 + r14]
and r9d, 7
cmp r13, r8
je 0x1401ed45b
mov edx, dword [r12 + 0x30]
nop dword [rax]
mov rcx, qword [r13]
xor rbx, rcx
test edx, edx
jle 0x1401ed44f
xor eax, eax
nop dword [rax]
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp edx, eax
jne 0x1401ed418
add r13, 8
xor rdi, rcx
cmp r8, r13
jne 0x1401ed408
test r9d, r9d
jne 0x1401ed48a
mov dword [r12 + 0x28], r9d
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], rbp
mov qword [r12 + 0x20], rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r10, [r12 + 0x38]
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r8 + rdx]
mov byte [r10 + rdx], cl
cmp eax, r9d
jb 0x1401ed491
jmp 0x1401ed460
call sub.msvcrt.dll_memcpy
add dword [r12 + 0x28], r14d
jmp 0x1401ed479
Function at 0x1402003b0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x1402df000]
lea rsi, [0x1402df000]
mov qword [rcx], rax
mov rax, qword [0x1402e0040]
lea rdi, [rcx + 8]
mov rbp, rcx
and rdi, 0xfffffffffffffff8
lea rbx, [rbp + 0x48]
mov r9, rbp
mov qword [rcx + 0x1040], rax
mov rax, rcx
sub rax, rdi
sub rsi, rax
add eax, 0x1048
shr eax, 3
mov ecx, eax
mov eax, 0x48
rep movsq qword [rdi], qword [rsi]
cmp edx, eax
cmovle eax, edx
movsxd r10, eax
mov rax, r8
add r10, r8
nop word [rax + rax]
lea rcx, [rax + 1]
movzx r11d, byte [rax]
cmp rcx, r10
cmovae rcx, r8
shl r11d, 8
movzx eax, byte [rcx]
lea rdx, [rcx + 1]
or eax, r11d
cmp rdx, r10
cmovae rdx, r8
shl eax, 8
lea rcx, [rdx + 1]
movzx edx, byte [rdx]
or edx, eax
cmp rcx, r10
cmovae rcx, r8
shl edx, 8
lea rax, [rcx + 1]
movzx ecx, byte [rcx]
or edx, ecx
cmp rax, r10
cmovae rax, r8
xor dword [r9], edx
add r9, 4
cmp rbx, r9
jne 0x140200418
mov qword [rsp + 0x28], 0
mov rdi, rbp
lea rsi, [rsp + 0x28]
nop
mov rdx, rbp
mov rcx, rsi
add rdi, 8
call fcn.1401ff3f0
mov rax, qword [rsp + 0x28]
mov qword [rdi - 8], rax
cmp rbx, rdi
jne 0x140200480
lea rdi, [rbp + 0x1048]
nop dword [rax]
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call fcn.1401ff3f0
mov rax, qword [rsp + 0x28]
mov qword [rbx - 8], rax
cmp rdi, rbx
jne 0x1402004a8
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140200670
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [r8 + 8]
mov rsi, rdx
mov edx, dword [rdx + 8]
mov rbx, rcx
mov rdi, r8
cmp edx, eax
jge 0x140200696
mov edx, eax
mov rax, rsi
mov rsi, r8
mov rdi, rax
mov rcx, rbx
call fcn.1400730b0
test rax, rax
je 0x140200800
mov r11d, dword [rdi + 8]
test r11d, r11d
jle 0x140200810
lea eax, [r11 - 1]
mov r9, qword [rsi]
mov r10, qword [rdi]
mov r8, qword [rbx]
cmp eax, 1
jbe 0x140200790
lea rax, [r9 + 8]
cmp r8, rax
je 0x140200790
lea rax, [r10 + 8]
cmp r8, rax
je 0x140200790
mov edx, r11d
xor eax, eax
shr edx, 1
shl rdx, 4
nop
movdqu xmm0, xmmword [r9 + rax]
movdqu xmm1, xmmword [r10 + rax]
pxor xmm0, xmm1
movups xmmword [r8 + rax], xmm0
add rax, 0x10
cmp rax, rdx
jne 0x1402006f0
mov eax, r11d
and eax, 0xfffffffe
test r11b, 1
je 0x140200726
mov rdx, qword [r9 + rax*8]
xor rdx, qword [r10 + rax*8]
mov qword [r8 + rax*8], rdx
mov r9d, dword [rsi + 8]
cmp r9d, r11d
jle 0x140200771
mov rdx, qword [rsi]
mov esi, r9d
mov r8, qword [rbx]
sub esi, r11d
lea eax, [rsi - 1]
cmp eax, 2
movsxd rax, r11d
jbe 0x140200760
lea rcx, [rax*8]
lea rdi, [r8 + rcx]
lea r10, [rdx + rcx + 8]
cmp rdi, r10
jne 0x1402007c0
nop dword [rax]
mov rcx, qword [rdx + rax*8]
mov qword [r8 + rax*8], rcx
add rax, 1
cmp r9d, eax
jg 0x140200760
mov dword [rbx + 8], r9d
mov rcx, rbx
call fcn.140073220
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
movsxd rax, r11d
xor edx, edx
shl rax, 3
nop dword [rax]
mov rcx, qword [r9 + rdx]
xor rcx, qword [r10 + rdx]
mov qword [r8 + rdx], rcx
add rdx, 8
cmp rax, rdx
jne 0x1402007a0
jmp 0x140200726
mov r10d, esi
add rcx, rdx
xor eax, eax
shr r10d, 1
shl r10, 4
nop
movdqu xmm2, xmmword [rcx + rax]
movups xmmword [rdi + rax], xmm2
add rax, 0x10
cmp rax, r10
jne 0x1402007d0
mov eax, esi
and eax, 0xfffffffe
add eax, r11d
and esi, 1
je 0x140200771
cdqe
mov rdx, qword [rdx + rax*8]
mov qword [r8 + rax*8], rdx
jmp 0x140200771
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor r11d, r11d
jmp 0x140200726
Function at 0x140207bc0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
test r8, r8
je 0x140207c4d
test rcx, rcx
je 0x140207c80
mov rcx, qword [rcx + 0x10]
test rdx, rdx
je 0x140207c60
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x20], rdx
mov rdx, rbp
mov qword [rsp + 0x28], r8
call fcn.1400c42b0
test rax, rax
je 0x140207c18
mov rax, qword [rax + 0x10]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x1402e64df]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140207c70
mov rcx, qword [rsi + 0x10]
lea rax, [0x1402e64d7]
mov rdx, rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.1400c42b0
test rax, rax
jne 0x140207c04
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbp, [rsp + 0x20]
jmp 0x140207c2f
mov rcx, rbx
call fcn.1400beb20
test rax, rax
jne 0x140207c08
jmp 0x140207c2b
mov rcx, r8
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400beb20
Function at 0x140214cb0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1402efcc0]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
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 + 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 0x140214dca
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140214da2
add rax, 1
cmp rax, 0x6b
je 0x140214dbf
cmp byte [rcx + rax], 0
jne 0x140214d98
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140214dbf
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140214db0

Function at 0x140215160
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14032f640], 1
je 0x1402151d8
lea rdi, [0x14032f640]
mov rcx, rdi
call fcn.140214a40
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1402179e0
mov esi, dword [0x14032f640]
test esi, esi
jne 0x1402151e8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140268748], eax
cmp eax, 0xffffffff
je 0x140262396
mov dword [0x14032f640], 1
mov rcx, rbp
call fcn.140217cb0
test rbx, rbx
je 0x1402151d8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140214de0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1402151b8
mov ecx, 2
call qword [fcn.1402336e0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1402151b8
call sub.msvcrt.dll_abort
nop
Function at 0x140215210
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140214ef0
cmp qword [0x140334048], 0
mov rbx, rax
je 0x140215328
test rax, rax
je 0x140215328
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.140218cd0
cmp eax, 1
je 0x140215336
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.14026239c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140268748]
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 0x14021533c
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.140214cb0
nop
jmp fcn.14026239c

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

Disassembly:
sub rsp, 0x28
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140215370
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140215210
Function at 0x140215b30
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x1402efcc0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140215c78
cmp eax, 1
je 0x140215b9d
call fcn.140214a40
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.1402179e0
mov r13d, dword [rbx]
test r13d, r13d
je 0x140215bc0
cmp r13d, 1
jne 0x140215c50
mov rcx, r12
call fcn.140217cb0
test rdi, rdi
je 0x140215b9d
mov rcx, rdi
call fcn.140214de0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x140215ccb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140214ec0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140215160
mov ecx, dword [0x140268748]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x140215cb8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140215160
mov ecx, dword [0x140268748]
call r13
test rax, rax
je 0x140215ca0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140215160
mov ecx, dword [0x140268748]
call r13
test rax, rax
je 0x140215c88
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140215b88
mov ecx, 2
call qword [fcn.1402336e0]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140215b88
mov eax, 0x16
jmp 0x140215b9f
call fcn.140215210
test rax, rax
jne 0x140215c39
jmp 0x1402623ce
call fcn.140215210
test rax, rax
jne 0x140215c15
jmp 0x1402623bf
call fcn.140215210
test rax, rax
jne 0x140215bef
jmp 0x1402623b5
call fcn.140226cf0
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x140215f50
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.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140215fc8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140218ce0
cmp esi, dword [rbx + 0x48]
jae 0x140215fa3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140215fa3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140218d20
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.140215210
mov rbx, rax
jmp 0x140215f7d
Function at 0x140215fe0
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.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1402160e0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140218ce0
cmp esi, dword [rbx + 0x48]
jae 0x140216060
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.140218d20
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 fcn.140233e38
mov rdi, rax
test rax, rax
je 0x1402160ed
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call fcn.140233e38
mov r14, rax
test rax, rax
je 0x1402160ed
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 0x14021602f
call fcn.140215210
mov rbx, rax
jmp 0x14021601a
mov rcx, r13
call fcn.140218d20
mov eax, 0xc
jmp 0x14021604d

Function at 0x140216170
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216198
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140215210
test rax, rax
jne 0x14021618a
add rsp, 0x28
ret

Function at 0x140216200
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216228
add rax, 0x18
add rsp, 0x28
ret
call fcn.140215210
test rax, rax
jne 0x14021621a
jmp 0x14021621e

Function at 0x140216340
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14032f648]
test eax, eax
jne 0x140216358
xor eax, eax
add rsp, 0x28
ret
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216388
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14021634e
test byte [rax + 0x40], 3
je 0x14021634e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140216350
call fcn.140215210
test rax, rax
jne 0x14021636e
jmp 0x14021634e

Function at 0x1402163a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402163e0
test ebx, ebx
jle 0x1402163d0
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.140215210
test rax, rax
jne 0x1402163bd
add rsp, 0x20
pop rbx
ret
Function at 0x1402164d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140216548
test byte [rbx + 0x40], 0xc
jne 0x1402164ff
mov eax, dword [0x14032f648]
test eax, eax
jne 0x140216510
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1402179e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140216533
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140216533
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14021655c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140217cb0
call fcn.140215210
mov rbx, rax
test rax, rax
jne 0x1402164ef
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 0x14021657a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140217cb0
call fcn.1402163f0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140216600
call fcn.140217770
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140216638
call fcn.140215160
mov ecx, dword [0x140268748]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140216690
test esi, esi
je 0x140216616
call fcn.1402164d0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140216670
mov edx, edi
call fcn.140217840
call fcn.1402164d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216680
call fcn.1402164d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1402164d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140215160
mov ecx, dword [0x140268748]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1402165d5
call fcn.140215210
mov rbx, rax
jmp 0x1402165d5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1402165ee
call fcn.140215210
jmp 0x140216616
call fcn.140215210
mov rbx, rax
jmp 0x1402165d1
Function at 0x140216590
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140216548
test byte [rbx + 0x40], 0xc
jne 0x1402164ff
mov eax, dword [0x14032f648]
test eax, eax
jne 0x140216510
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1402179e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140216533
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140216533
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14021655c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140217cb0
call fcn.140215210
mov rbx, rax
test rax, rax
jne 0x1402164ef
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 0x14021657a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140217cb0
call fcn.1402163f0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140216600
call fcn.140217770
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140216638
call fcn.140215160
mov ecx, dword [0x140268748]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140216690
test esi, esi
je 0x140216616
call fcn.1402164d0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140216670
mov edx, edi
call fcn.140217840
call fcn.1402164d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216680
call fcn.1402164d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1402164d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140215160
mov ecx, dword [0x140268748]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1402165d5
call fcn.140215210
mov rbx, rax
jmp 0x1402165d5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1402165ee
call fcn.140215210
jmp 0x140216616
call fcn.140215210
mov rbx, rax
jmp 0x1402165d1

Function at 0x1402166a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140216710
test esi, esi
je 0x1402166f0
call fcn.1402164d0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140216720
mov edx, esi
call fcn.140217840
call fcn.1402164d0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1402164d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1402164d0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140215210
mov rbx, rax
jmp 0x1402166c1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1402166da