joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6c10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x40
mov rax, qword [0x005aabc0]
mov eax, dword [rax]
test eax, eax
jne 0x4b6c30
add rsp, 0x40
pop r12
ret
mov ecx, dword [0x005f2a80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x4b6dd3
mov eax, dword [rax]
test eax, eax
je 0x4b6dbb
mov eax, dword [r12]
sub eax, 1
mov dword [r12], eax
mov eax, dword [r12]
test eax, eax
je 0x4b6d20
lea r12, [0x00605e00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x005f2a84]
sub eax, 1
mov dword [0x005f2a84], eax
mov eax, dword [0x005f2a84]
test eax, eax
jne 0x4b6cc5
mov rax, qword [0x005ab020]
mov rdx, qword [fcn.004b5960]
mov qword [rax], rdx
mov rax, qword [0x005aaf20]
mov rdx, qword [fcn.004b3810]
mov qword [rax], rdx
mov rax, qword [0x005ab360]
mov rdx, qword [fcn.004af7a0]
mov qword [rax], rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movabs rax, 0x1ffffffff
and rax, qword [0x00576658]
movabs rdx, 0x100000000
cmp rax, rdx
je 0x4b6c23
lea r9, str.fscache:_disable_n
lea r8, str.GIT_TRACE_FSCACHE
mov edx, 0x229
lea rcx, str.compat_win32_fscache.c
add rsp, 0x40
pop r12
jmp fcn.0047ff50
xor edx, edx
mov ecx, dword [0x005f2a80]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
movabs rax, 0x1ffffffff
and rax, qword [0x00576658]
movabs rdx, 0x100000000
cmp rax, rdx
je 0x4b6d91
mov eax, dword [r12 + 0x4c]
lea r9, str.fscache_disable:_lstat__u__opendir__u__total_requests_misses__u__u_n
lea r8, str.GIT_TRACE_FSCACHE
mov edx, 0x215
lea rcx, str.compat_win32_fscache.c
mov dword [rsp + 0x38], eax
mov eax, dword [r12 + 0x48]
mov dword [rsp + 0x30], eax
mov eax, dword [r12 + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [r12 + 0x40]
mov dword [rsp + 0x20], eax
call fcn.0047ff50
mov rcx, qword [r12 + 0x38]
xor edx, edx
call fcn.00514c20
lea rcx, [r12 + 8]
mov rdx, 0xffffffffffffffff
call fcn.00426b60
mov rcx, r12
call fcn.004c9260
jmp 0x4b6c69
lea r8, str.fscache_disable___called_on_an_fscache_that_is_already_disabled
mov edx, 0x211
lea rcx, str.compat_win32_fscache.c
call fcn.00494ad0
lea r8, str.fscache_disable___called_on_a_thread_where_fscache_has_not_been_initialized
mov edx, 0x20f
lea rcx, str.compat_win32_fscache.c
call fcn.00494ad0
nop
nop dword [rax]

Function at 0x4b6df0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov ecx, dword [0x005f2a80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x4b6e11
mov eax, dword [rax]
test eax, eax
jne 0x4b6e20
add rsp, 0x28
pop rbx
pop r12
ret
mov rcx, qword [rbx + 0x38]
xor edx, edx
lea r12, [rbx + 8]
call fcn.00514c20
mov qword [rbx + 0x38], 0
lea rcx, [rbx + 0x38]
xor edx, edx
call fcn.00514b70
mov rcx, r12
mov rdx, 0xffffffffffffffff
call fcn.00426b60
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea rdx, [fcn.004b5bc0]
call fcn.00426ac0
mov qword [rbx + 0x40], 0
mov qword [rbx + 0x48], 0
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x4b6e90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rbp]
mov qword [rsp + 0x58], rax
xor eax, eax
mov rbx, rcx
mov ecx, dword [0x005f2a80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rbx, rbx
je 0x4b7000
test rax, rax
je 0x4b700e
xor edx, edx
mov ecx, dword [0x005f2a80]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
movabs rax, 0x1ffffffff
and rax, qword [0x00576658]
movabs rdx, 0x100000000
cmp rax, rdx
jne 0x4b6fb0
lea r13, [0x00605e00]
lea rsi, [rsp + 0x40]
mov rcx, r13
lea rdi, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 8]
mov rdx, rsi
call fcn.00426e30
jmp 0x4b6f38
mov rcx, rdi
call fcn.00426ce0
mov rcx, rsi
call fcn.00426e50
mov rdx, rax
test rax, rax
jne 0x4b6f30
mov rdx, qword [r12 + 0x38]
mov rcx, qword [rbx + 0x38]
call fcn.00514dc0
mov eax, dword [r12 + 0x40]
add dword [rbx + 0x40], eax
mov rcx, r13
mov eax, dword [r12 + 0x44]
add dword [rbx + 0x44], eax
mov eax, dword [r12 + 0x48]
add dword [rbx + 0x48], eax
mov eax, dword [r12 + 0x4c]
add dword [rbx + 0x4c], eax
mov eax, dword [0x005f2a84]
sub eax, 1
mov dword [0x005f2a84], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, r12
call fcn.004c9260
mov rax, qword [rsp + 0x58]
xor rax, qword [rbp]
jne 0x4b7009
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, dword [r12 + 0x4c]
lea r9, str.fscache_merge:_lstat__u__opendir__u__total_requests_misses__u__u_n
lea r8, str.GIT_TRACE_FSCACHE
mov edx, 0x2e5
lea rcx, str.compat_win32_fscache.c
mov dword [rsp + 0x38], eax
mov eax, dword [r12 + 0x48]
mov dword [rsp + 0x30], eax
mov eax, dword [r12 + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [r12 + 0x40]
mov dword [rsp + 0x20], eax
call fcn.0047ff50
jmp 0x4b6f04
xor ecx, ecx
call fcn.004b6a40
jmp 0x4b6f96
call sub.libssp_0.dll___stack_chk_fail
lea r8, str.fscache_merge___called_on_a_thread_where_fscache_has_not_been_initialized
mov edx, 0x2e2
lea rcx, str.compat_win32_fscache.c
call fcn.00494ad0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4b7d70
Capabilities:
Set environment variable

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rcx
mov r14, rdx
mov ebx, r8d
test rcx, rcx
je 0x4b7e40
mov edx, 0x3d
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x4b7e40
test r14, r14
je 0x4b7e40
test ebx, ebx
jne 0x4b7dd0
mov rcx, r12
call fcn.004ae0e0
xor r8d, r8d
test rax, rax
je 0x4b7dd0
mov eax, r8d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, r14
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rdi, [rbx + rax]
mov rsi, rax
lea rcx, [rdi + 2]
call fcn.004c8d40
mov r13, rax
test rax, rax
je 0x4b7e57
mov r8, rbx
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rcx, [r13 + rbx + 1]
mov r8, rsi
mov rdx, r14
mov byte [r13 + rbx], 0x3d
call sub.msvcrt.dll_memcpy
mov rcx, r13
mov byte [r13 + rdi + 1], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp 0x4add10
call qword [sym.imp.msvcrt.dll__errno]
mov r8d, 0xffffffff
mov dword [rax], 0x16
jmp 0x4b7dbf
call qword [sym.imp.msvcrt.dll__errno]
or r8d, 0xffffffff
mov dword [rax], 0xc
jmp 0x4b7dbf
Function at 0x4b7e70
Capabilities:
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rsi, qword [rsp + 0xb8]
mov r13, rsi
shr r13, 0x20
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rdx
mov rdi, rcx
mov r14d, r8d
mov ecx, dword [rsp + 0xb0]
mov r15d, r9d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea rdx, [rsp + 0x30]
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4b8018
mov rax, qword [rsp + 0x30]
lea rcx, [rsi + rbx]
mov rdx, rax
sub rdx, rsi
cmp rcx, rax
cmova rbx, rdx
and r15d, 1
je 0x4b8029
cmp r14d, 1
je 0x4b7f88
mov rcx, r12
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
je 0x4b8000
mov edx, 1
mov r8d, r13d
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov r9d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, r12
mov r13, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b7fc0
test r13, r13
je 0x4b7fd1
mov rax, qword [rsp + 0x38]
xor rax, qword [rbp]
jne 0x4b8024
mov rax, r13
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
je 0x4b8000
mov edx, 4
jmp 0x4b7f33
lea rcx, str.unable_to_close_file_mapping_handle
call fcn.00494a30
test r13, r13
jne 0x4b7f61
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov r13, 0xffffffffffffffff
cmp eax, 0x5af
sete bl
call qword [sym.imp.msvcrt.dll__errno]
lea ebx, [rbx + rbx*4 + 0x16]
mov dword [rax], ebx
jmp 0x4b7f61
call qword [sym.imp.msvcrt.dll__errno]
mov r13, 0xffffffffffffffff
mov dword [rax], 0x16
jmp 0x4b7f61
lea rcx, str.mmap:_could_not_determine_filesize
call fcn.00494770
call sub.libssp_0.dll___stack_chk_fail
lea rcx, str.Invalid_usage_of_mmap_when_built_with_USE_WIN32_MMAP
call fcn.00494770
nop
nop word cs:[rax + rax]
Function at 0x4b9880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
mov rcx, qword [rcx + 0x20]
call fcn.004c9260
mov rcx, qword [r12 + 0x30]
call fcn.004c9260
mov rax, qword [r12 + 0x38]
lea rdx, [r12 + 8]
cmp rax, rdx
je 0x4b98be
mov rcx, qword [rax + 8]
call fcn.004c9260
mov rcx, qword [r12 + 0x38]
call fcn.004c9260
mov rcx, qword [r12 + 0x10]
call fcn.004c9260
mov rcx, qword [r12 + 0x48]
call fcn.004c9260
mov rcx, qword [r12 + 0x40]
call fcn.004c9260
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260

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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx]
mov r12, rcx
test rax, rax
je 0x4b9950
cmp qword [rcx + 0x10], 0
je 0x4b9950
xor ebx, ebx
jmp 0x4b991f
add rbx, 1
cmp qword [r12 + 0x10], rbx
jbe 0x4b9950
mov rax, qword [r12]
mov rdx, rbx
shl rdx, 4
add rax, rdx
mov edx, dword [rax + 8]
and edx, 0x400ff
cmp edx, 3
jne 0x4b9910
mov rcx, qword [rax]
add rbx, 1
call fcn.004c9260
cmp qword [r12 + 0x10], rbx
ja 0x4b991b
nop word [rax + rax]
mov rcx, qword [r12 + 0x18]
xor ebx, ebx
call fcn.004c9260
cmp qword [r12 + 0x10], 0
je 0x4b99c4
nop dword [rax]
mov rax, qword [r12 + 0x30]
test rax, rax
je 0x4b9983
mov rdx, rbx
shl rdx, 4
mov rcx, qword [rax + rdx + 8]
call fcn.004c9260
mov rax, qword [r12 + 0x38]
test rax, rax
je 0x4b999e
mov rdx, rbx
shl rdx, 4
mov rcx, qword [rax + rdx + 8]
call fcn.004c9260
mov rax, qword [r12 + 0x28]
test rax, rax
je 0x4b99b9
mov rdx, rbx
shl rdx, 4
mov rcx, qword [rax + rdx + 8]
call fcn.004c9260
add rbx, 1
cmp qword [r12 + 0x10], rbx
ja 0x4b9968
mov rcx, qword [r12 + 0x28]
xor edi, edi
call fcn.004c9260
mov rcx, qword [r12 + 0x30]
call fcn.004c9260
mov rcx, qword [r12 + 0x38]
call fcn.004c9260
mov rcx, qword [r12]
call fcn.004c9260
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x4b9a55
nop word [rax + rax]
mov rsi, rdi
xor ebx, ebx
shl rsi, 4
add rsi, rcx
mov eax, dword [rsi]
test eax, eax
jle 0x4b9a2d
nop word [rax + rax]
mov rax, qword [rsi + 8]
mov rcx, qword [rax + rbx*8]
add rbx, 1
call fcn.004b9880
cmp dword [rsi], ebx
jg 0x4b9a18
mov rcx, qword [rsi + 8]
add rdi, 1
call fcn.004c9260
cmp dword [r12 + 0x84], edi
jb 0x4b9a50
mov rcx, qword [r12 + 0x40]
jmp 0x4b9a00
mov rcx, qword [r12 + 0x40]
call fcn.004c9260
mov rcx, qword [r12 + 0xc8]
call fcn.004c9260
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.004c9260

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rsi, rcx
test eax, eax
jle 0x4bb8a3
xor ebx, ebx
nop word [rax + rax]
mov rax, qword [rsi + 8]
mov rdi, rbx
add rbx, 1
shl rdi, 5
mov rcx, qword [rax + rdi + 0x18]
call fcn.004c9260
mov rax, qword [rsi + 8]
mov rcx, qword [rax + rdi + 8]
call fcn.004c9260
cmp dword [rsi], ebx
jg 0x4bb878
mov rcx, qword [rsi + 8]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.004c9260
Function at 0x4c2330
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rdi, qword [rsp + 0xd8]
mov rsi, rcx
mov r12, rdx
mov rbx, r8
mov r13d, r9d
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
xor ecx, ecx
mov rax, qword [rdx]
mov qword [rsp + 0x28], rdi
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x20], eax
call fcn.004c21b0
mov ecx, dword [rdi]
mov rbp, rax
test ecx, ecx
je 0x4c2397
test rax, rax
je 0x4c244b
mov rax, qword [rsp + 0x38]
mov r14d, r13d
or r14d, 0x400000
lea r15, [rax + 0x80]
jmp 0x4c241d
cmp al, 9
jne 0x4c23c3
mov edx, dword [rsp + 0xd0]
test edx, edx
jne 0x4c2446
mov eax, dword [rsp + 0xd0]
mov r9d, r13d
mov r8, rbx
mov rdx, r12
mov qword [rsp + 0x28], rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.004c21b0
mov r9, rax
mov eax, dword [rdi]
test eax, eax
je 0x4c23f2
test r9, r9
je 0x4c244b
mov rax, qword [rsp + 0x38]
mov r8, rbp
mov rdx, r15
mov byte [rsp + 0x48], 0xa
lea rcx, [rax + 0x70]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.004baf60
mov rbp, rax
test rax, rax
je 0x4c2478
cmp byte [rbx + 8], 0xa
jne 0x4c2450
mov rdx, rsi
mov r8d, r14d
mov rcx, rbx
call fcn.004b9230
add dword [rsi + 0x20], eax
movzx eax, byte [rbx + 8]
mov edx, eax
and edx, 0xfffffff7
cmp dl, 2
jne 0x4c23b0
xor r9d, r9d
jmp 0x4c23f2
xor ebp, ebp
nop dword [rax]
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rdi, qword [rsp + 0x58]
xor rdi, qword [rax]
jne 0x4c2480
mov rax, rbp
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rdi], 0xc
jmp 0x4c2450
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
Function at 0x4c3e90
Capabilities:
Get system information on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov r13, qword [sym.imp.libssp_0.dll___stack_chk_guard]
xor ebx, ebx
mov ebp, 1
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r12, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [0x005f3390]
mov rax, qword [r13]
mov qword [rsp + 0x58], rax
xor eax, eax
nop dword [rax]
mov eax, dword [rsi]
test eax, eax
je 0x4c3efd
mov r14d, dword [0x005f3398]
call rdi
cmp r14d, eax
je 0x4c3f70
add ebx, 1
test bl, 0x3f
jne 0x4c3ed0
xor edx, edx
xor ecx, ecx
call r12
mov eax, dword [rsi]
test eax, eax
jne 0x4c3ed6
mfence
mov eax, ebp
xchg dword [0x005f3390], eax
test eax, eax
jne 0x4c3ee8
call rdi
mov dword [0x005f3394], eax
call rdi
mov dword [0x005f3398], eax
mov dword [0x005f3394], 1
mov rax, qword [0x005f3360]
test rax, rax
je 0x4c3f8b
mov eax, dword [0x005f3394]
sub eax, 1
mov dword [0x005f3394], eax
je 0x4c4000
mov rax, qword [rsp + 0x58]
xor rax, qword [r13]
jne 0x4c4018
mov eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [0x005f3394]
add eax, 1
mov dword [0x005f3394], eax
mov rax, qword [0x005f3360]
test rax, rax
jne 0x4c3f32
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
lea rdx, [rax - 1]
test rdx, rax
jne 0x570f30
mov qword [0x005f3370], 0x100000
mov qword [0x005f3368], rax
mov qword [0x005f3378], 0x40000
mov qword [0x005f3380], 0x200000
mov dword [0x005f3388], 7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555555
or eax, 8
and rax, 0xfffffffffffffff8
mov qword [0x005f3360], rax
jmp 0x4c3f32
mov dword [0x005f3398], 0
mfence
xchg dword [0x005f3390], eax
jmp 0x4c3f47
call sub.libssp_0.dll___stack_chk_fail
nop dword [rax]
Function at 0x4c4cc0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rdi, qword [rax]
mov qword [rsp + 0x58], rdi
xor edi, edi
mov rax, qword [0x005f3360]
cmp qword [rcx + 0x40], rax
jne 0x570f45
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov r12, qword [sym.imp.KERNEL32.dll_VirtualFree]
lea r15, [rcx + 0x378]
xor r14d, r14d
jmp 0x4c4d19
test r15, r15
je 0x4c4da0
mov eax, dword [r15 + 0x18]
mov rdx, r15
mov r15, qword [r15 + 0x10]
test al, 1
je 0x4c4d10
test al, 8
jne 0x4c4d10
mov r13, qword [rdx + 8]
test r13, r13
je 0x4c4d91
mov rbx, qword [rdx]
mov rsi, r13
lea rdi, [rsp + 0x20]
mov r8d, 0x30
mov rdx, rdi
mov rcx, rbx
call rbp
test rax, rax
je 0x4c4d10
cmp qword [rsp + 0x20], rbx
jne 0x4c4d10
cmp qword [rsp + 0x28], rbx
jne 0x4c4d10
cmp dword [rsp + 0x40], 0x1000
jne 0x4c4d10
cmp qword [rsp + 0x38], rsi
ja 0x4c4d10
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call r12
test eax, eax
je 0x4c4d10
mov rax, qword [rsp + 0x38]
add rbx, rax
sub rsi, rax
jne 0x4c4d40
add r14, r13
test r15, r15
jne 0x4c4d19
nop dword [rax]
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rdi, qword [rsp + 0x58]
xor rdi, qword [rax]
jne 0x4c4dc5
mov rax, r14
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.libssp_0.dll___stack_chk_fail
nop word [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x4c7680
Capabilities:
Allocate thread local storage

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x005f3360]
mov qword [rsp + 0x78], rdx
mov r12, rcx
mov r14d, r8d
test rax, rax
je 0x4c77e0
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r15d, r15d
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rbx, [0x005f3390]
mov ebp, 1
nop dword [rax + rax]
mov eax, dword [rbx]
test eax, eax
je 0x4c76f9
mov esi, dword [0x005f3398]
call rdi
cmp esi, eax
je 0x4c7760
add r15d, 1
test r15b, 0x3f
jne 0x4c76d0
xor edx, edx
xor ecx, ecx
call r13
mov eax, dword [rbx]
test eax, eax
jne 0x4c76d6
mfence
mov eax, ebp
xchg dword [0x005f3390], eax
test eax, eax
jne 0x4c76e2
call rdi
mov dword [0x005f3394], eax
call rdi
mov r13d, dword [r12 + 0x18]
mov dword [0x005f3398], eax
mov dword [0x005f3394], 1
test r13d, r13d
je 0x4c7779
mov eax, dword [0x005f3394]
mov r13d, 1
sub eax, 1
mov dword [0x005f3394], eax
je 0x4c785a
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x005f3394]
mov r13d, dword [r12 + 0x18]
add eax, 1
mov dword [0x005f3394], eax
test r13d, r13d
jne 0x4c772c
mov qword [r12], 0
mov dword [r12 + 8], 0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [r12 + 0x820], eax
cmp eax, 0xffffffff
je 0x4c77f0
mov rcx, qword [rsp + 0x78]
mov edx, 1
call fcn.004c4a30
mov qword [r12 + 0x828], rax
test rax, rax
je 0x4c77f0
mov qword [rax + 0x398], r12
lea eax, [r14 - 1]
cmp eax, 0x10
mov eax, 0x10
cmovae r14d, eax
mov dword [r12 + 0x18], r14d
jmp 0x4c772c
call fcn.004c3e90
jmp 0x4c76ab
test r14d, r14d
js 0x570f6b
mov rcx, r12
call fcn.004c7620
mov rcx, qword [r12 + 0x828]
test rcx, rcx
je 0x4c781f
call fcn.004c4cc0
mov qword [r12 + 0x828], 0
mov ecx, dword [r12 + 0x820]
test ecx, ecx
je 0x4c7845
call qword [sym.imp.KERNEL32.dll_TlsFree]
test eax, eax
je 0x570f6b
mov dword [r12 + 0x820], 0
mov eax, dword [0x005f3394]
sub eax, 1
mov dword [0x005f3394], eax
jne 0x4c7747
mov dword [0x005f3398], 0
mfence
xchg dword [0x005f3390], eax
jmp 0x4c7747
Function at 0x4c7910
Capabilities:
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, esi
mov ebp, 1
mov r12, qword [sym.imp.KERNEL32.dll_SleepEx]
mov rbx, rcx
nop dword [rax]
mov eax, dword [rbx]
test eax, eax
je 0x4c7963
mov r13d, dword [rbx + 8]
call rdi
cmp r13d, eax
je 0x4c7a40
add esi, 1
test sil, 0x3f
jne 0x4c7938
xor edx, edx
xor ecx, ecx
call r12
mov eax, dword [rbx]
test eax, eax
jne 0x4c793e
mfence
mov eax, ebp
xchg dword [rbx], eax
test eax, eax
jne 0x4c794d
call rdi
mov dword [rbx + 4], eax
call rdi
mov dword [rbx + 8], eax
mov dword [rbx + 4], 1
xor eax, eax
jmp 0x4c7998
add rax, 1
cmp rax, 0x100
je 0x4c7a5e
cmp qword [rbx + rax*8 + 0x20], 0
mov esi, eax
jne 0x4c7988
mov rcx, qword [rbx + 0x828]
mov r8d, 0xc0
mov edx, 1
call fcn.004c7880
mov r12, rax
movsxd rax, esi
mov qword [rbx + rax*8 + 0x20], r12
test r12, r12
je 0x4c7a7c
call rdi
cmp qword [rbx + 0x828], 0
mov dword [r12 + 4], eax
je 0x570f7c
mov ecx, 1
nop word [rax + rax]
mov r8d, ecx
add rcx, 1
cmp qword [rbx + rcx*8 + 0x820], 0
jne 0x4c79f0
cdq
idiv r8d
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [r12], edx
mov dword [rbx + 4], eax
je 0x4c7a50
lea edx, [rsi + 1]
mov ecx, dword [rbx + 0x820]
movsxd rdx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x570f77
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, dword [rbx + 4]
add eax, 1
mov dword [rbx + 4], eax
jmp 0x4c797f
mov dword [rbx + 8], 0
mfence
xchg dword [rbx], eax
jmp 0x4c7a15
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
je 0x4c7a93
xor r12d, r12d
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
sub dword [rbx + 4], 1
jne 0x4c7a69
mov dword [rbx + 8], 0
mov eax, r12d
mfence
xchg dword [rbx], eax
jmp 0x4c7a2f
mov dword [rbx + 8], 0
mfence
xchg dword [rbx], eax
xor r12d, r12d
jmp 0x4c7a2f
Function at 0x4c8b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rdi, qword [rsi]
mov qword [rsp + 0x28], rdi
xor edi, edi
mov qword [rsp + 0x78], rdx
mov r12, rcx
cmp rdx, 0x17
ja 0x4c8b54
mov qword [rsp + 0x78], 0x18
test r12, r12
je 0x4c8c60
mov ecx, dword [r12 + 0x820]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
jle 0x4c8c48
sub eax, 1
cdqe
mov r13, qword [r12 + rax*8 + 0x20]
mov ebx, dword [r13]
mov rdi, qword [rsp + 0x78]
cmp rdi, 0x2000
jbe 0x4c8cb0
mov dword [rsp + 0x24], ebx
movsxd rbx, ebx
mov rbx, qword [r12 + rbx*8 + 0x828]
mov eax, dword [rbx + 0x36c]
test eax, eax
jne 0x4c8c20
mfence
mov eax, 1
xchg dword [rbx + 0x36c], eax
test eax, eax
je 0x4c8cf0
mov r9, rdi
lea r8, [rsp + 0x24]
mov rdx, r13
mov rcx, r12
call fcn.004c4dd0
mov rbx, rax
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.004c51d0
mov edx, dword [rbx + 0x370]
sub edx, 1
mov dword [rbx + 0x370], edx
je 0x4c8c90
mov rdi, qword [rsp + 0x28]
xor rdi, qword [rsi]
jne 0x4c8d2e
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ebp, dword [rbx + 0x374]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x4c8bc4
mov eax, dword [rbx + 0x370]
add eax, 1
mov dword [rbx + 0x370], eax
jmp 0x4c8bda
je 0x4c8cd0
mov rdi, qword [rsp + 0x78]
not ebx
xor r13d, r13d
jmp 0x4c8b95
mov eax, dword [0x005f2ab8]
lea r12, [0x005f2aa0]
test eax, eax
jne 0x4c8b5d
mov r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.004c7680
jmp 0x4c8b5d
mov dword [rbx + 0x374], 0
mfence
xchg dword [rbx + 0x36c], edx
jmp 0x4c8bfc
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.004c4940
test rax, rax
jne 0x4c8bfc
mov rdi, qword [rsp + 0x78]
jmp 0x4c8b95
mov rcx, r12
call fcn.004c7910
mov r13, rax
test rax, rax
je 0x4c8d10
mov ebx, dword [rax]
jmp 0x4c8b83
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x374], eax
mov dword [rbx + 0x370], 1
jmp 0x4c8bda
mov ecx, dword [r12 + 0x820]
mov rdx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4c8cc6
jmp 0x570fba
call sub.libssp_0.dll___stack_chk_fail
nop word cs:[rax + rax]
nop

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

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp fcn.004c8b20