joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072460
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
bt r8d, 0x10
jae 0x14007266f
mov r11, rsp
push r12
push r14
sub rsp, 0xe8
mov rax, qword [0x1401589c8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, rdx
mov r14, rcx
test rcx, rcx
je 0x140072654
mov eax, dword [rcx]
mov qword [r11 + 0x18], rbx
cdq
mov qword [r11 - 0x18], rbp
and edx, 7
mov ebp, dword [rsp + 0x120]
add eax, edx
sar eax, 3
mov qword [r11 - 0x20], rsi
test r9, r9
mov qword [r11 - 0x28], rdi
lea rdi, [0x140102020]
mov qword [r11 - 0x30], r13
cmovne rdi, r9
mov qword [r11 - 0x38], r15
movsxd r15, dword [rcx + 4]
movsxd r13, eax
cmp ebp, 0x18
jne 0x1400724fb
mov rcx, rdi
call fcn.14009da20
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400724f0
jmp 0x14007253a
cmp ebp, 0x19
jne 0x14007251f
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140072510
add rbx, rbx
jmp 0x14007253a
mov rcx, rdi
call fcn.14009d680
mov rdi, rax
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140072531
mov rdx, rdi
cmp rbx, r15
jle 0x14007258d
mov r8d, ebx
mov rcx, r14
call qword [r12 + 0x18]
mov rcx, r14
call qword [r12 + 0x20]
lea rdx, [r14 + 8]
mov r8, r13
lea rcx, [rsp + 0x20]
call fcn.1400374f0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, r13d
add rcx, r13
movsxd r8, eax
xor edx, edx
call fcn.140035ac0
mov edx, 1
mov rcx, r14
call qword [r12 + reloc.WS2_32.dll_recv]
jmp 0x1400725b1
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.1400374f0
mov eax, r15d
lea rcx, [rsp + 0x20]
sub eax, ebx
add rcx, rbx
movsxd r8, eax
xor edx, edx
call fcn.140035ac0
lea rcx, [r14 + 0x48]
mov r8, r15
lea rdx, [rsp + 0x20]
call fcn.1400374f0
mov r13, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x110]
test r15d, r15d
jle 0x140072608
xor r9d, r9d
lea rcx, [rsp + 0x20]
mov rax, r14
sub rax, rcx
nop word [rax + rax]
lea rdx, [rsp + 0x20]
add rdx, r9
inc r9
xor byte [rdx], 0x36
xor byte [rax + rdx + 0x48], 0x5c
cmp r9, r15
jl 0x1400725f0
mov r8d, r15d
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [r12 + 0x18]
mov r15, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xd8]
cmp ebp, 0x18
jne 0x140072637
mov rcx, rdi
call fcn.14009da10
jmp 0x140072644
cmp ebp, 0x19
je 0x140072644
mov rcx, rdi
call fcn.14009d670
mov rbp, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14009db70
add rsp, 0xe8
pop r14
pop r12
ret
Function at 0x1400733d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140073620
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x14007344d
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rcx, [rbx + 8]
nop
mov edx, dword [rcx - 8]
add r10, 4
mov eax, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rcx - 8], eax
lea rcx, [rcx + 0x10]
mov eax, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rcx - 0x14]
mov dword [rcx - 0x14], eax
mov eax, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rcx - 0x10]
mov dword [rcx - 0x10], eax
mov eax, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rcx - 0xc]
mov dword [rcx - 0xc], eax
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140073400
cmp r11d, 1
jle 0x140073609
mov qword [rsp + 0x30], rdi
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
add rbx, 4
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
lea rbx, [rbx + 0x10]
mov edx, dword [rbx - 4]
movzx eax, byte [rbx - 3]
movzx ecx, byte [rdi + rax*4 + 0x11d010]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x11dc10]
movzx eax, byte [rdi + rax*4 + 0x11d010]
xor r8d, dword [rdi + rax*4 + 0x11d410]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x11d010]
movzx eax, byte [rbx - 2]
xor r8d, dword [rdi + rcx*4 + 0x11e010]
movzx ecx, byte [rdi + rax*4 + 0x11d010]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x11d810]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x11d010]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x11d810]
movzx eax, byte [rdi + rcx*4 + 0x11d010]
xor r8d, dword [rdi + rax*4 + 0x11dc10]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x11d010]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0x11d410]
movzx ecx, byte [rdi + rax*4 + 0x11d010]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x11e010]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0x11d010]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x11d810]
movzx eax, byte [rdi + rcx*4 + 0x11d010]
xor r8d, dword [rdi + rax*4 + 0x11dc10]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x11d010]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0x11d410]
movzx ecx, byte [rdi + rax*4 + 0x11d010]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x11e010]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x11d010]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x11d810]
movzx eax, byte [rdi + rcx*4 + 0x11d010]
xor r8d, dword [rdi + rax*4 + 0x11dc10]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x11d010]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x11d410]
movzx ecx, byte [rdi + rax*4 + 0x11d010]
xor r8d, dword [rdi + rcx*4 + 0x11e010]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x140073470
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x140078680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movsxd rdx, dword [0x140160a30]
lea r8, [0x140175ba0]
mov qword [r8 + rdx*8], rcx
inc edx
cmp dword [0x140160148], 0
mov dword [0x140160a30], edx
jne 0x140086c20
ret
sub rsp, 0x48
mov rax, qword [0x1401589c8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [0x140160a30]
mov dword [rsp + 0x20], 0x1d
mov dword [rsp + 0x28], eax
test eax, eax
jne 0x140086c97
call fcn.140098e00
xor r11d, r11d
mov dword [rsp + 0x30], eax
lea rcx, [0x140176560]
mov dword [rsp + 0x24], r11d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140160a48]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009db70
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor r11d, r11d
mov rbx, qword [0x1401660a0]
mov r8, rbx
test eax, eax
jle 0x140086de0
lea r10, [0x140175ba0]
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 0x140086cd0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r8 + rax + 1], 0
lea rax, [rax + 1]
jne 0x140086cf0
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 0x140086d10
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [r9 + rax + 1], 0
lea rax, [rax + 1]
jne 0x140086d30
mov rcx, qword [r10]
lea r8, [rax + 1]
add r8, r9
test byte [rcx + 4], 1
je 0x140086d8f
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 0x140086d60
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140086d80
add rax, r8
jmp 0x140086d96
mov byte [r8], 0
mov rax, r8
mov rcx, qword [r10]
mov edx, dword [rcx + 4]
mov dword [rax + 1], edx
cmp dword [0x140160a20], 0
je 0x140086dc1
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 [0x140160a30]
jl 0x140086cc0
mov rbx, qword [0x1401660a0]
sub r8d, ebx
mov dword [rsp + 0x24], r8d
call fcn.140098e00
lea rcx, [0x140176560]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140160a48]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009db70
add rsp, 0x48
ret
Function at 0x14007da90
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 0x14007dc6e
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 0x14007db1c
test eax, eax
jle 0x14007db1c
mov rdx, qword [0x1401660a0]
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 0x14007db1c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14007dc69
mov rax, qword [0x1401660a0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x14007dc69
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x14007dc64
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14007dc5c
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 0x14007dc40
test edi, edi
jle 0x14007dc40
mov rcx, qword [0x14015d850]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14007dc40
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.1400374f0
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x7dc78]
add rdx, r13
jmp rdx
lea rax, [0x14007dca0]
mov qword [rbx + 0x18], rax
lea rax, [0x140080c20]
jmp 0x14007dc2b
lea rax, [0x14007dcb0]
mov qword [rbx + 0x18], rax
lea rax, [0x140080c30]
jmp 0x14007dc2b
lea rax, [0x14007dda0]
mov qword [rbx + 0x18], rax
lea rax, [0x140080c60]
mov qword [rbx + 0x20], rax
mov rax, qword [0x1401609d0]
mov qword [rbx], rax
mov qword [0x1401609d0], rbx
mov rdx, qword [0x1401660a0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x14007db90
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 0x140080f90
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x140165820]
call fcn.140074c3c
cmp dword [0x14015d828], 0
mov rdi, qword [rax]
je 0x140081007
cmp qword [0x140165840], rdi
jne 0x140081007
cmp dword [0x1401609e0], 0
je 0x140081007
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140160a10]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140080ff7
cmp rbx, rdi
je 0x140080fec
cmp dword [rbx + 0x38], esi
jne 0x140080fec
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 0x140080fd8
mov rbx, qword [rsp + 0x30]
mov dword [0x1401609e0], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x140165820]
call fcn.140074c3c
cmp dword [0x14015d828], 0
mov rsi, qword [rax]
je 0x140081150
cmp dword [0x1401609e0], 0
jne 0x140081150
mov qword [rsp + 0x30], rbx
lea rcx, [0x1401609e8]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140160148], 0
je 0x140081086
lea rcx, [0x140166120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140165880]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x140176540]
xor r9d, r9d
xor r8d, r8d
mov qword [0x140165840], rsi
xor edx, edx
mov dword [0x1401609e0], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x140160a10]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140081103
cmp rbx, rsi
je 0x1400810fb
cmp dword [rbx + 0x38], 0
jne 0x1400810fb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x1400810eb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x1400810d0
cmp dword [rbx + 0x38], 0
jne 0x1400810fb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400810c3
cmp dword [0x140160148], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14008113d
lea rcx, [0x140165880]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140166120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1401609e8]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140086210
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401589c8]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140086020
call fcn.140081010
nop
xor ecx, ecx
call fcn.140086500
test eax, eax
jne 0x140086230
mov rbx, qword [0x140160168]
test rbx, rbx
je 0x140086310
cmp dword [0x140160164], eax
je 0x140086310
cmp dword [0x140160a20], 0
mov eax, dword [0x140160160]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x1400862db
mov rcx, qword [0x1401660a0]
mov rdx, rbx
movsxd r8, eax
call fcn.1400374f0
xor r9d, r9d
cmp dword [0x140160160], r9d
jle 0x1400862d4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1401660a0]
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 [0x140160160]
jl 0x1400862a0
mov rbx, qword [0x1401660a0]
call fcn.140098e00
lea rcx, [0x140176560]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140160a48]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.140098e00
lea rcx, [0x140176560]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140160a48]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x140160a48]
call qword [rax + 0x28]
lea rcx, [0x140165880]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140166120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140160a38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140160a38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140160a40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140160a40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140165880]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140166120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140165880]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140176560]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140166120]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009db70
add rsp, 0x40
pop rbx
ret
Function at 0x14008acf0
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 [0x1401589c8]
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.14008b5f0
test eax, eax
je 0x14008aded
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400d0928
test eax, eax
jne 0x14008aded
lea rdx, [rsp + 0xb4]
mov rcx, rbp
call fcn.1400d0928
test eax, eax
jne 0x14008aded
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 0x14008aded
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14008ade4
test eax, eax
jle 0x14008ade4
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.14009e230
mov rsi, rax
test rax, rax
je 0x14008ade4
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 0x14008ade4
cmp dword [rsp + 0x40], edi
jne 0x14008ade4
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.14008b320
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.14009db70
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008b940
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 [0x1401589c8]
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 0x14008b980
lea rcx, [rsp + 0x160]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14008b9a0
movzx eax, word [0x140104cc4]
mov word [rcx], ax
lea rcx, [rsp + 0x160]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x14008b9c3
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 0x14008baaa
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 0x14008ba20
test byte [rsp + 0x20], 0x10
je 0x14008ba6d
movzx ecx, byte [rsp + 0x4c]
movzx eax, byte [rsp + 0x4d]
cmp cl, 0x2e
jne 0x14008ba58
cmp al, cl
jne 0x14008ba4f
cmp byte [rsp + 0x4e], dil
je 0x14008ba84
cmp cl, 0x2e
jne 0x14008ba58
test al, al
je 0x14008ba84
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14008b940
jmp 0x14008ba80
mov r8, r14
lea rcx, [rsp + 0x160]
mov rdx, rbp
call fcn.14008acf0
test eax, eax
jne 0x14008ba9c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14008ba10
jmp 0x14008baa1
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.14009db70
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 0x140092270
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1401589c8]
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.140021d1c
mov ecx, eax
lea rdx, [0x1401217f0]
call fcn.1400da2a4
xor r9d, r9d
mov qword [0x140160e78], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400da51c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140021d1c
mov ecx, eax
lea rdx, [0x1401242c0]
call fcn.1400da2a4
xor r9d, r9d
mov qword [0x140160e80], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400da51c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140021d1c
mov ecx, eax
lea rdx, [0x1401242c0]
call fcn.1400da2a4
xor r9d, r9d
mov qword [0x140160e88], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400da51c
mov rax, qword [0x140160e80]
mov qword [0x1401660e0], rax
call fcn.14008e470
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009db70
add rsp, 0x48
ret
Function at 0x14009c030
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 0x14009c08b
nop
mov rcx, qword [0x140164708]
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 0x14009c085
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x14009c0a5
add ebx, esi
cmp ebx, edi
jl 0x14009c050
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 0x14009c090

Function at 0x1400d80c8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401589c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400d8112
call fcn.1400213e4
mov dword [rax], InitCommonControls
call fcn.140021404
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14001f054
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009db70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400d811d
lea eax, [rbx + 1]
jmp 0x1400d80ff
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400d80fd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400d80ff

Function at 0x1400e13dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e13f2
mov al, 1
jmp 0x1400e1452
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e1403
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e1450
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021ca4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e1450
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e1450
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e1450
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e1452
xor al, al
add rsp, 0x20
pop rbx
ret