joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003fac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003ff8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003ff0
cmp dword [rcx + 0x3c], edx
jl 0x140003ff0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140003ff0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140003ff8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1805b8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1805b81df
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 0x1805b8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805b806f
add dl, dl
jne 0x1805b8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805b80f6
xor eax, eax
add dl, dl
jne 0x1805b80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805b81ad
add dl, dl
jne 0x1805b80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805b80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805b80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805b80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805b80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805b807e
mov eax, 1
add dl, dl
jne 0x1805b8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805b8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805b80fb
sub eax, ebx
mov ebx, 1
jne 0x1805b814c
mov ecx, 1
add dl, dl
jne 0x1805b812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805b813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805b8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805b807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805b8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805b8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805b815d
cmp eax, 0x7d00
jae 0x1805b819b
cmp eax, 0x500
jb 0x1805b8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805b807e
cmp eax, 0x7f
ja 0x1805b819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805b807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805b81d2
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 0x1805b807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x142e18058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.142e181df
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 0x142e18089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142e1806f
add dl, dl
jne 0x142e18096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142e180f6
xor eax, eax
add dl, dl
jne 0x142e180a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x142e181ad
add dl, dl
jne 0x142e180b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e180c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e180d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e180dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x142e180ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x142e1807e
mov eax, 1
add dl, dl
jne 0x142e18106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142e18113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142e180fb
sub eax, ebx
mov ebx, 1
jne 0x142e1814c
mov ecx, 1
add dl, dl
jne 0x142e1812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142e1813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142e18123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142e1807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142e18168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142e18175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142e1815d
cmp eax, 0x7d00
jae 0x142e1819b
cmp eax, 0x500
jb 0x142e18196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142e1807e
cmp eax, 0x7f
ja 0x142e1819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x142e1807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x142e181d2
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 0x142e1807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003740
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x401dcc
jmp 0x401d52
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x401d34
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x401dc7
jmp 0x401d78
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x401d5a
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, str.cw
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x401d6c
jmp 0x401d46
leave
ret

Function at 0x40309b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x00418c23]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret

Function at 0x4030a6
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x00418c23]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret
Function at 0x140002160
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x128
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rcx, qword [0x140008788]
lea rdx, [rsp + 0x40]
mov r8d, 0x64
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1400022f0
cmp qword [0x1400087d8], 7
lea rcx, [0x1400087c0]
mov r8, rax
cmova rcx, qword [0x1400087c0]
cmp qword [rax + 0x18], 7
jbe 0x1400021c4
mov r8, qword [rax]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [0x1400087d0]
mov qword [rsp + 0x120], rbx
jne 0x1400021f9
test rdx, rdx
je 0x1400021f5
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1400021f9
add rcx, 2
sub rdx, 1
jne 0x1400021e1
mov bl, 1
jmp 0x1400021fb
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140002240
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000223b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000223b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000361c
movdqa xmm0, xmmword [0x140005860]
xor eax, eax
mov word [rsp + 0x20], ax
movdqu xmmword [rsp + 0x30], xmm0
test bl, bl
je 0x14000226e
mov rcx, qword [0x140008748]
call qword [sym.imp.USER32.dll_DestroyWindow]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140003380
add rsp, 0x128
ret

Function at 0x140003ef0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001448
xor eax, eax
lea r8, [0x180001050]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180001700
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1800068fc]
mov ebx, edi
test ecx, ecx
je 0x18000183b
mov rax, qword [0x1800068f0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180001758
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180001730
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18000183b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180001a80
mov r8d, dword [0x1800068fc]
cmp ebx, r8d
jae 0x1800017c8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800068f0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800017c1
mov edx, esi
mov ecx, ebx
call fcn.180001970
mov edi, eax
test eax, eax
jne 0x1800017c8
mov r8d, dword [0x1800068fc]
inc ebx
cmp ebx, r8d
jb 0x180001790
cmp qword [rsp + 0x20], 0
je 0x18000183b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180001827
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
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 0x180001818
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 0x1800017f0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800062c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180001970
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 [0x1800068f0]
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 0x1800019d4
mov eax, 0xa
jmp 0x180001a67
test esi, esi
je 0x1800019f6
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 0x180001a19
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180001a19
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180001a12
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180001a19
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]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
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 0x180001a80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180006240]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001baa
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180001ba1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180001b84
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180001b84
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180001b84
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180001b42
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800062c8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180001ba1
jmp 0x180001b77
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180001b77
mov rcx, qword [0x1800062c8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180001ba1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180001af0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180001c03
cmp dword [rbx + 0xc], esi
jbe 0x180001c03
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180001bfc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180001f70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180001bc0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800030a0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180002120
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18000218f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180002178
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000216c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180002140
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800062c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180002250
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], 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]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180002290
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800068e8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800022ce
cmp rsi, r14
jb 0x1800022c6
cmp rsi, r15
jae 0x1800022c6
cmp qword [rsi + 8], 0
jne 0x180002497
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800022b1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180002362
nop dword [rax]
nop dword [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 0x180002359
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 0x180002359
cmp dword [rsp + 0x70], 0x10000
je 0x1800023db
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180002359
sub rbx, rbp
cmp rbx, r14
jae 0x180002320
test rsi, rsi
jne 0x180002440
cmp rdi, r15
ja 0x18000247f
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 0x18000247f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000247f
cmp dword [rsp + 0x70], 0x10000
je 0x180002411
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 0x180002392
jmp 0x18000247f
test rbx, rbx
je 0x180002359
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180002440
cmp rbx, r14
jae 0x180002300
jmp 0x180002362
test rdi, rdi
je 0x18000247f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180002440
cmp rdi, r15
jbe 0x180002370
jmp 0x18000247f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180002450
mov rax, qword [0x1800068e8]
mov qword [rsi], rax
mov qword [0x1800068e8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1807b12c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807b1447
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 0x1807b12f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807b12d7
add dl, dl
jne 0x1807b12fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807b135e
xor eax, eax
add dl, dl
jne 0x1807b130d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807b1415
add dl, dl
jne 0x1807b131e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807b132b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807b1338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807b1345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807b1352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1807b12e6
mov eax, 1
add dl, dl
jne 0x1807b136e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807b137b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807b1363
sub eax, ebx
mov ebx, 1
jne 0x1807b13b4
mov ecx, 1
add dl, dl
jne 0x1807b1396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807b13a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807b138b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807b12e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1807b13d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807b13dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807b13c5
cmp eax, 0x7d00
jae 0x1807b1403
cmp eax, 0x500
jb 0x1807b13fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807b12e6
cmp eax, 0x7f
ja 0x1807b1406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807b12e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807b143a
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 0x1807b12e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400264b0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x168
mov rax, qword [0x14012c080]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x140026666
mov qword [rsp + 0x170], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x180], rsi
mov r8d, 0x100
mov rcx, rax
mov qword [rsp + 0x160], rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
inc r8
cmp byte [rax + r8], 0
jne 0x140026521
mov qword [rsp + 0x178], rbp
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x150], r15
call fcn.140007f30
mov rsi, qword [rsp + 0x38]
lea rdi, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rsi, 0xf
mov rax, qword [rsp + 0x30]
cmova rdi, rbx
cmp rax, 0x10
jb 0x1400265d0
lea rbp, [rdi + rax]
mov edx, 0x43
lea r8, [rbp - 0xf]
mov rcx, rdi
sub r8, rdi
call fcn.1400d5160
test rax, rax
je 0x1400265d0
movabs r14, 0x2d7265746e756f43
movabs r15, 0x3220656b69727453
cmp qword [rax], r14
jne 0x1400265b4
cmp qword [rax + 8], r15
je 0x14002665e
inc rax
lea r8, [rbp - 0xf]
sub r8, rax
mov rcx, rax
mov edx, 0x43
call fcn.1400d5160
test rax, rax
jne 0x1400265a5
mov rax, 0xffffffffffffffff
mov r15, qword [rsp + 0x150]
cmp rax, 0xffffffffffffffff
mov r14, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x178]
setne dil
cmp rsi, 0xf
jbe 0x14002662a
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140026622
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002667e
mov rcx, rbx
call fcn.1400a416c
mov rsi, qword [rsp + 0x180]
movzx eax, dil
mov rdi, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a3e00
add rsp, 0x168
ret
sub rax, rdi
jmp 0x1400265d7
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a3e00
add rsp, 0x168
ret
call fcn.1400aa040
int3