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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x140019c06
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x1408a70a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x140019c31
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1408a70a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
add rcx, qword [rdx]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.14001a100
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140019c80
Capabilities:
Get thread local storage value

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

Function at 0x140019cb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x140019ce0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x140019d10
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x140019ef0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret
Function at 0x140019f20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x140019f7b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x140019f7b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x140019f7d
xor eax, eax
add rsp, 0x38
ret

Function at 0x140019f90
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140019fc0
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x14001a032
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1408a70a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x14001a090
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x14001a090
cmp dword [rsp + 0x20], 0x100000
jge 0x14001a053
mov dword [rsp + 0x20], 0x100000
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1408a70a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14001a0d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x14001a180
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret
Function at 0x14001a1b0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x14001a1f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x14001a540
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x1408a70a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
mov rcx, qword [0x1408a70a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x14089ce64]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x14001f990
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 0x14001fb69
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 0x14001fa1c
test eax, eax
jle 0x14001fa1c
mov rdx, qword [0x1408a7940]
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 0x14001fa1c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14001fb64
mov rdx, qword [0x1408a7940]
mov rax, rdx
cmp dword [rdx], 0x50555245
jne 0x14001fb64
mov esi, dword [rdx + 8]
add rax, 0xc
lea ecx, [rsi - 0x52455331]
cmp ecx, 8
ja 0x14001fb64
lea ecx, [rdi - 8]
mov qword [rsp + 0x40], r15
movsxd r15, ecx
lea rcx, [r15 + rdx]
cmp rax, rcx
jae 0x14001fb5f
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x88], r14
lea r13, [0x14001fc80]
nop word [rax + rax]
cmp dword [rax], 0x434e5354
movsxd rdi, dword [rax + 4]
lea r14, [rax + 8]
jne 0x14001fb3b
test edi, edi
jle 0x14001fb3b
mov rcx, qword [0x1408a11f8]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001fb3b
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 0x14001fb14
jle 0x14001fb2a
cmp esi, 0x52455333
jle 0x14001fb00
mov qword [rbx + 0x18], r13
lea rax, [0x140022710]
jmp 0x14001fb26
lea rax, [0x14001fb90]
mov qword [rbx + 0x18], rax
lea rax, [0x1400226e0]
jmp 0x14001fb26
lea rax, [0x14001fb80]
mov qword [rbx + 0x18], rax
lea rax, [0x1400226d0]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1408a2980]
mov qword [0x1408a2980], rbx
mov qword [rbx], rax
mov rdx, qword [0x1408a7940]
lea rax, [r14 + rdi]
add rdx, r15
cmp rax, rdx
jb 0x14001fa90
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 0x140022a00
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1408a70c0]
call fcn.140017ab4
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x140022a77
cmp qword [0x1408a70e0], rdi
jne 0x140022a77
cmp dword [0x1408a2b84], 0
je 0x140022a77
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1408a2b88]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140022a67
cmp rbx, rdi
je 0x140022a5c
cmp dword [rbx + 0x38], esi
jne 0x140022a5c
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 0x140022a48
mov rbx, qword [rsp + 0x30]
mov dword [0x1408a2b84], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1408a70c0]
call fcn.140017ab4
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x140022bc0
cmp dword [0x1408a2b84], 0
jne 0x140022bc0
lea rcx, [0x1408a2b90]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1408a233c], 0
je 0x140022af6
lea rcx, [0x1408a79a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1408b7e00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1408a7120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1408b7de0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x1408a70e0], rsi
mov dword [0x1408a2b84], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1408a2b88]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140022b73
cmp rbx, rsi
je 0x140022b6b
cmp dword [rbx + 0x38], 0
jne 0x140022b6b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140022b5b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140022b40
cmp dword [rbx + 0x38], 0
jne 0x140022b6b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140022b33
cmp dword [0x1408a233c], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x140022bad
lea rcx, [0x1408a7120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1408b7e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1408a79a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1408a2b90]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140027740
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140027550
call fcn.140022a80
xor ecx, ecx
call fcn.140027a00
test eax, eax
jne 0x140027750
mov rbx, qword [0x1408a2358]
test rbx, rbx
je 0x140027830
cmp dword [0x1408a2360], eax
je 0x140027830
cmp dword [0x1408a2bc0], 0
mov eax, dword [0x1408a234c]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x1400277fb
mov rcx, qword [0x1408a7940]
movsxd r8, eax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xor r9d, r9d
cmp dword [0x1408a234c], r9d
jle 0x1400277f4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1408a7940]
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 [0x1408a234c]
jl 0x1400277c0
mov rbx, qword [0x1408a7940]
call fcn.140038ae0
lea rcx, [0x1408b7e00]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1408a2be8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x1408b7e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140038ae0
lea rcx, [0x1408b7e00]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1408a2be8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x1408b7e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1408a2be8]
call qword [rax + 0x28]
lea rcx, [0x1408a7120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1408b7e00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1408a79a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1408a2bd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1408a2bd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1408a2be0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1408a2be0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1408a7120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1408b7e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1408a79a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1408a7120]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1408b7e00]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1408a79a0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x14002a3e0
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea rdx, [0x1408a2bf0]
nop dword [rax]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x14002a3fe
xor eax, 0xedb88320
test al, 1
je 0x14002a40b
shr eax, 1
xor eax, 0xedb88320
jmp 0x14002a40d
shr eax, 1
test al, 1
je 0x14002a41a
shr eax, 1
xor eax, 0xedb88320
jmp 0x14002a41c
shr eax, 1
test al, 1
je 0x14002a429
shr eax, 1
xor eax, 0xedb88320
jmp 0x14002a42b
shr eax, 1
test al, 1
je 0x14002a438
shr eax, 1
xor eax, 0xedb88320
jmp 0x14002a43a
shr eax, 1
test al, 1
je 0x14002a447
shr eax, 1
xor eax, 0xedb88320
jmp 0x14002a449
shr eax, 1
test al, 1
je 0x14002a456
shr eax, 1
xor eax, 0xedb88320
jmp 0x14002a458
shr eax, 1
test al, 1
je 0x14002a465
shr eax, 1
xor eax, 0xedb88320
jmp 0x14002a467
shr eax, 1
inc ecx
mov dword [rdx], eax
add rdx, 4
cmp ecx, 0x100
jl 0x14002a3f0
ret

