joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140160350
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401c1ac0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1401603f9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1401603be
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1401603b0
test rax, rax
je 0x1401d29e0
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140160398
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140160428
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140160440
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1401604e1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1401604a6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140160498
test rax, rax
je 0x1401d29e6
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140160480
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401b6be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1402094c9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1401b6c68
lea rdx, [0x1401e4b9a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401b6cd0
mov rbx, qword [0x140209388]
jmp 0x1401b6c25
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401b6c20
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401a5340
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140209388], rax
mov ebx, dword [rax]
mov qword [0x140209388], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140209388], rdx
call fcn.1401b5d10
cmp eax, ebx
jne 0x1401b6d57
mov byte [0x1402094c9], 1
jmp 0x1401b6bfc
cmp byte [0x1402094c8], 0
jne 0x1401b6c13
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x140209e08], rax
call rbx
mov qword [0x140209e00], rax
call rbx
mov qword [0x140209df8], rax
call rbx
mov qword [0x140209df0], rax
call rbx
mov qword [0x140209de8], rax
call rbx
mov qword [0x140209de0], rax
call rbx
mov qword [0x140209dd8], rax
call rbx
mov byte [0x1402094c8], 1
mov qword [0x140209dd0], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x140209380], rax
jmp 0x1401b6c13
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1401c07a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401d1f30
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401d1f30
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401c1472
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14020a268]
test eax, eax
je 0x1401c150a
lea rax, [0x14020a240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14020a270]
mov qword [rbp - 8], rax
jmp 0x1401c14ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401c14e2
cmp qword [rbp - 0x10], 0
je 0x1401c14e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401c14a8
lea rax, [0x14020a240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401c150b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401c1610
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401c1638
mov eax, 0
jmp 0x1401c1686
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401c1661
mov eax, 0
jmp 0x1401c1686
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401c1681
mov eax, 0
jmp 0x1401c1686
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401c168c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401c170a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401c1701
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401c1701
mov rax, qword [rbp - 8]
jmp 0x1401c171f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401c16d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140104a47
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp dword [rsp + 0x88], 1
je 0x140104a6d
mov eax, 1
jmp 0x140104b73
lea rax, [0x14016f2c8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140104947
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rax, rcx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x44]
mov eax, eax
lea r9, [rsp + 0x3c]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x44]
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
call fcn.1401049d7
mov eax, 1
add rsp, 0x78
ret

Function at 0x140107bd0
Capabilities:
Hash data using sha1

Disassembly:
push rsi
push rbx
sub rsp, 0xe8
lea rax, [0x140107a20]
lea rsi, [rsp + 0x20]
mov rbx, rcx
mov dword [rsp + 0xc8], 0x67452301
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xcc], 0xefcdab89
mov rcx, rsi
mov dword [rsp + 0xd0], 0x98badcfe
mov dword [rsp + 0xd4], 0x10325476
mov dword [rsp + 0xd8], 0xc3d2e1f0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0x40
call fcn.140133710
mov rcx, rsi
call fcn.140107a60
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x10], eax
add rsp, 0xe8
pop rbx
pop rsi
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov edx, 0x1cc
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x1cc
lea rdx, [0x140003080]
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x1cc
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001098
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400010c0
add rsp, 0x40
pop rbx
ret

Function at 0x140001988
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019d4
xor al, al
add rsp, 0x28
ret
Function at 0x1800028a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
add rcx, 2
mov ebp, 4
nop dword [rax]
movzx esi, byte [rcx - 2]
movzx r9d, byte [rcx - 1]
movzx edi, byte [rcx + 1]
movzx r11d, byte [rcx]
movzx r8d, sil
movzx r10d, dil
xor r8b, r9b
xor r10b, r11b
mov al, 0x1b
movzx edx, r8b
add r8b, r8b
movzx ebx, r10b
shr dl, 7
xor bl, sil
lea rcx, [rcx + 4]
xor bl, r9b
imul dl
xor al, r8b
movzx r8d, r9b
xor al, sil
xor r8b, r11b
xor sil, dil
xor al, bl
movzx edx, r8b
add r8b, r8b
mov byte [rcx - 6], al
shr dl, 7
mov al, 0x1b
imul dl
xor al, r8b
movzx edx, r10b
xor al, r9b
shr dl, 7
add r10b, r10b
xor al, bl
mov byte [rcx - 5], al
mov al, 0x1b
imul dl
xor al, r10b
movzx edx, sil
xor al, r11b
shr dl, 7
add sil, sil
xor al, bl
mov byte [rcx - 4], al
mov al, 0x1b
imul dl
xor al, sil
xor al, dil
xor al, bl
mov byte [rcx - 3], al
dec rbp
jne 0x1800028c0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x180002dd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rbp, rdx
mov rbx, rcx
mov r8, rcx
mov r9d, 4
sub rdi, rcx
nop
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rdi + r8]
inc r8
xor byte [r8 - 1], al
dec rcx
jne 0x180002e10
dec r9
jne 0x180002e00
mov sil, 1
lea r14, str.cw
mov r8, rbx
mov r9d, 4
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r14]
mov byte [rcx - 4], al
dec rdx
jne 0x180002e50
inc r8
dec r9
jne 0x180002e40
movzx eax, byte [rbx + 5]
movzx ecx, byte [rbx + 1]
mov byte [rbx + 1], al
movzx eax, byte [rbx + 9]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rbx + 0xd], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 7], cl
mov byte [rbx + 0xb], al
cmp sil, 0xa
je 0x180002f1d
mov rcx, rbx
call fcn.1800028a0
movzx r8d, sil
mov rax, rbx
shl r8, 4
mov r9d, 4
sub r8, rbx
add r8, rbp
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
xor byte [rax - 1], cl
dec rdx
jne 0x180002f00
dec r9
jne 0x180002ef0
inc sil
jmp 0x180002e30
mov edx, 4
nop dword [rax]
nop word [rax + rax]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rdi + rbx + 0xa0]
inc rbx
xor byte [rbx - 1], al
dec rcx
jne 0x180002f40
dec rdx
jne 0x180002f30
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180002f80
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, rdx
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov r11d, 4
sub r10, rcx
nop dword [rax]
mov r9d, 4
nop word [rax + rax]
movzx eax, byte [r10 + r8 + 0xa0]
inc r8
xor byte [r8 - 1], al
dec r9
jne 0x180002fc0
dec r11
jne 0x180002fb0
mov dil, 9
lea rbp, [0x180014640]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + 9]
movzx ecx, byte [rbx + 0xd]
mov r8, rbx
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov r9d, 4
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xf], cl
mov byte [rbx + 0xb], al
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
dec rdx
jne 0x180003060
inc r8
dec r9
jne 0x180003050
movzx r8d, dil
mov rax, rbx
lea r9d, [rdx + 4]
shl r8, 4
sub r8, rbx
add r8, rsi
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
xor byte [rax - 1], cl
dec rdx
jne 0x1800030a0
dec r9
jne 0x180003090
test dil, dil
je 0x1800030cb
mov rcx, rbx
call fcn.180002980
add dil, 0xff
jmp 0x180002ff0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800030e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
lea r9, [rcx + 0xb0]
mov edi, r8d
test r8d, r8d
je 0x180003158
dec rdi
shr rdi, 4
inc rdi
nop dword [rax]
nop word [rax + rax]
mov rax, rbx
sub r9, rbx
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [r9 + rax]
lea rax, [rax + 1]
xor byte [rax - 1], cl
dec rdx
jne 0x180003130
mov rdx, rsi
mov rcx, rbx
call fcn.180002dd0
mov r9, rbx
add rbx, 0x10
dec rdi
jne 0x180003120
movups xmm0, xmmword [r9]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movups xmmword [rsi + 0xb0], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180003180
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x180003213
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov rdi, rcx
mov esi, r8d
sub rdi, rdx
mov rbx, rdx
mov rbp, rcx
add rdi, 0xb0
dec rsi
shr rsi, 4
inc rsi
nop dword [rax]
movups xmm0, xmmword [rbx]
mov rdx, rbp
mov rcx, rbx
call fcn.180002f80
mov ecx, 0x10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
inc rbx
xor byte [rbx - 1], al
dec rcx
jne 0x1800031e0
sub rdi, 0x10
movups xmmword [rbp + 0xb0], xmm0
dec rsi
jne 0x1800031c0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x1402c50b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1402c5237
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 0x1402c50e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1402c50c7
add dl, dl
jne 0x1402c50ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1402c514e
xor eax, eax
add dl, dl
jne 0x1402c50fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1402c5205
add dl, dl
jne 0x1402c510e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402c511b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402c5128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402c5135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1402c5142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1402c50d6
mov eax, 1
add dl, dl
jne 0x1402c515e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1402c516b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1402c5153
sub eax, ebx
mov ebx, 1
jne 0x1402c51a4
mov ecx, 1
add dl, dl
jne 0x1402c5186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1402c5193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1402c517b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1402c50d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1402c51c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1402c51cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1402c51b5
cmp eax, 0x7d00
jae 0x1402c51f3
cmp eax, 0x500
jb 0x1402c51ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1402c50d6
cmp eax, 0x7f
ja 0x1402c51f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1402c50d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1402c522a
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 0x1402c50d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x415f40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4160eb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [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 fcn.00432740
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x415fae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415fc1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415fe5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415ff9
cmp rbx, 0x1000
jae 0x415fb8
nop
jmp 0x416069
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41600d
xor edx, edx
jmp 0x416060
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 fcn.00432740
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
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]
nop
test dl, dl
jne 0x415fef
jmp 0x415fd5
call fcn.00460e40
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436d00
lea rax, [0x004f6c40]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00437600
mov rax, qword [rsp + 0x38]
call fcn.00437300
lea rax, [0x004f6d18]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00437600
mov rax, qword [rsp + 0x30]
call fcn.00437300
call fcn.00436f60
call fcn.00436d80
lea rax, [0x004f9a33]
mov ebx, 0x21
call fcn.00435440
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045d2a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415f40
Function at 0x416120
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41634a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.004327c0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x41619b
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4161ae
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4161d0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4161e4
cmp rbx, 0x1000
jae 0x4161a5
jmp 0x41626e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4161f6
xor esi, esi
jmp 0x416260
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.004327c0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x4161da
jmp 0x4161c2
call fcn.00460e40
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4162e9
call fcn.00436d00
lea rax, [0x004f72f4]
mov ebx, 0x19
call fcn.00437600
mov rax, qword [rsp + 0x68]
call fcn.00437300
lea rax, [0x004f6d18]
mov ebx, 0x19
nop
call fcn.00437600
mov eax, dword [rsp + 0x34]
call fcn.00437300
call fcn.00436f60
call fcn.00436d80
lea rax, [0x004f2fd4]
mov ebx, 0xd
call fcn.00435440
cmp eax, 0x5af
je 0x416293
call fcn.00436d00
lea rax, [0x004f72f4]
mov ebx, 0x19
call fcn.00437600
mov rax, qword [rsp + 0x38]
call fcn.00437300
lea rax, [0x004f6d18]
mov ebx, 0x19
nop dword [rax]
call fcn.00437600
mov eax, dword [rsp + 0x34]
call fcn.00437300
call fcn.00436f60
call fcn.00436d80
lea rax, [0x004f919f]
mov ebx, 0x1f
call fcn.00435440
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045d2a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416120