joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a830
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c40], 0
lea rbx, [rcx + 0x5c48]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001a8d7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001a88a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001ce60
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003940
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c40]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c50]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1401432e8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001a8df
mov rcx, rbx
call fcn.140003940
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ae80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdx, [rcx + 1]
mov r14, qword [0x1401432f0]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x14001aee4
lea r10, [0x140051c60]
cmp r8b, 0x23
jne 0x14001aec7
cmp byte [rdx], r8b
jne 0x14001aec7
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14001aeb4
mov eax, dword [r14 + 0x5bb8]
xor edi, edi
mov qword [rsp + 0x30], rbp
not ebx
mov qword [rsp + 0x38], rsi
test eax, eax
jle 0x14001af45
mov esi, edi
mov ebp, edi
test rsi, rsi
js 0x14001af0a
cmp edi, eax
jl 0x14001af24
mov r8d, 0x705
lea rdx, [0x14004c690]
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [r14 + 0x5bc0]
cmp dword [rdx + rbp + 8], ebx
je 0x14001af62
mov eax, dword [r14 + 0x5bb8]
inc edi
inc rsi
add rbp, 0x48
cmp edi, eax
jl 0x14001af01
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edi, edi
js 0x14001af6f
cmp edi, dword [r14 + 0x5bb8]
jl 0x14001af90
mov r8d, 0x705
lea rdx, [0x14004c690]
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [r14 + 0x5bc0]
movsxd rax, edi
lea rcx, [rax + rax*8]
lea rax, [rdx + rcx*8]
jmp 0x14001af47
Function at 0x1400417c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x210
call fcn.140011180
cmp byte [rax], 0
je 0x140041859
xor edx, edx
mov ecx, 0x210
call fcn.140013950
test al, al
je 0x140041859
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140041859
mov rbx, qword [0x1401432f0]
test rbx, rbx
jne 0x140041828
mov r8d, 0xfe1
lea rdx, [0x14004c850]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x1401432f0]
cmp byte [rbx + 0x37a9], 0
je 0x140041845
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.1400027f0
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov ecx, 0x214
call fcn.140011180
cmp byte [rax], 0
je 0x1400418ec
xor edx, edx
mov ecx, 0x214
call fcn.140013950
test al, al
je 0x1400418ec
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1400418ec
mov rbx, qword [0x1401432f0]
test rbx, rbx
jne 0x1400418bb
mov r8d, 0xfe1
lea rdx, [0x14004c850]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x1401432f0]
cmp byte [rbx + 0x37a9], 0
je 0x1400418d8
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.1400027f0
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov ecx, 0x212
call fcn.140011180
cmp byte [rax], 0
je 0x14004197f
xor edx, edx
mov ecx, 0x212
call fcn.140013950
test al, al
je 0x14004197f
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14004197f
mov rbx, qword [0x1401432f0]
test rbx, rbx
jne 0x14004194e
mov r8d, 0xfe1
lea rdx, [0x14004c850]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x1401432f0]
cmp byte [rbx + 0x37a9], 0
je 0x14004196b
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.1400027f0
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov ecx, 0x216
call fcn.140011180
cmp byte [rax], 0
je 0x140041a12
xor edx, edx
mov ecx, 0x216
call fcn.140013950
test al, al
je 0x140041a12
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140041a12
mov rbx, qword [0x1401432f0]
test rbx, rbx
jne 0x1400419e1
mov r8d, 0xfe1
lea rdx, [0x14004c850]
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x1401432f0]
cmp byte [rbx + 0x37a9], 0
je 0x1400419fe
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.1400027f0
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x401530
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.0042c560
mov rdx, rax
mov qword [rsp + 0x40], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x4015d3
lea rax, str.Nepodailo_se_vytvoit_kl_registru.
mov rdx, rax
mov rax, qword [0x004bfff0]
mov rcx, rax
call fcn.004b2de0
mov rcx, rax
mov rax, qword [0x004c0020]
mov rdx, rax
call fcn.00476620
jmp 0x401657
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.0042c560
mov rcx, rax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], 4
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x401646
lea rax, str.Nepodailo_se_nastavit_hodnotu_registru.
mov rdx, rax
mov rax, qword [0x004bfff0]
mov rcx, rax
call fcn.004b2de0
mov rcx, rax
mov rax, qword [0x004c0020]
mov rdx, rax
call fcn.00476620
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x60
pop rbp
ret

Function at 0x40b6d0
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.00415730
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.00415730
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 0x40b740
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004e60b4]
test esi, esi
mov rbx, rcx
jle 0x40b870
mov rax, qword [0x004e60b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40b78b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x40b815
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x40b770
mov rcx, rbx
call fcn.0040c1c0
test rax, rax
mov rdi, rax
je 0x40b892
mov rax, qword [0x004e60b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.0040c300
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004e60b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40b877
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40b80e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x40b820
add dword [0x004e60b4], 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 [0x004e60b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b80e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040b6d0
nop dword [rax]
xor esi, esi
jmp 0x40b798
mov rax, qword [0x004e60b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.0040b6d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040b6d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40be30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x004e6120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004e6100]
test rbx, rbx
je 0x40be8c
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 0x40be83
test eax, eax
jne 0x40be83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40be68
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 0x40c1c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x40c240
Capabilities:
Parse pe header

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

Function at 0x40c300
Capabilities:
Parse pe header

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

Function at 0x417c90
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 0x417d9a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x417d72
add rax, 1
cmp rax, 0x6b
je 0x417d8f
cmp byte [rcx + rax], 0
jne 0x417d68
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x417d8f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
lea rcx, [rsp + 0x20]
mov edx, 0x28
mov eax, 0x27
jmp 0x417d80
Function at 0x418110
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x004e6d40], 1
je 0x418188
lea rdi, [0x004e6d40]
mov rcx, rdi
call fcn.00417a20
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.00417350
mov esi, dword [0x004e6d40]
test esi, esi
jne 0x418198
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x004b7168], eax
je 0x4b69b6
mov dword [0x004e6d40], 1
mov rcx, rbp
call fcn.00417620
test rbx, rbx
je 0x418188
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.00417db0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x418168
mov ecx, 2
call qword [fcn.00415730]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x418168
call sub.msvcrt.dll_abort
nop

Function at 0x4181c0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.00417ec0
cmp qword [0x004e9048], 0
mov rbx, rax
je 0x4182d8
test rax, rax
je 0x4182d8
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.00417920
cmp eax, 1
je 0x4182e6
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.004b69bc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x004b7168]
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 0x4182ec
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.00417c90
nop
jmp fcn.004b69bc

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

Disassembly:
sub rsp, 0x28
call fcn.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x418320
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.004181c0
Function at 0x418a90
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 0x418bb8
cmp eax, 1
je 0x418aeb
call fcn.00417a20
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.00417350
mov r12d, dword [rbx]
test r12d, r12d
je 0x418b00
cmp r12d, 1
jne 0x418b90
mov rcx, rbp
call fcn.00417620
test rdi, rdi
je 0x418aeb
mov rcx, rdi
call fcn.00417db0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x00417e90]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.00418110
mov ecx, dword [0x004b7168]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x418bf8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.00418110
mov ecx, dword [0x004b7168]
call r12
test rax, rax
je 0x418be0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.00418110
mov ecx, dword [0x004b7168]
call r12
test rax, rax
je 0x418bd0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x418ad6
mov ecx, 2
call qword [fcn.00415730]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x418ad6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.004181c0
test rax, rax
jne 0x418b79
jmp 0x4b69d5
call fcn.004181c0
test rax, rax
jne 0x418b55
jmp 0x4b69ee
call fcn.004181c0
test rax, rax
jne 0x418b2f
jmp 0x4b69e4
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 0x418e80
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.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x418ef8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.00417930
cmp esi, dword [rbx + 0x48]
jae 0x418ed3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x418ed3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.00417970
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.004181c0
mov rbx, rax
jmp 0x418ead
Function at 0x418f10
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.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x419020
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.00417930
cmp esi, dword [rbx + 0x48]
jae 0x418fa0
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.00417970
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 0x41902d
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 0x41902d
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 0x418f64
call fcn.004181c0
mov rbx, rax
jmp 0x418f4f
mov rcx, r14
call fcn.00417970
mov eax, 0xc
jmp 0x418f82

Function at 0x4190b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4190d8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.004181c0
test rax, rax
jne 0x4190ca
add rsp, 0x28
ret

Function at 0x419140
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x419168
add rax, 0x18
add rsp, 0x28
ret
call fcn.004181c0
test rax, rax
jne 0x41915a
jmp 0x41915e

Function at 0x419280
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x004e6d48]
test eax, eax
jne 0x419298
xor eax, eax
add rsp, 0x28
ret
call fcn.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4192c8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x41928e
test byte [rax + 0x40], 3
je 0x41928e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x419290
call fcn.004181c0
test rax, rax
jne 0x4192ae
jmp 0x41928e

Function at 0x4192e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x419320
test ebx, ebx
jle 0x419310
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.004181c0
test rax, rax
jne 0x4192fd
add rsp, 0x20
pop rbx
ret
Function at 0x419410
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x419488
test byte [rbx + 0x40], 0xc
jne 0x41943f
mov eax, dword [0x004e6d48]
test eax, eax
jne 0x419450
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.00417350
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x419473
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x419473
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x41949c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00417620
call fcn.004181c0
test rax, rax
mov rbx, rax
jne 0x41942f
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 0x4194ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.00417620
call fcn.00419330
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x419540
call fcn.00417110
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x419578
call fcn.00418110
mov ecx, dword [0x004b7168]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x4195d0
test esi, esi
je 0x419556
call fcn.00419410
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x4195b0
mov edx, edi
call fcn.004171c0
call fcn.00419410
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.00418110
mov ecx, dword [0x004b7168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4195c0
call fcn.00419410
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00419410
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.00418110
mov ecx, dword [0x004b7168]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x419515
call fcn.004181c0
mov rbx, rax
jmp 0x419515
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41952e
call fcn.004181c0
jmp 0x419556
call fcn.004181c0
mov rbx, rax
jmp 0x419511