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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x14000db25
cmp word [rcx], di
je 0x14000db25
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14001866c
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.140018218
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14000da5a
cmp word [rsp + 0x22], 0x3a
jne 0x14000da5a
cmp edx, 2
jne 0x14000da3a
lea rdx, [0x140161668]
lea rcx, [rsp + 0x20]
call fcn.1400181d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000db25
mov rbx, 0xfffffffffffffffe
jmp 0x14000db25
cmp word [rcx], 0x5c
je 0x14000da66
cmp word [rcx], 0x2f
jne 0x14000da6f
mov word [rcx], di
sub rcx, 2
jmp 0x14000da5a
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14000dab6
test byte [rbp + 0x130], 0x10
je 0x14000da9b
mov rbx, 0xfffffffffffffffe
jmp 0x14000daae
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000db25
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14000dacb
cmp ax, cx
je 0x14000dae1
cmp cx, 0x2f
jne 0x14000dad6
cmp ax, cx
je 0x14000dae1
cmp cx, 0x2e
jne 0x14000db25
cmp ax, cx
jne 0x14000db25
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000db06
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x14000db25
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000dc24
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000dc24
mov eax, eax
jmp 0x14000dc28
or rax, 0xffffffffffffffff
add rsp, 0x28
ret
Function at 0x14000de04
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.1400186c0
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x14000de7e
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000de75
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call rax
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, esi
mov ecx, ebx
call fcn.140018770
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd rax, esi
mov rsi, qword [rsp + 0x40]
mov word [rdi + rax*2], r14w
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000deac
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000debf
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x14000dec1
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000dec8
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x14000ded9
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x14000dee0
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 0x14000df24
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14000df30
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1401d4ed0]
jne 0x14000df50
add rsp, 0x30
pop rdi
jmp fcn.14002adec
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.1400188b0
mov rbx, rax
test rax, rax
je 0x14000dfc5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000dfad
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14000df9a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1401d3638]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401d4ed0]
mov rdx, rdi
call fcn.140018994
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e5f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x1401d4ed0]
mov dword [rsp + 0x50], edi
call fcn.1400188b0
mov rbx, rax
test rax, rax
je 0x14000e695
cmp qword [rax + 8], rdi
je 0x14000e657
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140039c10
test rax, rax
je 0x14000e644
inc dword [rbx + 0x14]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000e6a5
cmp dword [rsp + 0x58], edi
je 0x14000e6a5
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
cdqe
add rsp, 0x30
pop rdi
ret

Function at 0x14000e6d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1401d4ed0]
call fcn.1400188b0
mov rbx, rax
test rax, rax
je 0x14000e723
cmp qword [rax + 8], 0
je 0x14000e702
cmp dword [rax + 0x1c], 0
jne 0x14000e702
mov rcx, rax
call fcn.14000dee0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14000e730
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x1401d4ed0]
call fcn.1400188b0
test rax, rax
je 0x14000e798
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x14000e77e
mov r8, rbx
mov rcx, rax
call fcn.140039c10
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e8a0
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 dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x14000e918
test r8d, r8d
je 0x14000e918
mov rdx, rcx
mov rcx, qword [0x1401d4ed0]
call fcn.1400188b0
test rax, rax
je 0x14000e914
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000e901
mov rcx, rax
call fcn.14003a340
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 0x14000ea40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x1401d4ed0]
call fcn.1400188b0
test rax, rax
je 0x14000ea70
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.14000e930
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1401d4ee0]
jne 0x14000ec2a
mov rax, qword [0x1401d5440]
add rsp, 0x28
ret
mov rcx, qword [0x1401d5460]
add rsp, 0x28
jmp fcn.140014218

Function at 0x14000f390
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1401d4efc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x11c], ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f3bc
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1401d4efc]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [rsp + 0x60]
mov rbx, rax
cmp edx, dword [rax + 0x120]
je 0x14000f40b
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x60], edi
mov rcx, rbx
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
jmp rax

Function at 0x14000f44c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov r15d, ecx
mov edi, r9d
mov ecx, dword [0x1401d4efc]
mov esi, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov edx, dword [rax + 0x118]
cmp edx, dword [rax + 0x120]
je 0x14000f49d
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov r8d, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
add r8d, r14d
add edx, r15d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x14000f4d8
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14d, ecx
mov edi, r9d
mov ecx, dword [0x1401d4efc]
mov esi, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp edi, dword [rax + 0x120]
je 0x14000f524
mov edx, edi
mov dword [rax + 0x120], edi
mov rcx, rax
call qword [rax + 0x80]
mov ecx, dword [rbx + 0x104]
mov r9d, esi
mov edx, dword [rbx + 0x100]
mov rax, qword [rbx + 0x18]
add edx, r14d
lea r8d, [rcx + rbp]
mov rcx, rbx
test rax, rax
je 0x14000f54a
call rax
jmp 0x14000f551
mov dword [rsp + 0x20], esi
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14000f56c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401d4efc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rax + 0xe8]
cmp ecx, 0xc
ja 0x14000f5a2
mov edx, 0x110c
bt edx, ecx
jae 0x14000f5a2
test rbx, rbx
je 0x14000f5a2
mov qword [rax + 0x130], rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f5a8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov ebx, r9d
mov ecx, dword [0x1401d4efc]
mov edi, r8d
mov esi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test ebx, ebx
jle 0x14000f607
mov r10d, dword [rsp + 0x60]
test r10d, r10d
jle 0x14000f607
mov r9d, dword [rax + 0x104]
mov rdx, rbp
mov r8d, dword [rax + 0x100]
add r9d, edi
mov dword [rsp + 0x28], r10d
add r8d, esi
mov rcx, rax
mov dword [rsp + 0x20], ebx
call qword [rax + 0x50]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f61c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ebx, r8d
mov ecx, dword [0x1401d4efc]
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rsi
mov rcx, rax
mov r9d, dword [rax + 0x104]
mov r8d, dword [rax + 0x100]
add r9d, ebx
add r8d, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x48]
Function at 0x14000f66c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ecx, dword [0x1401d4efc]
mov rdi, r8
movaps xmmword [rsp + 0x30], xmm6
movaps xmm6, xmm1
movaps xmmword [rsp + 0x20], xmm7
movaps xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov edx, dword [rax + 0x118]
cmp edx, dword [rax + 0x120]
je 0x14000f6b5
mov rcx, rax
mov dword [rax + 0x120], edx
call qword [rax + 0x80]
mov edx, dword [rbx + 0x11c]
cmp edx, dword [rbx + 0x124]
je 0x14000f6ce
mov rcx, rbx
mov dword [rbx + 0x124], edx
call qword [rbx]
movd xmm2, dword [rbx + 0x104]
mov r9, rdi
movd xmm1, dword [rbx + 0x100]
mov rcx, rbx
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm1, xmm1
addsd xmm2, xmm6
addsd xmm1, xmm7
mov rax, qword [rbx + 0x60]
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
jmp rax

Function at 0x14000f710
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1401d4efc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x14000f734
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1401d4efc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [rax + 0x118], ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f760
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401d4efc], eax
add rsp, 0x28
ret
Function at 0x14000f940
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov esi, ecx
mov ebp, r9d
mov ecx, dword [0x1401d4efc]
mov ebx, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov r11d, dword [rax + 0x100]
add esi, r11d
mov r10d, dword [rax + 0x104]
add ebx, r11d
mov eax, dword [rax + 0xe8]
add r14d, r10d
add ebp, r10d
cmp eax, 0xc
ja 0x14000fb30
mov ecx, 0x110c
bt ecx, eax
jae 0x14000fb30
mov r15d, ebx
mov dword [rdi + 0x1a8], esi
sub r15d, esi
mov dword [rdi + 0x1ac], r14d
mov eax, r15d
mov dword [rdi + 0x1b0], ebx
imul eax, r15d
mov r12d, ebp
sub r12d, r14d
mov dword [rdi + 0x1b4], ebp
mov ecx, r12d
imul ecx, r12d
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
call fcn.14003b188
movss dword [rdi + 0x1b8], xmm0
cmp r14d, ebp
jne 0x14000fa15
lea rax, [0x14000f778]
cmp esi, ebx
lea rcx, [0x14000f7ac]
cmovg rax, rcx
jmp 0x14000fb29
cmp esi, ebx
jne 0x14000fa2c
lea rax, [0x14000f7e0]
cmp r14d, ebp
lea rcx, [0x14000f818]
jmp 0x14000fa0c
mov ecx, r15d
call fcn.14003b180
mov ecx, r12d
mov ebx, eax
call fcn.14003b180
mov r10d, 1
cmp ebx, eax
jl 0x14000fa5e
and dword [rdi + 0x1c0], 0
mov ecx, dword [rdi + 0x1b4]
mov r8d, dword [rdi + 0x1ac]
jmp 0x14000fa97
mov eax, dword [rdi + 0x1ac]
mov r8d, dword [rdi + 0x1a8]
mov ecx, dword [rdi + 0x1b0]
mov dword [rdi + 0x1a8], eax
mov eax, dword [rdi + 0x1b4]
mov dword [rdi + 0x1b4], ecx
mov dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1c0], r10d
mov dword [rdi + 0x1ac], r8d
mov r9d, dword [rdi + 0x1a8]
mov edx, dword [rdi + 0x1b0]
cmp r9d, edx
jge 0x14000fab2
and dword [rdi + 0x1bc], 0
jmp 0x14000fae7
mov r8d, dword [rdi + 0x1b4]
mov eax, r9d
mov ecx, dword [rdi + 0x1ac]
mov r9d, edx
mov dword [rdi + 0x1a8], edx
mov edx, eax
mov dword [rdi + 0x1b0], eax
mov dword [rdi + 0x1bc], r10d
mov dword [rdi + 0x1b4], ecx
mov dword [rdi + 0x1ac], r8d
sub ecx, r8d
lea rax, [0x14000f84c]
sub edx, r9d
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [rdi + 0x1c4], xmm1
movsd xmm1, qword [0x140145040]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [rdi + 0x1c8], xmm0
mov qword [rdi + 0x128], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000fb94
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, ecx
mov ebp, r9d
mov ecx, dword [0x1401d4efc]
mov esi, r8d
mov edi, edx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15d, esi
mov r14, rax
mov r11d, dword [rax + 0x100]
mov edx, dword [rax + 0x104]
add r11d, ebx
add edx, edi
mov edi, ebp
test esi, esi
lea r12d, [r11 + rsi]
cmovns r12d, r11d
lea r13d, [rdx + rbp]
neg r15d
test esi, esi
cmovns r15d, esi
mov esi, dword [rsp + 0x90]
test ebp, ebp
cmovns r13d, edx
neg edi
test ebp, ebp
lea eax, [rsi + rsi]
cmovns edi, ebp
cmp eax, r15d
jle 0x14000fc1d
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov ebx, dword [rsp + 0x98]
lea ecx, [rbx + rbx]
cmp ecx, edi
jle 0x14000fc34
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov edx, dword [r14 + 0x118]
cmp edx, dword [r14 + 0x120]
je 0x14000fc55
mov rcx, r14
mov dword [r14 + 0x120], edx
call qword [r14 + 0x80]
mov dword [rsp + 0x30], ebx
mov r9d, r15d
mov dword [rsp + 0x28], esi
mov r8d, r13d
mov edx, r12d
mov dword [rsp + 0x20], edi
mov rcx, r14
call qword [r14 + reloc.WS2_32.dll_recv]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000fc90
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14000fd05
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov rdi, rax
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x14000fd05
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14000fcdd
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1401d3638]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1401d4efc]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1401d4f00], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1401d4efc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fd75
mov rcx, rax
call qword [rax + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14000fd4d
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x1401d3638]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1401d4efc]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1401d4f00], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14000fd7c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401d4efc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [rax + 0xc8]
Function at 0x14001078c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140010773
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x1401d3638]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14001076a
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140010758
cmp dword [rsp + 0x78], edi
jne 0x140010758
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.14000fda4
mov rbx, rax
mov rcx, qword [0x1401d3638]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
xor r8d, r8d
jmp 0x1400106b0

Function at 0x140012c20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x30
mov ebp, r9d
mov rbx, rcx
test r8, r8
je 0x140012d19
movzx r12d, word [r8]
test r12w, r12w
je 0x140012d19
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x28], r14
mov eax, r13d
mov qword [rsp + 0x20], r15
cmovns eax, edx
test rcx, rcx
je 0x140012c99
cmp word [rcx], r13w
je 0x140012c99
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], r13w
jne 0x140012c80
cmp edi, eax
mov esi, r13d
cmovg edi, eax
sub eax, edi
cmovns esi, eax
jmp 0x140012c9e
mov edi, r13d
mov esi, eax
call fcn.14001a8a0
lea ecx, [rdi + rsi]
mov edx, ebp
mov r15d, eax
call fcn.1400186c0
mov r14, rax
test r15d, r15d
je 0x140012cc3
mov ecx, r15d
call fcn.14001a8e0
mov rbx, rax
movsxd r15, edi
test edi, edi
je 0x140012cdd
movsxd rcx, esi
lea r8, [r15 + r15]
mov rdx, rbx
lea rcx, [r14 + rcx*2]
call fcn.1400173a0
test esi, esi
je 0x140012cf2
mov rdi, r14
mov edx, esi
mov rax, r12
mov ecx, esi
rep stosw word [rdi], ax
lea r14, [r14 + rdx*2]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov word [r14 + r15*2], r13w
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
mov ecx, ebp
add rsp, 0x30
pop r12
pop rbp
pop rbx
jmp fcn.1400196e0

Function at 0x1400134f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.1400186c0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14003eff4
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140013523
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140018770