joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014b60
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 0x140014c99
cmp byte [rcx], 0
je 0x140014c99
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 0x140014bc2
cmp r11d, 3
jne 0x140014bf6
cmp byte [rsp + 0x21], 0x3a
jne 0x140014bf6
cmp r11d, 2
jne 0x140014be0
lea rdx, [0x14001c288]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x140014c99
jmp 0x140014c71
cmp byte [rcx], 0x5c
je 0x140014c00
cmp byte [rcx], 0x2f
jne 0x140014c08
mov byte [rcx], 0
dec rcx
jmp 0x140014bf6
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x140014c43
test byte [rbp + 0x30], 0x10
je 0x140014c2e
mov rbx, 0xfffffffffffffffe
jmp 0x140014c3b
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140014c99
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x140014c52
cmp al, 0x5c
je 0x140014c5d
cmp byte [rsp + 0x20], 0x2e
jne 0x140014c99
cmp al, 0x2e
jne 0x140014c99
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140014c7a
test al, 0x10
je 0x140014c99
mov rbx, 0xfffffffffffffffe
jmp 0x140014c99
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 0x140014cb0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140014cdb
test dl, 2
je 0x140014cce
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 0x140014cdd
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140014d10
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 0x140014d56
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 0x140015460
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 0x1400154d8
test r8d, r8d
je 0x1400154d8
mov rdx, rcx
mov rcx, qword [0x140f88640]
call fcn.140015d9c
test rax, rax
je 0x1400154d4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400154c1
mov rcx, rax
call fcn.1400156d0
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 0x1400154f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x140f88640]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.140015d9c
mov rdi, rax
test rax, rax
je 0x140015594
cmp qword [rax + 8], rbx
je 0x140015557
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400157d0
test rax, rax
je 0x140015544
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 0x1400155a6
cmp dword [rsp + 0x58], ebx
je 0x1400155a6
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 0x1400156d0
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 0x14001571a
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 0x140015756
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14001574f
dec edx
je 0x140015747
cmp edx, 2
je 0x140015741
mov rdx, rsi
jmp 0x1400157a4
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x1400157ac
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x1400157ac
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x1400157ac
mov rcx, rbx
call fcn.140014d10
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x140015799
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 0x1400157d0
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 0x140015804
call fcn.140014d10
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 0x140015869
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14001585f
dec rax
je 0x140015851
cmp rax, 2
je 0x140015845
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x1400158e4
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x1400158e4
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x1400158e4
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x1400158e4
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 0x1400158b1
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 0x1400158e7
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 0x140015900
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 [0x140f8825c]
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 0x140015ad3
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
nop dword [rax]
cmp rbp, 0xffffffffffffffff
je 0x140015972
test rbp, rbp
je 0x140015a34
dec rbp
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x140015992
mov r8d, 2
mov rcx, rsi
call fcn.1400157d0
mov dword [rsp + 0x34], eax
jmp 0x1400159af
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 0x140015a34
test dx, dx
je 0x1400159ca
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 0x140015a10
mov rcx, qword [0x140f8825c]
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 0x140015a34
mov edi, 0
test r13d, r13d
jne 0x140015960
cmp dx, 0xd
je 0x140015a39
cmp dx, 0xa
je 0x140015a3f
jmp 0x140015960
test r13d, r13d
jne 0x140015a43
cmp dx, 0xa
jne 0x140015a5e
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 0x140015ad6
cmp dx, 0xd
jne 0x140015a43
sub rbx, 2
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x140015a8a
mov r8d, 2
mov rcx, rsi
call fcn.1400157d0
xor edi, edi
mov dword [rsp + 0x34], eax
jmp 0x140015aa3
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 0x140015a45
cmp qword [rsi + 8], 0
je 0x140015ab8
add dword [rsi + 0x14], 2
jmp 0x140015a45
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140015a45
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 0x140015b00
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 [0x140f8825c]
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 0x140015cb5
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
cmp rsi, 0xffffffffffffffff
je 0x140015b6a
test rsi, rsi
je 0x140015c27
dec rsi
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r15
je 0x140015b89
mov r8d, 1
mov rcx, rdi
call fcn.1400157d0
mov dword [rsp + 0x34], eax
jmp 0x140015ba6
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 0x140015c27
test r8b, r8b
je 0x140015bc2
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 0x140015c04
mov rcx, qword [0x140f8825c]
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 0x140015c27
test r12d, r12d
jne 0x140015b58
cmp r8b, 0xd
je 0x140015c2c
cmp r8b, 0xa
jne 0x140015b58
dec rbx
jmp 0x140015c9f
test r12d, r12d
jne 0x140015c9f
cmp r8b, 0xa
jne 0x140015c37
dec rbx
jmp 0x140015c9f
cmp r8b, 0xd
jne 0x140015c9f
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r15
je 0x140015c5f
mov r8d, 1
mov rcx, rdi
call fcn.1400157d0
mov dword [rsp + 0x34], eax
jmp 0x140015c78
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 0x140015c9f
cmp qword [rdi + 8], r15
je 0x140015c8a
inc dword [rdi + 0x14]
jmp 0x140015c9f
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 0x140015cb8
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 0x140015fc8
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 [0x140f88438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14001604a
mov r8, qword [0x140f88448]
mov rcx, qword [0x140f8825c]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140f88438]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140f88440]
jmp 0x140016036
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140016033
mov rax, qword [rbx + 0x10]
lea rcx, [rdi + rax]
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140016020
lea rcx, [0x140015f74]
mov rdx, rdi
call fcn.140018dd4
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140016060
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 0x14001608a
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x140f88448]
test rcx, rcx
jne 0x1400160cd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140f8825c]
movsxd r8, ebx
mov edx, 8
mov dword [0x140f88438], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140f88438]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140f88448]
mov rdi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x140f88448], rcx
mov ecx, dword [0x140f88438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140f88448]
mov rcx, qword [0x140f8825c]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140f88438]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x140016121
test rbp, rbp
je 0x140016148
lea rcx, [0x140f88440]
mov edx, 0x28
call fcn.1400169ac
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140016148
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 0x14001708c
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001d01a], 0
mov rbx, rcx
jne 0x1400170a4
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140f88650], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140f88660], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140f88660]
lea rdx, [0x140f88670]
mov qword [0x140f88690], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea rcx, [0x140017074]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14001710e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x140f886a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140f886d0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
jmp 0x14001708c

Function at 0x140017134
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001d01a], 0
mov rbx, rcx
jne 0x1400170a4
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140f88650], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140f88660], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140f88660]
lea rdx, [0x140f88670]
mov qword [0x140f88690], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea rcx, [0x140017074]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14001710e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x140f886a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140f886d0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
jmp 0x14001708c

Function at 0x14001744c
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 [0x140f88660]
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
jne 0x14001749b
mov rcx, qword [0x140f88660]
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 0x1400177e0
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 [0x140f88700], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140f873e0], eax
call fcn.1400183d0
add rsp, 0x28
ret
Function at 0x140017940
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 [0x140f873e0]
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 0x140017a00
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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 0x140017a66
movsxd rax, dword [rsp + 0x20]
add rax, 5
mov r8, rax
xor edx, edx
mov rcx, qword [0x140f88700]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x140017a91
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 [0x140f88700]
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.140018350
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140017b30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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 0x140017b60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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 0x140017b90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x140f873e0], 0xffffffff
jne 0x140017bbf
call fcn.1400177e0
mov ecx, dword [0x140f873e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140017c00]
call fcn.140018dd4
jmp 0x140017bf0
mov ecx, dword [0x140f873e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140017bf0
call fcn.1400183d0
mov ecx, dword [0x140f873e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140017c00]
call fcn.140018dd4
add rsp, 0x28
ret

Function at 0x140017cf0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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 0x140017d20
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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 0x140017d70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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 0x140017da0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x140f873e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140017dd0
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 0x140017e3c
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 [0x140f88700]
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 0x1400181a0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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 0x1400181e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x140f873e0]
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