Function at 0x14002bcd0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rsi, rdx
lea rdx, [rsp + 0x40]
mov rbp, r8
mov rdi, rcx
xor ebx, ebx
call fcn.14002c500
test eax, eax
je 0x14002bdc9
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x14002bdc9
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x14002bdc9
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14002bdc9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14002bdc0
test eax, eax
jle 0x14002bdc0
lea ecx, [rdi + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x14002bdc0
lea r9, [rsp + 0x138]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002bdc0
cmp dword [rsp + 0x138], edi
jne 0x14002bdc0
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14002c1e0
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002c820
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x270
lea r9, [rsp + 0x20]
xor edi, edi
mov rbp, r8
sub r9, rcx
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [r9 + rcx - 1], al
test al, al
jne 0x14002c850
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14002c870
movzx eax, word [0x140096174]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x14002c890
lea rbx, [rsp + 0x20]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
add rbx, rax
mov eax, 0x2a
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14002c9a2
lea rax, [rsp + 0x15c]
sub rbx, rax
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x15c]
nop dword [rax + rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
mov byte [rbx + rax - 1], cl
test cl, cl
jne 0x14002c8f0
test byte [rsp + 0x130], 0x10
je 0x14002c960
movzx edx, byte [rsp + 0x15c]
movzx ecx, byte [rsp + 0x15d]
cmp dl, byte [0x140096178]
jne 0x14002c939
cmp cl, byte [0x140096179]
jne 0x14002c939
movzx eax, byte [rsp + 0x15e]
cmp al, byte [0x14009617a]
je 0x14002c979
cmp dl, byte [0x140095d74]
jne 0x14002c949
cmp cl, byte [0x140095d75]
je 0x14002c979
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.14002c820
jmp 0x14002c975
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.14002bcd0
test eax, eax
jne 0x14002c994
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14002c8e0
jmp 0x14002c999
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x270]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140032a40
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov ecx, 0xfffffff5
mov word [rsp + 0x22], ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x4000
mov rcx, rax
call sub.msvcrt.dll__open_osfhandle
lea rdx, [0x140096140]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x1408a3030], rax
call sub.msvcrt.dll_setvbuf
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x4000
mov rcx, rax
call sub.msvcrt.dll__open_osfhandle
lea rdx, [0x140098c10]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x1408a3038], rax
call sub.msvcrt.dll_setvbuf
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x4000
mov rcx, rax
call sub.msvcrt.dll__open_osfhandle
lea rdx, [0x140098c10]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x1408a3040], rax
call sub.msvcrt.dll_setvbuf
mov rax, qword [0x1408a3038]
mov qword [0x1408b7400], rax
call fcn.14002ebd0
add rsp, 0x48
ret
Function at 0x14003ab50
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov edi, 1
lea rcx, [rsp + 0xd0]
xor r8d, r8d
xor edx, edx
mov r9d, edi
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
test eax, eax
je 0x14003abb5
mov rcx, qword [rsp + 0xd0]
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1f]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0xd0]
test eax, eax
cmovne edi, ebx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x14003ac21
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], eax
call fcn.140038ae0
mov rcx, rbx
movups xmm0, xmmword [0x14089e070]
mov dword [rsp + 0x34], eax
mov eax, dword [0x1408a6558]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + rcx + 0x30]
add rcx, 6
xor byte [rsp + rcx + 0x2b], al
movzx eax, byte [rsp + rcx + 0x2b]
xor byte [rsp + rcx + 0x2c], al
movzx eax, byte [rsp + rcx + 0x2c]
xor byte [rsp + rcx + 0x2d], al
movzx eax, byte [rsp + rcx + 0x2d]
xor byte [rsp + rcx + 0x2e], al
movzx eax, byte [rsp + rcx + 0x2e]
xor byte [rsp + rcx + 0x2f], al
movzx eax, byte [rsp + rcx + 0x2f]
xor byte [rsp + rcx + 0x30], al
cmp rcx, 0x1e
jl 0x14003abe1
lea rcx, [rsp + 0x60]
call fcn.14007ccf4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8d, 0x20
call fcn.14007d584
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14007cc18
lea rdx, [0x140000000]
nop word [rax + rax]
movzx ecx, byte [rsp + rbx + 0x50]
inc rbx
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx + 0x9bc98]
mov byte [rdx + rbx*2 + 0x8a6796], al
movzx eax, byte [rcx + rdx + 0x9bc98]
mov byte [rdx + rbx*2 + 0x8a6797], al
cmp rbx, 0x10
jl 0x14003ac60
lea r8, [0x1408a6828]
lea rdx, [rsp + 0x30]
lea rcx, [0x1408a65b0]
mov r9d, 0x20
call fcn.14007efe0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret