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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004b218
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140055589
cmp ebx, dword [rsp + 0x30]
je 0x140055582
test esi, esi
je 0x140055582
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14005555d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005556a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140055547
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005556e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005558b
mov eax, 1
jmp 0x14005558b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400573d0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14005741a
call fcn.140042424
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.140042444
mov dword [rax], SafeArrayDestroy
call fcn.14003bf24
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140034f20
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140057425
lea eax, [rbx + 1]
jmp 0x140057407
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140057405
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140057407

Function at 0x140059850
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140059878
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140059878
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001472
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x458
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], rdx
mov rax, qword [rbp + 0x3f0]
mov rcx, rax
call fcn.1400b1050
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.UserAgent
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x3c8], rax
cmp qword [rbp + 0x3c8], 0
je 0x1400015de
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call fcn.14002fd70
mov rdx, rax
mov rax, qword [rbp + 0x3c8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x3c0], rax
cmp qword [rbp + 0x3c0], 0
je 0x1400015ac
jmp 0x140001554
mov eax, dword [rbp + 0x3bc]
mov ecx, eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3f0]
mov r8, rcx
mov rcx, rax
call fcn.1400af2d0
lea rcx, [rbp + 0x3bc]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3c0]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x140001590
mov eax, dword [rbp + 0x3bc]
test eax, eax
je 0x140001590
mov eax, 1
jmp 0x140001595
mov eax, 0
test al, al
jne 0x140001536
mov rax, qword [rbp + 0x3c0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3c8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x1400015de
nop
mov rax, qword [rbp + 0x3f0]
add rsp, 0x458
pop rbx
pop rbp
ret
Function at 0x140001860
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
sub rsp, 0x470
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], rcx
mov qword [rbp + 0x408], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.UserAgent
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x3e0], rax
cmp qword [rbp + 0x3e0], 0
jne 0x1400018c5
mov eax, 0
jmp 0x140001a9b
mov rax, qword [rbp + 0x400]
mov rcx, rax
call fcn.14002fd70
mov rdx, rax
mov rax, qword [rbp + 0x3e0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0
jne 0x140001935
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001a9b
mov rax, qword [rbp + 0x408]
mov rcx, rax
call fcn.14002fd70
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x3d0], rax
cmp qword [rbp + 0x3d0], 0xffffffffffffffff
jne 0x1400019bb
mov rax, qword [rbp + 0x3d8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x140001a9b
mov byte [rbp + 0x3ef], 1
jmp 0x140001a18
mov ecx, dword [rbp - 0x34]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x3d0]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x1400019ff
mov edx, dword [rbp - 0x38]
mov eax, dword [rbp - 0x34]
cmp edx, eax
je 0x140001a06
mov eax, 1
jmp 0x140001a0b
mov eax, 0
test al, al
je 0x140001a18
mov byte [rbp + 0x3ef], 0
jmp 0x140001a5b
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x3d8]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x140001a4e
mov eax, dword [rbp - 0x34]
test eax, eax
je 0x140001a4e
mov eax, 1
jmp 0x140001a53
mov eax, 0
test al, al
jne 0x1400019c4
mov rax, qword [rbp + 0x3d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x3d8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
movzx eax, byte [rbp + 0x3ef]
add rsp, 0x470
pop rbp
ret
Function at 0x14000d750
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.140017c10
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.140017c10
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 0x14000d7c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14010b094]
mov rbx, rcx
test esi, esi
jle 0x14000d8f0
mov rax, qword [0x14010b098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d80b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d895
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d7f0
mov rcx, rbx
call fcn.14000e230
mov rdi, rax
test rax, rax
je 0x14000d912
mov rax, qword [0x14010b098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e370
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14010b098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d8f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000d88e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000d8a0
add dword [0x14010b094], 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 [0x14010b098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d88e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d750
nop dword [rax]
xor esi, esi
jmp 0x14000d818
mov rax, qword [0x14010b098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d750
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000d750
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000dea0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14010b100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14010b0e0]
test rbx, rbx
je 0x14000defc
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 0x14000def3
test eax, eax
jne 0x14000def3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ded8
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 0x14000e230
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000e2b0
Capabilities:
Parse pe header

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

Function at 0x14000e370
Capabilities:
Parse pe header

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

Function at 0x14000f280
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000f2b0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14000f2d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000f300
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001a840
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14010bc40], 1
je 0x14001a8b8
lea rdi, [0x14010bc40]
mov rcx, rdi
call fcn.14001a1c0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140019ac0
mov esi, dword [0x14010bc40]
test esi, esi
jne 0x14001a8c8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d5308], eax
cmp eax, 0xffffffff
je 0x1400d44f6
mov dword [0x14010bc40], 1
mov rcx, rbp
call fcn.140019d90
test rbx, rbx
je 0x14001a8b8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001a4c0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001a898
mov ecx, 2
call qword [fcn.140017c10]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001a898
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14001a8f0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001a5d0
mov rbx, rax
test rax, rax
je 0x14001a9ec
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.14001a0b0
cmp eax, 1
je 0x14001a9f8
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 0x1400d44fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400d5308]
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 0x1400d44fc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001a430
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001aa20
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001a8f0
Function at 0x14001b1d0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x1400dfb20]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001b318
cmp eax, 1
je 0x14001b23d
call fcn.14001a1c0
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.140019ac0
mov r13d, dword [rbx]
test r13d, r13d
je 0x14001b260
cmp r13d, 1
jne 0x14001b2f0
mov rcx, r12
call fcn.140019d90
test rdi, rdi
je 0x14001b23d
mov rcx, rdi
call fcn.14001a4c0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14001b36b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001a5a0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001a840
mov ecx, dword [0x1400d5308]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14001b358
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mfence
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call r13
test rax, rax
je 0x14001b340
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
mfence
call rsi
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call r13
test rax, rax
je 0x14001b328
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001b228
mov ecx, 2
call qword [fcn.140017c10]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001b228
mov eax, 0x16
jmp 0x14001b23f
call fcn.14001a8f0
test rax, rax
jne 0x14001b2d3
jmp 0x1400d452e
call fcn.14001a8f0
test rax, rax
jne 0x14001b2b2
jmp 0x1400d451f
call fcn.14001a8f0
test rax, rax
jne 0x14001b28f
jmp 0x1400d4515
call fcn.14000f2d0
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14001b5f0
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.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b668
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001a0c0
cmp esi, dword [rbx + 0x48]
jae 0x14001b643
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001b643
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001a110
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.14001a8f0
mov rbx, rax
jmp 0x14001b61d
Function at 0x14001b680
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.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b780
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001a0c0
cmp esi, dword [rbx + 0x48]
jae 0x14001b700
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.14001a110
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 0x14001b78d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001b78d
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 0x14001b6cf
call fcn.14001a8f0
mov rbx, rax
jmp 0x14001b6ba
mov rcx, r13
call fcn.14001a110
mov eax, 0xc
jmp 0x14001b6ed

Function at 0x14001b810
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b838
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001a8f0
test rax, rax
jne 0x14001b82a
add rsp, 0x28
ret

Function at 0x14001b8a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b8c8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001a8f0
test rax, rax
jne 0x14001b8ba
jmp 0x14001b8be

Function at 0x14001b9e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14010bc48]
test eax, eax
jne 0x14001b9f8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ba28
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001b9ee
test byte [rax + 0x40], 3
je 0x14001b9ee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001b9f0
call fcn.14001a8f0
test rax, rax
jne 0x14001ba0e
jmp 0x14001b9ee

Function at 0x14001ba40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ba80
test ebx, ebx
jle 0x14001ba70
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.14001a8f0
test rax, rax
jne 0x14001ba5d
add rsp, 0x20
pop rbx
ret
Function at 0x14001bb70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bbe8
test byte [rbx + 0x40], 0xc
jne 0x14001bb9f
mov eax, dword [0x14010bc48]
test eax, eax
jne 0x14001bbb0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019ac0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001bbd3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001bbd3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001bbfc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019d90
call fcn.14001a8f0
mov rbx, rax
test rax, rax
jne 0x14001bb8f
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 0x14001bc1a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140019d90
call fcn.14001ba90
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001bca0
call fcn.140019780
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001bcd8
call fcn.14001a840
mov ecx, dword [0x1400d5308]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bd30
test esi, esi
je 0x14001bcb6
call fcn.14001bb70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001bd10
mov edx, edi
call fcn.140019850
call fcn.14001bb70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bd20
call fcn.14001bb70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bb70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a840
mov ecx, dword [0x1400d5308]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001bc75
call fcn.14001a8f0
mov rbx, rax
jmp 0x14001bc75
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001bc8e
call fcn.14001a8f0
jmp 0x14001bcb6
call fcn.14001a8f0
mov rbx, rax
jmp 0x14001bc71