joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4519c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x451b38
movzx edx, byte [rax]
nop
test edx, edx
jne 0x4519fc
test r8b, r8b
jne 0x4519fc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x451a0f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x451af8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x451ae6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x451adc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x451a63
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x451aa6
mov eax, 1
cmp rax, rbx
ja 0x451a95
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.004653c0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x451ad4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x451a9d
mov r8d, eax
mov eax, r10d
jmp 0x451a68
mov rcx, rbx
call fcn.00465300
xor eax, eax
mov rcx, rbx
call fcn.00465300
mov eax, r8d
mov rcx, rbx
call fcn.004653c0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x451b2e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x451af1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x451a15
mov eax, edx
mov rcx, rbx
call fcn.00465300
xor eax, eax
mov rcx, rbx
nop dword [rax]
call fcn.00465300
nop
int3
Function at 0x4593a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45946a
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
lea rdx, [rsp + 0x18]
movups xmmword [rdx], xmm15
lea rdx, [rsp + 0x28]
movups xmmword [rdx], xmm15
lea rdx, [rsp + 0x38]
movups xmmword [rdx], xmm15
lea rdx, [rsp + 0x48]
movups xmmword [rdx], xmm15
lea rdx, [0x004594a0]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00462ac0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
nop
call fcn.00462c00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004593a0
Function at 0x464da0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00e45620]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00e450d4], 0
je 0x464dd6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00e458e0]
aesenc xmm0, xmmword [0x00e458f0]
aesenc xmm0, xmmword [0x00e45900]
movq rax, xmm0
ret
jmp 0x40a420

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1401319c5
Capabilities:
Access peb ldr_data
Execute syscall
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
invalid
inc rcx
rcl r13d, 0xf4
jnp 0x140130351
ret
int3
cmp dword [rbx + 0xc], 0xfffffffe
jne 0x14013189f
pop rbp
jmp 0x140131620
je 0x1401328cd
cmp dword [rbx], 0x54494e49
je 0x1401328cd
jmp 0x1401316d3
xor dil, dil
cmp byte [rbx], 0x2e
jmp 0x14013195a
cmc
invalid
jne 0x140131e89
mov eax, dword [rbx + 1]
cmp eax, 0x74616469
jne 0x140131e74
cmp byte [rbx + 5], 0x61
jmp 0x140131991
jne 0x140131e89
mov dil, 1
jmp 0x140131e89
jle 0x140131a0c
mov ebp, 0x19743ad6
movabs rsi, 0x32bc8fffffc15e9
inc r13
ret
je 0x1401328cd
cmp dword [rbx + 0x14], r13d
je 0x1401328cd
cmp byte [rbx], 0x2e
invalid
invalid
invalid
Function at 0x14000b260
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.140015140
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.140015140
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 0x14000b2d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f49c4]
test esi, esi
mov rbx, rcx
jle 0x14000b400
mov rax, qword [0x1400f49c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b31b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b3a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b300
mov rcx, rbx
call fcn.14000bd20
test rax, rax
mov rdi, rax
je 0x14000b422
mov rax, qword [0x1400f49c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000be60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f49c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b407
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b39e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b3b0
add dword [0x1400f49c4], 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 [0x1400f49c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b39e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b260
nop dword [rax]
xor esi, esi
jmp 0x14000b328
mov rax, qword [0x1400f49c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b260
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000b260
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b990
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f4a20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f4a00]
test rbx, rbx
je 0x14000b9ec
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 0x14000b9e3
test rsi, rsi
je 0x14000b9e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b9c8
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 0x14000bd20
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000bda0
Capabilities:
Parse pe header

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

Function at 0x14000be60
Capabilities:
Parse pe header

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

Function at 0x140017670
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 0x14001777a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140017752
add rax, 1
cmp rax, 0x6b
je 0x14001776f
cmp byte [rcx + rax], 0
jne 0x140017748
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001776f
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 0x140017763
Function at 0x140017af0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400f5640], 1
je 0x140017b68
lea rdi, [0x1400f5640]
mov rcx, rdi
call fcn.1400173f0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016d00
mov esi, dword [0x1400f5640]
test esi, esi
jne 0x140017b78
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b3178], eax
je 0x1400b25f6
mov dword [0x1400f5640], 1
mov rcx, rbp
call fcn.140016ff0
test rbx, rbx
je 0x140017b68
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140017790
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017b48
mov ecx, 2
call qword [fcn.140015140]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017b48
call sub.msvcrt.dll_abort
nop

Function at 0x140017ba0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400178a0
cmp qword [0x1400f8048], 0
mov rbx, rax
je 0x140017cb8
test rax, rax
je 0x140017cb8
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.1400172f0
cmp eax, 1
je 0x140017cc6
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.1400b25fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b3178]
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 0x140017ccc
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.140017670
nop
jmp fcn.1400b25fc

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

Disassembly:
sub rsp, 0x28
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017d00
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140017ba0
Function at 0x140018470
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 0x140018598
cmp eax, 1
je 0x1400184cb
call fcn.1400173f0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016d00
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400184e0
cmp r12d, 1
jne 0x140018570
mov rcx, rbp
call fcn.140016ff0
test rdi, rdi
je 0x1400184cb
mov rcx, rdi
call fcn.140017790
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140017870]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017af0
mov ecx, dword [0x1400b3178]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1400185d8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call r12
test rax, rax
je 0x1400185c0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call r12
test rax, rax
je 0x1400185b0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400184b6
mov ecx, 2
call qword [fcn.140015140]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400184b6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017ba0
test rax, rax
jne 0x140018559
jmp 0x1400b2615
call fcn.140017ba0
test rax, rax
jne 0x140018535
jmp 0x1400b262e
call fcn.140017ba0
test rax, rax
jne 0x14001850f
jmp 0x1400b2624
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 0x140018860
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.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400188d8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140017300
cmp esi, dword [rbx + 0x48]
jae 0x1400188b3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400188b3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140017340
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.140017ba0
mov rbx, rax
jmp 0x14001888d
Function at 0x1400188f0
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, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018a00
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140017300
cmp esi, dword [rbx + 0x48]
jae 0x140018980
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.140017340
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x140018a0d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x140018a0d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140018944
call fcn.140017ba0
mov rbx, rax
jmp 0x14001892f
mov rcx, r14
call fcn.140017340
mov eax, 0xc
jmp 0x140018962

Function at 0x140018a90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018ab8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140017ba0
test rax, rax
jne 0x140018aaa
add rsp, 0x28
ret

Function at 0x140018b20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018b48
add rax, 0x18
add rsp, 0x28
ret
call fcn.140017ba0
test rax, rax
jne 0x140018b3a
jmp 0x140018b3e

Function at 0x140018c60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f5648]
test eax, eax
jne 0x140018c78
xor eax, eax
add rsp, 0x28
ret
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018ca8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140018c6e
test byte [rax + 0x40], 3
je 0x140018c6e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140018c70
call fcn.140017ba0
test rax, rax
jne 0x140018c8e
jmp 0x140018c6e
Function at 0x140018cc0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018d00
test ebx, ebx
jle 0x140018cf0
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.140017ba0
test rax, rax
jne 0x140018cdd
add rsp, 0x20
pop rbx
ret

Function at 0x140018df0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018e68
test byte [rbx + 0x40], 0xc
jne 0x140018e1f
mov eax, dword [0x1400f5648]
test eax, eax
jne 0x140018e30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016d00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018e53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018e53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018e7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016ff0
call fcn.140017ba0
test rax, rax
mov rbx, rax
jne 0x140018e0f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018e9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016ff0
call fcn.140018d10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018f20
call fcn.140016ac0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018f58
call fcn.140017af0
mov ecx, dword [0x1400b3178]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018fb0
test esi, esi
je 0x140018f36
call fcn.140018df0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018f90
mov edx, edi
call fcn.140016b70
call fcn.140018df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018fa0
call fcn.140018df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017af0
mov ecx, dword [0x1400b3178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018ef5
call fcn.140017ba0
mov rbx, rax
jmp 0x140018ef5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018f0e
call fcn.140017ba0
jmp 0x140018f36
call fcn.140017ba0
mov rbx, rax
jmp 0x140018ef1
Function at 0x140018eb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018e68
test byte [rbx + 0x40], 0xc
jne 0x140018e1f
mov eax, dword [0x1400f5648]
test eax, eax
jne 0x140018e30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016d00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018e53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018e53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018e7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016ff0
call fcn.140017ba0
test rax, rax
mov rbx, rax
jne 0x140018e0f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018e9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016ff0
call fcn.140018d10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018f20
call fcn.140016ac0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018f58
call fcn.140017af0
mov ecx, dword [0x1400b3178]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018fb0
test esi, esi
je 0x140018f36
call fcn.140018df0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018f90
mov edx, edi
call fcn.140016b70
call fcn.140018df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018fa0
call fcn.140018df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018df0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017af0
mov ecx, dword [0x1400b3178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018ef5
call fcn.140017ba0
mov rbx, rax
jmp 0x140018ef5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018f0e
call fcn.140017ba0
jmp 0x140018f36
call fcn.140017ba0
mov rbx, rax
jmp 0x140018ef1

Function at 0x140018fc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017af0
mov ecx, dword [0x1400b3178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140019030
test esi, esi
je 0x140019010
call fcn.140018df0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019040
mov edx, esi
call fcn.140016b70
call fcn.140018df0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018df0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140017ba0
mov rbx, rax
jmp 0x140018fe1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018ffa