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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400c3900]
lea r12, [0x1400b92f8]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rcx, r12
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x14001b5a0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001b5a0
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001b5a0
test byte [rbx + 0x44], 4
jne 0x14001b5b0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400b9308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b5e0
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001b620
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001b51b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001b5c0
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b52f
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001b5f8
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001b637
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001b610
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14001b632
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 3
jmp 0x14001b582
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x16
jmp 0x14001b582
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001b517
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001b582
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001b4e9
jmp 0x14001b4f0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001b554
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001b578
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001b582
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop dword [rax]

Function at 0x14001e790
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001e7bc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14001f3e0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400bc070], 0
jne 0x14001f4e6
mov byte [0x1400bc070], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001f4bc
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001f4ad
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400befe1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001f4a8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001f477
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001f57b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001f4e1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001f4e1

Function at 0x14007e2e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007e328
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007e2fa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140090b00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140090b28
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140090b70
cdqe
add rsi, rax
sub rbx, rax
jne 0x140090b40
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140090b7c
call rbp
cmp dword [rax], 4
je 0x140090b40
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400b7960
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400b9920]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400b9938], 0
movups xmmword [0x1400b9928], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400b7a15
jmp 0x1400b7abf
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400b7a70
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400b7a00
cmp qword [rbx + 7], r12
jne 0x1400b7a00
cmp byte [rbx + 0xf], 0x2e
jne 0x1400b7a00
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400b7a5b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400b7a65
cmp byte [rbx + rsi], 0x3d
je 0x1400b7af5
add rbp, 0x18
cmp rbp, r13
jne 0x1400b7a3f
jmp 0x1400b7a00
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400b9938], rbx
jne 0x1400b7acf
lea rcx, [sym.__tcf_0_3]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x1400b9938], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400b9930], rax
test rax, rax
je 0x1400b7b2c
xor edx, edx
mov qword [0x1400b9928], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400b7aa7
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400b7b1c
test dl, dl
jne 0x1400b7a00
test eax, eax
js 0x1400b7a00
mov dword [rbp + 0x10], eax
jmp 0x1400b7a00
xor ecx, ecx
mov qword [0x1400b9938], rcx
jmp 0x1400b7aa7
Function at 0x401d6e
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdi, [0x00426400]
xor ebx, ebx
mov r12, rcx
mov r13, rdx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [fcn.00414020]
cmp rbx, r13
jl 0x401de4
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x0041a1bc]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
call fcn.00413fa0
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [r12 + rbx*8]
mov ecx, 1
inc rbx
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, rbp
call fcn.00401ccc
jmp 0x401d99

Function at 0x401fc7
Capabilities:
Write file on windows

Disassembly:
push rdi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rbx, rcx
mov r10, rdx
je 0x401ff0
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea r8, [rdx - 1]
mov rcx, r10
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rdi
jmp fcn.00413fa0

Function at 0x404a74
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [fcn.00414020]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.00413fa0
Function at 0x4108f0
Capabilities:
Parse credit card information

