joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009f560
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x180109b28]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x18009f5cc
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x18009f5cc
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x18009f61f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x18009f5b0
mov rcx, qword [0x18010ea18]
test rcx, rcx
jne 0x18009f602
call fcn.1800a13e0
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x18010ea18], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x18009f703
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x18009f705
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x18009f72a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x18009f5cc
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x18009f5cc
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x18009f5cc
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x18009f6f3
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x18009f6d1
jmp 0x18009f5cc
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x18009f5cc
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.180090d80
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.180090ea8
int3
Function at 0x8b5030
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
je 0x8b5040
jne 0x8b5040
sub rsp, 0x28
mov rax, qword [rdx]
cmp dword [rax + 0x8c], 0
je 0x8b50eb
mov rsi, qword [rdx + 8]
mov edi, dword [rax + 0x88]
cmp dword [rdi + rsi + 0x18], 0
je 0x8b5088
jne 0x8b5088
je 0x497f51b6
add r12, rsi
add rbx, rsi
je 0x8b50eb
cmp dword [rsi + rdi + 0x14], 0
je 0x8b50eb
mov r15, r8
mov r13, rcx
mov ebx, dword [rsi + rdi + 0x20]
mov r12d, dword [rsi + rdi + 0x24]
je 0x8b5069
jne 0x8b5069
je 0x754eafeb
and eax, 0x44e92375
mov esi, dword [rcx + rax]
Function at 0x8c2790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x8c27c0
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x38], eax
mov rcx, rbx
mov rdx, rsi
call r15
mov rcx, rdi
jmp 0x8c2870
xor r14d, r14d
xor edx, edx
jmp 0x8c28ff
mov rax, qword [rcx]
jmp 0x8c280b
push r15
je 0x8c28f6
jne 0x8c28f6
add byte [rax], al
add byte [rax], al
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
jmp 0x8c28de
mov rcx, rbp
jmp 0x8c28b1
mov r15, qword [sym.imp.itmkl_beo_UteNpt2HgazewrUmZvtjloS]
je 0x8c27d2
jne 0x8c27d2
jmp 0xffffffffff8db34d
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x8c2796
call qword [rax + 8]
je 0x8c2914
jne 0x8c2914
jmp 0x8cd508
jmp 0x8c28cc
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
je 0x8c287d
jne 0x8c287d
por mm3, qword [rdx - 0x17]
je 0x8c27ed
jne 0x8c27ed
je 0xffffffff849bd62d
jmp 0x8c2821
sub rsp, 0x28
mov rdi, rcx
je 0x8c290b
jmp 0x8c2932
push rdi
push rbp
push rbx
jmp 0x8c2845
je 0x8c2920
mov rax, qword [rcx]
jmp 0x8c27ad
call fcn.008c3060
jmp 0x8c295e
jmp 0x144ac90
je 0x8c293b
je 0x8c294f
jne 0x8c294f
je 0xffffffff8e103819
je 0x8c2925
add byte [rax], al
add byte [rax - 0x75], cl
outsd dx, dword [rsi]
adc byte [rdi], cl
test ch, cl
add byte [rax], al
add byte [rdi], cl
test edi, eax
add byte [rax], al
add byte [rax - 0x7b], cl
leave
mov rbp, qword [rdi + 0x10]
je 0x8c296f
jne 0x8c296f
test rcx, rcx
jmp 0x8c285e
call qword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
jmp 0x8c27bb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [rax + 0x30]
test rax, rax
je 0x8c293b
mov rcx, qword [rdi + 0x10]
je 0x8c2801
jne 0x8c2801
push r14
push rsi
jmp 0x8c2857
je 0x8c2842
jne 0x8c2842
mov rcx, qword [rcx + 0x10]
je 0x8c28a8
jne 0x8c28a8
jmp 0x177e99d
test eax, eax
jmp 0x8c2918
jne 0x8c27e0
jmp 0x8c293b
xor r14d, r14d
jmp 0x8c293b
je 0x8c2935
jne 0x8c2935
jmp 0x8c287c
jne 0x8c290b
jmp 0x8de77a
mov r14d, 1
mov eax, r14d
jmp 0x8c2942
je 0x8c281b
jne 0x8c281b
jmp 0x38ebb69b
lea rbx, [rdi + 0x38]
lea rsi, [rdi + 0x3c]
jmp 0x8c27f5
cmp eax, 1
je 0x8c2892
jne 0x8c2892
je 0xd1b4bb
mov rax, qword [rbp]
jmp 0x8c2838
invalid
add al, ah
dec dword [rbp + 0x29]
imul r9, rbx, 0xa2c13
Function at 0x8d8de0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x008efbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret
Function at 0x8dee90
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x8def1b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
mov eax, 1
ret
Function at 0x8df940
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.008df6b0
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.008dc300
mov rcx, rdi
mov rdx, rbx
call fcn.008dc280
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x8df9a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x8df9c0
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.008d9700
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.008d9390
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.008d93b0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.008db630
mov rcx, rbx
mov rdx, rbx
call fcn.008d9990
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.008da130
lea rcx, [rsp + 0x80]
call fcn.008d9390
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.008d9370
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.008d96e0
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.008d9390
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.008d9540
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.008d9540
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.008db630
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.008db630
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.008d93b0
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.008d93b0
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.008da130
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.008da130
mov rcx, rbp
mov rdx, rbx
call fcn.008d9c20
mov rcx, rbx
mov rdx, rsi
call fcn.008d9c20
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.008d93b0
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.008db630
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.008da130
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.008db630
mov rcx, rdi
mov rdx, rdi
call fcn.008d9c20
mov rcx, r14
mov rdx, rbx
call fcn.008dac70
mov rcx, r12
mov rdx, r12
call fcn.008d9c20
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.008d93b0
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.008da130
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.008da130
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x8dfa90
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.008d9540
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.008d9540
mov rcx, rdi
mov rdx, rdi
call fcn.008d9990
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.008da130
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.008da9a0
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002d8f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140011220
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x14000ab90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140010c30
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.140010c30
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 0x14000ac00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001f1f4]
mov rbx, rcx
test esi, esi
jle 0x14000ad30
mov rax, qword [0x14001f1f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000ac4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000acd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000ac30
mov rcx, rbx
call fcn.14000b650
mov rdi, rax
test rax, rax
je 0x14000ad52
mov rax, qword [0x14001f1f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000b790
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001f1f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ad37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000acce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000ace0
add dword [0x14001f1f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001f1f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000acce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ab90
nop dword [rax]
xor esi, esi
jmp 0x14000ac58
mov rax, qword [0x14001f1f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ab90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ab90
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000b2c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001f260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f240]
test rbx, rbx
je 0x14000b31c
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 eax, eax
jne 0x14000b313
test rsi, rsi
je 0x14000b313
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b2f8
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 0x14000b650
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000b6d0
Capabilities:
Parse pe header

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

Function at 0x14000b790
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140019240]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b7af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b7b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011cb0
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 0x140011db2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140011d8a
add rax, 1
cmp rax, 0x6b
je 0x140011da7
cmp byte [rcx + rax], 0
jne 0x140011d80
movsxd rdx, eax
cmp eax, 0x6a
je 0x140011da7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140011d9b

Function at 0x140012150
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14001fd60], 1
je 0x1400121c8
lea rdi, [0x14001fd60]
mov rcx, rdi
call fcn.140011a30
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400113b0
mov esi, dword [0x14001fd60]
test esi, esi
jne 0x1400121d8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400173b8], eax
cmp eax, 0xffffffff
je 0x140016b96
mov dword [0x14001fd60], 1
mov rcx, rbp
call fcn.1400116a0
test rbx, rbx
je 0x1400121c8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140011dd0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400121a8
mov ecx, 2
call qword [fcn.140010c30]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400121a8
call sub.msvcrt.dll_abort
nop
Function at 0x140012200
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140011ee0
cmp qword [0x140021048], 0
mov rbx, rax
je 0x140012318
test rax, rax
je 0x140012318
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.140015480
cmp eax, 1
je 0x140012326
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.140016b9c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400173b8]
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 0x14001232c
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.140011cb0
nop
jmp fcn.140016b9c

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

Disassembly:
sub rsp, 0x28
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012360
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140012200
Function at 0x140012ad0
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 0x140012bf8
cmp eax, 1
je 0x140012b2b
call fcn.140011a30
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400113b0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140012b40
cmp r12d, 1
jne 0x140012bd0
mov rcx, rbp
call fcn.1400116a0
test rdi, rdi
je 0x140012b2b
mov rcx, rdi
call fcn.140011dd0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140011eb0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140012150
mov ecx, dword [0x1400173b8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140012c38
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140012150
mov ecx, dword [0x1400173b8]
call r12
test rax, rax
je 0x140012c20
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140012150
mov ecx, dword [0x1400173b8]
call r12
test rax, rax
je 0x140012c10
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140012b16
mov ecx, 2
call qword [fcn.140010c30]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140012b16
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140012200
test rax, rax
jne 0x140012bb9
jmp 0x140016bb5
call fcn.140012200
test rax, rax
jne 0x140012b95
jmp 0x140016bce
call fcn.140012200
test rax, rax
jne 0x140012b6f
jmp 0x140016bc4
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 0x140012ec0
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.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012f38
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140015490
cmp esi, dword [rbx + 0x48]
jae 0x140012f13
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140012f13
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400154d0
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.140012200
mov rbx, rax
jmp 0x140012eed
Function at 0x140012f50
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.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140013050
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140015490
cmp esi, dword [rbx + 0x48]
jae 0x140012fd0
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.1400154d0
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 0x14001305d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001305d
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 0x140012f9f
call fcn.140012200
mov rbx, rax
jmp 0x140012f8a
mov rcx, r13
call fcn.1400154d0
mov eax, 0xc
jmp 0x140012fbd

Function at 0x1400130e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140013108
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140012200
test rax, rax
jne 0x1400130fa
add rsp, 0x28
ret

Function at 0x140013170
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140013198
add rax, 0x18
add rsp, 0x28
ret
call fcn.140012200
test rax, rax
jne 0x14001318a
jmp 0x14001318e

Function at 0x1400132b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14001fd68]
test eax, eax
jne 0x1400132c8
xor eax, eax
add rsp, 0x28
ret
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400132f8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400132be
test byte [rax + 0x40], 3
je 0x1400132be
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400132c0
call fcn.140012200
test rax, rax
jne 0x1400132de
jmp 0x1400132be

Function at 0x140013310
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140012150
mov ecx, dword [0x1400173b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140013350
test ebx, ebx
jle 0x140013340
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.140012200
test rax, rax
jne 0x14001332d
add rsp, 0x20
pop rbx
ret