joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e350
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, [0x14015d260]
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 0x14001e3a7
cmp word [rdx], r13w
jne 0x14001e3a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e3ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001e4d1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001e4f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e3e5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e40c
cmp r9, r8
jae 0x14001e41c
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 0x14001e3c6
jmp 0x14001e4d1
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 0x14001e4c6
cmp dword [rsp + 0x80], esi
je 0x14001e4c6
lea r8, [0x14015d260]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001e49e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001e46e
mov word [rbx], r13w
jmp 0x14001e4ce
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 0x14001e47b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001e4ce
cmp word [rsp + 0x70], r13w
jne 0x14001e4ab
cmp rbx, r14
je 0x14001e468
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f8ec
cmp word [rsp + 0x70], r13w
je 0x14001e4d1
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, [0x14015d260]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001e4cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001e4d1
Function at 0x14002f25c
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov r15, r8
mov rcx, qword [0x140162fc0]
mov ebp, edx
xor ebx, ebx
call fcn.1400304dc
mov r14, rax
test rsi, rsi
je 0x14002f240
mov rcx, qword [0x14015c3c0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rsi
mov rdi, rax
or dword [rax + 4], 0xffffffff
mov dword [rax], 1
call fcn.1400c4130
mov rcx, r15
mov qword [rdi + 8], rax
call fcn.1400c4130
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ebp
mov eax, dword [r14]
mov dword [rdi + 0x44], eax
mov eax, dword [r14 + 4]
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x90], 1
test bpl, 1
je 0x14002f22d
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14002f440]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14002f222
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002f228
cmp dword [rsp + 0x50], ebx
je 0x14002f238
mov rbx, rdi
jmp 0x14002f240
mov rcx, rdi
call fcn.14002f26c
mov rbx, rax
mov rcx, rdi
call fcn.14002f860
mov rbp, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x14002f158

Function at 0x14002f5e0
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov r12, r9
mov rcx, qword [0x140162fc0]
mov r14d, r8d
mov rsi, rdx
xor ebx, ebx
call fcn.1400304dc
mov r15, rax
test rbp, rbp
je 0x14002f5c6
test rsi, rsi
je 0x14002f5c6
mov rcx, qword [0x14015c3c0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
mov rdi, rax
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
call fcn.1400c4130
mov rcx, rsi
mov qword [rdi + 8], rax
call fcn.1400c4130
mov rcx, r12
mov qword [rdi + 0x10], rax
call fcn.1400c4130
mov qword [rdi + 0x60], rax
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x40], r14d
test r14b, 1
je 0x14002f5b3
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14002f7e0]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14002f5be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x14002f5c6
mov rcx, rdi
call fcn.14002f5f0
movsxd rbx, eax
mov rcx, rdi
call fcn.14002f860
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x14002f4dc
Function at 0x14002f5f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor ebx, ebx
mov esi, ebx
call fcn.1400a4100
mov rcx, qword [rdi + 0x60]
mov r12, rax
call fcn.1400a4100
mov r13, rax
call fcn.140057460
mov rbp, rax
lea eax, [rbx + 1]
test rbp, rbp
je 0x14002f793
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, eax
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14002f786
test byte [rdi + 0x40], 2
mov qword [rdi + 0x18], rax
jne 0x14002f692
lea edx, [rbx + 0x34]
mov rcx, rbp
lea r8d, [rbx + 1]
call fcn.14005a440
mov r8, qword [0x14015d8e0]
test r8, r8
je 0x14002f6ab
mov edx, 0x2714
mov rcx, rbp
call fcn.14005a440
mov r8, qword [0x14015d8e8]
test r8, r8
je 0x14002f6e1
cmp qword [0x14015d8f0], rbx
je 0x14002f6e1
mov edx, 0x27bf
mov rcx, rbp
call fcn.14005a440
mov r8, qword [0x14015d8f0]
mov edx, 0x27c0
mov rcx, rbp
call fcn.14005a440
mov r8, r12
mov edx, 0x2712
mov rcx, rbp
call fcn.14005a440
mov r8, r13
mov edx, 0x2722
mov rcx, rbp
call fcn.14005a440
lea r8, [0x14002f7f0]
mov edx, 0x4e2b
mov rcx, rbp
call fcn.14005a440
mov r8, rdi
mov edx, 0x2711
mov rcx, rbp
call fcn.14005a440
mov r8d, dword [rdi + 0x44]
mov edx, 0x9c
mov rcx, rbp
call fcn.14005a440
mov r8d, dword [rdi + 0x48]
mov edx, 0x9b
mov rcx, rbp
call fcn.14005a440
mov edx, 0x63
mov rcx, rbp
lea r8d, [rdx - 0x62]
call fcn.14005a440
mov rcx, rbp
call fcn.1400576c0
test eax, eax
jne 0x14002f770
cmp dword [rdi + 4], 0xfffffffb
mov eax, 1
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x14002f786
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbp
call fcn.140057120
mov eax, 1
cmp esi, eax
jne 0x14002f7a0
mov dword [rdi + 4], 0xfffffffe
jmp 0x14002f7ad
cmp dword [rdi + 4], 0xfffffffb
setne bl
add ebx, 0xfffffffc
mov dword [rdi + 4], ebx
mov rcx, r12
call fcn.1400a40f0
mov rcx, r13
call fcn.1400a40f0
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140030148
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1401585e8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140030064]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140030e34
xor r8d, r8d
mov qword [0x14015d920], rax
xor edx, edx
mov ecx, ebx
call fcn.140030574
xor ebx, ebx
mov qword [0x140163020], rax
cmp word [0x14015d918], bx
jne 0x14003027d
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400301c2
movzx eax, di
jmp 0x1400301c4
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x14015d918], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14015d928], rax
test rax, rax
je 0x14003027d
lea rdx, [0x140119110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015d928]
lea rdx, [0x140119120]
mov qword [0x14015d8f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015d928]
lea rdx, str.getnameinfo
mov qword [0x14015d900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14015d928]
lea rdx, str.WSAStringToAddressA
mov qword [0x14015d908], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14015d8f8], rbx
mov qword [0x14015d910], rax
je 0x14003027d
cmp qword [0x14015d900], rbx
je 0x14003027d
cmp qword [0x14015d908], rbx
je 0x14003027d
mov ecx, dword [0x14015d91c]
test rax, rax
cmovne ecx, edi
mov dword [0x14015d91c], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400a4250
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1400304dc
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 [0x14015d940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003055d
mov r8, qword [0x14015d938]
lea edx, [rax + 8]
mov rcx, qword [0x14015c3c0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14015d940]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x14015d930]
jmp 0x140030549
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140030546
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140030534
mov rdx, rdi
lea rcx, [0x140030440]
call fcn.1400013ac
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140030574
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 0x14003059e
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x14015d938]
test rbx, rbx
jne 0x1400305e4
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x14015c3c0]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x14015d940], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14015d940]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x14015d938]
jmp 0x1400305e7
movsxd rdi, edi
mov ecx, dword [0x14015d940]
lea rax, [rdi + rbx]
mov qword [0x14015d938], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x14015d938]
mov edx, 8
mov rcx, qword [0x14015c3c0]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x14015d940]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x140030636
test rbp, rbp
je 0x14003065d
mov edx, 0x28
lea rcx, [0x14015d930]
call fcn.14003116c
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14003065d
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 0x1400318e0
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 [0x1401630a0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140159000], eax
add rsp, 0x28
jmp 0x140031b80
push rbx
sub rsp, 0x20
mov rcx, qword [0x1401630a0]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1401630a0]
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 [0x140159000]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x140031960
Capabilities:
Get thread local storage value

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140159000]
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 0x1400341a0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1401630c0]
call fcn.1400304dc
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x140034217
cmp qword [0x1401630e0], rdi
jne 0x140034217
cmp dword [0x14015da38], 0
je 0x140034217
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14015da68]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140034207
cmp rbx, rdi
je 0x1400341fc
cmp dword [rbx + 0x38], esi
jne 0x1400341fc
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 0x1400341e8
mov rbx, qword [rsp + 0x30]
mov dword [0x14015da38], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1401630c0]
call fcn.1400304dc
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x140034360
cmp dword [0x14015da38], 0
jne 0x140034360
mov qword [rsp + 0x30], rbx
lea rcx, [0x14015da40]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x14015d9b0], 0
je 0x140034296
lea rcx, [0x1401639c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140173e00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140163120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x140173de0]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1401630e0], rsi
xor edx, edx
mov dword [0x14015da38], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x14015da68]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140034313
cmp rbx, rsi
je 0x14003430b
cmp dword [rbx + 0x38], 0
jne 0x14003430b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x1400342fb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x1400342e0
cmp dword [rbx + 0x38], 0
jne 0x14003430b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400342d3
cmp dword [0x14015d9b0], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14003434d
lea rcx, [0x140163120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140173e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1401639c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14015da40]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140039420
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401585e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140039230
call fcn.140034220
nop
xor ecx, ecx
call fcn.140039710
test eax, eax
jne 0x140039440
mov rbx, qword [0x14015d9d0]
test rbx, rbx
je 0x140039520
cmp dword [0x14015d9cc], eax
je 0x140039520
cmp dword [0x14015da70], 0
mov eax, dword [0x14015d9c8]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x1400394eb
mov rcx, qword [0x140163940]
mov rdx, rbx
movsxd r8, eax
call fcn.140021ce0
xor r9d, r9d
cmp dword [0x14015d9c8], r9d
jle 0x1400394e4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x140163940]
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 [0x14015d9c8]
jl 0x1400394b0
mov rbx, qword [0x140163940]
call fcn.140049210
lea rcx, [0x140173e00]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14015da98]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140173e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140049210
lea rcx, [0x140173e00]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14015da98]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140173e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x14015da98]
call qword [rax + 0x28]
lea rcx, [0x140163120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140173e00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1401639c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14015da88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14015da88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14015da90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14015da90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140163120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140173e00]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1401639c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140163120]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140173e00]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1401639c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a4250
add rsp, 0x40
pop rbx
ret
Function at 0x14003df00
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 [0x1401585e8]
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.14003e800
test eax, eax
je 0x14003dffd
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400c53ac
test eax, eax
jne 0x14003dffd
lea rdx, [rsp + 0xb4]
mov rcx, rbp
call fcn.1400c53ac
test eax, eax
jne 0x14003dffd
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 0x14003dffd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14003dff4
test eax, eax
jle 0x14003dff4
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.1400a4910
mov rsi, rax
test rax, rax
je 0x14003dff4
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 0x14003dff4
cmp dword [rsp + 0x40], edi
jne 0x14003dff4
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14003e530
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.1400a4250
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003eb50
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 [0x1401585e8]
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 0x14003eb90
lea rcx, [rsp + 0x160]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14003ebb0
movzx eax, word [0x140118324]
mov word [rcx], ax
lea rcx, [rsp + 0x160]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x14003ebd3
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 0x14003ecba
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 0x14003ec30
test byte [rsp + 0x20], 0x10
je 0x14003ec7d
movzx ecx, byte [rsp + 0x4c]
movzx eax, byte [rsp + 0x4d]
cmp cl, 0x2e
jne 0x14003ec68
cmp al, cl
jne 0x14003ec5f
cmp byte [rsp + 0x4e], dil
je 0x14003ec94
cmp cl, 0x2e
jne 0x14003ec68
test al, al
je 0x14003ec94
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14003eb50
jmp 0x14003ec90
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14003df00
test eax, eax
jne 0x14003ecac
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14003ec20
jmp 0x14003ecb1
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.1400a4250
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 0x140045480
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1401585e8]
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.14000c50c
mov ecx, eax
lea rdx, [0x140119d70]
call fcn.1400d89a4
xor r9d, r9d
mov qword [0x14015dec8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400d8c1c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000c50c
mov ecx, eax
lea rdx, [0x14011c840]
call fcn.1400d89a4
xor r9d, r9d
mov qword [0x14015ded0], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400d8c1c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000c50c
mov ecx, eax
lea rdx, [0x14011c840]
call fcn.1400d89a4
xor r9d, r9d
mov qword [0x14015ded8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400d8c1c
mov rax, qword [0x14015ded0]
mov qword [0x140163980], rax
call fcn.140041680
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a4250
add rsp, 0x48
ret