Disassembly:
cmp cx, 0x16
je 0x410c14
ja 0x410a23
cmp cx, 0xa
je 0x410bb4
ja 0x41099b
cmp cx, 4
je 0x410b84
ja 0x41094f
cmp cx, 1
je 0x410b6c
test cx, cx
je 0x410b60
cmp cx, 2
je 0x410b78
cmp cx, 3
jne 0x410caa
lea rcx, [0x0041c460]
jmp 0x410cb1
cmp cx, 7
je 0x410b9c
ja 0x41097b
cmp cx, 5
je 0x410b90
cmp cx, 6
jne 0x410caa
lea rcx, [0x0041c400]
jmp 0x410cb1
cmp cx, 8
je 0x410ba8
cmp cx, 9
jne 0x410caa
lea rcx, [0x0041c3a0]
jmp 0x410cb1
cmp cx, 0x10
je 0x410be4
ja 0x4109d7
cmp cx, 0xc
je 0x410bcc
jb 0x410bc0
cmp cx, 0xd
je 0x410bd8
cmp cx, 0xe
jne 0x410caa
lea rcx, [0x0041c300]
jmp 0x410cb1
cmp cx, 0x13
je 0x410bfc
ja 0x410a03
cmp cx, 0x11
je 0x410bf0
cmp cx, 0x12
jne 0x410caa
lea rcx, [0x0041c2a0]
jmp 0x410cb1
cmp cx, 0x14
je 0x410c08
cmp cx, 0x15
jne 0x410caa
lea rcx, [0x0041c240]
jmp 0x410cb1
cmp cx, 0x25
je 0x410c62
ja 0x410abb
cmp cx, 0x1b
je 0x410c3e
ja 0x410a6f
cmp cx, 0x18
je 0x410c2c
jb 0x410c20
cmp cx, 0x19
je 0x410c35
cmp cx, 0x1a
jne 0x410caa
lea rcx, [0x0041c1a0]
jmp 0x410cb1
cmp cx, 0x1e
je 0x410c50
ja 0x410a9b
cmp cx, 0x1c
je 0x410c47
cmp cx, 0x1d
jne 0x410caa
lea rcx, [0x0041c140]
jmp 0x410cb1
cmp cx, 0x1f
je 0x410c59
cmp cx, 0x24
jne 0x410caa
lea rcx, [0x0041c0e0]
jmp 0x410cb1
cmp cx, 0x44
je 0x410c86
ja 0x410b13
cmp cx, 0x41
je 0x410c74
ja 0x410af3
cmp cx, 0x26
je 0x410c6b
cmp cx, 0x40
jne 0x410caa
lea rcx, [0x0041c080]
jmp 0x410cb1
cmp cx, 0x42
je 0x410c7d
cmp cx, 0x43
jne 0x410caa
lea rcx, [0x0041c020]
jmp 0x410cb1
cmp cx, 0x47
je 0x410c98
ja 0x410b3f
cmp cx, 0x45
je 0x410c8f
cmp cx, 0x46
jne 0x410caa
lea rcx, [0x0041bf80]
jmp 0x410cb1
cmp cx, 0x48
je 0x410ca1
cmp cx, 0xfff
jne 0x410caa
lea rcx, [0x0041bf20]
jmp 0x410cb1
lea rcx, [0x0041c4c0]
jmp 0x410cb1
lea rcx, [0x0041c4a0]
jmp 0x410cb1
lea rcx, [0x0041c480]
jmp 0x410cb1
lea rcx, [0x0041c440]
jmp 0x410cb1
lea rcx, [0x0041c420]
jmp 0x410cb1
lea rcx, [0x0041c3e0]
jmp 0x410cb1
lea rcx, [0x0041c3c0]
jmp 0x410cb1
lea rcx, [0x0041c380]
jmp 0x410cb1
lea rcx, [0x0041c360]
jmp 0x410cb1
lea rcx, [0x0041c340]
jmp 0x410cb1
lea rcx, [0x0041c320]
jmp 0x410cb1
lea rcx, [0x0041c2e0]
jmp 0x410cb1
lea rcx, [0x0041c2c0]
jmp 0x410cb1
lea rcx, [0x0041c280]
jmp 0x410cb1
lea rcx, [0x0041c260]
jmp 0x410cb1
lea rcx, [0x0041c220]
jmp 0x410cb1
lea rcx, [0x0041c200]
jmp 0x410cb1
lea rcx, [0x0041c1e0]
jmp 0x410cb1
lea rcx, [0x0041c1c0]
jmp 0x410cb1
lea rcx, [0x0041c180]
jmp 0x410cb1
lea rcx, [0x0041c160]
jmp 0x410cb1
lea rcx, [0x0041c120]
jmp 0x410cb1
lea rcx, [0x0041c100]
jmp 0x410cb1
lea rcx, [0x0041c0c0]
jmp 0x410cb1
lea rcx, [0x0041c0a0]
jmp 0x410cb1
lea rcx, [0x0041c060]
jmp 0x410cb1
lea rcx, [0x0041c040]
jmp 0x410cb1
lea rcx, [0x0041bfe0]
jmp 0x410cb1
lea rcx, [0x0041bfa0]
jmp 0x410cb1
lea rcx, [0x0041bf60]
jmp 0x410cb1
lea rcx, [0x0041bf40]
jmp 0x410cb1
lea rcx, [0x0041c5a0]
jmp fcn.00405e06
Function at 0x412d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00425e84]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x412e88
mov rax, qword [0x00425e88]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x412d4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x412dd5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x412d30
mov rcx, rbx
call fcn.004139a0
test rax, rax
mov r12, rax
je 0x412ebd
mov rax, qword [0x00425e88]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00413ad0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00425e88]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x412ea0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x412dce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x412e30
add dword [0x00425e84], 1
cmp edi, 8
jae 0x412e03
test dil, 4
jne 0x412e74
test edi, edi
je 0x412df8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x412e8f
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 0x412df8
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 0x412e1c
jmp 0x412df8
add rsi, qword [0x00425e88]
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 0x412dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00418d00
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x412df8
xor esi, esi
jmp 0x412d57
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x412df8
mov rax, qword [0x00425e88]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00418d00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00418d00
nop
nop dword [rax]

Function at 0x413610
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00426160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00426140]
test rbx, rbx
je 0x413664
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 0x41365b
test rsi, rsi
je 0x41365b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x413640
lea rcx, [0x00426160]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4139a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0041d8a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x413a0d
mov rcx, r8
call fcn.00413880
test eax, eax
je 0x413a0d
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 0x413a0d
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 0x413a04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x413a0f
add rax, 0x28
cmp rax, r9
jne 0x4139f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x414760
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x00419458], eax
je 0x41477a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x414c80
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x414ca3
call fcn.004179c0
cmp eax, 1
je 0x414cae
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x414d25
mov eax, 0x28
jmp 0x414d0a
add rax, 1
cmp rax, 0x6b
je 0x414d17
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x414d00
cmp eax, 0x6a
jne 0x414d2a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x414d17
Function at 0x414dd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00426240], 1
je 0x414de6
call fcn.00414d40
mov ecx, dword [0x00419458]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x414e10
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00414bc0
cmp qword [0x0049a050], 0
mov rsi, rax
je 0x414dfa
test rax, rax
je 0x414dfa
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.00414c80
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x414f00
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x00419458]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x414f00
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x418d00
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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.00414020
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.00414020
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140005670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401e80b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000569d
xor eax, eax
jmp 0x1400057e3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400056d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400056d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400057e3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400057d6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000571a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005729
movsx ecx, dil
jmp 0x14000577d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140005797
sub eax, 1
je 0x140005797
cmp eax, 2
jne 0x1400057d6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000fe70
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400057db
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400057c4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14001075c
cmp rsi, rax
jne 0x1400057d6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400057db
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400094f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400065b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400065d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000664c
mov rdi, r14
mov rcx, rbx
call fcn.140003f90
test rax, rax
jle 0x140006624
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14000aeb0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000663c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006644
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400065e6
sub r14, rdi
jmp 0x14000672f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006663
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006665
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006697
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000aeb0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000672c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400066d2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000670d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400101f4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000672c
cmp rbp, rax
ja 0x1400066e0
test rbp, rbp
je 0x14000672c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400101f4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret