joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007bdd0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x14007be06
mov r8d, ebx
call fcn.14007b3d0
mov dword [rsp + 0x70], eax
jmp 0x14007be20
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x14007bee8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x14007be46
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x14007be62
mov ebp, 2
mov edi, ebp
jmp 0x14007be89
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x14007be75
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x14007be86
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14007bede
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x14007bea3
lea r8, [rdi - 1]
mov rcx, r14
call fcn.14007b3d0
jmp 0x14007bec0
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x14007bec9
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x14007f348
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 0x14007f4b9
cmp word [rcx], di
je 0x14007f4b9
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14025effc
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.14001b3c8
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14007f3ee
cmp word [rsp + 0x22], 0x3a
jne 0x14007f3ee
cmp edx, 2
jne 0x14007f3ce
lea rdx, [0x1402c9728]
lea rcx, [rsp + 0x20]
call fcn.14025f044
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14007f4b9
mov rbx, 0xfffffffffffffffe
jmp 0x14007f4b9
cmp word [rcx], 0x5c
je 0x14007f3fa
cmp word [rcx], 0x2f
jne 0x14007f403
mov word [rcx], di
sub rcx, 2
jmp 0x14007f3ee
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14007f44a
test byte [rbp + 0x130], 0x10
je 0x14007f42f
mov rbx, 0xfffffffffffffffe
jmp 0x14007f442
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14007f4b9
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14007f45f
cmp ax, cx
je 0x14007f475
cmp cx, 0x2f
jne 0x14007f46a
cmp ax, cx
je 0x14007f475
cmp cx, 0x2e
jne 0x14007f4b9
cmp ax, cx
jne 0x14007f4b9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007f49a
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x14007f4b9
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 0x14007f7b4
Capabilities:
Check if file exists

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, 0x20
mov rax, qword [0x1403687d8]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x14007f806
lea r8, [fcn.14007f92c]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.140080bbc
mov qword [0x1403687d8], rax
mov rdx, rdi
mov rcx, rax
call fcn.140080aec
mov rbx, rax
test rax, rax
je 0x14007f909
test r14, r14
lea r15, [0x1402cd200]
cmovne r15, r14
test rbp, rbp
je 0x14007f837
cmp word [rbp], r13w
jne 0x14007f83e
lea rbp, [0x1402e95c8]
mov rcx, r15
call fcn.14001b3c8
mov rcx, rbp
mov r12, rax
call fcn.14001b3c8
mov rcx, qword [0x140366088]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14007f8f2
mov rdx, r15
mov rcx, rax
call fcn.14025efe0
test r12d, r12d
je 0x14007f89f
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x14007f89f
lea rdx, [0x1402c9728]
mov rcx, r14
call fcn.14025f044
mov rdx, rbp
mov rcx, r14
call fcn.14025f044
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14007f8c6
mov dword [rbx + 8], r13d
jmp 0x14007f8d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14007f8db
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x140366088]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x14007f909
mov rcx, qword [0x1403687d8]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140080a20
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14007f9cc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.140083360
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x14007fa1b
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x14007fa1b
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.140083440
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14007fa40
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14007fa53
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x14007fa55
xor eax, eax
add rsp, 0x28
ret
Function at 0x140080884
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 [0x140368c10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140080905
mov r8, qword [0x140368c08]
lea edx, [rax + 8]
mov rcx, qword [0x140366088]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140368c10]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140368c00]
jmp 0x1400808f1
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400808ee
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400808dc
mov rdx, rdi
lea rcx, [0x1400807e8]
call fcn.14000ad40
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14008091c
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 edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x140080946
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x140368c08]
test rbx, rbx
jne 0x14008098c
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140366088]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x140368c10], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140368c10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140368c08]
jmp 0x14008098f
movsxd rdi, edi
mov ecx, dword [0x140368c10]
lea rax, [rdi + rbx]
mov qword [0x140368c08], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x140368c08]
mov edx, 8
mov rcx, qword [0x140366088]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140368c10]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x1400809de
test rbp, rbp
je 0x140080a05
mov edx, 0x28
lea rcx, [0x140368c00]
call fcn.14008158c
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140080a05
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140082d80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x14035cb54]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov qword [rax + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
Function at 0x140082dc0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14035cb54]
cmp ecx, 0xffffffff
jne 0x140082dd6
call fcn.140083330
jmp 0x140082de6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140082e05
call fcn.140083660
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140082e10]
add rsp, 0x28
jmp fcn.14000ad40
add rsp, 0x28
ret

Function at 0x140082ed0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x14035cb54]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140082f20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret

Function at 0x140082f50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rdx, qword [rax + rcx*8 + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rax]
add rax, rdx
add rsp, 0x28
ret

Function at 0x140082f90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
add rax, qword [rdx]
add rsp, 0x28
ret

Function at 0x140082fc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret
Function at 0x1400830c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
movsxd r14, edx
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rdi]
mov rsi, rax
mov r8d, dword [rax + 0x10]
sub r8d, r14d
movsxd rbp, r8d
test rcx, rcx
jne 0x140083116
mov rcx, qword [0x1403709a0]
lea r8, [rbp + 0x12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x140083135
call fcn.140085780
add qword [rdi], 0xfffffffffffffffc
lea r9, [rbp + 0x12]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1403709a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
lea r9, [rax + 4]
mov r8, rbp
mov qword [rdi], r9
mov rcx, r9
mov rdx, qword [rsi]
add rdx, r14
shr r8, 1
call fcn.1400834e0
mov rcx, qword [rdi]
lea rdx, [rbp + 2]
call fcn.140085420
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov qword [rsi + 0x10], r14
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140083180
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x1400832c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x14035cb54]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140083330
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1403709a0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14035cb54], eax
add rsp, 0x28
jmp fcn.140083660

Function at 0x140083360
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, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x140083390
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x1400833b1
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x1400833c3
mov eax, 0x100000
cmp r8, rax
jle 0x1400833e0
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1403709a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140083410
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret

Function at 0x140083440
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret

Function at 0x140083470
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x1400834a4
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x1400834a4
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400834b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x14035cb54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140083660
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1403709a0]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1403709a0]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], reloc.WS2_32.dll_recv
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x14035cb54]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1400897f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x48
xor ebx, ebx
mov r12d, edx
mov qword [rsp + 0x30], rbx
mov ebp, 1
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400899ce
xor edx, edx
mov qword [rsp + 0x70], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14008987c
test eax, eax
jle 0x14008987c
mov rdx, qword [0x140371240]
lea r9, [rsp + 0x80]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008987c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400899c9
mov rax, qword [0x140371240]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x1400899c9
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x1400899c4
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x1400899bc
mov qword [rsp + 0x78], r13
lea r13, [0x140000000]
nop dword [rax + rax]
cmp dword [rax], 0x434e5354
lea rsi, [rax + 8]
movsxd rdi, dword [rax + 4]
jne 0x1400899a0
test edi, edi
jle 0x1400899a0
mov rcx, qword [0x140366088]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400899a0
lea rcx, [rax + 0x28]
mov dword [rax + 0x10], edi
mov r8, rdi
mov qword [rax + 8], rcx
mov rdx, rsi
mov dword [rax + 0x14], r12d
call fcn.14002b6c0
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x899d8]
add rdx, r13
jmp rdx
lea rax, [0x140089a00]
mov qword [rbx + 0x18], rax
lea rax, [0x14008c960]
jmp 0x14008998b
lea rax, [0x140089a10]
mov qword [rbx + 0x18], rax
lea rax, [0x14008c970]
jmp 0x14008998b
lea rax, [0x140089b00]
mov qword [rbx + 0x18], rax
lea rax, [0x14008c9a0]
mov qword [rbx + 0x20], rax
mov rax, qword [0x140369510]
mov qword [rbx], rax
mov qword [0x140369510], rbx
mov rdx, qword [0x140371240]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x1400898f0
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
add rsp, 0x48
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140091a80
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140091890
call fcn.140097350
xor ecx, ecx
call fcn.140091d40
test eax, eax
jne 0x140091a90
mov rbx, qword [0x140368ca0]
test rbx, rbx
je 0x140091b70
cmp dword [0x140368c9c], eax
je 0x140091b70
cmp dword [0x140369520], 0
mov eax, dword [0x140368c98]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x140091b3b
mov rcx, qword [0x140371240]
mov rdx, rbx
movsxd r8, eax
call fcn.14002b6c0
xor r9d, r9d
cmp dword [0x140368c98], r9d
jle 0x140091b34
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x140371240]
inc r9d
add rdx, r8
add r8, 4
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 3]
mov byte [rdx], al
movzx eax, byte [rdx + 2]
mov byte [rdx + 3], cl
movzx ecx, byte [rdx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
cmp r9d, dword [0x140368c98]
jl 0x140091b00
mov rbx, qword [0x140371240]
call fcn.1400a4720
lea rcx, [0x140380d60]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140369548]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140380d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.1400a4720
lea rcx, [0x140380d60]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140369548]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140380d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x140369548]
call qword [rax + 0x28]
lea rcx, [0x140370a20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140380d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1403712c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140369538]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140369538]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140369540]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140369540]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140370a20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140380d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1403712c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140370a20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140380d60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1403712c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x1400972d0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1403709c0]
call fcn.140080884
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x140097347
cmp qword [0x1403709e0], rdi
jne 0x140097347
cmp dword [0x140369958], 0
je 0x140097347
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140369988]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140097337
cmp rbx, rdi
je 0x14009732c
cmp dword [rbx + 0x38], esi
jne 0x14009732c
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbx + 0x38], esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140097318
mov rbx, qword [rsp + 0x30]
mov dword [0x140369958], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140097350
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1403709c0]
call fcn.140080884
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x140097490
cmp dword [0x140369958], 0
jne 0x140097490
mov qword [rsp + 0x30], rbx
lea rcx, [0x140369960]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140368c80], 0
je 0x1400973c6
lea rcx, [0x1403712c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140380d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140370a20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x140387500]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1403709e0], rsi
xor edx, edx
mov dword [0x140369958], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x140369988]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140097443
cmp rbx, rsi
je 0x14009743b
cmp dword [rbx + 0x38], 0
jne 0x14009743b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14009742b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140097410
cmp dword [rbx + 0x38], 0
jne 0x14009743b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140097403
cmp dword [0x140368c80], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14009747d
lea rcx, [0x140370a20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140380d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1403712c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140369960]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret