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

Disassembly:
test rcx, rcx
je 0x14005d822
test rdx, rdx
je 0x14005d822
xor r8d, r8d
xor eax, eax
mov r9b, byte [rcx + r8]
xor r9b, byte [rdx + r8]
inc r8
movzx r9d, r9b
or eax, r9d
cmp r8, 0x10
jne 0x14005d7ff
test eax, eax
je 0x14005d827
mov eax, 0xffffff2b
jmp 0x14005d827
mov eax, 0xffffff53
ret

Function at 0x14006796d
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
test r8, r8
je 0x1400679ac
test rcx, rcx
je 0x1400679ac
mov eax, 0xffffff56
cmp edx, 0x20
jne 0x1400679b1
mov r8d, 0x20
mov rdx, rbx
call fcn.140041bab
test eax, eax
jne 0x1400679b1
mov dl, byte [rbx + 0x1f]
and byte [rbx], 0xf8
and edx, 0x7f
or edx, 0x40
mov byte [rbx + 0x1f], dl
jmp 0x1400679b1
mov eax, 0xffffff53
add rsp, 0x20
pop rbx
ret

Function at 0x140067e3c
Capabilities:
Encrypt data using curve25519

Disassembly:
mov r9d, 1
jmp fcn.140067d81
Function at 0x140068c4f
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
xor r13d, r13d
mov ebx, 0xfe
lea r14, [rsp + 0x48]
mov qword [rsp + 0x1b0], rcx
mov r15, rdx
mov rdx, r8
mov rcx, r14
lea rbp, [rsp + 0xc0]
lea rsi, [rsp + 0xe8]
call fcn.140067ee1
lea rax, [rsp + 0x70]
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.1400682b7
lea rcx, [rsp + 0x98]
call fcn.1400682d1
mov rcx, rbp
call fcn.1400682e7
mov rcx, rsi
call fcn.1400682b7
mov edx, ebx
mov ecx, ebx
lea r12, [rsp + 0x110]
mov r8d, r13d
sar edx, 3
and ecx, 7
lea rdi, [rsp + 0x138]
movsxd rdx, edx
movzx edx, byte [r15 + rdx]
sar edx, cl
mov rcx, qword [rsp + 0x30]
and edx, 1
xor r8d, edx
mov r13d, edx
mov rdx, rbp
mov dword [rsp + 0x3c], r8d
call fcn.14006830e
lea rax, [rsp + 0x98]
mov r8d, dword [rsp + 0x3c]
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.14006830e
mov r8, rsi
mov rdx, rbp
mov rcx, r12
call fcn.1400683a4
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1400683a4
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
mov rcx, rdx
call fcn.1400683e1
mov rcx, qword [rsp + 0x28]
mov r8, rsi
mov rdx, rbp
call fcn.1400683e1
mov r8, qword [rsp + 0x30]
mov rdx, r12
mov rcx, rsi
call fcn.14006841e
mov rdx, qword [rsp + 0x28]
mov r8, rdi
mov rcx, rdx
call fcn.14006841e
mov rdx, rdi
mov rcx, r12
call fcn.1400686f2
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1400686f2
mov r8, qword [rsp + 0x28]
mov rdx, rsi
mov rcx, rbp
call fcn.1400683e1
mov r8, qword [rsp + 0x28]
mov rcx, r8
call fcn.1400683a4
mov rcx, qword [rsp + 0x30]
mov r8, r12
mov rdx, rdi
call fcn.14006841e
mov r8, r12
mov rdx, rdi
mov rcx, rdi
call fcn.1400683a4
mov rdx, qword [rsp + 0x28]
mov rcx, rdx
call fcn.1400686f2
mov rdx, rdi
mov rcx, rsi
call fcn.14006892e
mov rdx, rbp
mov rcx, rbp
call fcn.1400686f2
mov r8, rsi
mov rdx, r12
mov rcx, r12
call fcn.1400683e1
mov r8, qword [rsp + 0x28]
mov rdx, r14
mov rcx, rsi
call fcn.14006841e
mov rcx, qword [rsp + 0x28]
mov r8, r12
mov rdx, rdi
call fcn.14006841e
sub ebx, 1
jae 0x140068cc7
mov rcx, qword [rsp + 0x30]
mov r8d, r13d
mov rdx, rbp
call fcn.14006830e
mov rcx, qword [rsp + 0x28]
mov r8d, r13d
mov rdx, rsi
call fcn.14006830e
mov rdx, qword [rsp + 0x28]
mov rcx, rdx
call fcn.140068a58
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
mov rcx, rdx
call fcn.14006841e
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x1b0]
call fcn.1400680ad
xor eax, eax
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14006b6bd
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
sub rsp, 0x50
xor r13d, r13d
mov rdi, qword [rsp + 0xb0]
mov rbp, rdx
mov r12d, r8d
mov rsi, r9
test rdi, rdi
je 0x14006b6e8
mov r13d, dword [rdi + 0x10]
mov rdi, qword [rdi]
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov rax, qword [rcx]
cmp qword [rax + 0x2d0], 0
je 0x14006b73a
mov qword [rsp + 0x80], rcx
call fcn.14002065e
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x48]
mov r8d, r12d
mov rdx, rax
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdx
mov rdx, rbp
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rdi
call qword [rax + 0x2d0]
jmp 0x14006b76a
mov rdx, qword [rcx + 0x98]
mov rcx, qword [rsp + 0xa8]
call fcn.140044fd4
test eax, eax
jne 0x14006b7af
mov r9, qword [rsp + 0xa8]
lea r8, [rsp + 0x48]
mov edx, r12d
mov rcx, rbp
call fcn.140044400
mov edx, eax
lea eax, [rax - 1]
mov r8, qword [rsp + 0xa0]
lea r10, [rsp + 0x48]
shr eax, 0x1f
lea r9d, [rax - 1]
neg eax
movsx ecx, r9b
and eax, edx
and ecx, edx
xor edx, edx
mov dword [r8], ecx
mov r8b, byte [rsi + rdx]
mov cl, byte [rdx + r10]
xor ecx, r8d
and ecx, r9d
xor ecx, r8d
mov byte [rsi + rdx], cl
inc rdx
cmp rdx, 8
jne 0x14006b792
add rsp, 0x50
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14006c403
Capabilities:
Hash data using sha512

Disassembly:
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx + 0x80], 0
mov rbx, rcx
je 0x14006c41b
call fcn.14006c39d
mov ecx, 0x3f0
call fcn.14004d018
mov qword [rbx + 0x80], rax
mov rdx, rax
test rax, rax
je 0x14006c4b1
xor eax, eax
mov rdi, rdx
mov ecx, 0xfc
rep stosd dword [rdi], eax
mov rax, qword [rbx + 0x80]
mov rdx, qword [rbx + 0xb0]
mov r8d, dword [rbx + 0x1410]
lea rcx, [rax + 0x1b0]
call fcn.14004268b
test eax, eax
jne 0x14006c4b6
mov rax, qword [rbx + 0x80]
mov rdx, qword [rbx + 0xb0]
mov r8d, dword [rbx + 0x1410]
lea rcx, [rax + 0x230]
call fcn.14004b239
test eax, eax
jne 0x14006c4b6
mov rax, qword [rbx + 0x80]
mov rdx, qword [rbx + 0xb0]
mov r8d, dword [rbx + 0x1410]
lea rcx, [rax + 0x310]
add rsp, 0x28
pop rbx
pop rdi
jmp fcn.14004af18
mov eax, 0xffffff83
add rsp, 0x28
pop rbx
pop rdi
ret
Function at 0x14006f2b9
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov r12d, dword [rsp + 0x140]
lea r13d, [r12 - 1]
movsxd rdi, r13d
add rdi, rdx
mov ebx, r9d
mov rsi, rcx
mov ecx, r9d
movzx r14d, byte [rdi]
sub ebx, r12d
mov r9d, 0xff
mov rbp, rdx
add ebx, r14d
mov r11d, r14d
shr ebx, 0x1f
dec ebx
cmp r13d, r9d
cmovle r9d, r13d
xor eax, eax
cmp r9d, eax
jle 0x14006f335
mov edx, r13d
sub edx, eax
movsxd rdx, edx
mov r10b, byte [rbp + rdx]
mov edx, r14d
sub edx, eax
inc eax
shr edx, 0x1f
xor r10d, r11d
dec edx
and r10d, edx
or ebx, r10d
jmp 0x14006f30c
mov r9d, r12d
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x20], r8d
lea rdx, [rsp + 0x50]
sub r9d, r8d
mov dword [rsp + 0x38], 1
mov r8, rbp
dec r9d
mov dword [rsp + 0x30], 1
sub r9d, ecx
mov dword [rsp + 0x28], eax
mov rcx, rsi
call qword [rsi + 0x108]
movzx r9d, byte [rsi + 0x2f7]
lea r10d, [r12 - 0x100]
mov dword [rsp + 0x44], eax
movzx eax, byte [rdi]
sub r10d, r9d
lea r8d, [r9 - 1]
mov rcx, r9
sub r13d, eax
mov eax, r10d
shr eax, 0x1f
mov esi, r13d
sub esi, r9d
dec eax
and r10d, eax
mov eax, esi
shr eax, 0x1f
dec eax
and esi, eax
mov eax, r9d
and eax, r8d
mov dword [rsp + 0x48], eax
jne 0x14006f3ca
mov r11d, r9d
sub r11d, r10d
add r11d, esi
and r11d, r8d
jmp 0x14006f3e8
cmp r9d, 0x14
je 0x14006f3d9
xor r11d, r11d
cmp r9d, 0x30
jne 0x14006f3e8
mov eax, r9d
sub eax, r10d
add eax, esi
cdq
idiv r9d
mov r11d, edx
lea rdx, [rsp + 0x90]
xor eax, eax
lea r15, [rsp + 0x8f]
mov rdi, rdx
rep stosb byte [rdi], al
mov edi, r12d
mov eax, r13d
sub edi, esi
sub eax, r10d
mov dword [rsp + 0x4c], edi
cmp r12d, r10d
jle 0x14006f459
mov r13d, r10d
movsxd r14, r10d
xor edx, edx
sub r13d, esi
add r14, rbp
cmp r9d, edx
jle 0x14006f451
inc rdx
cmp dword [rsp + 0x4c], r13d
je 0x14006f451
mov edi, eax
mov ecx, r13d
inc r13d
sub edi, edx
shr ecx, 0x1f
shr edi, 0x1f
dec ecx
and cl, byte [r14 + rdx - 1]
dec edi
and ecx, edi
or byte [r15 + rdx], cl
jmp 0x14006f421
add r10d, r9d
sub eax, r9d
jmp 0x14006f40e
cmp dword [rsp + 0x48], 0
jne 0x14006f48f
xor eax, eax
xor ecx, ecx
lea r10, [rsp + 0x50]
cmp r9d, eax
jle 0x14006f4f5
lea edx, [r11 + rax]
inc rax
and edx, r8d
movsxd rdx, edx
mov dl, byte [rsp + rdx + 0x90]
xor dl, byte [rax + r10 - 1]
or ecx, edx
jmp 0x14006f469
cmp r9d, 0x14
jne 0x14006f4c3
xor r8d, r8d
xor ecx, ecx
lea r10, [rsp + 0x50]
lea eax, [r11 + r8]
inc r8
cdq
idiv r9d
movsxd rdx, edx
mov al, byte [rsp + rdx + 0x90]
xor al, byte [r8 + r10 - 1]
or ecx, eax
cmp r8, 0x14
jne 0x14006f49f
jmp 0x14006f4f5
xor ecx, ecx
cmp r9d, 0x30
jne 0x14006f4f5
xor r8d, r8d
lea r10, [rsp + 0x50]
lea eax, [r11 + r8]
inc r8
cdq
idiv r9d
movsxd rdx, edx
mov al, byte [rsp + rdx + 0x90]
xor al, byte [r8 + r10 - 1]
or ecx, eax
cmp r8, 0x30
jne 0x14006f4d3
or ecx, ebx
mov ebx, dword [rsp + 0x44]
not ecx
mov eax, ecx
shr al, 4
and eax, ecx
mov edx, eax
shr dl, 2
and edx, eax
mov eax, edx
shr al, 1
and eax, edx
mov edx, 0
movzx eax, al
add eax, ebx
dec eax
mov eax, 0xfffffecf
cmove eax, edx
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007c890
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.140089f70
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 [rbp - 8]
mov ecx, 2
call fcn.140089f70
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 0x14007c900
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1400c6ce4]
mov rbx, rcx
test esi, esi
jle 0x14007ca30
mov rax, qword [0x1400c6ce8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14007c94b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14007c9d3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14007c930
mov rcx, rbx
call fcn.14007d3b0
mov rdi, rax
test rax, rax
je 0x14007ca52
mov rax, qword [0x1400c6ce8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14007d4f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400c6ce8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14007ca37
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14007c9cc
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14007c9e0
add dword [0x1400c6ce4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400c6ce8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14007c9cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14007c890
nop word [rax + rax]
xor esi, esi
jmp 0x14007c958
mov rax, qword [0x1400c6ce8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14007c890
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14007c890
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14007cfe0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1400c6d40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400c6d20]
test rbx, rbx
je 0x14007d045
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14007d03c
test eax, eax
jne 0x14007d03c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14007d020
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14007d3b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14007d430
Capabilities:
Parse pe header

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

Function at 0x14007d4f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400acc70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14007d50f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14007d518
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14008b0a0
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rbp - 0x68], rdx
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
movabs rax, 0x20646165726874
mov qword [rbp - 0x58], rdx
xor edx, edx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbp - 0x49]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rbp - 0x49], 0
je 0x14008b192
mov eax, 0x28
lea rcx, [rbp - 0x70]
jmp 0x14008b16a
add rax, 1
cmp rax, 0x6b
je 0x14008b187
cmp byte [rcx + rax], 0
jne 0x14008b160
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14008b187
cdqe
mov byte [rbp + rax - 0x70], 0xa
movsxd rax, edx
mov byte [rbp + rax - 0x70], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rbp - 0x70]
jmp 0x14008b178

Function at 0x14008b560
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
cmp dword [0x1400c78e0], 1
je 0x14008b5e0
lea rdi, [0x1400c78e0]
mov rcx, rdi
call fcn.14008ae00
lea r12, [rax + 8]
mov rbx, rax
mov rcx, r12
call fcn.14008a760
mov esi, dword [0x1400c78e0]
test esi, esi
jne 0x14008b5f0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140092248], eax
cmp eax, 0xffffffff
je 0x140090596
mov dword [0x1400c78e0], 1
mov rcx, r12
call fcn.14008aa50
test rbx, rbx
je 0x14008b5e0
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
jmp fcn.14008b1b0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
cmp esi, 1
je 0x14008b5bf
mov ecx, 2
call qword [fcn.140089f70]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14008b5bf
Function at 0x14008b620
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
call fcn.14008b2e0
cmp qword [0x1400ca048], 0
mov rbx, rax
je 0x14008b740
test rax, rax
je 0x14008b740
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.14008ef80
cmp eax, 1
je 0x14008b750
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call r12
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call r12
lea r9, [rbx + 0x28]
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14009059c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140092248]
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 0x14008b756
mov rax, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
call fcn.14008b0a0
nop
jmp fcn.14009059c

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call fcn.14008b560
mov ecx, dword [0x140092248]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008b788
add rsp, 0x20
pop rbp
ret
add rsp, 0x20
pop rbp
jmp fcn.14008b620

Function at 0x14008c560
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call fcn.14008b560
mov ecx, dword [0x140092248]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008c590
mov rax, qword [rax + 0x30]
add rsp, 0x20
pop rbp
ret
call fcn.14008b620
test rax, rax
jne 0x14008c57e
add rsp, 0x20
pop rbp
ret

Function at 0x14008c600
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call fcn.14008b560
mov ecx, dword [0x140092248]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008c630
add rax, 0x18
add rsp, 0x20
pop rbp
ret
call fcn.14008b620
test rax, rax
jne 0x14008c61e
jmp 0x14008c622
Function at 0x14008c740
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov eax, dword [0x1400c78e8]
test eax, eax
jne 0x14008c760
xor eax, eax
add rsp, 0x20
pop rbp
ret
call fcn.14008b560
mov ecx, dword [0x140092248]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008c790
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14008c752
test byte [rax + 0x40], 3
je 0x14008c752
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14008c754
call fcn.14008b620
test rax, rax
jne 0x14008c776
jmp 0x14008c752

Function at 0x14008c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ebx, ecx
call fcn.14008b560
mov ecx, dword [0x140092248]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008c7e8
test ebx, ebx
jle 0x14008c7d8
lock add dword [rax + 0x20], 1
add rsp, 0x28
pop rbx
pop rbp
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x28
pop rbx
pop rbp
ret
call fcn.14008b620
test rax, rax
jne 0x14008c7c3
add rsp, 0x28
pop rbx
pop rbp
ret
Function at 0x14008c8f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.14008b560
mov ecx, dword [0x140092248]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14008c968
test byte [rbx + 0x40], 0xc
jne 0x14008c925
mov eax, dword [0x1400c78e8]
test eax, eax
jne 0x14008c930
add rsp, 0x20
pop rbx
pop rsi
pop rbp
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14008a760
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14008c953
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14008c953
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14008c97d
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rbp
jmp fcn.14008aa50
call fcn.14008b620
mov rbx, rax
test rax, rax
jne 0x14008c915
add rsp, 0x20
pop rbx
pop rsi
pop rbp
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 0x14008c99b
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14008aa50
call fcn.14008c800
nop
nop dword [rax]
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
test rcx, rcx
je 0x14008ca28
call fcn.14008e0b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14008ca60
call fcn.14008b560
mov ecx, dword [0x140092248]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14008cab0
test esi, esi
je 0x14008ca3e
call fcn.14008c8f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14008ca90
mov edx, edi
call fcn.14008e170
call fcn.14008c8f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14008b560
mov ecx, dword [0x140092248]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008caa0
call fcn.14008c8f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14008c8f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14008b560
mov ecx, dword [0x140092248]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14008c9fb
call fcn.14008b620
mov rbx, rax
jmp 0x14008c9fb
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14008ca14
call fcn.14008b620
jmp 0x14008ca3e
call fcn.14008b620
mov rbx, rax
jmp 0x14008c9f7