joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005fcac
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 ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x14005fcd6
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x1400ef730]
test rcx, rcx
jne 0x14005fd19
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1400ee4b8]
movsxd r8, ebx
mov edx, 8
mov dword [0x1400ef738], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400ef738]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400ef730]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x1400ef730], rcx
mov ecx, dword [0x1400ef738]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400ef730]
mov rcx, qword [0x1400ee4b8]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400ef738]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
jne 0x14005fd6d
test rbp, rbp
je 0x14005fd94
lea rcx, [0x1400ef728]
mov edx, 0x28
call fcn.140060940
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x14005fd94
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140060e30
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400f43a0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400eac34], eax
call fcn.140061a20
add rsp, 0x28
ret

Function at 0x140060f90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x1400eac34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140061030
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1400eac34], 0xffffffff
jne 0x14006105f
call fcn.140060e30
mov ecx, dword [0x1400eac34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140060fe0]
call fcn.140050690
jmp 0x140061090
mov ecx, dword [0x1400eac34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140061090
call fcn.140061a20
mov ecx, dword [0x1400eac34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140060fe0]
call fcn.140050690
add rsp, 0x28
ret

Function at 0x1400610a0
Capabilities:
Get thread local storage value

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

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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1400eac34]
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 0x1400611d6
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x1400f43a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x140061201
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 [0x1400f43a0]
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.1400615e0
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140061350
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1400eac34]
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 0x1400613a0
Capabilities:
Get thread local storage value

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

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1400eac34]
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 0x14006145b
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 0x14006145b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x14006145d
xor eax, eax
add rsp, 0x38
ret

Function at 0x140061470
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1400eac34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1400614a0
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 0x140061512
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 [0x1400f43a0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x140061570
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x140061570
cmp dword [rsp + 0x20], 0x100000
jge 0x140061533
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 [0x1400f43a0]
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 0x1400615b0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1400eac34]
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 0x140061660
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1400eac34]
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 0x140061690
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1400eac34]
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 0x1400616d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1400eac34]
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 0x140061a20
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x1400f43a0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x1400f43a0]
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], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1400eac34]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x1400669a0
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 0x140066b81
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 0x140066a2c
test eax, eax
jle 0x140066a2c
mov rdx, qword [0x1400f4be0]
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 0x140066a2c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140066b7c
mov rdx, qword [0x1400f4be0]
mov rax, rdx
cmp dword [rdx], 0x50555245
jne 0x140066b7c
mov esi, dword [rdx + 8]
add rax, 0xc
lea ecx, [rsi - 0x52455331]
cmp ecx, 5
ja 0x140066b7c
lea ecx, [rdi - 8]
mov qword [rsp + 0x40], r15
movsxd r15, ecx
lea rcx, [r15 + rdx]
cmp rax, rcx
jae 0x140066b77
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x88], r14
lea r13, [0x140066c90]
nop word [rax + rax]
cmp dword [rax], 0x434e5354
movsxd rdi, dword [rax + 4]
lea r14, [rax + 8]
jne 0x140066b53
test edi, edi
jle 0x140066b53
mov rcx, qword [0x1400ee4b8]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140066b53
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 0x140066b2c
jle 0x140066b42
cmp esi, 0x52455333
jle 0x140066b18
cmp esi, 0x52455337
jg 0x140066b42
mov qword [rbx + 0x18], r13
lea rax, [0x140069720]
jmp 0x140066b3e
lea rax, [0x140066ba0]
mov qword [rbx + 0x18], rax
lea rax, [0x1400696f0]
jmp 0x140066b3e
lea rax, [0x140066b90]
mov qword [rbx + 0x18], rax
lea rax, [0x1400696e0]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1400efdf0]
mov qword [0x1400efdf0], rbx
mov qword [rbx], rax
mov rdx, qword [0x1400f4be0]
lea rax, [r14 + rdi]
add rdx, r15
cmp rax, rdx
jb 0x140066aa0
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 0x140069a10
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1400f43b0]
call fcn.14005fc14
cmp dword [0x1400d5019], 0
mov rdi, qword [rax]
je 0x140069a87
cmp qword [0x1400f43c0], rdi
jne 0x140069a87
cmp dword [0x1400efff4], 0
je 0x140069a87
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400efff8]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140069a77
cmp rbx, rdi
je 0x140069a6c
cmp dword [rbx + 0x38], esi
jne 0x140069a6c
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 0x140069a58
mov rbx, qword [rsp + 0x30]
mov dword [0x1400efff4], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1400f43b0]
call fcn.14005fc14
cmp dword [0x1400d5019], 0
mov rsi, qword [rax]
je 0x140069bd0
cmp dword [0x1400efff4], 0
jne 0x140069bd0
lea rcx, [0x1400f0000]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400ef7b4], 0
je 0x140069b06
lea rcx, [0x1400f4c00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140104ff0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400f43e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x140104fe0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x1400f43c0], rsi
mov dword [0x1400efff4], 1
call qword [sym.imp.USER32.DLL_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1400efff8]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140069b83
cmp rbx, rsi
je 0x140069b7b
cmp dword [rbx + 0x38], 0
jne 0x140069b7b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140069b6b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140069b50
cmp dword [rbx + 0x38], 0
jne 0x140069b7b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140069b43
cmp dword [0x1400ef7b4], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x140069bbd
lea rcx, [0x1400f43e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140104ff0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400f4c00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400f0000]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x14006e730
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.14006e540
call fcn.140069a90
xor ecx, ecx
call fcn.14006e9f0
test eax, eax
jne 0x14006e740
mov rbx, qword [0x1400ef7d0]
test rbx, rbx
je 0x14006e820
cmp dword [0x1400ef7d8], eax
je 0x14006e820
cmp dword [0x1400f0030], 0
mov eax, dword [0x1400ef7c4]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14006e7eb
mov rcx, qword [0x1400f4be0]
movsxd r8, eax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xor r9d, r9d
cmp dword [0x1400ef7c4], r9d
jle 0x14006e7e4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1400f4be0]
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 [0x1400ef7c4]
jl 0x14006e7b0
mov rbx, qword [0x1400f4be0]
call fcn.14007fa60
lea rcx, [0x140104ff0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f0058]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140104ff0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.14007fa60
lea rcx, [0x140104ff0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f0058]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140104ff0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400f0058]
call qword [rax + 0x28]
lea rcx, [0x1400f43e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140104ff0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400f4c00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1400f0048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400f0048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400f0050]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400f0050]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400f43e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140104ff0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400f4c00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400f43e0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140104ff0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400f4c00]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x1400713d0
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea rdx, [0x1400f0060]
nop dword [rax]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x1400713ee
xor eax, 0xedb88320
test al, 1
je 0x1400713fb
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400713fd
shr eax, 1
test al, 1
je 0x14007140a
shr eax, 1
xor eax, 0xedb88320
jmp 0x14007140c
shr eax, 1
test al, 1
je 0x140071419
shr eax, 1
xor eax, 0xedb88320
jmp 0x14007141b
shr eax, 1
test al, 1
je 0x140071428
shr eax, 1
xor eax, 0xedb88320
jmp 0x14007142a
shr eax, 1
test al, 1
je 0x140071437
shr eax, 1
xor eax, 0xedb88320
jmp 0x140071439
shr eax, 1
test al, 1
je 0x140071446
shr eax, 1
xor eax, 0xedb88320
jmp 0x140071448
shr eax, 1
test al, 1
je 0x140071455
shr eax, 1
xor eax, 0xedb88320
jmp 0x140071457
shr eax, 1
inc ecx
mov dword [rdx], eax
add rdx, 4
cmp ecx, 0x100
jl 0x1400713e0
ret

Function at 0x140072cb0
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.1400734e0
test eax, eax
je 0x140072da9
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x140072da9
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x140072da9
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 0x140072da9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140072da0
test eax, eax
jle 0x140072da0
lea ecx, [rdi + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140072da0
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 0x140072da0
cmp dword [rsp + 0x138], edi
jne 0x140072da0
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.1400731c0
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 0x140073800
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 0x140073830
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140073850
movzx eax, word [0x1400bf094]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x140073870
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 0x140073982
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 0x1400738d0
test byte [rsp + 0x130], 0x10
je 0x140073940
movzx edx, byte [rsp + 0x15c]
movzx ecx, byte [rsp + 0x15d]
cmp dl, byte [0x1400bf098]
jne 0x140073919
cmp cl, byte [0x1400bf099]
jne 0x140073919
movzx eax, byte [rsp + 0x15e]
cmp al, byte [0x1400bf09a]
je 0x140073959
cmp dl, byte [0x1400bec94]
jne 0x140073929
cmp cl, byte [0x1400bec95]
je 0x140073959
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.140073800
jmp 0x140073955
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.140072cb0
test eax, eax
jne 0x140073974
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400738c0
jmp 0x140073979
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 0x140079a10
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, [0x1400bf060]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x1400f04a0], 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, [0x1400c1b30]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x1400f04a8], 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, [0x1400c1b30]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x1400f04b0], rax
call sub.msvcrt.dll_setvbuf
mov rax, qword [0x1400f04a8]
mov qword [0x140104640], rax
call fcn.140075ba0
add rsp, 0x48
ret