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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f4d50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001e527
cmp word [rdx], r13w
jne 0x14001e527
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e52c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001e651
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001e672
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e565
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e58c
cmp r9, r8
jae 0x14001e59c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001e546
jmp 0x14001e651
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e646
cmp dword [rsp + 0x80], esi
je 0x14001e646
lea r8, [0x1400f4d50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001e61e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001e5ee
mov word [rbx], r13w
jmp 0x14001e64e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001e5fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001e64e
cmp word [rsp + 0x70], r13w
jne 0x14001e62b
cmp rbx, r14
je 0x14001e5e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001fa64
cmp word [rsp + 0x70], r13w
je 0x14001e651
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f4d50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001e64b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001e651
Function at 0x14002f2b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140031390
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400569dc
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x14002f2e3
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140031440

Function at 0x14002f3ec
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400f06e8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14002f308]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.1400302f0
xor r8d, r8d
mov qword [0x1400f53f8], rax
xor edx, edx
mov ecx, ebx
call fcn.140030018
xor ebx, ebx
mov qword [0x1400fa760], rax
cmp word [0x1400f53f0], bx
jne 0x14002f521
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14002f466
movzx eax, di
jmp 0x14002f468
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1400f53f0], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400f5400], rax
test rax, rax
je 0x14002f521
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f5400]
lea rdx, str.freeaddrinfo
mov qword [0x1400f53d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f5400]
lea rdx, str.getnameinfo
mov qword [0x1400f53d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f5400]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400f53e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400f53d0], rbx
mov qword [0x1400f53e8], rax
je 0x14002f521
cmp qword [0x1400f53d8], rbx
je 0x14002f521
cmp qword [0x1400f53e0], rbx
je 0x14002f521
mov ecx, dword [0x1400f53f4]
test rax, rax
cmovne ecx, edi
mov dword [0x1400f53f4], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140057350
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x14002ff80
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 [0x1400f5420]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140030001
mov r8, qword [0x1400f5418]
lea edx, [rax + 8]
mov rcx, qword [0x1400f3ea8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f5420]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f5410]
jmp 0x14002ffed
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14002ffea
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002ffd8
mov rdx, rdi
lea rcx, [0x14002fee4]
call fcn.140001530
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140030018
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 0x140030042
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1400f5418]
test rbx, rbx
jne 0x140030088
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1400f3ea8]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1400f5420], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f5420]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f5418]
jmp 0x14003008b
movsxd rdi, edi
mov ecx, dword [0x1400f5420]
lea rax, [rdi + rbx]
mov qword [0x1400f5418], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400f5418]
mov edx, 8
mov rcx, qword [0x1400f3ea8]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400f5420]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x1400300da
test rbp, rbp
je 0x140030101
mov edx, 0x28
lea rcx, [0x1400f5410]
call fcn.140030c10
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x140030101
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 0x140031000
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f1128]
cmp ecx, 0xffffffff
jne 0x140031016
call fcn.140031280
jmp 0x140031026
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140031045
call fcn.1400314b0
mov ecx, dword [0x1400f1128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140031050]
add rsp, 0x28
jmp fcn.140001530
add rsp, 0x28
ret

Function at 0x140031090
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 [0x1400f1128]
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 0x1400310e0
Capabilities:
Get thread local storage value

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

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f1128]
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 0x140031280
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 [0x1400fa800], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f1128], eax
add rsp, 0x28
jmp fcn.1400314b0

Function at 0x140031390
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 [0x1400f1128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x1400313c0
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 0x1400313e1
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x1400313f3
mov eax, 0x100000
cmp r8, rax
jle 0x140031410
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 [0x1400fa800]
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 0x1400314b0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400fa800]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400fa800]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], reloc.WS2_32.dll_recv
mov rdx, rbx
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x338], rax
mov ecx, dword [0x1400f1128]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x140034a30
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1400fa820]
call fcn.14002ff80
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x140034aa7
cmp qword [0x1400fa840], rdi
jne 0x140034aa7
cmp dword [0x1400f5b28], 0
je 0x140034aa7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400f5b58]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140034a97
cmp rbx, rdi
je 0x140034a8c
cmp dword [rbx + 0x38], esi
jne 0x140034a8c
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 0x140034a78
mov rbx, qword [rsp + 0x30]
mov dword [0x1400f5b28], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140034ab0
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1400fa820]
call fcn.14002ff80
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x140034bf0
cmp dword [0x1400f5b28], 0
jne 0x140034bf0
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400f5b30]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400f5490], 0
je 0x140034b26
lea rcx, [0x1400fb120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14010b560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400fa880]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14010b540]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1400fa840], rsi
xor edx, edx
mov dword [0x1400f5b28], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1400f5b58]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140034ba3
cmp rbx, rsi
je 0x140034b9b
cmp dword [rbx + 0x38], 0
jne 0x140034b9b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140034b8b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140034b70
cmp dword [rbx + 0x38], 0
jne 0x140034b9b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140034b63
cmp dword [0x1400f5490], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x140034bdd
lea rcx, [0x1400fa880]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14010b560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400fb120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400f5b30]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140039cb0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f06e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140039ac0
call fcn.140034ab0
nop
xor ecx, ecx
call fcn.140039fa0
test eax, eax
jne 0x140039cd0
mov rbx, qword [0x1400f54b0]
test rbx, rbx
je 0x140039db0
cmp dword [0x1400f54ac], eax
je 0x140039db0
cmp dword [0x1400f5b60], 0
mov eax, dword [0x1400f54a8]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x140039d7b
mov rcx, qword [0x1400fb0a0]
mov rdx, rbx
movsxd r8, eax
call fcn.140021e60
xor r9d, r9d
cmp dword [0x1400f54a8], r9d
jle 0x140039d74
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1400fb0a0]
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 [0x1400f54a8]
jl 0x140039d40
mov rbx, qword [0x1400fb0a0]
call fcn.140048c90
lea rcx, [0x14010b560]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f5b88]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x14010b560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140048c90
lea rcx, [0x14010b560]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f5b88]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x14010b560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400f5b88]
call qword [rax + 0x28]
lea rcx, [0x1400fa880]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14010b560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400fb120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1400f5b78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400f5b78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400f5b80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400f5b80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400fa880]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14010b560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400fb120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400fa880]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14010b560]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400fb120]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140057350
add rsp, 0x40
pop rbx
ret
Function at 0x14003e790
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1400f06e8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rdx
mov rbp, r8
lea rdx, [rsp + 0x50]
mov rdi, rcx
xor ebx, ebx
call fcn.14003f090
test eax, eax
je 0x14003e88d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140077b60
test eax, eax
jne 0x14003e88d
lea rdx, [rsp + 0xb4]
mov rcx, rbp
call fcn.140077b60
test eax, eax
jne 0x14003e88d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14003e88d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14003e884
test eax, eax
jle 0x14003e884
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.140057a10
mov rsi, rax
test rax, rax
je 0x14003e884
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003e884
cmp dword [rsp + 0x40], edi
jne 0x14003e884
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14003edc0
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140057350
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003f3e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov rax, qword [0x1400f06e8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
lea r9, [rsp + 0x160]
sub r9, rcx
mov r14, r8
mov rbp, rdx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14003f420
lea rcx, [rsp + 0x160]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14003f440
movzx eax, word [0x1400bf304]
mov word [rcx], ax
lea rcx, [rsp + 0x160]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x14003f463
lea rbx, [rsp + 0x160]
add rbx, rax
lea rdx, [rsp + 0x20]
mov eax, 0x2a
lea rcx, [rsp + 0x160]
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003f54a
lea rax, [rsp + 0x4c]
sub rbx, rax
nop word [rax + rax]
lea rax, [rsp + 0x4c]
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rbx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14003f4c0
test byte [rsp + 0x20], 0x10
je 0x14003f50d
movzx ecx, byte [rsp + 0x4c]
movzx eax, byte [rsp + 0x4d]
cmp cl, 0x2e
jne 0x14003f4f8
cmp al, cl
jne 0x14003f4ef
cmp byte [rsp + 0x4e], dil
je 0x14003f524
cmp cl, 0x2e
jne 0x14003f4f8
test al, al
je 0x14003f524
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14003f3e0
jmp 0x14003f520
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14003e790
test eax, eax
jne 0x14003f53c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14003f4b0
jmp 0x14003f541
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140057350
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140045d10
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400f06e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
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]
mov rcx, rax
lea rdx, [rsp + 0x20]
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 rcx, rax
mov edx, 0x4000
call fcn.14000c690
mov ecx, eax
lea rdx, [0x1400c1470]
call fcn.14008ba94
xor r9d, r9d
mov qword [0x1400f5fb8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.14008bd0c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000c690
mov ecx, eax
lea rdx, [0x1400c3f40]
call fcn.14008ba94
xor r9d, r9d
mov qword [0x1400f5fc0], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.14008bd0c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000c690
mov ecx, eax
lea rdx, [0x1400c3f40]
call fcn.14008ba94
xor r9d, r9d
mov qword [0x1400f5fc8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.14008bd0c
mov rax, qword [0x1400f5fc0]
mov qword [0x1400fb0e0], rax
call fcn.140041f10
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140057350
add rsp, 0x48
ret
Function at 0x14004d040
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 0x14004d21e
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 0x14004d0cc
test eax, eax
jle 0x14004d0cc
mov rdx, qword [0x1400fb0a0]
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 0x14004d0cc
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004d219
mov rax, qword [0x1400fb0a0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x14004d219
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x14004d214
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14004d20c
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 0x14004d1f0
test edi, edi
jle 0x14004d1f0
mov rcx, qword [0x1400f3ea8]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14004d1f0
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.140021e60
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x4d228]
add rdx, r13
jmp rdx
lea rax, [0x14004d250]
mov qword [rbx + 0x18], rax
lea rax, [0x1400501d0]
jmp 0x14004d1db
lea rax, [0x14004d260]
mov qword [rbx + 0x18], rax
lea rax, [0x1400501e0]
jmp 0x14004d1db
lea rax, [0x14004d350]
mov qword [rbx + 0x18], rax
lea rax, [0x140050210]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1400f7750]
mov qword [rbx], rax
mov qword [0x1400f7750], rbx
mov rdx, qword [0x1400fb0a0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x14004d140
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