joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014e2c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
or rbx, 0xffffffffffffffff
test rcx, rcx
je 0x140014f65
cmp byte [rcx], 0
je 0x140014f65
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rbp + 0x24], 0
call sub.msvcrt.dll_strlen
mov r11, rax
cdqe
lea rcx, [rsp + rax + 0x1f]
cmp r11d, 2
je 0x140014e8e
cmp r11d, 3
jne 0x140014ec2
cmp byte [rsp + 0x21], 0x3a
jne 0x140014ec2
cmp r11d, 2
jne 0x140014eac
lea rdx, [0x14001c260]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x140014f65
jmp 0x140014f3d
cmp byte [rcx], 0x5c
je 0x140014ecc
cmp byte [rcx], 0x2f
jne 0x140014ed4
mov byte [rcx], 0
dec rcx
jmp 0x140014ec2
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x140014f0f
test byte [rbp + 0x30], 0x10
je 0x140014efa
mov rbx, 0xfffffffffffffffe
jmp 0x140014f07
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140014f65
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x140014f1e
cmp al, 0x5c
je 0x140014f29
cmp byte [rsp + 0x20], 0x2e
jne 0x140014f65
cmp al, 0x2e
jne 0x140014f65
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140014f46
test al, 0x10
je 0x140014f65
mov rbx, 0xfffffffffffffffe
jmp 0x140014f65
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret

Function at 0x140014f7c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140014fa7
test dl, 2
je 0x140014f9a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x140014fa9
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140014fe0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140015026
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x140015730
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1402d1120]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.14001606c
mov rdi, rax
test rax, rax
je 0x1400157d4
cmp qword [rax + 8], rbx
je 0x140015797
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400159a0
test rax, rax
je 0x140015784
inc dword [rdi + 0x14]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ebx, 1
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400157e6
cmp dword [rsp + 0x58], ebx
je 0x1400157e6
mov rcx, qword [rdi]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or ebx, 0xffffffff
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140015910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140015988
test r8d, r8d
je 0x140015988
mov rdx, rcx
mov rcx, qword [0x1402d1120]
call fcn.14001606c
test rax, rax
je 0x140015984
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140015971
mov rcx, rax
call fcn.140015eb0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400159a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r12d
jne 0x1400159d4
call fcn.140014fe0
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r12d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x140015a39
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x140015a2f
dec rax
je 0x140015a21
cmp rax, 2
je 0x140015a15
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x140015ab4
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x140015ab4
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x140015ab4
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x140015ab4
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x140015a81
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r12d
add eax, ebp
cdqe
jmp 0x140015ab7
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, r11
mov rcx, rsi
mov dword [rbx + 0x14], r11d
cmovg rdi, r11
mov dword [rbx + 0x18], r11d
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbp + rdi]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140015ad0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x1402d0d88]
mov rbp, r8
mov r13d, edx
mov r8d, 0x1000
xor edx, edx
mov r15, r9
xor edi, edi
mov r14d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x140015ca3
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
nop dword [rax]
cmp rbp, 0xffffffffffffffff
je 0x140015b42
test rbp, rbp
je 0x140015c04
dec rbp
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x140015b62
mov r8d, 2
mov rcx, rsi
call fcn.1400159a0
mov dword [rsp + 0x34], eax
jmp 0x140015b7f
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x140015c04
test dx, dx
je 0x140015b9a
mov word [rbx], dx
movzx edx, word [rsp + 0x30]
add rbx, 2
mov rdi, rbx
lea eax, [r14 - 1]
sub rdi, r12
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x140015be0
mov rcx, qword [0x1402d0d88]
add r14d, 0x800
mov r8, r12
movsxd r9, r14d
mov edx, 8
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r12, rax
movsxd rax, edi
lea rbx, [r12 + rax*2]
test dx, dx
je 0x140015c04
mov edi, 0
test r13d, r13d
jne 0x140015b30
cmp dx, 0xd
je 0x140015c09
cmp dx, 0xa
je 0x140015c0f
jmp 0x140015b30
test r13d, r13d
jne 0x140015c13
cmp dx, 0xa
jne 0x140015c2e
sub rbx, 2
xor edi, edi
mov rax, rbx
sub rax, r12
sar rax, 1
mov qword [r15], rax
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
mov rax, r12
jmp 0x140015ca6
cmp dx, 0xd
jne 0x140015c13
sub rbx, 2
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x140015c5a
mov r8d, 2
mov rcx, rsi
call fcn.1400159a0
xor edi, edi
mov dword [rsp + 0x34], eax
jmp 0x140015c73
mov rcx, qword [rsi]
xor edi, edi
lea r9, [rsp + 0x34]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x140015c15
cmp qword [rsi + 8], 0
je 0x140015c88
add dword [rsi + 0x14], 2
jmp 0x140015c15
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140015c15
mov rax, rdi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140015cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x1402d0d88]
mov rsi, r8
mov r12d, edx
mov r13d, 0x1000
xor edx, edx
mov r8d, r13d
mov r14, r9
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140015e85
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
cmp rsi, 0xffffffffffffffff
je 0x140015d3a
test rsi, rsi
je 0x140015df7
dec rsi
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r15
je 0x140015d59
mov r8d, 1
mov rcx, rdi
call fcn.1400159a0
mov dword [rsp + 0x34], eax
jmp 0x140015d76
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x140015df7
test r8b, r8b
je 0x140015d92
mov byte [rbx], r8b
movzx r8d, byte [rsp + 0x30]
inc rbx
lea eax, [r13 - 1]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x140015dd4
mov rcx, qword [0x1402d0d88]
add r13d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r13d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x140015df7
test r12d, r12d
jne 0x140015d28
cmp r8b, 0xd
je 0x140015dfc
cmp r8b, 0xa
jne 0x140015d28
dec rbx
jmp 0x140015e6f
test r12d, r12d
jne 0x140015e6f
cmp r8b, 0xa
jne 0x140015e07
dec rbx
jmp 0x140015e6f
cmp r8b, 0xd
jne 0x140015e6f
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r15
je 0x140015e2f
mov r8d, 1
mov rcx, rdi
call fcn.1400159a0
mov dword [rsp + 0x34], eax
jmp 0x140015e48
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140015e6f
cmp qword [rdi + 8], r15
je 0x140015e5a
inc dword [rdi + 0x14]
jmp 0x140015e6f
mov rcx, qword [rdi]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r14], rax
mov byte [rbx], r15b
mov rbx, qword [rsp + 0x70]
mov rax, rbp
jmp 0x140015e88
mov rax, r15
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140015eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x140015efa
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140015f36
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x140015f2f
dec edx
je 0x140015f27
cmp edx, 2
je 0x140015f21
mov rdx, rsi
jmp 0x140015f84
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x140015f8c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x140015f8c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x140015f8c
mov rcx, rbx
call fcn.140014fe0
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x140015f79
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1402d0f30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14001631a
mov r8, qword [0x1402d0f40]
mov rcx, qword [0x1402d0d88]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402d0f30]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1402d0f38]
jmp 0x140016306
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140016303
mov rax, qword [rbx + 0x10]
lea rcx, [rdi + rax]
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400162f0
lea rcx, [0x140016244]
mov rdx, rdi
call fcn.140018b54
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140016330
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
and ecx, 7
mov rbp, r8
mov rsi, rdx
je 0x14001635a
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x1402d0f40]
test rcx, rcx
jne 0x14001639d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1402d0d88]
movsxd r8, ebx
mov edx, 8
mov dword [0x1402d0f30], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402d0f30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1402d0f40]
mov rdi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x1402d0f40], rcx
mov ecx, dword [0x1402d0f30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1402d0f40]
mov rcx, qword [0x1402d0d88]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1402d0f30]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x1400163f1
test rbp, rbp
je 0x140016418
lea rcx, [0x1402d0f38]
mov edx, 0x28
call fcn.140016c7c
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140016418
lea rcx, [rbx + rdi]
call rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14001735c
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001d01a], 0
mov rbx, rcx
jne 0x140017374
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x1402d1130], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x1402d1140], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x1402d1140]
lea rdx, [0x1402d1150]
mov qword [0x1402d1170], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea rcx, [0x140017344]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x1400173de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x1402d1180]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1402d11b0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
jmp 0x14001735c
Function at 0x140017404
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001d01a], 0
mov rbx, rcx
jne 0x140017374
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x1402d1130], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x1402d1140], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x1402d1140]
lea rdx, [0x1402d1150]
mov qword [0x1402d1170], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea rcx, [0x140017344]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x1400173de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x1402d1180]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1402d11b0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
jmp 0x14001735c

Function at 0x1400174fc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
mov ebx, edx
mov r8d, edx
mov rdx, rcx
mov rdi, rcx
mov rcx, qword [0x1402d1140]
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
jne 0x14001754b
mov rcx, qword [0x1402d1140]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140017560
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1402d11e0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402cff78], eax
call fcn.140018150
add rsp, 0x28
ret

Function at 0x1400176c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x140017780
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x1400177e6
movsxd rax, dword [rsp + 0x20]
add rax, 5
mov r8, rax
xor edx, edx
mov rcx, qword [0x1402d11e0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x140017811
movsxd rax, dword [rsp + 0x20]
add rax, 5
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1402d11e0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.1400180d0
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400178b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400178e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x140017910
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1402cff78], 0xffffffff
jne 0x14001793f
call fcn.140017560
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140017980]
call fcn.140018b54
jmp 0x140017970
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140017970
call fcn.140018150
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140017980]
call fcn.140018b54
add rsp, 0x28
ret

Function at 0x140017a70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
inc rax
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140017aa0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140017af0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret

Function at 0x140017b20
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140017b50
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x140017bbc
mov eax, dword [rsp + 0x28]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
add rax, 5
mov r9, rax
mov rax, qword [rsp + 0x30]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1402d11e0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
add rax, rcx
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x140017f20
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140017f60
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
mov byte [rax + rcx], 0
add rsp, 0x38
ret

Function at 0x140018000
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402cff78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret