joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140004233
sub rsp, 0x28
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140012230
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x80]
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_FindResourceA
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400042b1
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [0x140017a20], rax
push qword [rsp + 0x30]
push qword [rsp + 0x78]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x140017a40], rax
push qword [0x140017a40]
pop rcx
call fcn.14000e1f0
mov qword [rsp + 0x38], rax
push qword [0x140017a40]
push qword [0x140017a20]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
call sub.msvcrt.dll_memcpy
push qword [rsp + 0x38]
pop rax
mov qword [0x140017a20], rax
push qword [rsp + 0x28]
movabs rcx, 0x14001607e
pop rdx
call fcn.140012160
or rax, rax
jne 0x140004334
push qword [rsp + 0x28]
movabs rcx, 0x140016084
pop rdx
call fcn.140012160
or rax, rax
jne 0x140004334
push qword [rsp + 0x28]
movabs rcx, str.NOPSX
pop rdx
call fcn.140012160
or rax, rax
jne 0x140004334
jmp 0x14000433d
mov rax, 1
jmp 0x140004340
xor rax, rax
and rax, rax
je 0x1400043c7
push qword [0x140017a40]
pop rcx
call fcn.14000e1f0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov r15, qword [0x140017a40]
dec r15
cmp r15, qword [rsp + 0x48]
jl 0x1400043bb
mov r15, qword [rsp + 0x38]
add r15, qword [rsp + 0x48]
mov rax, r15
push rax
pop rcx
call fcn.14000e260
mov qword [rsp + 0x50], rax
mov r15, qword [rsp + 0x50]
imul r15, r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
push qword [rsp + 0x58]
mov r15, qword [rsp + 0x48]
add r15, qword [rsp + 0x50]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.14000e270
inc qword [rsp + 0x48]
jno 0x140004363
push qword [rsp + 0x40]
pop rax
mov qword [0x140017a20], rax
mov rax, qword [rsp + 0x30]
jmp 0x1400043d1
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400122a0
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret
Function at 0x1400047fe
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov r15, qword [0x140017b50]
cmp r15, 1
jne 0x1400048e4
push qword [0x140017c00]
pop rcx
call fcn.140009d20
mov r15, rax
and r15, r15
jle 0x14000487a
mov rcx, qword [0x140017c00]
call fcn.140009d28
mov rcx, qword [0x140017c00]
call fcn.140009d3c
or rax, rax
je 0x14000487a
mov rbp, qword [0x140017c08]
push qword [rbp + 0x10]
pop rcx
call fcn.140010520
mov r15, rax
movsxd rax, dword [rbp + 0x18]
cmp r15, rax
jne 0x140004878
mov rbp, qword [0x140017c08]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e4c0
jmp 0x14000483b
push qword [0x140017c10]
pop rcx
call fcn.140009d20
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400048e4
push 5
push 0
push 1
push qword [0x140017c10]
pop rcx
pop rdx
pop r8
pop r9
call fcn.1400080e0
mov rcx, qword [0x140017c10]
call fcn.140009d28
mov rcx, qword [0x140017c10]
call fcn.140009d3c
or rax, rax
je 0x1400048e4
mov rbp, qword [0x140017c18]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x1400048c1
mov rax, 1
jmp 0x1400048f0
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140008aa0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140008b17
movsxd rdx, ecx
lea rcx, [0x1400089fc]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140017c30]
test rbx, rbx
je 0x140008b8a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b0d
cmp byte [rbx + 0x20], 0
je 0x140008b0d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140008ad3
jmp 0x140008b8a
mov rbx, qword [0x140017c30]
test rbx, rbx
je 0x140008b8a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140008b82
cmp byte [rbx + 0x21], 0
je 0x140008b46
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140008b72
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140017c30]
call fcn.140011a84
mov rbx, rdi
test rdi, rdi
jne 0x140008b23
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140008c64
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1400181d0]
call fcn.14001122c
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140008d2a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140008cb8
add rax, r9
cmp byte [rax], r10b
je 0x140008cb0
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140008cee
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140008ce9
cmp cl, 0x22
je 0x140008cdc
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140008cce
cmp byte [rax], 0
je 0x140008ce9
mov rcx, rax
add rax, r9
jmp 0x140008d10
mov rcx, rax
jmp 0x140008d10
test dl, dl
je 0x140008d0d
mov rbx, rax
cmp dl, r10b
je 0x140008d03
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140008cf5
cmp byte [rax], 0
mov rcx, rax
je 0x140008d10
jmp 0x140008ce4
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140008d1a
test rdi, rdi
jne 0x140008d34
test r8d, r8d
je 0x140008d22
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140008cab
test rdi, rdi
jne 0x140008d46
movsxd rax, esi
jmp 0x140008d49
test rbx, rbx
je 0x140008d46
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140008d49
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140008e24
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400181d0]
call fcn.14001122c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140008c64

Function at 0x140008f18
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140008f38
test rax, rax
lea rdx, [0x140015496]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x14000ab94
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140018310]
call fcn.140011144
mov rsi, rax
test rax, rax
je 0x14000ac0d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14000abd2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000ac0d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400122d0
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.140012470
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b0fc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000b211
mov eax, dword [rsp + 0x30]
dec eax
je 0x14000b1ee
dec eax
jne 0x14000b211
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000b169
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14000b1e7
dec eax
je 0x14000b1e0
dec eax
je 0x14000b1b6
dec eax
jne 0x14000b211
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000b1aa
dec eax
je 0x14000b19e
dec eax
jne 0x14000b211
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14000b211
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14000b211
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14000b211
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000b1d9
dec eax
je 0x14000b1d2
dec eax
jne 0x14000b211
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14000b211
mov ebx, 0x3c
jmp 0x14000b211
mov ebx, 0x32
jmp 0x14000b211
mov ebx, 0x14
jmp 0x14000b211
mov ebx, 5
jmp 0x14000b211
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14000b20c
cmp eax, 0xa
je 0x14000b205
cmp eax, 0x5a
jne 0x14000b211
lea ebx, [rax - 0x32]
jmp 0x14000b211
mov ebx, 0x1e
jmp 0x14000b211
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14000c550
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14000c5f9
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000c5f9
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c5f9
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c5f9
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c5f9
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14000c5f9
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14000c6a3
test rbx, rbx
je 0x14000c638
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c62b
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14000c62b
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14000c638
mov edx, 1
mov rcx, rbx
call fcn.14000c4fc
test rdi, rdi
je 0x14000c652
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14000c6a3
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14000c6a3
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14000c6a3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14000c6a3
mov rcx, qword [0x140018330]
lea rdx, [rdi - 1]
call fcn.140011144
test rax, rax
je 0x14000c6a3
mov rax, qword [rax + 0x10]
jmp 0x14000c6a5
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e2c4
Capabilities:
Allocate thread local storage

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

Function at 0x14000e2dc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.1400122d0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000e31b
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000e31b
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140012470
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x14000e33c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000e34f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14000e351
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000eda0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000ee31
cmp byte [rdx], bl
je 0x14000ee31
mov rdx, rcx
mov rcx, qword [0x1400184c0]
call fcn.140011144
mov r11, rax
test rax, rax
je 0x14000ee2d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000ee0f
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.14000efd0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ee50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000eec8
test r8d, r8d
je 0x14000eec8
mov rdx, rcx
mov rcx, qword [0x1400184c0]
call fcn.140011144
test rax, rax
je 0x14000eec4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000eeb1
mov rcx, rax
call fcn.14000efd0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000eee0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400184c0]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.140011144
mov rbx, rax
test rax, rax
je 0x14000efc0
test rsi, rsi
je 0x14000ef6b
cmp byte [rsi], bpl
je 0x14000ef6b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x14000ef48
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14000efd0
mov dword [rsp + 0x60], eax
jmp 0x14000ef66
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x140015aa0]
cmp qword [rbx + 8], rbp
je 0x14000ef99
mov rcx, rbx
call fcn.14000efd0
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400102a0
Capabilities:
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
or ebx, 0xffffffff
xor r12d, r12d
mov r14, r8
mov edi, 0x80000
test rcx, rcx
je 0x14001050b
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140010506
mov rcx, qword [0x140017a00]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x1400104f8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], rsi
test rax, rax
jle 0x140010353
lea r8, [rsp + 0x8c]
xor r9d, r9d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebp, [r14 + 0x80000]
lea rsi, [0x140015b00]
add r12d, 0x80000
sub ebp, 0x80000
cmp r14, 0xffffffffffffffff
je 0x14001037d
movsxd rax, r12d
cmp rax, r14
cmovg edi, ebp
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x80]
mov r11, r13
mov r9d, r10d
cmp r10d, 8
jb 0x1400104ab
mov esi, r10d
lea r10, [0x140015b00]
shr rsi, 3
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r10 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r10 + rax*4]
xor ebx, edx
dec rsi
jne 0x1400103d0
mov r10d, dword [rsp + 0x80]
lea rsi, [0x140015b00]
test r9d, r9d
je 0x1400104cc
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [rsi + rdx*4]
xor ebx, eax
dec r9d
jne 0x1400104b0
cmp r10d, 0x80000
je 0x140010361
mov rcx, qword [0x140017a00]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
not ebx
movsxd rax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret
or r8, 0xffffffffffffffff
xor edx, edx
jmp 0x1400102a0
Function at 0x140010520
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
or ebx, 0xffffffff
xor r12d, r12d
mov r14, r8
mov edi, 0x80000
test rcx, rcx
je 0x14001050b
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140010506
mov rcx, qword [0x140017a00]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
je 0x1400104f8
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], rsi
test rax, rax
jle 0x140010353
lea r8, [rsp + 0x8c]
xor r9d, r9d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebp, [r14 + 0x80000]
lea rsi, [0x140015b00]
add r12d, 0x80000
sub ebp, 0x80000
cmp r14, 0xffffffffffffffff
je 0x14001037d
movsxd rax, r12d
cmp rax, r14
cmovg edi, ebp
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x80]
mov r11, r13
mov r9d, r10d
cmp r10d, 8
jb 0x1400104ab
mov esi, r10d
lea r10, [0x140015b00]
shr rsi, 3
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r10 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r10 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r10 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r10 + rax*4]
xor ebx, edx
dec rsi
jne 0x1400103d0
mov r10d, dword [rsp + 0x80]
lea rsi, [0x140015b00]
test r9d, r9d
je 0x1400104cc
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [rsi + rdx*4]
xor ebx, eax
dec r9d
jne 0x1400104b0
cmp r10d, 0x80000
je 0x140010361
mov rcx, qword [0x140017a00]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
not ebx
movsxd rax, ebx
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret
or r8, 0xffffffffffffffff
xor edx, edx
jmp 0x1400102a0
Function at 0x14077c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14077c237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14077c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077c0c7
add dl, dl
jne 0x14077c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077c14e
xor eax, eax
add dl, dl
jne 0x14077c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077c205
add dl, dl
jne 0x14077c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14077c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14077c0d6
mov eax, 1
add dl, dl
jne 0x14077c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077c153
sub eax, ebx
mov ebx, 1
jne 0x14077c1a4
mov ecx, 1
add dl, dl
jne 0x14077c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14077c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077c1b5
cmp eax, 0x7d00
jae 0x14077c1f3
cmp eax, 0x500
jb 0x14077c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077c0d6
cmp eax, 0x7f
ja 0x14077c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14077c22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14077c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20