joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800bfd24
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800b4430
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800b4430
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800bfe71
cmp rax, 0xffffffffffffffff
je 0x1800bfe71
xor edi, edi
test rbp, rbp
jle 0x1800bfe1f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800ac2e0
mov rbx, rax
test rax, rax
jne 0x1800bfdac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800bfe15
mov edx, 0x8000
mov ecx, r14d
call fcn.1800bd124
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800b26d8
cmp eax, 0xffffffff
je 0x1800bfdf5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800bfdbc
mov edx, r15d
mov ecx, r14d
call fcn.1800bd124
jmp 0x1800bfe15
cmp byte [rsi + 0x38], dil
je 0x1800bfe0c
cmp dword [rsi + 0x34], 5
jne 0x1800bfe0c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], Ordinal_15
cmp byte [rsi + 0x30], dil
je 0x1800bfe15
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800ac360
jmp 0x1800bfe83
jns 0x1800bfe83
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800b4430
cmp rax, 0xffffffffffffffff
jne 0x1800bfe3d
cmp byte [rsi + 0x30], dil
je 0x1800bfe83
jmp 0x1800bfe79
mov ecx, r14d
call fcn.1800bcd40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800bfe83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, Ordinal_15
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], Ordinal_15
jmp 0x1800bfe83
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800bfe7e
mov edi, dword [rsi + 0x2c]
jmp 0x1800bfe83
mov edi, reloc.LIBPQ.dll_Ordinal_22
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800b4430
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800c0320
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800c0348
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800c0348
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14108c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14108c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14108c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108c06f
add dl, dl
jne 0x14108c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108c0f6
xor eax, eax
add dl, dl
jne 0x14108c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108c1ad
add dl, dl
jne 0x14108c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14108c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14108c07e
mov eax, 1
add dl, dl
jne 0x14108c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14108c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108c0fb
sub eax, ebx
mov ebx, 1
jne 0x14108c14c
mov ecx, 1
add dl, dl
jne 0x14108c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14108c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108c15d
cmp eax, 0x7d00
jae 0x14108c19b
cmp eax, 0x500
jb 0x14108c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108c07e
cmp eax, 0x7f
ja 0x14108c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14108c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14108c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1401fe210
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x1401fe280
jg 0x1401fe240
sub edx, 0x49
cmp dl, 1
ja 0x1401fe290
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.1401fe2b0
cmp dl, 0x58
jne 0x1401fe290
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.1401fe580
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x1401fe2a0
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.1401fe030
add rsp, 0x30
pop rsi
jmp fcn.1401fc980
xor eax, eax
jmp 0x1401fe27a
Function at 0x1402076f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140212490
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.140212490
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 0x140207760
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1405ea0d4]
mov rbx, rcx
test esi, esi
jle 0x140207890
mov rax, qword [0x1405ea0d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1402077ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140207835
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140207790
mov rcx, rbx
call fcn.1402081e0
mov rdi, rax
test rax, rax
je 0x1402078b2
mov rax, qword [0x1405ea0d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140208320
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405ea0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140207897
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14020782e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140207840
add dword [0x1405ea0d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1405ea0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14020782e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1402076f0
nop dword [rax]
xor esi, esi
jmp 0x1402077b8
mov rax, qword [0x1405ea0d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1402076f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1402076f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140207e50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1405ea140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405ea120]
test rbx, rbx
je 0x140207eac
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 rsi, rsi
je 0x140207ea3
test eax, eax
jne 0x140207ea3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140207e88
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 0x1402081e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140208260
Capabilities:
Parse pe header

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

Function at 0x140208320
Capabilities:
Parse pe header

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

Function at 0x140209260
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140209290
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1402092b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1402092e0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140214f00
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1405eac80], 1
je 0x140214fa0
lea rdi, [0x1405eac80]
mov rcx, rdi
call fcn.1402148a0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1402141b0
mov esi, dword [0x1405eac80]
test esi, esi
jne 0x140214f78
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1403b07d8], eax
cmp eax, 0xffffffff
je 0x1402c8e46
mov dword [0x1405eac80], 1
mov rcx, rbp
call fcn.140214480
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140214b80
cmp esi, 1
je 0x140214f5c
mov ecx, 2
call qword [fcn.140212490]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140214f5c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x140214fb0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140214c90
mov rbx, rax
test rax, rax
je 0x1402150ac
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.140214790
cmp eax, 1
je 0x1402150b8
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 0x1402c8e4c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1403b07d8]
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 0x1402c8e4c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140214af0
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402150e0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140214fb0
Function at 0x1402158a0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x1405c17d0]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140215a00
cmp eax, 1
je 0x140215905
call fcn.1402148a0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.1402141b0
mov ebp, dword [rbx]
test ebp, ebp
je 0x140215928
cmp ebp, 1
jne 0x1402159c8
mov rcx, r13
call fcn.140214480
mov rcx, rdi
call fcn.140214b80
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x140215a4b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140214c60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x140215a38
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call rbp
test rax, rax
je 0x140215a20
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call rbp
test rax, rax
je 0x140215a10
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.140214480
mov rcx, rdi
call fcn.140214b80
jmp 0x140215905
mov ecx, 2
call qword [fcn.140212490]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140214480
mov rcx, rdi
call fcn.140214b80
jmp 0x140215905
mov eax, 0x16
jmp 0x140215907
call fcn.140214fb0
test rax, rax
jne 0x14021599e
jmp 0x1402c8e7e
call fcn.140214fb0
test rax, rax
jne 0x14021597b
jmp 0x1402c8e6f
call fcn.140214fb0
test rax, rax
jne 0x140215956
jmp 0x1402c8e65
call fcn.1402092b0
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 0x140215cd0
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.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140215d48
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1402147a0
cmp esi, dword [rbx + 0x48]
jae 0x140215d23
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140215d23
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1402147f0
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.140214fb0
mov rbx, rax
jmp 0x140215cfd
Function at 0x140215d60
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.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140215e58
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1402147a0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x140215e23
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140215e65
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140215e65
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
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1402147f0
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
call fcn.140214fb0
mov rbx, rax
jmp 0x140215d9a
mov rcx, r13
call fcn.1402147f0
mov eax, 0xc
jmp 0x140215e41

Function at 0x140215f00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140215f28
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140214fb0
test rax, rax
jne 0x140215f1a
add rsp, 0x28
ret

Function at 0x140215f90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140215fb8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140214fb0
test rax, rax
jne 0x140215faa
jmp 0x140215fae

Function at 0x1402160d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1405eac88]
test eax, eax
jne 0x1402160e8
xor eax, eax
add rsp, 0x28
ret
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216118
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1402160de
test byte [rax + 0x40], 3
je 0x1402160de
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1402160e0
call fcn.140214fb0
test rax, rax
je 0x1402160de
jmp 0x1402160fe

Function at 0x140216130
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216170
test ebx, ebx
jle 0x140216160
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.140214fb0
test rax, rax
jne 0x14021614d
add rsp, 0x20
pop rbx
ret
Function at 0x140216260
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1402162d8
test byte [rbx + 0x40], 0xc
jne 0x14021628f
mov eax, dword [0x1405eac88]
test eax, eax
jne 0x1402162a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1402141b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1402162c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1402162c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1402162ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140214480
call fcn.140214fb0
mov rbx, rax
test rax, rax
jne 0x14021627f
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 0x14021630a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140214480
call fcn.140216180
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140216388
call fcn.140213e70
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1402163d0
test rsi, rsi
je 0x14021639e
call fcn.140216260
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1402163c0
mov edx, edi
call fcn.140213f40
call fcn.140216260
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402163e0
call fcn.140216260
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140216260
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140216376
call fcn.140214fb0
mov rbx, rax
jmp 0x14021635c
call fcn.140214fb0
jmp 0x14021639e
Function at 0x140216320
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1402162d8
test byte [rbx + 0x40], 0xc
jne 0x14021628f
mov eax, dword [0x1405eac88]
test eax, eax
jne 0x1402162a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1402141b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1402162c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1402162c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1402162ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140214480
call fcn.140214fb0
mov rbx, rax
test rax, rax
jne 0x14021627f
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 0x14021630a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140214480
call fcn.140216180
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140216388
call fcn.140213e70
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1402163d0
test rsi, rsi
je 0x14021639e
call fcn.140216260
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1402163c0
mov edx, edi
call fcn.140213f40
call fcn.140216260
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402163e0
call fcn.140216260
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140216260
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140216376
call fcn.140214fb0
mov rbx, rax
jmp 0x14021635c
call fcn.140214fb0
jmp 0x14021639e

Function at 0x1402163f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140214f00
mov ecx, dword [0x1403b07d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140216460
test esi, esi
je 0x140216440
call fcn.140216260
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140216470
mov edx, esi
call fcn.140213f40
call fcn.140216260
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140216260
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140216260
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140214fb0
mov rbx, rax
jmp 0x140216411
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14021642a