joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180022190
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 8], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], 7
mov qword [rbp + 0x24], 0
mov word [rbp + 0x2c], 0
mov byte [rbp + 0x28], 1
lea r8, [rbp + 8]
mov rcx, rdx
mov rdx, rax
call fcn.18003a810
mov rdi, rdx
test rax, rax
je 0x180022217
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call fcn.18001c870
mov qword [rsi], 0
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 8]
mov rdx, rdi
call fcn.18003aa80
cmp dword [rbp + 8], 2
jne 0x18002223b
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x18002226a
movups xmm0, xmmword [rbp + 8]
movups xmm1, xmmword [rbp + 0x18]
movups xmm2, xmmword [rbp + 0x28]
movups xmm3, xmmword [rbp + 0x38]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x48]
mov qword [rbp], rax
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x180022293
lea rcx, [rbp - 0x38]
call fcn.18001c870
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x1800222e1
mov qword [rbp - 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x18002235d
mov rbx, qword [rbp - 0x40]
jmp 0x1800222e3
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x18002234c
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x18002234c
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x180022386
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x180022386
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 8], 1
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rax
call fcn.18001c870
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x180022205
Function at 0x18003d360
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x180098648]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x18003d3c8
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x18003d3d5
xor edx, edx
xor eax, eax
jmp 0x18003d3fe
cmp eax, 0x103
je 0x18003d408
test eax, eax
js 0x18003d3e8
mov rdx, qword [rbp + 8]
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
add bh, byte [rax + 1]
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1800986a8]
add byte [rax - 0x77], cl
enter 0xffffffffffffc748, 0x45
rol byte [rcx], 1
add byte [rax], al
add byte [rax - 0x73], cl
and byte [r8 - 0x77], r9b
fmul dword [r15]
fmul dword [rdi]
push rdi
invalid

Function at 0x18003f180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1800710a0]
test ecx, ecx
je 0x18003f1ad
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x18003f1c6
add rax, 8
jmp 0x18003f261
lea rcx, [0x180071088]
call fcn.18001c5e0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x18003f1a4
je 0x18003f25f
movzx eax, byte [0x1800a40a8]
mov edx, 0x10
xor ecx, ecx
call fcn.18004b1f0
test rax, rax
je 0x18003f28a
mov rbx, rax
mov rsi, rax
lea rax, [0x180071088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1800710a0]
test ecx, ecx
je 0x18003f26a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1800710a0]
test ecx, ecx
je 0x18003f27a
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x18003f25a
mov rax, qword [rdi + 8]
test rax, rax
je 0x18003f249
lock dec qword [rax]
jne 0x18003f249
mov rcx, qword [rdi + 8]
call fcn.18003f2a0
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x18003f261
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x180071088]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18003f20c
lea rcx, [0x180071088]
call fcn.18001c5e0
mov ecx, eax
jmp 0x18003f220
mov ecx, 8
mov edx, 0x10
call fcn.1800089f0
int3
Function at 0x180045400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.18003ab80
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x18004543e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x180045464
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.180045320
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x18004547d
lea rcx, [rbp - 8]
call fcn.18001c870
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x18004549f
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x180045470
mov qword [rsi], rbx
test r14, r14
je 0x180045470
mov rcx, qword [0x1800a4080]
xor edx, edx
mov r8, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_HeapFree
Function at 0x18004aed0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x18004b03e
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x18004af0d
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x18004b003
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x18004b021
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x18004af6b
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x18004afad
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x18004afb1
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x18004afb5
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x18004afdf
lea rax, [rbp - 8]
jmp 0x18004afc1
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x18004afe5
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.18001c870
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x18004aff0
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x18004af54
mov ecx, 1
jmp 0x18004af5e
mov r8d, 0x10
mov rcx, rbx
call fcn.180021e60
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x18004af1a
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.180021e60
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x18004af1a
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.18004b060
int3
Function at 0x180051ac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x180051b33
mov rbx, r8
mov rdi, rdx
cmp r8, r14
mov r8, r14
cmovb r8, rbx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax + 0x18]
mov rcx, rax
mov eax, 1
test rcx, rcx
jne 0x180051bd8
sub r14, rdx
jb 0x180051be2
mov qword [rsi + 0x10], r14
test rdx, rdx
je 0x180051b33
cmp rdx, rbx
ja 0x180051c19
mov eax, dword [rsi + 0x18]
not eax
test dl, 1
jne 0x180051b64
mov rcx, rdi
cmp rdx, 1
jne 0x180051b87
jmp 0x180051bce
mov eax, dword [rsi + 0x1c]
cmp eax, dword [rsi + 0x18]
jne 0x180051b46
add rsi, 0x18
xor edx, edx
jmp 0x180051bd4
lea rdx, [0x180099d2b]
mov r8d, 0x10
mov cl, 0x27
call fcn.180052cc0
mov rdx, rax
mov eax, 1
jmp 0x180051bd8
lea rcx, [rdi + 1]
movzx r8d, byte [rdi]
xor r8b, al
movzx r8d, r8b
lea r9, [0x1800998c8]
shr eax, 8
xor eax, dword [r9 + r8*4]
cmp rdx, 1
je 0x180051bce
add rdi, rdx
lea r8, [0x1800998c8]
nop word cs:[rax + rax]
movzx r9d, byte [rcx]
xor r9b, al
movzx r9d, r9b
shr eax, 8
xor eax, dword [r8 + r9*4]
movzx r9d, byte [rcx + 1]
xor r9b, al
movzx r9d, r9b
shr eax, 8
xor eax, dword [r8 + r9*4]
add rcx, 2
cmp rcx, rdi
jne 0x180051ba0
add rsi, 0x18
not eax
mov dword [rsi], eax
xor eax, eax
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.number_of_read_bytes_exceeds_limit
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_std_srciomod.rs
lea rcx, [rsp + 0x28]
call fcn.1800095d0
lea r8, [0x180099d40]
mov rcx, rdx
mov rdx, rbx
call fcn.180009f70
int3

Function at 0x180052010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, rdx
mov edi, edx
mov rsi, rcx
lea r14, [rcx + 0x38]
mov rax, r8
mov qword [rsp + 0x60], r8
and al, 0x60

Function at 0x180054290
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.180054e60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.180054e60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x180054300
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1800a40f4]
mov rbx, rcx
test esi, esi
jle 0x180054430
mov rax, qword [0x1800a40f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x18005434b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1800543d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x180054330
mov rcx, rbx
call fcn.180054b70
mov rdi, rax
test rax, rax
je 0x180054452
mov rax, qword [0x1800a40f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.180054cb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1800a40f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180054437
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1800543ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1800543e0
add dword [0x1800a40f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1800a40f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800543ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.180054290
nop dword [rax]
xor esi, esi
jmp 0x180054358
mov rax, qword [0x1800a40f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.180054290
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.180054290
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1800547e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1800a4120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1800a4100]
test rbx, rbx
je 0x18005483c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x180054833
test eax, eax
jne 0x180054833
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180054818
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x180054b70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x18009ac40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x180054b90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x180054b98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x180054b90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x180054bed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x180054be4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x180054b90
add rax, 0x28
cmp rax, r9
jne 0x180054bd0
xor eax, eax
ret

Function at 0x180054bf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x18009ac40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x180054c0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x180054c18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x180054c0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x180054cb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x18009ac40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x180054ccf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x180054cd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180062760
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9d, dword [rcx + 0x60]
mov ebx, dword [rcx + 0x5c]
mov r8, rcx
test r9d, r9d
jle 0x180062828
mov r10, qword [0x18009ac00]
mov edx, dword [rcx + 0x288]
movzx r11d, bl
xor ecx, ecx
nop word [rax + rax]
mov eax, edx
add ecx, 1
shl edx, 8
shr eax, 0x18
xor eax, r11d
xor edx, dword [r10 + rax*4]
cmp ecx, r9d
jne 0x180062790
mov eax, ebx
mov dword [r8 + 0x288], edx
mov byte [r8 + rax + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
add rax, qword [r8 + 0x40]
cmp ecx, 2
je 0x180062820
cmp ecx, 3
je 0x1800627e0
cmp ecx, 1
jne 0x180062832
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
jmp 0x1800627f6
mov eax, ebx
mov byte [rcx + rax + 0x80], 1
sub r9d, 4
movsxd r9, r9d
mov byte [r8 + r9 + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
movzx ebx, byte [r8 + 0x60]
mov rcx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
lea edx, [rbx - 4]
cdqe
mov byte [rcx + rax], dl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret

Function at 0x180066320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
mov eax, ecx
mov r9, rdx
not eax
cmp r8, 3
jbe 0x1800663a1
lea rbx, [r8 - 4]
mov rcx, r9
lea r10, [0x18009adc0]
mov rdx, rbx
shr rdx, 2
lea r11, [r9 + rdx*4 + 4]
nop dword [rax + rax]
mov edx, eax
xor al, byte [rcx]
add rcx, 4
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [rcx - 3]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
mov edx, eax
xor al, byte [rcx - 2]
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [rcx - 1]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
cmp rcx, r11
jne 0x180066350
and rbx, 0xfffffffffffffffc
and r8d, 3
lea r9, [r9 + rbx + 4]
test r8, r8
je 0x1800663e7
mov ecx, eax
xor al, byte [r9]
lea rdx, [0x18009adc0]
movzx eax, al
shr ecx, 8
xor ecx, dword [rdx + rax*4]
mov eax, ecx
cmp r8, 1
je 0x1800663e7
xor al, byte [r9 + 1]
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov eax, ecx
cmp r8, 2
je 0x1800663e7
xor al, byte [r9 + 2]
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov eax, ecx
not eax
pop rbx
ret
Function at 0x1800686d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
mov r8d, 0x773
lea rdx, str.miniz.c
lea rcx, str.d__m_pPut_buf_func
call qword [sym.imp.msvcrt.dll__assert]
nop
nop
Function at 0x14185f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14185f1df
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 0x14185f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14185f06f
add dl, dl
jne 0x14185f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14185f0f6
xor eax, eax
add dl, dl
jne 0x14185f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14185f1ad
add dl, dl
jne 0x14185f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14185f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14185f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14185f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14185f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14185f07e
mov eax, 1
add dl, dl
jne 0x14185f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14185f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14185f0fb
sub eax, ebx
mov ebx, 1
jne 0x14185f14c
mov ecx, 1
add dl, dl
jne 0x14185f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14185f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14185f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14185f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14185f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14185f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14185f15d
cmp eax, 0x7d00
jae 0x14185f19b
cmp eax, 0x500
jb 0x14185f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14185f07e
cmp eax, 0x7f
ja 0x14185f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14185f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14185f1d2
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 0x14185f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x412420
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4125ab
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x005ad900]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x412485
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x412494
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4124b3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4124c3
cmp rbx, 0x1000
jae 0x41248b
jmp 0x41252d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4124d5
xor edx, edx
jmp 0x412524
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x005ad900]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4124b9
jmp 0x4124a8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x005ad900]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004bce36]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004bd2d4]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004bf78d]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS