joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015c90
Capabilities:
Hide thread from debugger

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtSetInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180015cd6
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
mov rcx, rbx
call rax
test eax, eax
jne 0x180015cd2
mov al, 1
jmp 0x180015cd6
jmp 0x180015cd6
add rsp, 0x20
pop rbx
ret

Function at 0x180015e20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
je 0x180015e47
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.180015c90
lea rdx, str..utf8
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
xor eax, eax
lea r8, [0x180015ce0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x18001b2a0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r12, edx
mov r15d, r9d
mov rbp, r8
mov r14, rcx
test rcx, rcx
je 0x18001b400
test r8, r8
je 0x18001b400
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x18001b400
mov qword [rsp + 0x40], rbx
mov ecx, 0x100
mov qword [rsp + 0x48], rsi
call fcn.180052c00
xor ecx, ecx
mov r10, rax
mov edx, ecx
mov r8, rax
nop
mov byte [r8], dl
lea r8, [r8 + 1]
inc edx
cmp edx, 0x100
jl 0x18001b300
mov r9d, ecx
mov r11d, ecx
mov rbx, r10
nop word [rax + rax]
movzx esi, byte [rbx]
mov eax, r11d
cdq
idiv r15d
movsxd rax, edx
movzx edx, byte [rax + rbp]
add r9d, edx
add r9d, esi
and r9d, 0x800000ff
jge 0x18001b34d
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
inc r11d
movzx eax, byte [rdx + r10]
mov byte [rbx], al
inc rbx
mov byte [rdx + r10], sil
cmp r11d, 0x100
jl 0x18001b320
mov rsi, qword [rsp + 0x48]
mov r8d, ecx
mov rbx, r12
test r12d, r12d
jle 0x18001b3e4
sub r14, rdi
nop dword [rax]
inc ecx
and ecx, 0x800000ff
jge 0x18001b394
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r9, ecx
movzx r11d, byte [r9 + r10]
add r8d, r11d
and r8d, 0x800000ff
jge 0x18001b3b5
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rdx, r8d
movzx eax, byte [rdx + r10]
mov byte [r9 + r10], al
mov byte [rdx + r10], r11b
movzx eax, byte [r9 + r10]
add eax, r11d
movzx edx, al
movzx eax, byte [rdx + r10]
xor al, byte [r14 + rdi]
mov byte [rdi], al
inc rdi
sub rbx, 1
jne 0x18001b380
mov rax, qword [rsp + 0x68]
mov rcx, r10
mov dword [rax], r12d
call fcn.180052afc
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
jmp 0x18001b402
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x18001e4a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18001e4fd
lea rbx, [0x18005a020]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18001e4e4
cmp r10, 2
jb 0x18001e4e4
cmp byte [r9], r8b
jne 0x18001e4e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18001e4c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001e53f
lea rbx, [0x18005a020]
cmp r8b, 0x23
jne 0x18001e523
cmp byte [r9], r8b
jne 0x18001e523
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18001e510
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18001e6a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18001e6ba
mov qword [r8], 0
lea rdx, [0x18005f9f0]
call fcn.18001e550
mov rbx, rax
test rax, rax
jne 0x18001e6da
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18001e7c5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001e7c5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18001e7c5
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001e7c5
cmp rdi, 0xffffffffffffffff
je 0x18001e7c5
mov rax, qword [0x18006a9a8]
test rax, rax
je 0x18001e756
inc dword [rax + 0xf4]
mov rdx, qword [0x18006a9a0]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x18001e7c5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18001e7b2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18006a9a8]
test rax, rax
je 0x18001e7a1
dec dword [rax + 0xf4]
mov rdx, qword [0x18006a9a0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x18001e7ce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18001e7c0
mov qword [r14], rdi
mov rax, rsi
jmp 0x18001e7d0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180020360
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r10, [0x18005a020]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dl
movzx r8d, bl
shr ebx, 8
xor r8, rax
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r10 + r8*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x1800203eb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180032580
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18002bf80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x18006a9a8]
mov edi, ecx
cmp byte [rbx + 0x4a55], 0
jne 0x18002bfd2
cmp byte [rbx + 0x4a56], 0
jne 0x18002bfd2
movsx r9d, word [rbx + 0x5b7a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.18001e390
test dil, 1
je 0x18002c0ff
jmp 0x18002c05b
movss xmm1, dword [rbx + 0x389c]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b7a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180060870]
mulss xmm1, dword [0x18006085c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47c0], rax
mov dword [rbx + 0x47ac], 1
movss dword [rbx + 0x47b8], xmm0
movss dword [rbx + 0x47bc], xmm1
movss xmm0, dword [rbx + 0x38f8]
mulss xmm0, dword [0x1800607dc]
or dword [rbx + 0x47a8], 0x41
movss dword [rbx + 0x4808], xmm0
call fcn.18001e390
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x18002c0b0
lea r11, [0x18005a020]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x18002c093
cmp byte [r8], r9b
jne 0x18002c093
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18002c080
not ecx
call fcn.180023a50
test rax, rax
je 0x18002c0ff
cmp byte [rax + 0xb6], 0
je 0x18002c0ff
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5b7a]
movsx r9d, word [rbx + 0x5b7a]
call fcn.18001e390
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1800260a0
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180030e80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c60], 0
lea rbx, [rcx + 0x5c68]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180030f27
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x180030eda
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180033150
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18001eb20
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c60]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c70]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18006a991]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180030f2f
mov rcx, rbx
call fcn.18001eb20
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800313d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18006a9a8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180031433
mov qword [rsp], rbx
lea rbx, [0x18005a020]
nop dword [rax]
cmp r9b, 0x23
jne 0x180031413
cmp byte [r8], r9b
jne 0x180031413
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180031400
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180031467
mov r10, qword [r10 + 0x5be0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18003146e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180031454
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret

Function at 0x1800316f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18006a9a8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5bc4], ecx
test rbx, rbx
je 0x18003175f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180031770
lea rdx, [0x18005f9f4]
mov rcx, rbx
mov rdi, rax
call fcn.18001e550
mov rbx, rax
test rax, rax
je 0x18003175a
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 rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180043c70
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x18006a9a8]
mov edx, 0x210
call fcn.180028e10
cmp byte [rax], 0
je 0x180043ce6
xor edx, edx
mov ecx, 0x210
call fcn.18002b340
test al, al
je 0x180043ce6
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180043ce6
mov rbx, qword [0x18006a9a8]
cmp byte [rbx + 0x37b9], 0
je 0x180043cd2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.18001de40
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov rcx, qword [0x18006a9a8]
mov edx, 0x214
call fcn.180028e10
cmp byte [rax], 0
je 0x180043d56
xor edx, edx
mov ecx, 0x214
call fcn.18002b340
test al, al
je 0x180043d56
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180043d56
mov rbx, qword [0x18006a9a8]
cmp byte [rbx + 0x37b9], 0
je 0x180043d42
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.18001de40
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov rcx, qword [0x18006a9a8]
mov edx, 0x212
call fcn.180028e10
cmp byte [rax], 0
je 0x180043dc6
xor edx, edx
mov ecx, 0x212
call fcn.18002b340
test al, al
je 0x180043dc6
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180043dc6
mov rbx, qword [0x18006a9a8]
cmp byte [rbx + 0x37b9], 0
je 0x180043db2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.18001de40
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov rcx, qword [0x18006a9a8]
mov edx, 0x216
call fcn.180028e10
cmp byte [rax], 0
je 0x180043e36
xor edx, edx
mov ecx, 0x216
call fcn.18002b340
test al, al
je 0x180043e36
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180043e36
mov rbx, qword [0x18006a9a8]
cmp byte [rbx + 0x37b9], 0
je 0x180043e22
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.18001de40
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x180049ae0
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x60], 8
mov r14, rdx
mov dword [rsp + 0x50], ebx
xor edx, edx
mov dword [rsp + 0x68], ebx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, str.HTTPREAD
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x28], rbx
lea rdx, str.http:__ossweb_img.qq.com_images_lol_img_item_2056.png
mov rcx, rax
mov dword [rsp + 0x20], 0x80000002
xor r9d, r9d
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r8, [rsp + 0x50]
mov edx, 0x20000005
mov rdi, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180049ba3
mov ecx, eax
mov qword [r14], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x180049bb9
xor r8d, r8d
lea rdx, str.http:__ossweb_img.qq.com_images_lol_img_item_2056.png
lea rcx, str._Error_Http:_s__ReadFileLen:_d_n
call fcn.18001c850
test rdi, rdi
je 0x180049bc7
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rsi, rsi
je 0x180049bd5
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1800521e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x90
mov r11, rdx
mov r9, rcx
lea r10, [rcx + 0x4098]
cmp byte [rcx + 0x1348], 0
jne 0x180052257
mov word [rcx + 0x1349], 1
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0xa0], rax
mov byte [rcx + 0x1334], al
movzx eax, byte [rsp + 0xa1]
mov byte [rcx + 0x1335], al
movzx eax, byte [rsp + 0xa2]
mov byte [rcx + 0x1336], al
movzx eax, byte [rsp + 0xa3]
mov byte [rcx + 0x1337], al
mov byte [rcx + 0x134b], 0
mov byte [rcx + 0x1348], 1
mov dword [rsp + 0xb0], r8d
mov eax, dword [rcx + 0x1334]
mov dword [rsp + 0xa0], eax
movzx eax, byte [rcx + 0x1349]
test al, al
je 0x18005229a
xor ecx, ecx
mov edx, eax
nop dword [rax + rax]
mov eax, dword [rsp + rcx + 0xa0]
not eax
xor dword [rsp + rcx + 0xb0], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180052280
movzx eax, byte [r9 + 0x134a]
mov ecx, 4
sub rcx, rax
cmp rcx, 4
jae 0x1800522ca
movzx eax, byte [rsp + rcx + 0xa0]
not al
xor byte [rsp + rcx + 0xb0], al
inc rcx
cmp rcx, 4
jb 0x1800522b0
movzx eax, byte [r9 + 0x134b]
inc al
and eax, 3
mov ecx, eax
mov eax, dword [rsp + 0xb0]
mov dword [r9 + rcx*4 + 0x1338], eax
mov byte [r9 + 0x134b], cl
mov dword [r10 + 0x38], r8d
mov r9, qword [r10 + 0x18]
movabs rdx, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop dword [rax + rax]
movsx rcx, byte [r9]
lea r9, [r9 + 1]
xor rdx, rcx
imul rdx, rbx
test cl, cl
jne 0x180052310
movabs rax, 0x2374c594f5e76f06
cmp rdx, rax
jne 0x18005234b
lea eax, [r8 - 0x1d]
cmp eax, 7
ja 0x1800523c2
mov byte [r10 + 0x9c], cl
jmp 0x1800523f7
movabs rax, 0xf9bdf861cccd5fd1
cmp rdx, rax
jne 0x180052370
lea eax, [r8 - 0x1a]
cmp eax, 6
ja 0x1800523c2
mov byte [r10 + 0x9c], 0
jmp 0x1800523f7
movabs rax, 0xb4d052affec8dc8e
cmp rdx, rax
jne 0x180052385
cmp r8d, 0x10
jmp 0x180052398
movabs rax, 0x311a797a90e58f21
cmp rdx, rax
jne 0x1800523a4
cmp r8d, 6
jne 0x1800523c2
mov byte [r10 + 0x9c], 0
jmp 0x1800523f7
movabs rcx, 0x2f2959b508f215d2
movabs rax, 0xecc3c7c77aebb7ea
cmp rdx, rcx
je 0x1800523e5
cmp rdx, rax
je 0x1800523e5
cmp byte [r10 + 0x9c], 0xff
je 0x1800523f7
movabs rax, 0xeb5bc0df5355fba6
cmp rdx, rax
je 0x1800523f7
mov byte [r10 + 0x9c], 0xff
jmp 0x1800523f7
cmp r8d, 7
jne 0x180052412
cmp rdx, rcx
je 0x18005241d
mov rax, qword [r10]
mov qword [r10 + 8], rax
mov dl, 1
mov rcx, r10
movabs rax, 0x1401b3830
call rax
nop
add rsp, 0x90
pop rbx
ret
cmp r8d, 6
jne 0x1800523f0
cmp rdx, rax
jne 0x1800523f0
mov rax, qword [r10]
mov qword [r10 + 8], rax
mov dword [rsp + 0x80], 1
mov byte [rsp + 0x78], 0
mov dword [rsp + 0x70], 0
lea rax, [0x1800603d8]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x50], 0xff
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x40], 1
mov byte [rsp + 0x38], 0
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov rdx, r11
mov rcx, r10
movabs rax, 0x1401ca3f0
call rax
nop
add rsp, 0x90
pop rbx
ret
Function at 0x180052520
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 8
movzx eax, byte [rcx + 0x2b]
mov rdx, rcx
xor r10d, r10d
mov dword [r11 + 8], r10d
mov rax, qword [rcx + rax*8 + 8]
movabs rcx, 0x1416121d0
mov qword [r11 + 0x10], rax
movdqu xmm3, xmmword [rcx]
movzx ecx, byte [rdx + 0x29]
test cl, cl
je 0x18005266f
lea r8, [r11 + 0x10]
lea r9, [r11 + 8]
sub r8, rdx
sub r9, rdx
test cl, 0xf8
jbe 0x18005262d
lea rax, [r11 + 0x10]
mov qword [r11 + 0x18], rbx
sub r8, rax
mov qword [rsp], rdi
lea rax, [r11 + 0x10]
sub r9, rax
lea rcx, [r11 + 0x10]
sub rcx, 0x20
lea rax, [rsp + 0x18]
lea rbx, [r8 + rdx]
lea rdi, [r8 + rdx]
mov r8, rdx
lea r11, [r9 + rdx]
sub r8, rax
movdqu xmm0, xmmword [rbx + rcx + 0x20]
add r10, 8
movdqu xmm1, xmmword [r8 + rcx + 0x20]
lea rcx, [rcx + 0x40]
andnps xmm1, xmm3
xorps xmm1, xmm0
movups xmmword [rdi + rcx - 0x20], xmm1
movdqu xmm0, xmmword [r11 + rcx - 0x20]
movdqu xmm1, xmmword [r8 + rcx - 0x10]
andnps xmm1, xmm3
xorps xmm1, xmm0
movups xmmword [r11 + rcx - 0x20], xmm1
movdqu xmm0, xmmword [rcx]
movdqu xmm2, xmmword [r8 + rcx]
andnps xmm2, xmm3
xorps xmm2, xmm0
movups xmmword [rcx], xmm2
movdqu xmm1, xmmword [r8 + rcx + 0x10]
movdqu xmm0, xmmword [r11 + rcx]
andnps xmm1, xmm3
xorps xmm1, xmm0
movups xmmword [r11 + rcx], xmm1
movzx r9d, byte [rdx + 0x29]
mov eax, r9d
and eax, 0xf8
cmp r10, rax
jb 0x1800525a4
mov rax, qword [rsp + 0x18]
movzx ecx, r9b
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x20]
movzx r8d, cl
cmp r10, r8
jae 0x1800526b8
test cl, cl
je 0x1800526b8
lea rcx, [rsp + 0x18]
sub rdx, rcx
lea rax, [rsp + 0x18]
nop
mov rcx, qword [rdx + rax]
lea rax, [rax + 8]
not rcx
xor qword [rax - 8], rcx
sub r8, 1
jne 0x180052650
mov rax, qword [rsp + 0x18]
add rsp, 8
ret
movzx r8d, byte [rdx + 0x2a]
test r8b, r8b
je 0x1800526b8
mov ecx, 8
sub cl, r8b
cmp cl, 8
jae 0x1800526b8
movzx eax, cl
lea rcx, [rsp + 0x18]
add rcx, rax
lea rax, [rsp + 0x18]
sub rdx, rax
nop dword [rax]
movzx eax, byte [rdx + rcx]
lea rcx, [rcx + 1]
not al
xor byte [rcx - 1], al
sub r8, 1
jne 0x1800526a0
mov rax, qword [rsp + 0x18]
add rsp, 8
ret
Function at 0x1403a6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1403a61df
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 0x1403a6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1403a606f
add dl, dl
jne 0x1403a6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1403a60f6
xor eax, eax
add dl, dl
jne 0x1403a60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1403a61ad
add dl, dl
jne 0x1403a60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1403a60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1403a60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1403a60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1403a60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1403a607e
mov eax, 1
add dl, dl
jne 0x1403a6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1403a6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1403a60fb
sub eax, ebx
mov ebx, 1
jne 0x1403a614c
mov ecx, 1
add dl, dl
jne 0x1403a612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1403a613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1403a6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403a607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1403a6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1403a6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1403a615d
cmp eax, 0x7d00
jae 0x1403a619b
cmp eax, 0x500
jb 0x1403a6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403a607e
cmp eax, 0x7f
ja 0x1403a619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1403a607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1403a61d2
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 0x1403a607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20