joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037214
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140146250]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140037130]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140040da4
xor r8d, r8d
mov qword [0x14014cfd8], rax
xor edx, edx
mov ecx, ebx
call fcn.140040b90
xor ebx, ebx
mov qword [0x140152800], rax
cmp word [0x14014cfd0], bx
jne 0x140037349
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14003728e
movzx eax, di
jmp 0x140037290
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x14014cfd0], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14014cfe0], rax
test rax, rax
je 0x140037349
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14014cfe0]
lea rdx, str.freeaddrinfo
mov qword [0x14014cfb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14014cfe0]
lea rdx, str.getnameinfo
mov qword [0x14014cfb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14014cfe0]
lea rdx, str.WSAStringToAddressA
mov qword [0x14014cfc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14014cfb0], rbx
mov qword [0x14014cfc8], rax
je 0x140037349
cmp qword [0x14014cfb8], rbx
je 0x140037349
cmp qword [0x14014cfc0], rbx
je 0x140037349
mov ecx, dword [0x14014cfd4]
test rax, rax
cmovne ecx, edi
mov dword [0x14014cfd4], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400886c0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x140038568
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140152860], eax
add rsp, 0x28
ret

Function at 0x140038580
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1401528a0]
call fcn.140040b8c
mov ecx, dword [0x140152860]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [rbx], 0
jne 0x1400385c0
lea r8, str.2DDrawing
lea rdx, str.StartDrawing__
lea rcx, str.CallNeededLib
call fcn.140043e40
add rsp, 0x20
pop rbx
ret

Function at 0x140038a74
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140038ae9
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov rdi, rax
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x140038ae9
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140038ac1
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x14014b864]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140152860]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140152880], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140038b74
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x140152880]
test rbx, rbx
je 0x140038bcd
mov rcx, rbx
call qword [rbx + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140038ba5
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x14014b864]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140152860]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140152880], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003a1c8
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14014b864]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140152860]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140152880], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x140038d78]
mov qword [rbx], rax
lea rax, [0x140038da8]
mov qword [rbx + 8], rax
lea rax, [0x140039efc]
mov qword [rbx + 0x10], rax
lea rax, [0x140038e50]
mov qword [rbx + 0x18], rax
lea rax, [0x140039540]
mov qword [rbx + 0x20], rax
lea rax, [0x1400394c8]
mov qword [rbx + 0x28], rax
lea rax, [0x140039518]
mov qword [rbx + 0x30], rax
lea rax, [0x14003952c]
mov qword [rbx + 0x38], rax
lea rax, [fcn.1400395b4]
mov qword [rbx + 0x40], rax
lea rax, [0x1400390ac]
mov qword [rbx + 0x48], rax
lea rax, [fcn.1400390c4]
mov qword [rbx + 0x50], rax
lea rax, [0x140038f48]
mov qword [rbx + 0x58], rax
lea rax, [0x140039424]
mov qword [rbx + 0x60], rax
lea rax, [0x140039330]
mov qword [rbx + 0x68], rax
lea rax, [0x14003964c]
mov qword [rbx + 0x70], rax
lea rax, [0x140039784]
mov qword [rbx + 0x78], rax
lea rax, [0x140039864]
mov qword [rbx + 0x80], rax
lea rax, [0x14003991c]
mov qword [rbx + 0x88], rax
lea rax, [0x140039a74]
mov qword [rbx + 0x90], rax
lea rax, [0x140039af4]
mov qword [rbx + 0x98], rax
lea rax, [0x140039be8]
mov qword [rbx + 0xa0], rax
lea rax, [0x140039e0c]
mov qword [rbx + 0xa8], rax
lea rax, [0x140039f84]
mov qword [rbx + 0xb0], rax
lea rax, [0x14003a06c]
mov qword [rbx + 0xb8], rax
lea rax, [0x14003a108]
mov qword [rbx + 0xc0], rax
lea rax, [0x14003a164]
mov qword [rbx + 0xc8], rax
mov rax, rbx
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0xec], 7
add rsp, 0x20
pop rbx
ret
Function at 0x1400426d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movsxd rdx, dword [0x14014d9c0]
lea r8, [0x140162fa0]
mov qword [r8 + rdx*8], rcx
inc edx
cmp dword [0x14014d128], 0
mov dword [0x14014d9c0], edx
jne 0x140050500
ret
sub rsp, 0x48
mov rax, qword [0x140146250]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [0x14014d9c0]
mov dword [rsp + 0x20], 0x1d
mov dword [rsp + 0x28], eax
test eax, eax
jne 0x140050577
call fcn.1400626e0
xor r11d, r11d
mov dword [rsp + 0x30], eax
lea rcx, [0x140163940]
mov dword [rsp + 0x24], r11d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14014d9d8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400886c0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor r11d, r11d
mov rbx, qword [0x1401534a0]
mov r8, rbx
test eax, eax
jle 0x1400506c0
lea r10, [0x140162fa0]
nop dword [rax + rax]
mov rax, qword [r10]
mov rdx, r8
mov rcx, qword [rax + 8]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400505b0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r8 + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400505d0
lea r9, [rax + 1]
mov rax, qword [r10]
add r9, r8
mov rdx, r9
mov rcx, qword [rax + 0x10]
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400505f0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r9 + rax + 1], 0
lea rax, [rax + 1]
jne 0x140050610
mov rcx, qword [r10]
lea r8, [rax + 1]
add r8, r9
test byte [rcx + 4], 1
je 0x14005066f
mov rcx, qword [rcx + 0x20]
mov rdx, r8
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140050640
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140050660
add rax, r8
jmp 0x140050676
mov byte [r8], 0
mov rax, r8
mov rcx, qword [r10]
mov edx, dword [rcx + 4]
mov dword [rax + 1], edx
cmp dword [0x14014d9b0], 0
je 0x1400506a1
mov ecx, edx
mov byte [rax + 4], dl
movzx edx, byte [rax + 2]
shr ecx, 0x18
mov byte [rax + 1], cl
movzx ecx, byte [rax + 3]
mov byte [rax + 2], cl
mov byte [rax + 3], dl
inc r11d
lea r8, [rax + 5]
add r10, 8
cmp r11d, dword [0x14014d9c0]
jl 0x1400505a0
mov rbx, qword [0x1401534a0]
sub r8d, ebx
mov dword [rsp + 0x24], r8d
call fcn.1400626e0
lea rcx, [0x140163940]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14014d9d8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400886c0
add rsp, 0x48
ret
Function at 0x140047370
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 0x14004754e
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 0x1400473fc
test eax, eax
jle 0x1400473fc
mov rdx, qword [0x1401534a0]
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 0x1400473fc
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140047549
mov rax, qword [0x1401534a0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x140047549
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x140047544
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14004753c
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 0x140047520
test edi, edi
jle 0x140047520
mov rcx, qword [0x14014b864]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140047520
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.140022b60
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x47558]
add rdx, r13
jmp rdx
lea rax, [0x140047580]
mov qword [rbx + 0x18], rax
lea rax, [0x14004a500]
jmp 0x14004750b
lea rax, [0x140047590]
mov qword [rbx + 0x18], rax
lea rax, [0x14004a510]
jmp 0x14004750b
lea rax, [0x140047680]
mov qword [rbx + 0x18], rax
lea rax, [0x14004a540]
mov qword [rbx + 0x20], rax
mov rax, qword [0x14014d960]
mov qword [rbx], rax
mov qword [0x14014d960], rbx
mov rdx, qword [0x1401534a0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x140047470
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
Function at 0x14004a870
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x140152c20]
call fcn.140040b8c
cmp dword [0x140141018], 0
mov rdi, qword [rax]
je 0x14004a8e7
cmp qword [0x140152c40], rdi
jne 0x14004a8e7
cmp dword [0x14014d970], 0
je 0x14004a8e7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14014d9a0]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14004a8d7
cmp rbx, rdi
je 0x14004a8cc
cmp dword [rbx + 0x38], esi
jne 0x14004a8cc
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 0x14004a8b8
mov rbx, qword [rsp + 0x30]
mov dword [0x14014d970], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x140152c20]
call fcn.140040b8c
cmp dword [0x140141018], 0
mov rsi, qword [rax]
je 0x14004aa30
cmp dword [0x14014d970], 0
jne 0x14004aa30
mov qword [rsp + 0x30], rbx
lea rcx, [0x14014d978]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x14014d128], 0
je 0x14004a966
lea rcx, [0x140153520]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140152c80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x140163920]
xor r9d, r9d
xor r8d, r8d
mov qword [0x140152c40], rsi
xor edx, edx
mov dword [0x14014d970], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x14014d9a0]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14004a9e3
cmp rbx, rsi
je 0x14004a9db
cmp dword [rbx + 0x38], 0
jne 0x14004a9db
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14004a9cb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14004a9b0
cmp dword [rbx + 0x38], 0
jne 0x14004a9db
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004a9a3
cmp dword [0x14014d128], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14004aa1d
lea rcx, [0x140152c80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140153520]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14014d978]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x14004faf0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140146250]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.14004f900
call fcn.14004a8f0
nop
xor ecx, ecx
call fcn.14004fde0
test eax, eax
jne 0x14004fb10
mov rbx, qword [0x14014d148]
test rbx, rbx
je 0x14004fbf0
cmp dword [0x14014d144], eax
je 0x14004fbf0
cmp dword [0x14014d9b0], 0
mov eax, dword [0x14014d140]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14004fbbb
mov rcx, qword [0x1401534a0]
mov rdx, rbx
movsxd r8, eax
call fcn.140022b60
xor r9d, r9d
cmp dword [0x14014d140], r9d
jle 0x14004fbb4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1401534a0]
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 [0x14014d140]
jl 0x14004fb80
mov rbx, qword [0x1401534a0]
call fcn.1400626e0
lea rcx, [0x140163940]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14014d9d8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.1400626e0
lea rcx, [0x140163940]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14014d9d8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x14014d9d8]
call qword [rax + 0x28]
lea rcx, [0x140152c80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140153520]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14014d9c8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14014d9c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14014d9d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14014d9d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140152c80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140153520]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140152c80]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140163940]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140153520]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400886c0
add rsp, 0x40
pop rbx
ret
Function at 0x1400545d0
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 [0x140146250]
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.140054ed0
test eax, eax
je 0x1400546cd
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400abbe4
test eax, eax
jne 0x1400546cd
lea rdx, [rsp + 0xb4]
mov rcx, rbp
call fcn.1400abbe4
test eax, eax
jne 0x1400546cd
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 0x1400546cd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400546c4
test eax, eax
jle 0x1400546c4
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.140088d80
mov rsi, rax
test rax, rax
je 0x1400546c4
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 0x1400546c4
cmp dword [rsp + 0x40], edi
jne 0x1400546c4
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.140054c00
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.1400886c0
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x140055220
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 [0x140146250]
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 0x140055260
lea rcx, [rsp + 0x160]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140055280
movzx eax, word [0x1401040d4]
mov word [rcx], ax
lea rcx, [rsp + 0x160]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x1400552a3
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 0x14005538a
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 0x140055300
test byte [rsp + 0x20], 0x10
je 0x14005534d
movzx ecx, byte [rsp + 0x4c]
movzx eax, byte [rsp + 0x4d]
cmp cl, 0x2e
jne 0x140055338
cmp al, cl
jne 0x14005532f
cmp byte [rsp + 0x4e], dil
je 0x140055364
cmp cl, 0x2e
jne 0x140055338
test al, al
je 0x140055364
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.140055220
jmp 0x140055360
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.1400545d0
test eax, eax
jne 0x14005537c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400552f0
jmp 0x140055381
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.1400886c0
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 0x14005bb50
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140146250]
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.14000d380
mov ecx, eax
lea rdx, [0x140108c90]
call fcn.1400c4804
xor r9d, r9d
mov qword [0x14014de08], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400c4a7c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000d380
mov ecx, eax
lea rdx, [0x14010b760]
call fcn.1400c4804
xor r9d, r9d
mov qword [0x14014de10], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400c4a7c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000d380
mov ecx, eax
lea rdx, [0x14010b760]
call fcn.1400c4804
xor r9d, r9d
mov qword [0x14014de18], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400c4a7c
mov rax, qword [0x14014de10]
mov qword [0x1401534e0], rax
call fcn.140057d50
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400886c0
add rsp, 0x48
ret
Function at 0x140065fa0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, edx
mov rbp, rcx
test edx, edx
jle 0x140065ffb
nop
mov rcx, qword [0x1401516f8]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140065ff5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x140066015
add ebx, esi
cmp ebx, edi
jl 0x140065fc0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x140066000

Function at 0x1400a9f28
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140088b20
sub rsp, rax
mov rax, qword [0x140146250]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001cd88
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a9f77
mov rax, rbp
jmp 0x1400aa07f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x14c710]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140020754
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x14c710]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400aa07b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400aa07b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140020754
test rax, rax
js 0x1400aa07b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400aa07b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400aa06d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400aa06d
cmp byte [rcx], 0xd
jne 0x1400aa053
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400aa062
cmp byte [rcx + 1], 0xa
jne 0x1400aa062
inc rcx
jmp 0x1400aa062
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x146b40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400aa035
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400aa07f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400886c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret