joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a26b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor ebp, ebp
mov r13d, r9d
mov r15d, edx
mov r12d, ebp
cmp edx, 1
jl 0x1400a281b
test rcx, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, ebp
mov qword [rsp + 0x20], r14
lea r14, [0x14020cfd0]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x1400a27aa
cmp word [r14 + 2], di
je 0x1400a27aa
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x1400a2720
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.140044170
test eax, eax
je 0x1400a274e
cmp word [rbx], r12w
je 0x1400a274e
add rbx, 2
jmp 0x1400a2730
inc edi
cmp edi, r15d
je 0x1400a2764
cmp word [rbx], r12w
je 0x1400a276d
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x1400a2730
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.1400a6340
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x1400a27e0
mov ecx, r13d
call fcn.1400a63f0
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.140052f00
mov edx, r13d
mov ecx, r12d
call fcn.1400a61d0
mov rdi, rax
jmp 0x1400a27fc
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x1400a27c3
test ax, ax
je 0x1400a27c3
add rbx, 2
jmp 0x1400a27b0
inc edi
cmp edi, r15d
je 0x1400a27d5
test ax, ax
je 0x1400a276f
lea rsi, [rbx + 2]
jmp 0x1400a27aa
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x1400a276f
mov edx, r13d
mov ecx, r12d
call fcn.1400a61d0
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.1401a4288
mov rsi, qword [rsp + 0x58]
mov word [rdi + rbx*2], bp
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov ecx, r13d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.1400a62b0

Function at 0x1400a2c50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0xd
jne 0x1400a2ca0
mov edi, 0x40
mov edx, r8d
mov ecx, edi
call fcn.1400a61d0
mov rdx, rbx
mov rcx, rax
call fcn.14017eaf0
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1400a2c83
sub edi, ecx
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400a6280
cmp edx, 1
je 0x1400a2cbe
cmp edx, 0x18
je 0x1400a2cbe
cmp edx, 3
je 0x1400a2cb9
cmp edx, 0x19
je 0x1400a2cb9
cmp edx, 0xb
jne 0x1400a2cc1
movzx ebx, bx
jmp 0x1400a2cc1
movzx ebx, bl
mov edi, 0x20
mov edx, r8d
mov ecx, edi
call fcn.1400a61d0
mov r8d, ebx
lea rdx, [0x14022ab38]
mov rcx, rax
call fcn.140088f70
sub edi, eax
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400a6280
Function at 0x1400a4c6c
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 [0x1402a9f80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400a4ced
mov r8, qword [0x1402a9f78]
lea edx, [rax + 8]
mov rcx, qword [0x1402a74e8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402a9f80]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1402a9f70]
jmp 0x1400a4cd9
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400a4cd6
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400a4cc4
mov rdx, rdi
lea rcx, [0x1400a4bd0]
call fcn.14002f620
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a4d04
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 0x1400a4d2e
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1402a9f78]
test rbx, rbx
jne 0x1400a4d74
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1402a74e8]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1402a9f80], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402a9f80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1402a9f78]
jmp 0x1400a4d77
movsxd rdi, edi
mov ecx, dword [0x1402a9f80]
lea rax, [rdi + rbx]
mov qword [0x1402a9f78], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1402a9f78]
mov edx, 8
mov rcx, qword [0x1402a74e8]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1402a9f80]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x1400a4dc6
test rbp, rbp
je 0x1400a4ded
mov edx, 0x28
lea rcx, [0x1402a9f70]
call fcn.1400a59bc
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x1400a4ded
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 0x1400a5a20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1402a191c]
cmp ecx, 0xffffffff
jne 0x1400a5a36
call fcn.1400a61a0
jmp 0x1400a5a46
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400a5a65
call fcn.1400a6560
mov ecx, dword [0x1402a191c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400a5a70]
add rsp, 0x28
jmp fcn.14002f620
add rsp, 0x28
ret
Function at 0x1400a5b30
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 [0x1402a191c]
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 0x1400a5b80
Capabilities:
Get thread local storage value

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

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

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

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

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

Function at 0x1400a5d10
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 [0x1402a191c]
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 0x1400a5d50
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 [0x1402a191c]
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 0x1400a5da6
mov rcx, qword [0x1402affa0]
lea r8, [rbp + 0x12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x1400a5dc5
call fcn.1400a8720
add qword [rdi], 0xfffffffffffffffc
lea r9, [rbp + 0x12]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1402affa0]
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.1400a63b0
mov rcx, qword [rdi]
lea rdx, [rbp + 2]
call fcn.1400a83c0
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 0x1400a6100
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
mov ecx, edi
mov edx, 0xffffffff
call fcn.1400a61d0
movzx r9d, word [rbx]
mov rcx, rax
mov r8d, edi
test r9w, r9w
je 0x1400a614c
sub rbx, rax
nop
test r8d, r8d
je 0x1400a614c
mov word [rax], r9w
dec r8d
movzx r9d, word [rbx + rax + 2]
add rax, 2
test r9w, r9w
jne 0x1400a6130
xor edx, edx
mov word [rax], dx
sub rax, rcx
sar rax, 1
sub edi, eax
mov ecx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400a6280

Function at 0x1400a61a0
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 [0x1402affa0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402a191c], eax
add rsp, 0x28
jmp fcn.1400a6560

Function at 0x1400a61d0
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 [0x1402a191c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x1400a6200
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 0x1400a6221
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x1400a6233
mov eax, 0x100000
cmp r8, rax
jle 0x1400a6250
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 [0x1402affa0]
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 0x1400a6280
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1402a191c]
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 0x1400a62b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1402a191c]
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 0x1400a62e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400a6326
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400a62f5
mov ecx, eax
call fcn.1400a61d0
sub rax, rbx
nop dword [rax]
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x1400a6310
add rsp, 0x20
pop rbx
ret
mov ecx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400a62b0

Function at 0x1400a6340
Capabilities:
Get thread local storage value

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

Function at 0x1400a6380
Capabilities:
Get thread local storage value

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

Function at 0x1400a63f0
Capabilities:
Get thread local storage value

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

Function at 0x1400a6560
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1402affa0]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1402affa0]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x1402a191c]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1400a7410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movsxd rdx, dword [0x1402aa8e0]
lea r8, [0x1402c0340]
mov qword [r8 + rdx*8], rcx
inc edx
cmp dword [0x1402a9ff0], 0
mov dword [0x1402aa8e0], edx
jne 0x1400b59b0
ret
sub rsp, 0x48
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [0x1402aa8e0]
mov dword [rsp + 0x20], 0x1d
mov dword [rsp + 0x28], eax
test eax, eax
jne 0x1400b5a27
call fcn.1400c7ad0
xor r11d, r11d
mov dword [rsp + 0x30], eax
lea rcx, [0x1402c0ce0]
mov dword [rsp + 0x24], r11d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402aa8f8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + SafeArrayPutElement]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14017f910
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor r11d, r11d
mov rbx, qword [0x1402b0840]
mov r8, rbx
test eax, eax
jle 0x1400b5b70
lea r10, [0x1402c0340]
nop dword [rax + rax]
mov rax, qword [r10]
mov rdx, r8
mov rcx, qword [rax + 8]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400b5a60
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r8 + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400b5a80
lea r9, [rax + 1]
mov rax, qword [r10]
add r9, r8
mov rdx, r9
mov rcx, qword [rax + 0x10]
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400b5aa0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r9 + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400b5ac0
mov rcx, qword [r10]
lea r8, [rax + 1]
add r8, r9
test byte [rcx + 4], 1
je 0x1400b5b1f
mov rcx, qword [rcx + 0x20]
mov rdx, r8
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400b5af0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x1400b5b10
add rax, r8
jmp 0x1400b5b26
mov byte [r8], 0
mov rax, r8
mov rcx, qword [r10]
mov edx, dword [rcx + 4]
mov dword [rax + 1], edx
cmp dword [0x1402aa8d0], 0
je 0x1400b5b51
mov ecx, edx
mov byte [rax + 4], dl
movzx edx, byte [rax + 2]
shr ecx, 0x18
mov byte [rax + 1], cl
movzx ecx, byte [rax + 3]
mov byte [rax + 2], cl
mov byte [rax + 3], dl
inc r11d
lea r8, [rax + 5]
add r10, 8
cmp r11d, dword [0x1402aa8e0]
jl 0x1400b5a50
mov rbx, qword [0x1402b0840]
sub r8d, ebx
mov dword [rsp + 0x24], r8d
call fcn.1400c7ad0
lea rcx, [0x1402c0ce0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402aa8f8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + SafeArrayPutElement]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14017f910
add rsp, 0x48
ret
Function at 0x1400ac820
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 0x1400ac9fe
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 0x1400ac8ac
test eax, eax
jle 0x1400ac8ac
mov rdx, qword [0x1402b0840]
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 0x1400ac8ac
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400ac9f9
mov rax, qword [0x1402b0840]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x1400ac9f9
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x1400ac9f4
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x1400ac9ec
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 0x1400ac9d0
test edi, edi
jle 0x1400ac9d0
mov rcx, qword [0x1402a74e8]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400ac9d0
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.140052f00
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0xaca08]
add rdx, r13
jmp rdx
lea rax, [0x1400aca30]
mov qword [rbx + 0x18], rax
lea rax, [0x1400af9b0]
jmp 0x1400ac9bb
lea rax, [0x1400aca40]
mov qword [rbx + 0x18], rax
lea rax, [0x1400af9c0]
jmp 0x1400ac9bb
lea rax, [0x1400acb30]
mov qword [rbx + 0x18], rax
lea rax, [0x1400af9f0]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1402aa880]
mov qword [rbx], rax
mov qword [0x1402aa880], rbx
mov rdx, qword [0x1402b0840]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x1400ac920
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 0x1400afd20
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1402affc0]
call fcn.1400a4c6c
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x1400afd97
cmp qword [0x1402affe0], rdi
jne 0x1400afd97
cmp dword [0x1402aa890], 0
je 0x1400afd97
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1402aa8c0]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x1400afd87
cmp rbx, rdi
je 0x1400afd7c
cmp dword [rbx + 0x38], esi
jne 0x1400afd7c
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 0x1400afd68
mov rbx, qword [rsp + 0x30]
mov dword [0x1402aa890], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1402affc0]
call fcn.1400a4c6c
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x1400afee0
cmp dword [0x1402aa890], 0
jne 0x1400afee0
mov qword [rsp + 0x30], rbx
lea rcx, [0x1402aa898]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1402a9ff0], 0
je 0x1400afe16
lea rcx, [0x1402b08c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402b0020]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1402c0cc0]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1402affe0], rsi
xor edx, edx
mov dword [0x1402aa890], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1402aa8c0]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x1400afe93
cmp rbx, rsi
je 0x1400afe8b
cmp dword [rbx + 0x38], 0
jne 0x1400afe8b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x1400afe7b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x1400afe60
cmp dword [rbx + 0x38], 0
jne 0x1400afe8b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400afe53
cmp dword [0x1402a9ff0], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x1400afecd
lea rcx, [0x1402b0020]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402b08c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402aa898]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x1400b4fa0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.1400b4db0
call fcn.1400afda0
nop
xor ecx, ecx
call fcn.1400b5290
test eax, eax
jne 0x1400b4fc0
mov rbx, qword [0x1402aa010]
test rbx, rbx
je 0x1400b50a0
cmp dword [0x1402aa00c], eax
je 0x1400b50a0
cmp dword [0x1402aa8d0], 0
mov eax, dword [0x1402aa008]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x1400b506b
mov rcx, qword [0x1402b0840]
mov rdx, rbx
movsxd r8, eax
call fcn.140052f00
xor r9d, r9d
cmp dword [0x1402aa008], r9d
jle 0x1400b5064
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1402b0840]
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 [0x1402aa008]
jl 0x1400b5030
mov rbx, qword [0x1402b0840]
call fcn.1400c7ad0
lea rcx, [0x1402c0ce0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402aa8f8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + SafeArrayPutElement]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.1400c7ad0
lea rcx, [0x1402c0ce0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402aa8f8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + SafeArrayPutElement]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1402aa8f8]
call qword [rax + 0x28]
lea rcx, [0x1402b0020]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402b08c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1402aa8e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1402aa8e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402aa8f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1402aa8f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1402b0020]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402b08c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402b0020]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1402c0ce0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1402b08c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14017f910
add rsp, 0x40
pop rbx
ret