joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020074
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000dd08
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400200fe
cmp byte [rbp - 0x21], r15b
je 0x1400200f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020134
call fcn.1400148e0
test eax, eax
jne 0x140020120
cmp byte [rbp - 0x21], r15b
je 0x140020118
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020134
cmp byte [rbp - 0x21], r15b
je 0x140020131
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400103b0
test eax, eax
jne 0x1400201d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dd08
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140020173
cmp byte [rbp - 0x21], r15b
je 0x1400201a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400201a8
call fcn.1400148e0
test eax, eax
jne 0x140020194
cmp byte [rbp - 0x21], r15b
je 0x14002018d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400201a8
cmp byte [rbp - 0x21], r15b
je 0x1400201a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400103b0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400201d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400201d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400201e5
mov rcx, rdi
call fcn.140014564
cmp byte [rbp + 0x3f], r15b
je 0x1400201f4
mov rcx, qword [rbp + 0x27]
call fcn.140014564
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002228
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400441e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140002282
mov r8, qword [0x1400410ba]
mov rcx, qword [0x1400441a0]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400441e0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.14000168b
lea rcx, [0x140002200]
mov rdx, rbx
call fcn.1400023a4
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000228c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400441e0], eax
add rsp, 0x28
jmp fcn.140002228

Function at 0x1400023a4
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
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400441e8], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1400441f8]
jne 0x1400023f1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140044220], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400441e8], 1
mov ecx, dword [0x140044220]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400024c6
mov rcx, qword [0x1400441a0]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400024f1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400441f0]
test rax, rax
je 0x140002441
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400441f0], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14000250c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140044220]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400441a0]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400024f1
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140002970
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140002884]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.1400061ac
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x140044230], rax
call fcn.14000602c
xor ebx, ebx
cmp word [0x140044228], bx
mov qword [0x1400496c0], rax
jne 0x140002a93
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x140044228], di
test eax, eax
je 0x1400029e1
mov word [0x140044228], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140044258], rax
test rax, rax
je 0x140002a93
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140044258]
lea rdx, str.freeaddrinfo
mov qword [0x140044238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140044258]
lea rdx, str.getnameinfo
mov qword [0x140044240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140044258]
lea rdx, str.WSAStringToAddressA
mov qword [0x140044248], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140044238], rbx
mov qword [0x140044250], rax
je 0x140002a93
cmp qword [0x140044240], rbx
je 0x140002a93
cmp qword [0x140044248], rbx
je 0x140002a93
mov ecx, dword [0x14004422c]
test rax, rax
cmovne ecx, edi
mov dword [0x14004422c], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140005170
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400053a0
xor r10d, r10d
lea edx, [rax*4]
mov r11d, eax
movsxd r9, edx
test edx, edx
jle 0x1400051e9
lea r8, [rbx + 8]
lea rcx, [rbx + 8]
lea r8, [r8 + r9*4]
nop
mov eax, dword [r8 - 8]
mov edx, dword [rcx - 8]
add r10, 4
mov dword [rcx - 8], eax
mov eax, dword [r8 - 4]
mov dword [r8 - 8], edx
mov edx, dword [rcx - 4]
mov dword [rcx - 4], eax
mov eax, dword [r8]
mov dword [r8 - 4], edx
mov edx, dword [rcx]
mov dword [rcx], eax
mov eax, dword [r8 + 4]
mov dword [r8], edx
mov edx, dword [rcx + 4]
mov dword [rcx + 4], eax
sub r9, 4
mov dword [r8 + 4], edx
lea r8, [r8 - 0x10]
lea rcx, [rcx + 0x10]
cmp r10, r9
jl 0x1400051a0
cmp r11d, 1
jle 0x14000538d
mov qword [rsp + 0x30], rdi
add rbx, 2
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
nop word [rax + rax]
mov r8d, dword [rbx + 0xe]
lea rbx, [rbx + 0x10]
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x33420]
movzx eax, byte [rbx - 1]
movzx ecx, byte [rdi + rax*4 + 0x33420]
mov r9d, dword [rdi + rdx*4 + 0x33820]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x34020]
movzx ecx, byte [rdi + rax*4 + 0x33420]
movzx eax, byte [rbx]
xor r9d, dword [rdi + rcx*4 + 0x34420]
movzx ecx, byte [rdi + rax*4 + 0x33420]
movzx eax, byte [rbx + 3]
movzx edx, byte [rdi + rax*4 + 0x33420]
xor r9d, dword [rdi + rcx*4 + 0x33c20]
movzx eax, byte [rbx + 4]
movzx ecx, byte [rdi + rax*4 + 0x33420]
mov r8d, dword [rdi + rdx*4 + 0x34020]
mov dword [rbx - 2], r9d
xor r8d, dword [rdi + rcx*4 + 0x33c20]
mov r9d, dword [rbx + 2]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x33420]
movzx eax, r9b
mov r9d, dword [rbx + 6]
xor r8d, dword [rdi + rcx*4 + 0x33820]
movzx ecx, byte [rdi + rax*4 + 0x33420]
movzx eax, byte [rbx + 7]
xor r8d, dword [rdi + rcx*4 + 0x34420]
movzx edx, byte [rdi + rax*4 + 0x33420]
movzx eax, byte [rbx + 8]
movzx ecx, byte [rdi + rax*4 + 0x33420]
mov dword [rbx + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x34020]
xor r8d, dword [rdi + rcx*4 + 0x33c20]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x33420]
movzx eax, r9b
mov r9d, dword [rbx + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x33820]
movzx ecx, byte [rdi + rax*4 + 0x33420]
movzx eax, byte [rbx + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x34420]
movzx edx, byte [rdi + rax*4 + 0x33420]
movzx eax, byte [rbx + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x33420]
mov dword [rbx + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x34020]
xor r8d, dword [rdi + rcx*4 + 0x33c20]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x33420]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x33820]
movzx ecx, byte [rdi + rax*4 + 0x33420]
xor r8d, dword [rdi + rcx*4 + 0x34420]
mov dword [rbx + 0xa], r8d
dec r10
jne 0x140005210
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x1400058b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rsi, rdx
mov rbx, r8
mov eax, r9d
cdq
mov r12d, r9d
mov r13, rcx
and edx, 0xf
add eax, edx
mov r8d, eax
and eax, 0xf
sub eax, edx
sar r8d, 4
mov edi, eax
test eax, eax
je 0x1400058f9
test r8d, r8d
jne 0x1400058f6
xor eax, eax
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
dec r8d
mov qword [rsp + 0x80], rbp
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0x88], r14
movups xmm0, xmmword [rbp]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
test r8d, r8d
je 0x140005982
mov qword [rsp + 0x90], r15
mov r14d, r8d
nop dword [rax]
mov edx, dword [r13 + 4]
lea rcx, [r13 + 0xf8]
mov r9, rbx
mov r8, rsi
call fcn.140004540
mov eax, dword [rsp + 0x20]
add rsi, 0x10
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
add rbx, 0x10
xor dword [rbx - 0xc], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx - 4], eax
movups xmm0, xmmword [rsi - 0x10]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
dec r14
jne 0x140005930
mov r15, qword [rsp + 0x90]
test edi, edi
je 0x140005ac4
movups xmm0, xmmword [rsi]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [r13 + 0xf8]
movups xmmword [rbp], xmm0
mov edx, dword [r13 + 4]
movups xmmword [rsp + 0x40], xmm0
call fcn.140004540
xor r10d, r10d
test edi, edi
je 0x140005a8f
cmp edi, 0x10
jb 0x140005a49
lea r9d, [rdi - 1]
lea r11, [rbx + 0x10]
lea rdx, [rsi + 0x10]
lea eax, [r9 + 0x10]
lea rbp, [rax + rsi]
lea r8, [rax + rbx]
cmp r11, rbp
ja 0x1400059e6
cmp r8, rdx
jae 0x140005a49
lea rcx, [rsp + 0x30]
mov eax, r9d
add rcx, rax
cmp r11, rcx
ja 0x140005a00
lea rax, [rsp + 0x30]
cmp r8, rax
jae 0x140005a49
lea rax, [rsp + 0x30]
cmp rax, rbp
ja 0x140005a0f
cmp rcx, rdx
jae 0x140005a49
mov eax, edi
mov r8d, edi
and eax, 0xf
sub r8d, eax
nop word [rax + rax]
lea edx, [r10 + 0x10]
mov eax, r10d
mov r10d, edx
movdqu xmm0, xmmword [rsp + rax + 0x30]
movdqu xmm1, xmmword [rdx + rsi]
movdqu xmmword [rsp + rax + 0x30], xmm1
pxor xmm0, xmm1
movdqu xmmword [rdx + rbx], xmm0
cmp edx, r8d
jb 0x140005a20
cmp r10d, edi
jae 0x140005a8f
lea r8d, [r10 + 0x10]
mov eax, r10d
lea r9, [rsp + 0x30]
mov r11, rbx
add r9, rax
add r8, rsi
sub r11, rsi
sub edi, r10d
mov r10d, edi
nop dword [rax]
movzx eax, byte [r8]
movzx edx, byte [r9]
lea r8, [r8 + 1]
xor dl, al
mov byte [r9], al
lea r9, [r9 + 1]
mov byte [r11 + r8 - 1], dl
dec r10
jne 0x140005a70
mov edx, dword [r13 + 4]
lea r8, [rsp + 0x30]
lea rcx, [r13 + 0xf8]
mov r9, rbx
call fcn.140004540
mov eax, dword [rsp + 0x20]
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx + 0xc], eax
jmp 0x140005ac8
movups xmmword [rbp], xmm1
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov eax, r12d
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005af0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
mov eax, r9d
mov r12d, r9d
cdq
mov rdi, r8
mov r13, rcx
and edx, 0xf
add eax, edx
mov r10d, eax
and eax, 0xf
sub eax, edx
sar r10d, 4
mov esi, eax
test eax, eax
je 0x140005b3e
test r10d, r10d
jne 0x140005b3b
xor eax, eax
jmp 0x140005d06
dec r10d
mov qword [rsp + 0x70], r14
mov r14, qword [rbp + 0x50]
mov qword [rsp + 0x78], r15
mov rcx, r14
test r10d, r10d
je 0x140005baa
mov r15d, r10d
nop word [rax + rax]
mov eax, dword [rbx]
mov edx, dword [r13 + 4]
lea r8, [rbp - 0x20]
xor eax, dword [rcx]
mov r9, rdi
mov dword [rbp - 0x20], eax
mov eax, dword [rcx + 4]
xor eax, dword [rbx + 4]
mov dword [rbp - 0x1c], eax
mov eax, dword [rcx + 8]
xor eax, dword [rbx + 8]
mov dword [rbp - 0x18], eax
mov eax, dword [rcx + 0xc]
lea rcx, [r13 + 8]
xor eax, dword [rbx + 0xc]
mov dword [rbp - 0x14], eax
call fcn.140004b50
mov rcx, rdi
add rdi, 0x10
add rbx, 0x10
dec r15
jne 0x140005b60
mov r12d, dword [rbp + 0x48]
test esi, esi
je 0x140005cdf
movups xmm0, xmmword [rbx]
mov edx, dword [r13 + 4]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
movd eax, xmm0
xor eax, dword [rcx]
mov dword [rbp - 0x20], eax
mov eax, dword [rcx + 4]
xor dword [rbp - 0x1c], eax
mov eax, dword [rcx + 8]
xor dword [rbp - 0x18], eax
mov eax, dword [rcx + 0xc]
lea rcx, [r13 + 8]
xor dword [rbp - 0x14], eax
call fcn.140004b50
xor edx, edx
test esi, esi
je 0x140005cbf
cmp esi, 0x10
jb 0x140005c76
lea ecx, [rsi - 1]
lea r11, [rbp - 0x10]
lea r9, [rdi + 0x10]
lea eax, [rcx + 0x10]
mov r10d, eax
lea r8, [rax + rdi]
mov eax, ecx
add r11, rax
cmp r9, r11
ja 0x140005c24
lea rax, [rbp - 0x10]
cmp r8, rax
jae 0x140005c76
lea rcx, [r10 + rbx]
lea rax, [rbx + 0x10]
cmp r9, rcx
ja 0x140005c36
cmp r8, rax
jae 0x140005c76
lea r8, [rbp - 0x10]
cmp r8, rcx
ja 0x140005c44
cmp r11, rax
jae 0x140005c76
mov eax, esi
mov r8d, esi
and eax, 0xf
sub r8d, eax
nop
lea rcx, [rbp - 0x10]
mov eax, edx
movdqu xmm1, xmmword [rcx + rdx]
add edx, 0x10
movdqu xmm0, xmmword [rdx + rbx]
movdqu xmmword [rdx + rdi], xmm1
pxor xmm0, xmm1
movdqu xmmword [rcx + rax], xmm0
cmp edx, r8d
jb 0x140005c50
cmp edx, esi
jae 0x140005cbf
lea r9, [rbp - 0x10]
lea r8d, [rdx + 0x10]
mov eax, edx
add r9, rax
add r8, rdi
sub rbx, rdi
sub esi, edx
mov r10d, esi
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
movzx eax, byte [rbx + r8]
lea r9, [r9 + 1]
xor al, dl
mov byte [r8], dl
lea r8, [r8 + 1]
mov byte [r9 - 1], al
dec r10
jne 0x140005ca0
mov edx, dword [r13 + 4]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x10]
lea rcx, [r13 + 8]
call fcn.140004b50
lea rcx, [rbp - 0x10]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
mov eax, dword [rcx]
mov r15, qword [rsp + 0x78]
mov dword [r14], eax
mov eax, dword [rcx + 4]
mov dword [r14 + 4], eax
mov eax, dword [rcx + 8]
mov dword [r14 + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [r14 + 0xc], eax
mov r14, qword [rsp + 0x70]
mov eax, r12d
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000cf20
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 ebp, 1
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov edx, 0x80000000
mov r8d, ebp
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000d0f9
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14000cfac
test eax, eax
jle 0x14000cfac
mov rdx, qword [0x140049fe0]
lea r9, [rsp + 0x80]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000cfac
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14000d0f4
mov rdx, qword [0x140049fe0]
mov rax, rdx
cmp dword [rdx], 0x50555245
jne 0x14000d0f4
mov esi, dword [rdx + 8]
add rax, 0xc
lea ecx, [rsi - 0x52455331]
cmp ecx, 8
ja 0x14000d0f4
lea ecx, [rdi - 8]
mov qword [rsp + 0x40], r15
movsxd r15, ecx
lea rcx, [r15 + rdx]
cmp rax, rcx
jae 0x14000d0ef
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x88], r14
lea r13, [0x14000d210]
nop word [rax + rax]
cmp dword [rax], 0x434e5354
movsxd rdi, dword [rax + 4]
lea r14, [rax + 8]
jne 0x14000d0cb
test edi, edi
jle 0x14000d0cb
mov rcx, qword [0x1400441a0]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14000d0cb
lea rcx, [rax + 0x28]
mov r8, rdi
mov rdx, r14
mov dword [rax + 0x10], edi
mov dword [rax + 0x14], r12d
mov qword [rax + 8], rcx
call sub.msvcrt.dll_memcpy
cmp esi, 0x52455331
je 0x14000d0a4
jle 0x14000d0ba
cmp esi, 0x52455333
jle 0x14000d090
mov qword [rbx + 0x18], r13
lea rax, [0x14000fca0]
jmp 0x14000d0b6
lea rax, [0x14000d120]
mov qword [rbx + 0x18], rax
lea rax, [0x14000fc70]
jmp 0x14000d0b6
lea rax, [0x14000d110]
mov qword [rbx + 0x18], rax
lea rax, [0x14000fc60]
mov qword [rbx + 0x20], rax
mov rax, qword [0x140045340]
mov qword [0x140045340], rbx
mov qword [rbx], rax
mov rdx, qword [0x140049fe0]
lea rax, [r14 + rdi]
add rdx, r15
cmp rax, rdx
jb 0x14000d020
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
add rsp, 0x48
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ff90
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x140049760]
call fcn.140006028
cmp dword [0x140041018], 0
mov rdi, qword [rax]
je 0x140010007
cmp qword [0x140049780], rdi
jne 0x140010007
cmp dword [0x140045544], 0
je 0x140010007
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140045548]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14000fff7
cmp rbx, rdi
je 0x14000ffec
cmp dword [rbx + 0x38], esi
jne 0x14000ffec
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 0x14000ffd8
mov rbx, qword [rsp + 0x30]
mov dword [0x140045544], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x140049760]
call fcn.140006028
cmp dword [0x140041018], 0
mov rsi, qword [rax]
je 0x140010150
cmp dword [0x140045544], 0
jne 0x140010150
lea rcx, [0x140045550]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140044cfc], 0
je 0x140010086
lea rcx, [0x14004a040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14005a4a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400497c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14005a480]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x140049780], rsi
mov dword [0x140045544], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x140045548]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140010103
cmp rbx, rsi
je 0x1400100fb
cmp dword [rbx + 0x38], 0
jne 0x1400100fb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x1400100eb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x1400100d0
cmp dword [rbx + 0x38], 0
jne 0x1400100fb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400100c3
cmp dword [0x140044cfc], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14001013d
lea rcx, [0x1400497c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14005a4a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14004a040]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140045550]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140014cb0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140014ac0
call fcn.140010010
xor ecx, ecx
call fcn.140014f70
test eax, eax
jne 0x140014cc0
mov rbx, qword [0x140044d18]
test rbx, rbx
je 0x140014da0
cmp dword [0x140044d20], eax
je 0x140014da0
cmp dword [0x140045580], 0
mov eax, dword [0x140044d0c]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x140014d6b
mov rcx, qword [0x140049fe0]
movsxd r8, eax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xor r9d, r9d
cmp dword [0x140044d0c], r9d
jle 0x140014d64
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x140049fe0]
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 [0x140044d0c]
jl 0x140014d30
mov rbx, qword [0x140049fe0]
call fcn.140026020
lea rcx, [0x14005a4a0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400455a8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x14005a4a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140026020
lea rcx, [0x14005a4a0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400455a8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x14005a4a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400455a8]
call qword [rax + 0x28]
lea rcx, [0x1400497c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14005a4a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14004a040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140045598]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140045598]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400455a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400455a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400497c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14005a4a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14004a040]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400497c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005a4a0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14004a040]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret