joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033674
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 0x14003369e
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1402d0288]
test rbx, rbx
jne 0x1400336e4
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1402ce4d8]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1402d0290], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402d0290]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1402d0288]
jmp 0x1400336e7
movsxd rdi, edi
mov ecx, dword [0x1402d0290]
lea rax, [rdi + rbx]
mov qword [0x1402d0288], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1402d0288]
mov edx, 8
mov rcx, qword [0x1402ce4d8]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1402d0290]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x140033736
test rbp, rbp
je 0x14003375d
mov edx, 0x28
lea rcx, [0x1402d0280]
call fcn.1400342a8
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14003375d
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 0x1400356d0
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 [0x1402d6d40], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402c63f4], eax
add rsp, 0x28
jmp 0x140035dc0
push rbx
sub rsp, 0x20
mov rcx, qword [0x1402d6d40]
xor edx, edx
mov r8d, 0x340
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1402d6d40]
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 [0x1402c63f4]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x140035700
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1402c63f4]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140035750
Capabilities:
Get thread local storage value

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rdx, qword [rax + rcx*8 + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rax]
add rax, rdx
add rsp, 0x28
ret

Function at 0x1400357f0
Capabilities:
Get thread local storage value

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

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, 0x20
mov rdi, rcx
movsxd r14, edx
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rdi]
mov rsi, rax
mov r8d, dword [rax + 0x10]
sub r8d, r14d
movsxd rbp, r8d
test rcx, rcx
jne 0x1400358a6
mov rcx, qword [0x1402d6d40]
lea r8, [rbp + 0x12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x1400358c5
call fcn.140037e80
add qword [rdi], 0xfffffffffffffffc
lea r9, [rbp + 0x12]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1402d6d40]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
lea r9, [rax + 4]
mov r8, rbp
mov qword [rdi], r9
mov rcx, r9
mov rdx, qword [rsi]
add rdx, r14
shr r8, 1
call fcn.140035be0
mov rcx, qword [rdi]
lea rdx, [rbp + 2]
call fcn.140037b50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov qword [rsi + 0x10], r14
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140035980
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x140035ac0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x140035af4
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x140035af4
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140035b00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x140035b30
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140035b51
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x140035b63
mov eax, 0x100000
cmp r8, rax
jle 0x140035b80
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x1402d6d40]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140035bb0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140035c20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret

Function at 0x140035c50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x1402c63f4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret
Function at 0x14003bec0
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 0x14003c09e
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 0x14003bf4c
test eax, eax
jle 0x14003bf4c
mov rdx, qword [0x1402d75e0]
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 0x14003bf4c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14003c099
mov rax, qword [0x1402d75e0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x14003c099
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x14003c094
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14003c08c
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 0x14003c070
test edi, edi
jle 0x14003c070
mov rcx, qword [0x1402ce4d8]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14003c070
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.140022750
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x3c0a8]
add rdx, r13
jmp rdx
lea rax, [0x14003c0d0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003f030]
jmp 0x14003c05b
lea rax, [0x14003c0e0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003f040]
jmp 0x14003c05b
lea rax, [0x14003c1d0]
mov qword [rbx + 0x18], rax
lea rax, [0x14003f070]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1402d0b90]
mov qword [rbx], rax
mov qword [0x1402d0b90], rbx
mov rdx, qword [0x1402d75e0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x14003bfc0
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 0x14003f3a0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x1402d6d60]
call fcn.1400335dc
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x14003f417
cmp qword [0x1402d6d80], rdi
jne 0x14003f417
cmp dword [0x1402d0ba0], 0
je 0x14003f417
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1402d0bd0]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14003f407
cmp rbx, rdi
je 0x14003f3fc
cmp dword [rbx + 0x38], esi
jne 0x14003f3fc
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 0x14003f3e8
mov rbx, qword [rsp + 0x30]
mov dword [0x1402d0ba0], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x1402d6d60]
call fcn.1400335dc
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x14003f560
cmp dword [0x1402d0ba0], 0
jne 0x14003f560
mov qword [rsp + 0x30], rbx
lea rcx, [0x1402d0ba8]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1402d0300], 0
je 0x14003f496
lea rcx, [0x1402d7660]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402e7aa0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402d6dc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1402e7a80]
xor r9d, r9d
xor r8d, r8d
mov qword [0x1402d6d80], rsi
xor edx, edx
mov dword [0x1402d0ba0], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x1402d0bd0]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14003f513
cmp rbx, rsi
je 0x14003f50b
cmp dword [rbx + 0x38], 0
jne 0x14003f50b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14003f4fb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14003f4e0
cmp dword [rbx + 0x38], 0
jne 0x14003f50b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003f4d3
cmp dword [0x1402d0300], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14003f54d
lea rcx, [0x1402d6dc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402e7aa0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402d7660]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402d0ba8]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140044550
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140044360
call fcn.14003f420
xor ecx, ecx
call fcn.140044810
test eax, eax
jne 0x140044560
mov rbx, qword [0x1402d0320]
test rbx, rbx
je 0x140044640
cmp dword [0x1402d031c], eax
je 0x140044640
cmp dword [0x1402d0be0], 0
mov eax, dword [0x1402d0318]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14004460b
mov rcx, qword [0x1402d75e0]
mov rdx, rbx
movsxd r8, eax
call fcn.140022750
xor r9d, r9d
cmp dword [0x1402d0318], r9d
jle 0x140044604
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1402d75e0]
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 [0x1402d0318]
jl 0x1400445d0
mov rbx, qword [0x1402d75e0]
call fcn.140056df0
lea rcx, [0x1402e7aa0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402d0c08]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x1402e7aa0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140056df0
lea rcx, [0x1402e7aa0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402d0c08]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x1402e7aa0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x1402d0c08]
call qword [rax + 0x28]
lea rcx, [0x1402d6dc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402e7aa0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402d7660]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1402d0bf8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1402d0bf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402d0c00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1402d0c00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1402d6dc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402e7aa0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402d7660]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1402d6dc0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1402e7aa0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1402d7660]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x140048f20
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.1400497e0
test eax, eax
je 0x140049019
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1401f8d38
test eax, eax
jne 0x140049019
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call fcn.1401f8d38
test eax, eax
jne 0x140049019
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 0x140049019
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140049010
test eax, eax
jle 0x140049010
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.1401d5d70
mov rsi, rax
test rax, rax
je 0x140049010
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 0x140049010
cmp dword [rsp + 0x138], edi
jne 0x140049010
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.140049510
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 0x140049b10
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 0x140049b40
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140049b60
movzx eax, word [0x14025fd04]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x140049b80
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 0x140049c73
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 0x140049be0
test byte [rsp + 0x130], 0x10
je 0x140049c36
movzx ecx, byte [rsp + 0x15c]
movzx eax, byte [rsp + 0x15d]
cmp cl, 0x2e
jne 0x140049c24
cmp al, cl
jne 0x140049c1b
cmp byte [rsp + 0x15e], dil
je 0x140049c4a
cmp cl, 0x2e
jne 0x140049c24
test al, al
je 0x140049c4a
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140049b10
jmp 0x140049c46
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140048f20
test eax, eax
jne 0x140049c65
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140049bd0
jmp 0x140049c6a
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 0x140050340
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.14000cf78
mov ecx, eax
lea rdx, [0x140264020]
call fcn.140212f70
xor r9d, r9d
mov qword [0x1402d1038], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1402131e8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000cf78
mov ecx, eax
lea rdx, [0x140266af0]
call fcn.140212f70
xor r9d, r9d
mov qword [0x1402d1040], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1402131e8
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.14000cf78
mov ecx, eax
lea rdx, [0x140266af0]
call fcn.140212f70
xor r9d, r9d
mov qword [0x1402d1048], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1402131e8
mov rax, qword [0x1402d1040]
mov qword [0x1402d7620], rax
call fcn.14004c620
add rsp, 0x48
ret
Function at 0x140059fb0
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 0x14005a00b
nop
mov rcx, qword [0x1402d48c8]
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 0x14005a005
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x14005a025
add ebx, esi
cmp ebx, edi
jl 0x140059fd0
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 0x14005a010
Function at 0x140066260
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1402c57e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [rcx + 0xf8]
mov rbp, rcx
call fcn.140074970
mov rsi, rax
test rax, rax
jne 0x1400662b5
lea r8, str.Encryption_needs_passphrase
mov rcx, rbp
lea rdx, [rax - 1]
call fcn.140074730
lea eax, [rsi - 0x19]
jmp 0x140066418
mov edx, reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0x30]
call fcn.140074af0
test eax, eax
je 0x1400662e8
lea r8, str.Cant_generate_random_number_for_encryption
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call fcn.140074730
mov eax, 0xffffffe2
jmp 0x140066418
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400662f0
mov dword [rdi + 0x50], 0x12345678
mov dword [rdi + 0x54], 0x23456789
mov dword [rdi + 0x58], 0x34567890
test rbx, rbx
je 0x140066370
mov ecx, dword [rdi + 0x50]
lea rdx, [rsp + 0x20]
movzx eax, byte [rsi]
not ecx
mov r8d, 1
mov byte [rsp + 0x20], al
call fcn.140062c10
not eax
lea rdx, [rsp + 0x28]
mov dword [rdi + 0x50], eax
mov r8d, 1
movzx eax, al
add eax, dword [rdi + 0x54]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rdi + 0x54], ecx
shr ecx, 0x18
mov byte [rsp + 0x28], cl
mov ecx, dword [rdi + 0x58]
not ecx
call fcn.140062c10
lea rsi, [rsi + 1]
not eax
mov dword [rdi + 0x58], eax
sub rbx, 1
jne 0x140066313
movzx eax, byte [rdi + 0x5d]
xor ebx, ebx
mov byte [rsp + 0x3b], al
lea esi, [rbx + 0xc]
nop dword [rax]
movzx edx, byte [rsp + rbx + 0x30]
mov r8d, 1
mov eax, dword [rdi + 0x58]
or eax, 2
mov byte [rsp + 0x28], dl
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, dl
lea rdx, [rsp + 0x28]
mov byte [rsp + rbx + 0x40], cl
mov ecx, dword [rdi + 0x50]
not ecx
call fcn.140062c10
not eax
lea rdx, [rsp + 0x20]
mov dword [rdi + 0x50], eax
mov r8d, 1
movzx eax, al
add eax, dword [rdi + 0x54]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rdi + 0x54], ecx
shr ecx, 0x18
mov byte [rsp + 0x20], cl
mov ecx, dword [rdi + 0x58]
not ecx
call fcn.140062c10
lea rbx, [rbx + 1]
not eax
mov dword [rdi + 0x58], eax
sub rsi, 1
jne 0x140066380
lea r8d, [rsi + 0xc]
mov rcx, rbp
lea rdx, [rsp + 0x40]
call fcn.14006fc50
test eax, eax
jne 0x140066418
add qword [rdi + 0xb0], 0xc
add qword [rdi + 0x18], 0xc
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d56b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret