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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140018860
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140018860
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000d992
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ea168]
test eax, eax
je 0x14000da2a
lea rax, [0x1400ea140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ea170]
mov qword [rbp - 8], rax
jmp 0x14000da0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000da02
cmp qword [rbp - 0x10], 0
je 0x14000da02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000d9c8
lea rax, [0x1400ea140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000da2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000db30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000db58
mov eax, 0
jmp 0x14000dba6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000db81
mov eax, 0
jmp 0x14000dba6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000dba1
mov eax, 0
jmp 0x14000dba6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000dbac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000dc2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000dc21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000dc21
mov rax, qword [rbp - 8]
jmp 0x14000dc3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000dbf4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14001aed0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
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 + 0x7b], 0
mov qword [rsp + 0x83], 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 0x14001afd2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001afaa
add rax, 1
cmp rax, 0x6b
je 0x14001afc7
cmp byte [rcx + rax], 0
jne 0x14001afa0
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14001afc7
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
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001afb8

Function at 0x14001b370
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400ead60], 1
je 0x14001b3e8
lea rdi, [0x1400ead60]
mov rcx, rdi
call fcn.14001ac60
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a590
mov esi, dword [0x1400ead60]
test esi, esi
jne 0x14001b3f8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400ba188], eax
cmp eax, 0xffffffff
je 0x1400b9a66
mov dword [0x1400ead60], 1
mov rcx, rbp
call fcn.14001a860
test rbx, rbx
je 0x14001b3e8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001aff0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b3c8
mov ecx, 2
call qword [fcn.140018860]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001b3c8
Function at 0x14001b420
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001b100
cmp qword [0x1400ed048], 0
mov rbx, rax
je 0x14001b538
test rax, rax
je 0x14001b538
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001ab60
cmp eax, 1
je 0x14001b546
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
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b9a6c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400ba188]
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 0x14001b54c
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.14001aed0
nop
jmp fcn.1400b9a6c

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

Disassembly:
sub rsp, 0x28
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b580
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001b420
Function at 0x14001bcf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001be18
cmp eax, 1
je 0x14001bd4b
call fcn.14001ac60
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14001a590
mov r12d, dword [rbx]
test r12d, r12d
je 0x14001bd60
cmp r12d, 1
jne 0x14001bdf0
mov rcx, rbp
call fcn.14001a860
test rdi, rdi
je 0x14001bd4b
mov rcx, rdi
call fcn.14001aff0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14001b0d0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001b370
mov ecx, dword [0x1400ba188]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14001be58
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call r12
test rax, rax
je 0x14001be40
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call r12
test rax, rax
je 0x14001be30
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001bd36
mov ecx, 2
call qword [fcn.140018860]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001bd36
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001b420
test rax, rax
jne 0x14001bdd9
jmp 0x1400b9a85
call fcn.14001b420
test rax, rax
jne 0x14001bdb5
jmp 0x1400b9a9e
call fcn.14001b420
test rax, rax
jne 0x14001bd8f
jmp 0x1400b9a94
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 0x14001c0e0
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.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c158
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001ab70
cmp esi, dword [rbx + 0x48]
jae 0x14001c133
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001c133
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001abb0
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.14001b420
mov rbx, rax
jmp 0x14001c10d
Function at 0x14001c170
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, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c270
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001ab70
cmp esi, dword [rbx + 0x48]
jae 0x14001c1f0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001abb0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001c27d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001c27d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001c1bf
call fcn.14001b420
mov rbx, rax
jmp 0x14001c1aa
mov rcx, r13
call fcn.14001abb0
mov eax, 0xc
jmp 0x14001c1dd

Function at 0x14001c300
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c328
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b420
test rax, rax
jne 0x14001c31a
add rsp, 0x28
ret

Function at 0x14001c390
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c3b8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b420
test rax, rax
jne 0x14001c3aa
jmp 0x14001c3ae

Function at 0x14001c4d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400ead68]
test eax, eax
jne 0x14001c4e8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c518
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c4de
test byte [rax + 0x40], 3
je 0x14001c4de
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c4e0
call fcn.14001b420
test rax, rax
jne 0x14001c4fe
jmp 0x14001c4de

Function at 0x14001c530
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c570
test ebx, ebx
jle 0x14001c560
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.14001b420
test rax, rax
jne 0x14001c54d
add rsp, 0x20
pop rbx
ret
Function at 0x14001c660
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c6d8
test byte [rbx + 0x40], 0xc
jne 0x14001c68f
mov eax, dword [0x1400ead68]
test eax, eax
jne 0x14001c6a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a590
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c6c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c6c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c6ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a860
call fcn.14001b420
mov rbx, rax
test rax, rax
jne 0x14001c67f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c70a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001a860
call fcn.14001c580
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c790
call fcn.14001a340
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c7c8
call fcn.14001b370
mov ecx, dword [0x1400ba188]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c820
test esi, esi
je 0x14001c7a6
call fcn.14001c660
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c800
mov edx, edi
call fcn.14001a3f0
call fcn.14001c660
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c810
call fcn.14001c660
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c660
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b370
mov ecx, dword [0x1400ba188]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001c765
call fcn.14001b420
mov rbx, rax
jmp 0x14001c765
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c77e
call fcn.14001b420
jmp 0x14001c7a6
call fcn.14001b420
mov rbx, rax
jmp 0x14001c761
Function at 0x14001c720
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c6d8
test byte [rbx + 0x40], 0xc
jne 0x14001c68f
mov eax, dword [0x1400ead68]
test eax, eax
jne 0x14001c6a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a590
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c6c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c6c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c6ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a860
call fcn.14001b420
mov rbx, rax
test rax, rax
jne 0x14001c67f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c70a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001a860
call fcn.14001c580
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c790
call fcn.14001a340
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c7c8
call fcn.14001b370
mov ecx, dword [0x1400ba188]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c820
test esi, esi
je 0x14001c7a6
call fcn.14001c660
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c800
mov edx, edi
call fcn.14001a3f0
call fcn.14001c660
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c810
call fcn.14001c660
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c660
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b370
mov ecx, dword [0x1400ba188]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001c765
call fcn.14001b420
mov rbx, rax
jmp 0x14001c765
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c77e
call fcn.14001b420
jmp 0x14001c7a6
call fcn.14001b420
mov rbx, rax
jmp 0x14001c761

Function at 0x14001c830
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c8a0
test esi, esi
je 0x14001c880
call fcn.14001c660
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c8b0
mov edx, esi
call fcn.14001a3f0
call fcn.14001c660
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c660
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c660
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b420
mov rbx, rax
jmp 0x14001c851
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c86a
Function at 0x14001ce40
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.14001b100
mov rbx, rax
test rax, rax
je 0x14001d074
test rbp, rbp
je 0x14001ce7b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14001cef0
test esi, esi
jne 0x14001cee0
xor ecx, ecx
mov esi, 1
call r14
jmp 0x14001ceaf
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x14001ceaf
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.14001ab60
cmp eax, 1
je 0x14001d0bf
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x14001d05d
xor edx, edx
test rdi, rdi
je 0x14001cf5d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x14001d080
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x14001b6d0]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001d028
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x14001d000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x14001cfe0
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001cfc7
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x14001cfa1
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x14001cfa1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001d037
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.14001a9f0
mov rcx, r12
call fcn.14001ab60
cmp eax, 1
je 0x14001d0bf
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14001d06a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x14001d0a8
mov eax, 0xb
jmp 0x14001cfd1
call fcn.14001b370
mov ecx, dword [0x1400ba188]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d0b8
mov eax, dword [rax + 0xc0]
jmp 0x14001cf55
mov rcx, rbx
call fcn.14001b1d0
jmp 0x14001d074
call fcn.14001b420
jmp 0x14001d096
call fcn.14001aed0
nop
nop word cs:[rax + rax]
Function at 0x14001feb0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400bbf20], 0
jne 0x14001ffb3
mov byte [0x1400bbf20], 1
call sym.unk_3518
test rax, rax
je 0x14001ff88
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.unk_3480
mov ecx, 2
mov rsi, qword [fcn.140018860]
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 sub.msvcrt.dll_fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001ff79
call rsi
mov rcx, rbx
mov rdx, rax
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400bc221]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400b7667
jmp 0x1400b765f
call rsi
mov rcx, rdi
mov rdx, rax
call sub.msvcrt.dll_fputs
jmp 0x14001ff47
mov ecx, 2
call qword [fcn.140018860]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sub.msvcrt.dll_fwrite
nop
jmp 0x1400b765a
mov ecx, 2
call qword [fcn.140018860]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.140018f88
call sym.unk_72
call sym.unk_41
call sym.unk_42
jmp 0x1400b765a

Function at 0x14007eb30
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 sub.msvcrt.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007eb78
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007eb4a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400914a0
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 0x1400914c8
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 sub.msvcrt.dll__read
test eax, eax
jle 0x140091510
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400914e0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14009151c
call rbp
cmp dword [rax], 4
je 0x1400914e0
lea rcx, str.random_device_could_not_be_read
call sym.unk_1765
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x1400c1ff0]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov eax, dword [rax - 8]
test eax, eax
mov rax, qword [rcx + 8]
jg 0x140091560
mov dword [rax - 8], 1
ret
lock add dword [rax - 8], 1
ret