joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ddf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov word [rbp + 0x50], 0x5c
mov word [rbp + 0x52], 0x4b
mov word [rbp + 0x54], 0x6e
mov word [rbp + 0x56], 0x6f
mov word [rbp + 0x58], 0x77
mov word [rbp + 0x5a], 0x6e
mov word [rbp + 0x5c], 0x44
mov word [rbp + 0x5e], 0x6c
mov word [rbp + 0x60], 0x6c
mov word [rbp + 0x62], 0x73
mov word [rbp + 0x64], 0x5c
mov word [rbp + 0x66], 0x6e
mov word [rbp + 0x68], 0x74
mov word [rbp + 0x6a], 0x64
mov word [rbp + 0x6c], 0x6c
mov word [rbp + 0x6e], 0x6c
mov word [rbp + 0x70], 0x2e
mov word [rbp + 0x72], 0x64
mov word [rbp + 0x74], 0x6c
mov word [rbp + 0x76], 0x6c
mov word [rbp + 0x78], 0
lea rdx, [rbp + 0x50]
lea rax, [rbp + 0x80]
mov rcx, rax
call sub.ntdll.dll_RtlInitUnicodeString
mov dword [rbp + 0x20], 0x30
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x38], 0x40
lea rax, [rbp + 0x80]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov r9, qword [0x1400fe040]
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x18]
mov r8, rdx
mov edx, 0xc
mov rcx, rax
call r9
mov dword [rbp + 0x10c], eax
cmp dword [rbp + 0x10c], 0
jns 0x140001f4e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xa0]
lea rdx, [rbp + 0x9f]
mov rcx, rax
call fcn.140001b3c
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0xa8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp + 0xc0]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.140025c80
mov eax, 0
jmp 0x140002041
mov qword [rbp + 0x10], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x100], 0
mov r10, qword [0x1400fe038]
mov rax, qword [rbp + 0x18]
lea rcx, [rbp + 0x10]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rdx, [rbp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rcx
mov rdx, 0xffffffffffffffff
mov rcx, rax
call r10
mov dword [rbp + 0xfc], eax
cmp dword [rbp + 0xfc], 0
jns 0x14000203d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xd0]
lea rdx, [rbp + 0xcf]
mov rcx, rax
call fcn.140001c8e
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0xd8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.140025c80
mov eax, 0
jmp 0x140002041
mov rax, qword [rbp + 0x10]
add rsp, 0x198
pop rbx
pop rbp
ret
Function at 0x1400020fd
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
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
cmp qword [rbp - 0x18], 0
jne 0x140002183
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x41]
mov rcx, rax
call fcn.14000204c
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x60], eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.140025870
mov eax, 0
jmp 0x1400022ab
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 - 0x20], rax
mov dword [rbp - 0x48], 0
mov word [rbp - 0x22], 0
nop
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
cmp word [rbp - 0x22], ax
jae 0x1400022a9
mov dword [rbp - 0x4e], 0x7865742e
mov word [rbp - 0x4a], 0x74
mov rax, qword [rbp - 0x20]
lea rdx, [rbp - 0x4e]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400022a2
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x48]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x28], eax
cmp dword [rbp - 0x28], 0
jne 0x140002227
mov eax, 0
jmp 0x1400022ab
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp - 0x48]
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x48]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x2c], eax
cmp dword [rbp - 0x2c], 0
jne 0x1400022a2
mov eax, 0
jmp 0x1400022ab
mov eax, 1
jmp 0x1400022ab
ud2
add rsp, 0x90
pop rbp
ret
Function at 0x140002500
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400024d2
mov qword [rbp - 8], rax
mov byte [rbp - 0x70], 0x6f
mov byte [rbp - 0x6f], 0x7c
mov byte [rbp - 0x6e], 0x78
mov byte [rbp - 0x6d], 0x71
mov byte [rbp - 0x6c], 0x77
mov byte [rbp - 0x6b], 0x64
mov byte [rbp - 0x6a], 0x1a
mov byte [rbp - 0x69], 0x1b
mov byte [rbp - 0x68], 0x74
mov byte [rbp - 0x67], 0x54
mov byte [rbp - 0x66], 0x54
mov byte [rbp - 0x65], 0x5e
mov byte [rbp - 0x64], 0x23
mov byte [rbp - 0x63], 0x2a
mov byte [rbp - 0x62], 0x27
mov byte [rbp - 0x61], 0x27
mov byte [rbp - 0x60], 0x64
mov byte [rbp - 0x5f], 0xc
mov byte [rbp - 0x5e], 0x69
mov byte [rbp - 0x5d], 8
mov byte [rbp - 0x5c], 0x68
mov byte [rbp - 0x5b], 0x2a
mov byte [rbp - 0x5a], 0x25
mov byte [rbp - 0x59], 0x26
mov byte [rbp - 0x58], 0x3c
mov byte [rbp - 0x57], 0x21
mov byte [rbp - 0x56], 0x2b
mov byte [rbp - 0x55], 0x3b
mov byte [rbp - 0x54], 0x39
mov byte [rbp - 0x53], 0x3e
mov byte [rbp - 0x52], 0x3c
mov byte [rbp - 0x51], 0x73
mov byte [rbp - 0x50], 0x3c
mov byte [rbp - 0x4f], 0x34
mov byte [rbp - 0x4e], 0x38
mov byte [rbp - 0x4d], 0x33
mov byte [rbp - 0x4c], 0x34
mov byte [rbp - 0x4b], 0x3c
mov byte [rbp - 0x4a], 0x7a
mov byte [rbp - 0x49], 0x3d
mov byte [rbp - 0x48], 0x2e
mov byte [rbp - 0x47], 0x32
mov byte [rbp - 0x46], 0x33
mov byte [rbp - 0x45], 0x7f
mov byte [rbp - 0x44], 0x14
mov byte [rbp - 0x43], 9
mov byte [rbp - 0x42], 7
mov byte [rbp - 0x41], 0x43
mov byte [rbp - 0x40], 0x10
mov byte [rbp - 0x3f], 4
mov byte [rbp - 0x3e], 0x46
mov byte [rbp - 0x3d], 0x52
mov byte [rbp - 0x3c], 0x53
mov byte [rbp - 0x3b], 0x43
mov byte [rbp - 0x3a], 0x18
mov byte [rbp - 0x39], 0x49
mov byte [rbp - 0x38], 0x48
mov byte [rbp - 0x37], 0x54
mov byte [rbp - 0x36], 0x5f
mov byte [rbp - 0x35], 0x58
mov byte [rbp - 0x34], 0x4d
mov byte [rbp - 0x33], 0x4c
mov byte [rbp - 0x32], 0x7a
mov byte [rbp - 0x31], 0x61
mov byte [rbp - 0x30], 0x42
lea rax, [rbp - 0x70]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax + 0x40]
test al, al
setne al
test al, al
je 0x1400026a9
lea rax, [rbp - 0x70]
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], 0
jmp 0x1400026a2
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 4
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x32
sub eax, ecx
mov edx, eax
mov eax, edx
add eax, 0x34
mov ecx, r8d
xor ecx, eax
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 0x24]
cdqe
mov byte [rdx + rax], cl
add dword [rbp - 0x24], 1
cmp dword [rbp - 0x24], 0x40
jle 0x140002655
nop
lea rax, [rbp - 0x70]
mov rdx, qword [rbp - 8]
mov r8, rdx
mov rdx, rax
lea rax, [0x1400d01e1]
mov rcx, rax
call fcn.140001450
mov dword [rbp - 0x28], 0
jmp 0x1400026dd
mov eax, dword [rbp - 0x28]
cdqe
mov byte [rbp + rax - 0x70], 0
add dword [rbp - 0x28], 1
cmp dword [rbp - 0x28], 0x40
jle 0x1400026cf
nop
mov rax, qword [rbp - 8]
add rsp, 0x90
pop rbp
ret
Function at 0x140014ac0
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.14001f610
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.14001f610
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 0x140014b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400fe144]
mov rbx, rcx
test esi, esi
jle 0x140014c60
mov rax, qword [0x1400fe148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140014b7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014c05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014b60
mov rcx, rbx
call fcn.1400155b0
mov rdi, rax
test rax, rax
je 0x140014c82
mov rax, qword [0x1400fe148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400156f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400fe148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014c67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140014bfe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140014c10
add dword [0x1400fe144], 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 [0x1400fe148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140014bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014ac0
nop dword [rax]
xor esi, esi
jmp 0x140014b88
mov rax, qword [0x1400fe148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140014ac0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140014ac0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140015220
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400fe1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400fe180]
test rbx, rbx
je 0x14001527c
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 0x140015273
test eax, eax
jne 0x140015273
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015258
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 0x1400155b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140015630
Capabilities:
Parse pe header

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

Function at 0x1400156f0
Capabilities:
Parse pe header

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

Function at 0x140021b70
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 0x140021c72
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140021c4a
add rax, 1
cmp rax, 0x6b
je 0x140021c67
cmp byte [rcx + rax], 0
jne 0x140021c40
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140021c67
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 0x140021c58
Function at 0x140022010
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400fedc0], 1
je 0x1400220b0
lea rdi, [0x1400fedc0]
mov rcx, rdi
call fcn.140021920
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140021250
mov esi, dword [0x1400fedc0]
test esi, esi
jne 0x140022088
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400cc2b8], eax
cmp eax, 0xffffffff
je 0x1400cb416
mov dword [0x1400fedc0], 1
mov rcx, rbp
call fcn.140021520
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140021c90
cmp esi, 1
je 0x14002206c
mov ecx, 2
call qword [fcn.14001f610]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14002206c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop

Function at 0x1400220c0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140021da0
cmp qword [0x140101048], 0
mov rbx, rax
je 0x1400221d8
test rax, rax
je 0x1400221d8
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.140021820
cmp eax, 1
je 0x1400221e6
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.1400cb41c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400cc2b8]
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 0x1400221ec
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.140021b70
nop
jmp fcn.1400cb41c

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

Disassembly:
sub rsp, 0x28
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022220
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400220c0
Function at 0x1400229a0
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 0x140022ad8
cmp eax, 1
je 0x1400229f3
call fcn.140021920
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.140021250
mov ebp, dword [rbx]
test ebp, ebp
je 0x140022a00
cmp ebp, 1
jne 0x140022aa0
mov rcx, r12
call fcn.140021520
mov rcx, rdi
call fcn.140021c90
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140021d70]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x140022b20
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
call rbp
test rax, rax
je 0x140022b08
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
call rbp
test rax, rax
je 0x140022af0
mov rdx, qword [rsp + 0x30]
mov rcx, r12
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.140021520
mov rcx, rdi
call fcn.140021c90
jmp 0x1400229f3
mov ecx, 2
call qword [fcn.14001f610]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r12
call fcn.140021520
mov rcx, rdi
call fcn.140021c90
jmp 0x1400229f3
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400220c0
test rax, rax
jne 0x140022a76
jmp 0x1400cb435
call fcn.1400220c0
test rax, rax
jne 0x140022a53
jmp 0x1400cb44e
call fcn.1400220c0
test rax, rax
jne 0x140022a2e
jmp 0x1400cb444
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 0x140022db0
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.140022010
mov ecx, dword [0x1400cc2b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022e28
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140021830
cmp esi, dword [rbx + 0x48]
jae 0x140022e03
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140022e03
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140021870
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.1400220c0
mov rbx, rax
jmp 0x140022ddd
Function at 0x140022e40
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.140022010
mov ecx, dword [0x1400cc2b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022f38
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140021830
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x140022f03
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140022f45
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140022f45
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
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140021870
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
call fcn.1400220c0
mov rbx, rax
jmp 0x140022e7a
mov rcx, r13
call fcn.140021870
mov eax, 0xc
jmp 0x140022f21

Function at 0x140022fe0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023008
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400220c0
test rax, rax
jne 0x140022ffa
add rsp, 0x28
ret

Function at 0x140023070
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023098
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400220c0
test rax, rax
jne 0x14002308a
jmp 0x14002308e

Function at 0x1400231b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fedc8]
test eax, eax
jne 0x1400231c8
xor eax, eax
add rsp, 0x28
ret
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400231f8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400231be
test byte [rax + 0x40], 3
je 0x1400231be
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400231c0
call fcn.1400220c0
test rax, rax
je 0x1400231be
jmp 0x1400231de

Function at 0x140023210
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140022010
mov ecx, dword [0x1400cc2b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023250
test ebx, ebx
jle 0x140023240
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.1400220c0
test rax, rax
jne 0x14002322d
add rsp, 0x20
pop rbx
ret