joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800cf3b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1801bfcc0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1800cf445
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1800cf4a6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1800a8dd0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800e2cb0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1800cf561
sub ecx, 1
je 0x1800cf5d4
sub ecx, 1
je 0x1800cf510
cmp ecx, 1
je 0x1800cf4f3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18015af44]
call fcn.1800a8dd0
jmp 0x1800cf5d4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1800cf0e0
test eax, eax
je 0x1800cf5d4
jmp 0x1800cf47a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1800cf5d4
sub rax, rsi
cmp rax, rbp
jae 0x1800cf5d4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1800a8f50
jmp 0x1800cf5d4
cmp r8d, 4
jle 0x1800cf5d4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1800cf5d4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1800a8cf0
mov esi, eax
test eax, eax
je 0x1800cf5b3
mov edx, 5
mov rcx, rbx
call fcn.1800d00a0
mov eax, esi
jmp 0x1800cf47a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800b8300
mov rcx, r14
call fcn.1800b85e0
test eax, eax
je 0x1800cf478
mov edx, 5
mov rcx, rbx
call fcn.1800d00a0
mov eax, Ordinal_46
jmp 0x1800cf47a
Function at 0x1800e24b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1800e24f2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1800e2539
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1800e2592
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1800e2550
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800e25d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1801a8fdb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1801a8fdc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800e25a0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140006824
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000686e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000686e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000686e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000686e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000686e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006870
xor al, al
add rsp, 0x28
ret
Function at 0x140017700
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017728
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017728
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002250
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140040d70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400022aa
mov r8, qword [0x14003e0a3]
mov rcx, qword [0x140040d50]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140040d70]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.1400013b7
lea rcx, [0x140002228]
mov rdx, rbx
call fcn.1400023cc
mov rax, rbx
add rsp, 0x20
pop rbx
ret

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

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

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140040d78], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140040d88]
jne 0x140002419
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140040db0], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140040d78], 1
mov ecx, dword [0x140040db0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400024ee
mov rcx, qword [0x140040d50]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140002519
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140040d80]
test rax, rax
je 0x140002469
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140040d80], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x140002534]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140040db0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140040d50]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140002519
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140002634
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140002548]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.1400031c4
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x140040dc0], rax
call fcn.140003044
xor ebx, ebx
cmp word [0x140040db8], bx
mov qword [0x140045a20], rax
jne 0x140002757
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x140040db8], di
test eax, eax
je 0x1400026a5
mov word [0x140040db8], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140040de8], rax
test rax, rax
je 0x140002757
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140040de8]
lea rdx, str.freeaddrinfo
mov qword [0x140040dc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140040de8]
lea rdx, str.getnameinfo
mov qword [0x140040dd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140040de8]
lea rdx, str.WSAStringToAddressA
mov qword [0x140040dd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140040dc8], rbx
mov qword [0x140040de0], rax
je 0x140002757
cmp qword [0x140040dd0], rbx
je 0x140002757
cmp qword [0x140040dd8], rbx
je 0x140002757
mov ecx, dword [0x140040dbc]
test rax, rax
cmovne ecx, edi
mov dword [0x140040dbc], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140005b20
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x140045ac0]
call fcn.140003040
cmp dword [0x14003e018], 0
mov rdi, qword [rax]
je 0x140005b97
cmp qword [0x140045ae0], rdi
jne 0x140005b97
cmp dword [0x140040e8c], 0
je 0x140005b97
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140040e90]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140005b87
cmp rbx, rdi
je 0x140005b7c
cmp dword [rbx + 0x38], esi
jne 0x140005b7c
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 0x140005b68
mov rbx, qword [rsp + 0x30]
mov dword [0x140040e8c], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140005ba0
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x140045ac0]
call fcn.140003040
cmp dword [0x14003e018], 0
mov rsi, qword [rax]
je 0x140005ce0
cmp dword [0x140040e8c], 0
jne 0x140005ce0
lea rcx, [0x140040e98]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140040e5c], 0
je 0x140005c16
lea rcx, [0x1400463a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140056800]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140045b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1400567e0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x140045ae0], rsi
mov dword [0x140040e8c], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x140040e90]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140005c93
cmp rbx, rsi
je 0x140005c8b
cmp dword [rbx + 0x38], 0
jne 0x140005c8b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140005c7b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140005c60
cmp dword [rbx + 0x38], 0
jne 0x140005c8b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140005c53
cmp dword [0x140040e5c], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x140005ccd
lea rcx, [0x140045b20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140056800]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400463a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140040e98]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x14000a860
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.14000a670
call fcn.140005ba0
xor ecx, ecx
call fcn.14000ab20
test eax, eax
jne 0x14000a870
mov rbx, qword [0x140040e78]
test rbx, rbx
je 0x14000a950
cmp dword [0x140040e80], eax
je 0x14000a950
cmp dword [0x140040ec0], 0
mov eax, dword [0x140040e6c]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14000a91b
mov rcx, qword [0x140046340]
movsxd r8, eax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xor r9d, r9d
cmp dword [0x140040e6c], r9d
jle 0x14000a914
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x140046340]
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 [0x140040e6c]
jl 0x14000a8e0
mov rbx, qword [0x140046340]
call fcn.14001dfe0
lea rcx, [0x140056800]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140040ee8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140056800]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.14001dfe0
lea rcx, [0x140056800]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140040ee8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140056800]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x140040ee8]
call qword [rax + 0x28]
lea rcx, [0x140045b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140056800]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400463a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140040ed8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140040ed8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140040ee0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140040ee0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140045b20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140056800]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400463a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140045b20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140056800]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400463a0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x14000d500
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea rdx, [0x140040ef0]
nop dword [rax]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x14000d51e
xor eax, 0xedb88320
test al, 1
je 0x14000d52b
shr eax, 1
xor eax, 0xedb88320
jmp 0x14000d52d
shr eax, 1
test al, 1
je 0x14000d53a
shr eax, 1
xor eax, 0xedb88320
jmp 0x14000d53c
shr eax, 1
test al, 1
je 0x14000d549
shr eax, 1
xor eax, 0xedb88320
jmp 0x14000d54b
shr eax, 1
test al, 1
je 0x14000d558
shr eax, 1
xor eax, 0xedb88320
jmp 0x14000d55a
shr eax, 1
test al, 1
je 0x14000d567
shr eax, 1
xor eax, 0xedb88320
jmp 0x14000d569
shr eax, 1
test al, 1
je 0x14000d576
shr eax, 1
xor eax, 0xedb88320
jmp 0x14000d578
shr eax, 1
test al, 1
je 0x14000d585
shr eax, 1
xor eax, 0xedb88320
jmp 0x14000d587
shr eax, 1
inc ecx
mov dword [rdx], eax
add rdx, 4
cmp ecx, 0x100
jl 0x14000d510
ret

Function at 0x14000edf0
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.14000f620
test eax, eax
je 0x14000eee9
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x14000eee9
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x14000eee9
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 0x14000eee9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000eee0
test eax, eax
jle 0x14000eee0
lea ecx, [rdi + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x14000eee0
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 0x14000eee0
cmp dword [rsp + 0x138], edi
jne 0x14000eee0
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14000f300
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 0x14000f940
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 0x14000f970
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14000f990
movzx eax, word [0x140030504]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x14000f9b0
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 0x14000fac2
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 0x14000fa10
test byte [rsp + 0x130], 0x10
je 0x14000fa80
movzx edx, byte [rsp + 0x15c]
movzx ecx, byte [rsp + 0x15d]
cmp dl, byte [0x140030508]
jne 0x14000fa59
cmp cl, byte [0x140030509]
jne 0x14000fa59
movzx eax, byte [rsp + 0x15e]
cmp al, byte [0x14003050a]
je 0x14000fa99
cmp dl, byte [0x140030014]
jne 0x14000fa69
cmp cl, byte [0x140030015]
je 0x14000fa99
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.14000f940
jmp 0x14000fa95
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x20]
mov r8, rbp
call fcn.14000edf0
test eax, eax
jne 0x14000fab4
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000fa00
jmp 0x14000fab9
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 0x140015b60
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, [0x1400304d0]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x140041330], 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, [0x140032fa0]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x140041338], 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, [0x140032fa0]
mov ecx, eax
call sub.msvcrt.dll__fdopen
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
mov qword [0x140041340], rax
call sub.msvcrt.dll_setvbuf
mov rax, qword [0x140041338]
mov qword [0x140055e00], rax
call fcn.140011cf0
add rsp, 0x48
ret
Function at 0x14001b100
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 0x14001b2d9
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 0x14001b18c
test eax, eax
jle 0x14001b18c
mov rdx, qword [0x140046340]
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 0x14001b18c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14001b2d4
mov rdx, qword [0x140046340]
mov rax, rdx
cmp dword [rdx], 0x50555245
jne 0x14001b2d4
mov esi, dword [rdx + 8]
add rax, 0xc
lea ecx, [rsi - 0x52455331]
cmp ecx, 8
ja 0x14001b2d4
lea ecx, [rdi - 8]
mov qword [rsp + 0x40], r15
movsxd r15, ecx
lea rcx, [r15 + rdx]
cmp rax, rcx
jae 0x14001b2cf
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x88], r14
lea r13, [0x14001b3f0]
nop word [rax + rax]
cmp dword [rax], 0x434e5354
movsxd rdi, dword [rax + 4]
lea r14, [rax + 8]
jne 0x14001b2ab
test edi, edi
jle 0x14001b2ab
mov rcx, qword [0x140040d50]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001b2ab
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 0x14001b284
jle 0x14001b29a
cmp esi, 0x52455333
jle 0x14001b270
mov qword [rbx + 0x18], r13
lea rax, [0x14001de80]
jmp 0x14001b296
lea rax, [0x14001b300]
mov qword [rbx + 0x18], rax
lea rax, [0x14001de50]
jmp 0x14001b296
lea rax, [0x14001b2f0]
mov qword [rbx + 0x18], rax
lea rax, [0x14001de40]
mov qword [rbx + 0x20], rax
mov rax, qword [0x140041710]
mov qword [0x140041710], rbx
mov qword [rbx], rax
mov rdx, qword [0x140046340]
lea rax, [r14 + rdi]
add rdx, r15
cmp rax, rdx
jb 0x14001b200
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