joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140079e30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140079e3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140079e4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140079e35
lea eax, [rcx + 1]
jmp 0x140079e5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140079e6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140079e54
sub eax, 3
jb 0x140079e8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140079edd
sar eax, 1
movsxd rbp, eax
jb 0x140079ec4
jmp 0x140079e9c
add ebx, ebx
jne 0x140079e9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140079ec4
inc ecx
add ebx, ebx
jne 0x140079eaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140079ec4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140079ebd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140079eac
add ecx, 2
jmp 0x140079ec9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140079df2
jmp 0x140079e3d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x46800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140079f2d
cmp rsi, rcx
jae 0x140079f35
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140079f14
cmp al, 0x8f
ja 0x140079f14
cmp byte [rsi - 2], 0xf
je 0x140079f1a
sub al, 0xe8
cmp al, 1
ja 0x140079efe
cmp rsi, rcx
jae 0x140079f35
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140079f04
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140079f35
lodsb al, byte [rsi]
jmp 0x140079f14
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x76000]
mov eax, dword [rdi]
or eax, eax
je 0x140079f9e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7bd70]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140079f42
jns 0x140079f77
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140079f81
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140079f98
mov qword [rbx], rax
add rbx, 8
jmp 0x140079f62
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140079fd8
cmp al, 0xef
ja 0x140079fca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140079faa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140079fb9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14007a02c
sub rsp, 0xffffffffffffff80
jmp 0x140032ee0
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004e4860]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004e4870]
mov dword [rax], 1
mov rax, qword [0x004e4880]
mov dword [rax], 1
mov rax, qword [0x004e4850]
mov dword [rax], 1
mov rax, qword [0x004e4710]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004e4840]
mov dword [0x00506008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004e4800]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004e3b90]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x120], xmm6
movaps xmmword [rbp + 0x130], xmm7
movaps xmmword [rbp + 0x140], xmm8
movaps xmmword [rbp + 0x150], xmm9
movaps xmmword [rbp + 0x160], xmm10
movaps xmmword [rbp + 0x170], xmm11
movaps xmmword [rbp + 0x180], xmm12
movaps xmmword [rbp + 0x190], xmm13
movaps xmmword [rbp + 0x1a0], xmm14
movaps xmmword [rbp + 0x1b0], xmm15
mov qword [rbp + 0x210], rcx
lea rax, [sym.__gxx_personality_sj0]
mov qword [rbp - 0x30], rax
lea rax, [0x004f90cc]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x20]
lea rbx, [rbp + 0x120]
mov qword [rax], rbx
lea rdx, [0x0040165f]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg._Unwind_SjLj_Register
lea rax, [rbp + 0x10]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [rbp - 0x58], 0xffffffff
call rax
lea rax, [rbp + 0x11f]
mov rcx, rax
call fcn.0046b4d0
lea rdx, [rbp + 0x11f]
lea rax, [rbp + 0x10]
mov dword [rbp - 0x58], 1
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x210]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x11f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x401690
lea rax, [rbp - 0x60]
mov rcx, rax
call sym._Unwind_SjLj_Unregister
mov rax, qword [rbp + 0x210]
movaps xmm6, xmmword [rbp + 0x120]
movaps xmm7, xmmword [rbp + 0x130]
movaps xmm8, xmmword [rbp + 0x140]
movaps xmm9, xmmword [rbp + 0x150]
movaps xmm10, xmmword [rbp + 0x160]
movaps xmm11, xmmword [rbp + 0x170]
movaps xmm12, xmmword [rbp + 0x180]
movaps xmm13, xmmword [rbp + 0x190]
movaps xmm14, xmmword [rbp + 0x1a0]
movaps xmm15, xmmword [rbp + 0x1b0]
add rsp, 0x248
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x40c2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00506624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40c478
mov rax, qword [0x00506628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40c33c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40c3c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40c320
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40c4ad
mov rax, qword [0x00506628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00506628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c490
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40c3be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40c420
add dword [0x00506624], 1
cmp edi, 8
jae 0x40c3f3
test dil, 4
jne 0x40c464
test edi, edi
je 0x40c3e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40c47f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40c3e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40c40c
jmp 0x40c3e8
add rsi, qword [0x00506628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40c3e8
xor esi, esi
jmp 0x40c347
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40c3e8
mov rax, qword [0x00506628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x40cc00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00506900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005068e0]
test rbx, rbx
je 0x40cc54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40cc4b
test rsi, rsi
je 0x40cc4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40cc30
lea rcx, [0x00506900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40ce90
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x40cea0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x40ceb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40cef1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40cee8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x40cef3
add rax, 0x28
cmp rax, r9
jne 0x40ced4
xor eax, eax
ret

Function at 0x40cf90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004e4710]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40cffd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40cffd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40cffd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40cff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40cfff
add rax, 0x28
cmp rax, r9
jne 0x40cfe0
xor eax, eax
add rsp, 0x28
ret

Function at 0x40d100
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004e4710]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x40d120
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40d118
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40d17d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40d174
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40d184
add rax, 0x28
cmp rax, r9
jne 0x40d160
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x40d1a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004e4710]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40d20e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40d20e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40d20e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40d20e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x40d205
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x40d215
add rcx, 0x28
cmp rcx, rax
jne 0x40d1f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x40d228
jmp 0x40d20e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x40d236
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40d20e
test r9d, r9d
jg 0x40d220
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x40d310
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d340
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp sym.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40d370
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x40d3a0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40d3b5
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40d6f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d721
xor edx, edx
mov ecx, eax
mov dword [0x00506950], eax
call sym.__mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x004dc078], eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d70e

Function at 0x40d830
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, 0x38
mov edi, 1
mov rax, qword [rdx]
mov rbp, qword [rcx + 0x10]
mov r12, qword [rcx + 0x18]
test rax, rax
mov rsi, rcx
mov rbx, rdx
mov r15, r8
je 0x40d930
mov r13, qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x40d88c
mov qword [0x00506958], r14
mov rax, qword [rbx]
add edi, 1
mov rax, qword [rax]
test rax, rax
mov qword [rbx], rax
je 0x40d930
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
mov r14, qword [rax + 0x30]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call rbp
test eax, eax
jne 0x40d950
test r14, r14
je 0x40d8df
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
call r14
cmp eax, 7
je 0x40d975
cmp eax, 8
jne 0x40d950
mov rax, qword [rbx]
mov r14, qword [rax]
mov eax, dword [0x004dc078]
test eax, eax
js 0x40d920
test eax, eax
je 0x40d870
mov rdx, r14
mov ecx, dword [0x00506950]
call r13
test eax, eax
jne 0x40d877
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d877
call dbg.fc_key_init_once
mov eax, dword [0x004dc078]
jmp 0x40d8ef
mov qword [rsp + 0x28], r12
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0x1a
mov qword [rsp + 0x20], rbx
mov ecx, 1
call rbp
test eax, eax
je 0x40d970
mov eax, 2
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 5
mov dword [r15], edi
jmp 0x40d955
Function at 0x40d980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x004dc078]
test eax, eax
mov rbx, rcx
js 0x40da00
test eax, eax
jne 0x40d9b3
mov rax, qword [0x00506958]
mov qword [0x00506958], rbx
mov qword [rbx], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edi, dword [0x00506950]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov ebp, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbx], rdi
mov rdx, rbx
mov ecx, dword [0x00506950]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40d9aa
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
call dbg.fc_key_init_once
mov eax, dword [0x004dc078]
jmp 0x40d995

Function at 0x40da10
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x004dc078]
mov rbx, qword [rcx]
test eax, eax
js 0x40da52
test eax, eax
jne 0x40da33
mov qword [0x00506958], rbx
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
mov ecx, dword [0x00506950]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40da2d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
call dbg.fc_key_init_once
mov eax, dword [0x004dc078]
jmp 0x40da22

Function at 0x40db20
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [0x004dc078]
test eax, eax
mov rbx, rcx
js 0x40dba0
test eax, eax
mov rsi, qword [0x00506958]
jne 0x40dbb6
test rsi, rsi
mov qword [rsp + 0x38], rsi
je 0x40db91
lea rdi, [rsp + 0x38]
mov rax, rsi
mov rax, qword [rax + 0x30]
test rax, rax
je 0x40db7f
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, qword [rbx]
mov edx, 1
mov ecx, 1
call rax
cmp eax, 6
je 0x40dbe0
cmp eax, 8
jne 0x40dc13
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
test rax, rax
mov qword [rsp + 0x38], rax
jne 0x40db51
mov eax, 5
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call dbg.fc_key_init_once
mov eax, dword [0x004dc078]
mov rsi, qword [0x00506958]
test eax, eax
je 0x40db3f
mov esi, dword [0x00506950]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40db3f
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rdx, rdi
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov qword [rsp + 0x38], rsi
mov qword [rbx + 0x18], rax
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40db96
mov rcx, rdi
call sym.uw_install_context.isra.5
mov eax, 3
jmp 0x40db96
Function at 0x40dc20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, dword [0x004dc078]
mov rbp, rdx
mov rdi, r8
test ecx, ecx
js 0x40dc80
test ecx, ecx
mov rsi, qword [0x00506958]
jne 0x40dc96
mov qword [rsp + 0x28], rsi
lea rsi, [rsp + 0x28]
mov rcx, rbx
mov qword [rbx + 0x10], rbp
lea r8, [rsp + 0x24]
mov rdx, rsi
mov qword [rbx + 0x18], rdi
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40dcbb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call dbg.fc_key_init_once
mov ecx, dword [0x004dc078]
mov rsi, qword [0x00506958]
test ecx, ecx
je 0x40dc48
mov esi, dword [0x00506950]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r12d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40dc48
mov rcx, rsi
call sym.uw_install_context.isra.5
nop
nop
nop word cs:[rax + rax]

Function at 0x40dd60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x40ddb0
mov edx, dword [0x004dc078]
test edx, edx
js 0x40ddc0
test edx, edx
mov rsi, qword [0x00506958]
jne 0x40ddd6
mov qword [rsp + 0x28], rsi
lea rsi, [rsp + 0x28]
mov rcx, rbx
lea r8, [rsp + 0x24]
mov rdx, rsi
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40ddf9
mov rcx, rsi
call sym.uw_install_context.isra.5
nop dword [rax]
call dbg._Unwind_SjLj_RaiseException
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call dbg.fc_key_init_once
mov edx, dword [0x004dc078]
mov rsi, qword [0x00506958]
test edx, edx
je 0x40dd86
mov esi, dword [0x00506950]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40dd86
call sym.abort
nop
nop

Function at 0x40de20
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x004dc078]
test eax, eax
mov rsi, rcx
mov rbp, rdx
js 0x40dea0
test eax, eax
mov rbx, qword [0x00506958]
jne 0x40deb6
mov qword [rsp + 0x28], rbx
lea rdi, [rsp + 0x28]
jmp 0x40de69
mov rdx, rbp
mov rcx, rdi
call rsi
test eax, eax
jne 0x40de90
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
test rbx, rbx
jne 0x40de50
mov rdx, rbp
mov rcx, rdi
call rsi
test eax, eax
jne 0x40de90
mov eax, 5
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call dbg.fc_key_init_once
mov eax, dword [0x004dc078]
mov rbx, qword [0x00506958]
test eax, eax
je 0x40de43
mov ebx, dword [0x00506950]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40de43
Function at 0x40dfc0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x00506970], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x00506978], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40e010
lea rdx, [dbg.emutls_destroy]
mov ecx, eax
mov dword [0x00506968], eax
call sym.__mingwthr_key_dtor
test eax, eax
jne 0x40e01a
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e00b
call sym.abort
nop