joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010840
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 0x140010a1e
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 0x1400108cc
test eax, eax
jle 0x1400108cc
mov rdx, qword [0x1400a3ac0]
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 0x1400108cc
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140010a19
mov rax, qword [0x1400a3ac0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x140010a19
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x140010a14
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x140010a0c
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 0x1400109f0
test edi, edi
jle 0x1400109f0
mov rcx, qword [0x1400a3060]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400109f0
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.14000b440
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x10a28]
add rdx, r13
jmp rdx
lea rax, [0x140010510]
mov qword [rbx + 0x18], rax
lea rax, [0x140010520]
jmp 0x1400109db
lea rax, [0x140010530]
mov qword [rbx + 0x18], rax
lea rax, [0x140010620]
jmp 0x1400109db
lea rax, [0x140010650]
mov qword [rbx + 0x18], rax
lea rax, [0x1400107d0]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1400a4380]
mov qword [rbx], rax
mov qword [0x1400a4380], rbx
mov rdx, qword [0x1400a3ac0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x140010940
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 0x1400121a4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 0x3e8
lea rcx, [rsp + 0x30]
cdq
idiv dword [0x1400a3460]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x30]
sub rcx, qword [0x1400a34c0]
imul rax, rcx, 0x3e8
mov rcx, rbx
cqo
idiv qword [0x1400a34c8]
sub rcx, rax
cmp rcx, 2
jle 0x14001220e
sub ebx, eax
lea ecx, [rbx - 2]
call fcn.140042820
jmp 0x14001220e
movsxd rcx, dword [0x1400a34d0]
mov rdx, rax
sub rdx, qword [0x1400a34c0]
cmp rdx, rcx
jg 0x140012222
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1400121f8
mov qword [0x1400a34c0], rax
add rsp, 0x20
pop rbx
ret

Function at 0x14001250c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edx, 8
mov rcx, qword [0x1400a3060]
mov r8d, 0x258
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400a3868]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400a3870], rdi
or eax, 0xffffffff
and dword [rdi + 0x11c], 0
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
call fcn.140043eb4
mov rbx, qword [rsp + 0x30]
lea rax, [0x140013af0]
mov qword [rdi + 0xb0], rax
lea rax, [0x140013b54]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14001271c]
mov qword [rdi + 0x20], rax
lea rax, [0x1400128f4]
mov qword [rdi + 0x60], rax
lea rax, [0x140012b3c]
mov qword [rdi + 0xc8], rax
lea rax, [0x140012ba4]
mov qword [rdi + 0xc0], rax
lea rax, [0x14001342c]
mov qword [rdi + 0x68], rax
lea rax, [0x14001326c]
mov qword [rdi + 0x48], rax
lea rax, [0x140013298]
mov qword [rdi + 0x50], rax
lea rax, [0x1400132c8]
mov qword [rdi + 0x58], rax
lea rax, [0x1400138c8]
mov qword [rdi + 0x88], rax
lea rax, [0x14001267c]
mov qword [rdi + 0xd0], rax
lea rax, [0x140012700]
mov qword [rdi + 0xd8], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14001f168
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.1400501f0
sub rsp, rax
mov rax, qword [0x1400a2440]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004da0c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f1b7
mov rax, rbp
jmp 0x14001f2bf
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 + 0xbf7e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004fbd0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbf7e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f2bb
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 0x14001f2bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004fbd0
test rax, rax
js 0x14001f2bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f2bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f2ad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f2ad
cmp byte [rcx], 0xd
jne 0x14001f293
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f2a2
cmp byte [rcx + 1], 0xa
jne 0x14001f2a2
inc rcx
jmp 0x14001f2a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa2450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f275
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f2bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004ddd0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140020374
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400204bc
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002052b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002052b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002052b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002052b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002052b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002052b
cmp dword [rcx + 0xf8], 0
je 0x14002052b
mov ecx, ebx
call fcn.1400203f4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140020650
nop
cmp dword [rbp + 0x20], 0
je 0x140020579
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020488
int3
Function at 0x1400255e0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140025ca0
call fcn.14002aa10
xor ecx, ecx
call fcn.140024900
test eax, eax
jne 0x1400255f0
mov rbx, qword [0x1400a3aa0]
test rbx, rbx
je 0x1400256d0
cmp dword [0x1400a3a9c], eax
je 0x1400256d0
cmp dword [0x1400a4680], 0
mov eax, dword [0x1400a3a98]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14002569b
mov rcx, qword [0x1400a3ac0]
mov rdx, rbx
movsxd r8, eax
call fcn.14000b440
xor r9d, r9d
cmp dword [0x1400a3a98], r9d
jle 0x140025694
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1400a3ac0]
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 [0x1400a3a98]
jl 0x140025660
mov rbx, qword [0x1400a3ac0]
call fcn.14005e370
lea rcx, [0x1400a5780]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400a46a8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x1400a5780]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.14005e370
lea rcx, [0x1400a5780]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400a46a8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x1400a5780]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1400a46a8]
call qword [rax + 0x28]
lea rcx, [0x1400a5740]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400a5780]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400a57c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1400a4698]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400a4698]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400a46a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400a46a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1400a5740]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400a5780]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400a57c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400a5740]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400a5780]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1400a57c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x140029d40
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
mov rbp, r8
lea rdx, [rsp + 0x40]
mov rdi, rcx
xor ebx, ebx
call fcn.140029740
test eax, eax
je 0x140029e39
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140036aac
test eax, eax
jne 0x140029e39
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call fcn.140036aac
test eax, eax
jne 0x140029e39
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 0x140029e39
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140029e30
test eax, eax
jle 0x140029e30
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.14001bc5c
mov rsi, rax
test rax, rax
je 0x140029e30
lea r9, [rsp + 0x138]
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 0x140029e30
cmp dword [rsp + 0x138], edi
jne 0x140029e30
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.140029a70
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 0x140029e60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
xor edi, edi
lea r9, [rsp + 0x20]
sub r9, rcx
mov rbp, r8
mov r14, rdx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140029e90
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140029eb0
movzx eax, word [0x14008b720]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x140029ed0
lea rbx, [rsp + 0x20]
add rbx, rax
lea rdx, [rsp + 0x130]
mov eax, 0x2a
lea rcx, [rsp + 0x20]
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140029fc3
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]
mov byte [rbx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140029f30
test byte [rsp + 0x130], 0x10
je 0x140029f86
movzx ecx, byte [rsp + 0x15c]
movzx eax, byte [rsp + 0x15d]
cmp cl, 0x2e
jne 0x140029f74
cmp al, cl
jne 0x140029f6b
cmp byte [rsp + 0x15e], dil
je 0x140029f9a
cmp cl, 0x2e
jne 0x140029f74
test al, al
je 0x140029f9a
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140029e60
jmp 0x140029f96
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140029d40
test eax, eax
jne 0x140029fb5
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140029f20
jmp 0x140029fba
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 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14002aa10
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1400bbe80]
call fcn.140008e10
cmp dword [0x14009f018], 0
mov rsi, qword [rax]
je 0x14002ab50
cmp dword [0x1400bbe40], 0
jne 0x14002ab50
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400bbe48]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400a3a80], 0
je 0x14002aa86
lea rcx, [0x1400a57c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400a5780]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1400a5740]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1400bbe78]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1400bbe90], rsi
xor edx, edx
mov dword [0x1400bbe40], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1400bbe70]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14002ab03
cmp rbx, rsi
je 0x14002aafb
cmp dword [rbx + 0x38], 0
jne 0x14002aafb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14002aaeb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14002aad0
cmp dword [rbx + 0x38], 0
jne 0x14002aafb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14002aac3
cmp dword [0x1400a3a80], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14002ab3d
lea rcx, [0x1400a5740]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400a5780]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400a57c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1400bbe48]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret

Function at 0x14002ab60
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1400bbe80]
call fcn.140008e10
cmp dword [0x14009f018], 0
mov rdi, qword [rax]
je 0x14002abd7
cmp qword [0x1400bbe90], rdi
jne 0x14002abd7
cmp dword [0x1400bbe40], 0
je 0x14002abd7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400bbe70]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14002abc7
cmp rbx, rdi
je 0x14002abbc
cmp dword [rbx + 0x38], esi
jne 0x14002abbc
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 0x14002aba8
mov rbx, qword [rsp + 0x30]
mov dword [0x1400bbe40], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002dcd0
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]
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.1400601c0
mov ecx, eax
lea rdx, [0x14008b1c8]
call fcn.14005f688
xor r9d, r9d
mov qword [0x1400bbeb8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.14005fe88
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.1400601c0
mov ecx, eax
lea rdx, [0x14008b064]
call fcn.14005f688
xor r9d, r9d
mov qword [0x1400bbec0], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.14005fe88
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.1400601c0
mov ecx, eax
lea rdx, [0x14008b064]
call fcn.14005f688
xor r9d, r9d
mov qword [0x1400bbec8], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.14005fe88
mov rax, qword [0x1400bbec0]
mov qword [0x1400bc0c8], rax
call fcn.14002f480
add rsp, 0x48
ret
Function at 0x1400494c4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r11d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rdi, dword [rcx + 0x160]
mov r15, rdx
mov rbx, rcx
test r11d, r11d
je 0x140049583
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
lea r10d, [rax + rax*2]
mov eax, edi
imul eax, r9d
movsxd r12, r10d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [rbx + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [rbx + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x140049569
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 3]
xor byte [rcx], al
add rcx, rdi
sub r9, 1
jne 0x14004954c
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x140049518
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x14004a224
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r10d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rbx, dword [rcx + 0x160]
mov r15, rdx
mov r11, rcx
test r10d, r10d
je 0x14004a2e4
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
shl eax, 2
movsxd r12, eax
mov eax, ebx
imul eax, r9d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [r11 + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [r11 + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x14004a2c9
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
xor byte [rcx], al
add rcx, rbx
sub r9, 1
jne 0x14004a2ac
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x14004a277
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret
Function at 0x14004f768
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, [0x1400bf7e0]
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 0x14004f7bf
cmp word [rdx], r13w
jne 0x14004f7bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004f7c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004f8e9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004f90a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004f7fd
mov rdx, r9
mov word [rbx], cx
jmp 0x14004f824
cmp r9, r8
jae 0x14004f834
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 0x14004f7de
jmp 0x14004f8e9
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 0x14004f8de
cmp dword [rsp + 0x80], esi
je 0x14004f8de
lea r8, [0x1400bf7e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004f8b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004f886
mov word [rbx], r13w
jmp 0x14004f8e6
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 0x14004f893
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004f8e6
cmp word [rsp + 0x70], r13w
jne 0x14004f8c3
cmp rbx, r14
je 0x14004f880
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004fb2c
cmp word [rsp + 0x70], r13w
je 0x14004f8e9
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, [0x1400bf7e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004f8e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004f8e9