joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b5920
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1801eef68]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea ebp, [rdx + 0x47e]
mov r14, r9
mov rdi, r8
mov ebx, edx
mov r15, rcx
cmp edx, ebp
jae 0x1800b5b77
mov rsi, qword [rsp + 0x50]
xor r12d, r12d
nop dword [rax]
cmp ebx, 0x120
ja 0x1800b5b12
je 0x1800b5b35
mov eax, ebx
sub eax, 0x86
je 0x1800b5af9
sub eax, 0x27
je 0x1800b5ac7
sub eax, 6
je 0x1800b5b51
sub eax, 0x46
je 0x1800b5b35
cmp eax, 0x23
jne 0x1800b5b3a
mov qword [rsp + 0x30], r12
lea r8d, [rax - 0x20]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800b5b47
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0x20
mov r9d, 0x20
mov qword [rsp + 0x20], rax
mov edx, 0x74004
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800b5a3d
movsxd rcx, dword [r14]
mov rax, qword [rsp + 0x78]
cqo
idiv rcx
mov dword [r15], eax
jmp 0x1800b5b3a
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 0x18
mov r9d, 0x18
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800b5a9f
mov eax, dword [rsp + 0x64]
imul eax, dword [rsp + 0x68]
movsxd rcx, dword [r14]
imul eax, dword [rsp + 0x6c]
imul rax, qword [rsp + 0x58]
cqo
idiv rcx
mov dword [r15], eax
jmp 0x1800b5b3a
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800b5b3a
movsxd rcx, dword [r14]
mov rax, qword [rsp + 0x50]
cqo
idiv rcx
mov dword [r15], eax
jmp 0x1800b5b3a
test rdi, rdi
je 0x1800b5b5a
mov rcx, qword [rdi + 0x260]
cmp rcx, 0xffffffffffffffff
je 0x1800b5aee
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x260], 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800b5b3a
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800b5b6f
cmp dword [rcx], 0x52530a0a
jne 0x1800b5b6f
mov rax, qword [r14]
mov qword [rcx + 8], rax
jmp 0x1800b5b3a
mov eax, ebx
sub eax, 0x16c
je 0x1800b5b77
sub eax, 0x23
je 0x1800b5b2c
sub eax, 4
je 0x1800b5b77
cmp eax, 0x6f
je 0x1800b5b77
jmp 0x1800b5b3a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], r12d
add ebx, 0x73
cmp ebx, ebp
jb 0x1800b5970
jmp 0x1800b5b77
mov dword [rsp + 0x40], 9
jmp 0x1800b5b77
mov rax, qword [rdi + 0x110]
jmp 0x1800b5b7c
mov ecx, 9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_errno]
mov dword [rsp + 0x40], 0xffffffff
jmp 0x1800b5b77
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800d7250
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800b5e80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea eax, [rdx*2]
mov rbx, r8
add eax, edx
mov r13d, edx
shl eax, 6
mov rdi, rcx
mov dword [rsp + 0x50], eax
mov r12d, edx
cmp edx, eax
ja 0x1800b60e0
xor esi, esi
mov eax, r12d
sub eax, 0x85
je 0x1800b5f12
sub eax, 0x22
je 0x1800b5eea
sub eax, 0x18
je 0x1800b60b3
cmp eax, 0x1f38
je 0x1800b60e0
jmp 0x1800b6095
mov rax, qword [rdi]
test rax, rax
je 0x1800b60d8
cmp dword [rax], 0x52530a0a
jne 0x1800b60d8
movzx eax, byte [rax + 0x5f]
mov byte [rsp + 0xf8], al
jmp 0x1800b6095
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x28], 0x9f
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call fcn.1800599c0
movaps xmm0, xmmword [rsp + 0x90]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
movups xmmword [rbx], xmm0
lea r8d, [r9 + 0x11]
mov qword [rsp + 0x20], rsi
movdqa xmmword [rsp + 0xa0], xmm0
call fcn.180058970
cmp qword [rsp + 0x60], 0
jne 0x1800b5fa2
lea r9, str.WinInit.bak
xor r8d, r8d
mov edx, 0xc1
xor ecx, ecx
call fcn.1800b9450
jmp 0x1800b6095
movups xmm1, xmmword [rbx]
mov ebx, 0x101
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x70], xmm1
mov esi, dword [rsp + 0x78]
mov r14, qword [rsp + 0x70]
movdqa xmmword [rsp + 0x80], xmm0
mov ebp, dword [rsp + 0x88]
mov r15, qword [rsp + 0x80]
nop word [rax + rax]
mov eax, ebx
sub eax, 0xe5
je 0x1800b6070
sub eax, 0x1c
je 0x1800b600a
sub eax, 0x2e68
je 0x1800b608b
cmp eax, 0x5cc
je 0x1800b608b
jmp 0x1800b6079
mov edx, esi
lea rcx, str._Z4haddDv4_sS_
call fcn.1800d6920
lea r9, [rsp + 0x108]
mov dword [rsp + 0x108], esi
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov edx, 0x127
xor ecx, ecx
call fcn.1800445a0
mov edx, ebp
lea rcx, str.GstParseContext
call fcn.1800d6920
xor r9d, r9d
mov dword [rsp + 0x108], ebp
lea rax, [rsp + 0x108]
mov r8, r15
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x2e]
call fcn.1800c83d0
jmp 0x1800b6079
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add ebx, 0x3434
cmp ebx, 0xd0d0
jbe 0x1800b5fe0
mov rbx, qword [rsp + 0x100]
xor esi, esi
lea eax, [r13*2]
add eax, r13d
shl eax, 4
add r12d, eax
cmp r12d, dword [rsp + 0x50]
jbe 0x1800b5ec2
jmp 0x1800b60e0
mov rdx, qword [rdi]
test rdx, rdx
je 0x1800b60d1
cmp dword [rdx], 0x52530a0a
jne 0x1800b60d1
mov rcx, qword [rbx]
mov eax, esi
mov qword [rdx + 0xc8], rcx
jmp 0x1800b60e7
mov eax, 2
jmp 0x1800b60e7
mov byte [rsp + 0xf8], 0
mov eax, dword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b83c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
lea esi, [rcx - 3]
mov rdi, r8
mov r14, rdx
mov ebx, ecx
cmp ecx, esi
jbe 0x1800b843a
xor ebp, ebp
mov eax, ebx
sub eax, 0x6a
je 0x1800b845f
sub eax, 2
je 0x1800b8458
cmp eax, 1
jne 0x1800b8434
mov qword [rsp + 0x28], rbp
lea r8, [0x18000edb0]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi], rax
test rax, rax
je 0x1800b8451
mov r8d, PathMakeUniqueName
mov dword [rsp + 0x50], 1
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.180049580
dec ebx
cmp ebx, esi
ja 0x1800b83e3
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov byte [rsp + 0x50], bpl
jmp 0x1800b843a
mov byte [rsp + 0x50], 1
jmp 0x1800b843a
mov rdx, qword [rdi]
test rdx, rdx
je 0x1800b847d
cmp dword [rdx], 0x52530a0a
jne 0x1800b847d
mov rcx, qword [r14]
mov eax, ebp
mov qword [rdx + 0x158], rcx
jmp 0x1800b843e
mov eax, 2
jmp 0x1800b843e
Function at 0x1800bfab0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
imul ebp, r9d, 0x467
mov esi, r9d
mov r15, rdx
mov edi, r9d
cmp r9d, ebp
ja 0x1800bfb52
mov r12, qword [rsp + 0x98]
xor ebx, ebx
mov r14, qword [rsp + 0x90]
mov r13, qword [rsp + 0x80]
nop dword [rax + rax]
cmp edi, 0xe7
ja 0x1800bfb73
je 0x1800bfb3e
cmp edi, 9
je 0x1800bfbb6
cmp edi, 0x2d
je 0x1800bfbad
cmp edi, 0xdf
jne 0x1800bfb9b
mov r8d, dword [r13]
mov rdx, qword [r12]
mov rcx, qword [r15]
shl r8d, 2
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x78], ebx
jmp 0x1800bfb9b
mov rax, qword [r14]
test rax, rax
je 0x1800bfb4e
cmp dword [rax], 0x52530a0a
je 0x1800bfb9b
mov byte [rsp + 0x78], bl
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp edi, 0x8d1e
je 0x1800bfb52
cmp edi, 0x922e
je 0x1800bfb8d
cmp edi, 0x12375
je 0x1800bfb52
jmp 0x1800bfb9b
mov rax, qword [r14]
movzx ecx, byte [rax + 0x8c]
mov byte [rsp + 0x78], cl
imul eax, esi, 0xa1
add edi, eax
cmp edi, ebp
jbe 0x1800bfb00
jmp 0x1800bfb52
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rsp + 0x88]
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov ecx, 0xaa
call fcn.180038b60
test eax, eax
jne 0x1800bfb56
mov eax, ebx
jmp 0x1800bfb56
Function at 0x1800c0580
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
imul r15d, ecx, 0x539
mov rdi, r9
mov r12, r8
mov rsi, rdx
mov ebp, ecx
mov ebx, ecx
cmp ecx, r15d
ja 0x1800c06cc
mov r14, qword [rsp + 0x38]
xor r13d, r13d
cmp ebx, 0x102
ja 0x1800c067e
je 0x1800c0655
mov eax, ebx
sub eax, 0x66
je 0x1800c0645
sub eax, 0x6d
je 0x1800c0619
cmp eax, 0xe
jne 0x1800c06bb
mov eax, dword [rsi]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x70]
mov rax, qword [rdi]
mov r8d, 0x38
mov qword [rsp + 0x38], rax
call fcn.1800c3d00
test eax, eax
js 0x1800c068e
mov eax, 1
jmp 0x1800c06d0
mov r8d, dword [rdi + 0x48]
mov rdx, qword [r12]
mov ecx, dword [rdi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
mov eax, dword [rdi + 0x48]
cmp rcx, rax
je 0x1800c06bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
jmp 0x1800c06d0
mov rax, qword [rdi]
mov r14, qword [rax + 0x50]
mov rax, qword [rax + 0x20]
sub qword [rsi], rax
jmp 0x1800c06bb
mov rax, qword [rdi]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0x9e
call fcn.1800c7710
jmp 0x1800c06bb
cmp ebx, 0x4c80
je 0x1800c0693
cmp ebx, 0x9e40
jne 0x1800c06bb
mov eax, r13d
jmp 0x1800c06d0
mov eax, dword [r12]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
mov rax, qword [rsi]
mov r9, r14
mov ecx, 0x88
mov qword [rsp + 0x38], rax
call fcn.1800c8e00
imul eax, ebp, 0xbf
add ebx, eax
cmp ebx, r15d
jbe 0x1800c05c1
mov eax, dword [rsp + 0x70]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800c4820
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [rsp + 0x30]
mov r14, r9
imul esi, r8d, 0xd0
mov edi, r8d
mov rbp, rdx
mov ebx, r8d
cmp r8d, esi
ja 0x1800c4935
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x78], r15
mov r15, qword [rsp + 0x90]
mov ecx, ebx
sub ecx, 0xe5
je 0x1800c4910
sub ecx, 0x1c
je 0x1800c4891
sub ecx, 0x2e68
je 0x1800c492b
cmp ecx, 0x5cc
je 0x1800c492b
jmp 0x1800c491e
mov edx, dword [r14 + 8]
lea rcx, str._Z4haddDv4_sS_
call fcn.1800d6920
mov eax, dword [r14 + 8]
lea r9, [rsp + 0x80]
mov dword [rsp + 0x80], eax
xor r8d, r8d
mov rax, qword [r14]
mov edx, 0x127
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1800445a0
mov edx, dword [r15 + 8]
lea rcx, str.GstParseContext
call fcn.1800d6920
mov eax, dword [r15 + 8]
xor r9d, r9d
mov r8, qword [r15]
xor ecx, ecx
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x2e]
call fcn.1800c83d0
mov dword [rsp + 0x30], r12d
mov rax, qword [rsp + 0x30]
jmp 0x1800c491e
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x30], rax
imul ecx, edi, 0x34
add ebx, ecx
cmp ebx, esi
jbe 0x1800c4861
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800d6760
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1801eef68]
xor rax, rsp
mov qword [rsp + 0x68], rax
test edx, edx
je 0x1800d6792
sub edx, 1
je 0x1800d678b
sub edx, 1
je 0x1800d6792
cmp edx, 1
je 0x1800d6792
jmp 0x1800d680f
mov qword [0x1801eee70], rcx
mov eax, 0x3a
mov dword [rsp + 0x38], 0x65004b
mov word [rsp + 0x3c], ax
lea r9, [rsp + 0x20]
mov eax, 0x4e
mov dword [rsp + 0x3e], 0x79005c
mov word [rsp + 0x42], ax
lea r8, [rsp + 0x28]
xor eax, eax
mov dword [rsp + 0x44], 0x6d0061
lea rdx, [rsp + 0x30]
mov word [rsp + 0x60], ax
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x48], 0x4c0065
mov dword [rsp + 0x4c], 0x760069
mov dword [rsp + 0x50], 0x570065
mov dword [rsp + 0x54], 0x720061
mov dword [rsp + 0x58], 0x69006e
mov dword [rsp + 0x5c], 0x67006e
call qword [sym.imp.SHELL32.dll_SHGetDiskFreeSpaceExW]
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800d7250
add rsp, 0x78
ret
Function at 0x140f77a7c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f77a86
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f77aaf
pop rbp
sub rbp, 0x33
sub rbp, 0xf77a7c
sub rsp, 0x20
jmp 0x140f77ace
mov rax, 0xf77a7c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff35b64fa
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f77aed
jmp 0x140f77b04
mov dl, 0x73
adc esi, dword [rcx + 0x73]
invalid

Function at 0x140aca058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140aca1df
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 0x140aca089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aca06f
add dl, dl
jne 0x140aca096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aca0f6
xor eax, eax
add dl, dl
jne 0x140aca0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aca1ad
add dl, dl
jne 0x140aca0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aca0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aca0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aca0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140aca0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140aca07e
mov eax, 1
add dl, dl
jne 0x140aca106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aca113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aca0fb
sub eax, ebx
mov ebx, 1
jne 0x140aca14c
mov ecx, 1
add dl, dl
jne 0x140aca12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aca13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aca123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aca07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140aca168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aca175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aca15d
cmp eax, 0x7d00
jae 0x140aca19b
cmp eax, 0x500
jb 0x140aca196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aca07e
cmp eax, 0x7f
ja 0x140aca19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aca07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140aca1d2
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 0x140aca07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140d51058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d511df
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 0x140d51089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d5106f
add dl, dl
jne 0x140d51096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d510f6
xor eax, eax
add dl, dl
jne 0x140d510a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d511ad
add dl, dl
jne 0x140d510b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d510c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d510d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d510dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d510ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d5107e
mov eax, 1
add dl, dl
jne 0x140d51106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d51113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d510fb
sub eax, ebx
mov ebx, 1
jne 0x140d5114c
mov ecx, 1
add dl, dl
jne 0x140d5112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d5113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d51123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d51168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d51175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d5115d
cmp eax, 0x7d00
jae 0x140d5119b
cmp eax, 0x500
jb 0x140d51196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5107e
cmp eax, 0x7f
ja 0x140d5119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d511d2
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 0x140d5107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000871c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x140008743
and qword [r8], 0
call fcn.140008858
mov rbx, rax
test rax, rax
je 0x14000883c
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008833
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140008833
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008833
mov rax, qword [0x140040ea0]
mov rbp, rdi
test rax, rax
je 0x1400087ab
inc dword [rax + 0x3c8]
mov rdx, qword [0x140040eb0]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140008833
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x14000880a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140040ea0]
test rax, rax
je 0x1400087f8
dec dword [rax + 0x3c8]
mov rdx, qword [0x140040eb0]
mov rcx, rdi
call qword [0x14003f008]
jmp 0x14000883c
test r15d, r15d
jle 0x14000881d
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000882e
mov qword [rsi], rbp
mov rax, rdi
jmp 0x14000883e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x140040ed4], 0
lea rsi, [0x140040ed0]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140008af3
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140008ac1
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140008ab9
not ebx
mov edx, ebx
test edi, edi
jle 0x140008b15
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x140008afb
jmp 0x140008b4f
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x140008b4f
mov r9b, 0x23
cmp r8b, r9b
jne 0x140008b34
cmp byte [r10], r9b
jne 0x140008b34
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140008b23
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000db28
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140040ea0]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000db91
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000db9c
lea rdx, [0x140033b9c]
mov rcx, rbx
mov rdi, rax
call fcn.140008858
mov rbx, rax
test rax, rax
je 0x14000db91
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c8d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x14001cac9
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, 0x100
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001c97a
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
jmp 0x14001c99c
movsxd rdx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
xorps xmm6, xmmword [0x140033d20]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov al, byte [rbp + 0x20]
xor r15d, r15d
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], r15d
jle 0x14001cabc
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001c9ea
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x14001c9ee
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.14001c044
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.14001c47c
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x20]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x1c]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x14001c9d9
mov r11d, 0x100
add rbx, 0x28
sub rdi, r8
jne 0x14001c928
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret