joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140122264]
mov rbx, rcx
test esi, esi
jle 0x14000de10
mov rax, qword [0x140122268]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000dd2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000ddb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000dd10
mov rcx, rbx
call fcn.14000e750
mov rdi, rax
test rax, rax
je 0x14000de32
mov rax, qword [0x140122268]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e890
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140122268]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000de17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000ddae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000ddc0
add dword [0x140122264], 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 [0x140122268]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000ddae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000dc70
nop dword [rax]
xor esi, esi
jmp 0x14000dd38
mov rax, qword [0x140122268]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000dc70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000dc70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e3c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401222c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401222a0]
test rbx, rbx
je 0x14000e41c
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 0x14000e413
test eax, eax
jne 0x14000e413
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e3f8
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 0x14000e750
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000e7d0
Capabilities:
Parse pe header

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

Function at 0x14000e890
Capabilities:
Parse pe header

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

Function at 0x14000f7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x14000f900
cmp word [rbx], 0
je 0x14000f8f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000f910
test al, 0x10
je 0x14000f8f0
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
lea rdi, [0x1400f4be0]
lea rbp, [0x1400f4be4]
call sub.msvcrt.dll__wfullpath
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rcx, rdi
mov rbx, rax
call sub.msvcrt.dll_wcslen
mov rcx, rbp
add rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
je 0x14000f91f
lea r12, [rax + 0x44c]
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
cmp word [rbx + 0x44c], 0
jne 0x14000f8b8
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [rbx + 0x448], 0
mov qword [rbx + 0x230], 0
rep stosq qword [rdi], rax
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x14000f862
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x14000f862
mov rdx, rdi
mov rcx, r12
call sub.msvcrt.dll_wcscat
jmp 0x14000f862
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
jmp 0x14000f8a1
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x14000f8a1
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x14000f8a1
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x14000f8a1
Function at 0x14000fc60
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 0x14000fc90
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 0x14000fcb0
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 0x14000fce0
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 0x14000feb0
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x1400100e0
test rdx, rdx
js 0x1400100e0
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140010110
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x140010110
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x1400100e0
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140010110
cmp qword [rsp + 0x68], rsi
jb 0x14000ffa0
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14000ff59
cmp dword [rsp + 0x70], 0xffffffff
jne 0x1400100f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400100e0
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call sub.msvcrt.dll__lseeki64
cmp rax, 0xffffffffffffffff
je 0x1400100e0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400100e0
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rbx, rbx
je 0x140010110
test rax, rax
je 0x140010110
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x140010037
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x1400100c8
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x140010020
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call fcn.140019028
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call fcn.140019028
test r12d, r12d
je 0x140010101
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x14000ff31
jmp 0x140010101
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call fcn.140019028
jmp 0x140010084
mov ecx, 0x16
call fcn.140018830
mov eax, 0xffffffff
jmp 0x14000ff85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x1400100e0
mov ecx, 0x1b
call fcn.140018830
jmp 0x1400100ea
mov ecx, 9
call fcn.140018830
jmp 0x1400100ea
Function at 0x14001b4e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140122e00], 1
je 0x14001b558
lea rdi, [0x140122e00]
mov rcx, rdi
call fcn.14001ae60
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a760
mov esi, dword [0x140122e00]
test esi, esi
jne 0x14001b568
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400ec328], eax
cmp eax, 0xffffffff
je 0x1400ebeb6
mov dword [0x140122e00], 1
mov rcx, rbp
call fcn.14001aa30
test rbx, rbx
je 0x14001b558
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001b160
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b538
mov ecx, 2
call qword [fcn.1400189a0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001b538
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14001b590
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001b270
mov rbx, rax
test rax, rax
je 0x14001b68c
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.14001ad50
cmp eax, 1
je 0x14001b698
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 0x1400ebebc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400ec328]
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 0x1400ebebc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001b0d0
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b6c0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001b590
Function at 0x14001be70
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 [0x1400f5f70]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001bfb8
cmp eax, 1
je 0x14001bedd
call fcn.14001ae60
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14001a760
mov r13d, dword [rbx]
test r13d, r13d
je 0x14001bf00
cmp r13d, 1
jne 0x14001bf90
mov rcx, r12
call fcn.14001aa30
test rdi, rdi
je 0x14001bedd
mov rcx, rdi
call fcn.14001b160
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14001c00b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001b240]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14001bff8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mfence
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call r13
test rax, rax
je 0x14001bfe0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
mfence
call rsi
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call r13
test rax, rax
je 0x14001bfc8
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001bec8
mov ecx, 2
call qword [fcn.1400189a0]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001bec8
mov eax, 0x16
jmp 0x14001bedf
call fcn.14001b590
test rax, rax
jne 0x14001bf73
jmp 0x1400ebeee
call fcn.14001b590
test rax, rax
jne 0x14001bf52
jmp 0x1400ebedf
call fcn.14001b590
test rax, rax
jne 0x14001bf2f
jmp 0x1400ebed5
call fcn.14000fcb0
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 0x14001c290
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.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c308
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001ad60
cmp esi, dword [rbx + 0x48]
jae 0x14001c2e3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001c2e3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001adb0
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.14001b590
mov rbx, rax
jmp 0x14001c2bd
Function at 0x14001c320
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.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c420
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001ad60
cmp esi, dword [rbx + 0x48]
jae 0x14001c3a0
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.14001adb0
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 0x14001c42d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001c42d
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 0x14001c36f
call fcn.14001b590
mov rbx, rax
jmp 0x14001c35a
mov rcx, r13
call fcn.14001adb0
mov eax, 0xc
jmp 0x14001c38d

Function at 0x14001c4b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c4d8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b590
test rax, rax
jne 0x14001c4ca
add rsp, 0x28
ret

Function at 0x14001c540
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c568
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b590
test rax, rax
jne 0x14001c55a
jmp 0x14001c55e

Function at 0x14001c680
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140122e08]
test eax, eax
jne 0x14001c698
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6c8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c68e
test byte [rax + 0x40], 3
je 0x14001c68e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c690
call fcn.14001b590
test rax, rax
jne 0x14001c6ae
jmp 0x14001c68e

Function at 0x14001c6e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c720
test ebx, ebx
jle 0x14001c710
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.14001b590
test rax, rax
jne 0x14001c6fd
add rsp, 0x20
pop rbx
ret
Function at 0x14001c810
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c888
test byte [rbx + 0x40], 0xc
jne 0x14001c83f
mov eax, dword [0x140122e08]
test eax, eax
jne 0x14001c850
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a760
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c873
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c873
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c89c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa30
call fcn.14001b590
mov rbx, rax
test rax, rax
jne 0x14001c82f
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 0x14001c8ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa30
call fcn.14001c730
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c940
call fcn.14001a420
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c978
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c9d0
test esi, esi
je 0x14001c956
call fcn.14001c810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9b0
mov edx, edi
call fcn.14001a4f0
call fcn.14001c810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c9c0
call fcn.14001c810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001c915
call fcn.14001b590
mov rbx, rax
jmp 0x14001c915
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c92e
call fcn.14001b590
jmp 0x14001c956
call fcn.14001b590
mov rbx, rax
jmp 0x14001c911
Function at 0x14001c8d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c888
test byte [rbx + 0x40], 0xc
jne 0x14001c83f
mov eax, dword [0x140122e08]
test eax, eax
jne 0x14001c850
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a760
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c873
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c873
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c89c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa30
call fcn.14001b590
mov rbx, rax
test rax, rax
jne 0x14001c82f
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 0x14001c8ba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa30
call fcn.14001c730
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c940
call fcn.14001a420
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c978
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c9d0
test esi, esi
je 0x14001c956
call fcn.14001c810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9b0
mov edx, edi
call fcn.14001a4f0
call fcn.14001c810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c9c0
call fcn.14001c810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c810
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001c915
call fcn.14001b590
mov rbx, rax
jmp 0x14001c915
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c92e
call fcn.14001b590
jmp 0x14001c956
call fcn.14001b590
mov rbx, rax
jmp 0x14001c911

Function at 0x14001c9e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4e0
mov ecx, dword [0x1400ec328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ca50
test esi, esi
je 0x14001ca30
call fcn.14001c810
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ca60
mov edx, esi
call fcn.14001a4f0
call fcn.14001c810
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c810
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b590
mov rbx, rax
jmp 0x14001ca01
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001ca1a
Function at 0x14001fb40
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x14001fb80
call fcn.1400be9c0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x14001fba8
call fcn.1400be9d0
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call fcn.14008df10
cmp al, 2
jne 0x14001fb8d
xor eax, eax
jmp 0x14001fb9a