joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001900
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, rdx
mov rsi, rdx
sub r10, rcx
mov rbx, rcx
mov r8, rcx
mov r11d, 4
nop dword [rax]
mov r9d, 4
nop word [rax + rax]
movzx eax, byte [r10 + r8 + 0xa0]
xor byte [r8], al
inc r8
sub r9, 1
jne 0x140001940
sub r11, 1
jne 0x140001930
mov dil, 9
lea rbp, [0x14001e610]
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax]
nop word [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x1400019e0
inc r8
sub r9, 1
jne 0x1400019d0
movzx r8d, dil
lea r9d, [rdx + 4]
shl r8, 4
mov rax, rbx
sub r8, rbx
add r8, rsi
nop dword [rax]
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x140001a30
sub r9, 1
jne 0x140001a20
test dil, dil
je 0x140001a5c
mov rcx, rbx
call fcn.140001410
add dil, 0xff
jmp 0x140001965
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400027f4
Capabilities:
Parse pe header

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

Function at 0x140006390
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400061bc

Function at 0x140012dc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012de8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012de8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100130aa4
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100178108], rdi
je 0x100130b04
cmp rax, rdi
jne 0x100130af7
mov r12d, 1
jmp 0x100130b04
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100130add
mov eax, dword [0x100178100]
cmp eax, 1
jne 0x100130b19
lea ecx, [rax + 0x1e]
call fcn.100217000
jmp 0x100130b80
mov eax, dword [0x100178100]
cmp eax, ebx
jne 0x100130b76
mov dword [0x100178100], 1
lea r13, [0x100001c08]
lea rdi, [0x100001bf0]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x100130b68
cmp eax, ebx
jne 0x100130b68
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100130b5d
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x100130b46
cmp eax, ebx
je 0x100130b80
mov eax, 0xff
jmp 0x100130cc8
mov dword [0x100177464], 1
mov eax, dword [0x100178100]
cmp eax, 1
jne 0x100130ba8
lea rdx, [0x100001be8]
lea rcx, [0x100001b60]
call sub.msvcrt.dll__initterm
mov dword [0x100178100], 2
cmp r12d, ebx
jne 0x100130bb7
mov rax, rbx
xchg qword [0x100178108], rax
cmp qword [0x100178120], rbx
je 0x100130bdf
lea rcx, [0x100178120]
call fcn.10013126c
cmp eax, ebx
je 0x100130bdf
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100178120]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x100130bf5
mov eax, 0xff
jmp 0x100130cc8
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x100130c7a
cmp word [rcx], bx
je 0x100130c10
cmp edx, ebx
jne 0x100130c7a
cmp word [rcx], bx
je 0x100130c26
cmp word [rcx], 0x20
ja 0x100130c26
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100130c10
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.10005078c
mov dword [0x100177460], eax
cmp dword [0x100177444], ebx
jne 0x100130c64
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100177464], ebx
jne 0x100130c78
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100177460]
jmp 0x100130cc8
cmp word [rcx], 0x22
jne 0x100130c8d
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100130c01
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100131374
add rsp, 0x28
jmp 0x100130aa4
Function at 0x28ca72100
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.28ca790a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.28ca790a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x28ca72b02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x28cc1b108]
test eax, eax
je 0x28ca72b9a
lea rax, [0x28cc1b0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x28cc1b110]
mov qword [rbp - 8], rax
jmp 0x28ca72b7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x28ca72b72
cmp qword [rbp - 0x10], 0
je 0x28ca72b72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x28ca72b38
lea rax, [0x28cc1b0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x28ca72b9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x28ca72e22
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [0x28cc1b148]
test eax, eax
jne 0x28ca72e4a
mov eax, 1
jmp 0x28ca72f26
cmp qword [rbp + 0x20], 0
je 0x28ca72e7d
lea rax, [0x28cc1bb70]
cmp qword [rbp + 0x20], rax
je 0x28ca72e7d
mov r8d, 0x46
lea rax, str..._.._mingw_w64_crt_crt_tls_atexit.c
mov rdx, rax
lea rax, str._dso__dso____dso_handle
mov rcx, rax
call sub.msvcrt.dll__assert
mov eax, dword [0x28cbbf170]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x28ca72ecf
mov edx, 8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x28ca72eba
mov eax, 1
jmp 0x28ca72f26
mov eax, dword [0x28cbbf170]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x28ca72ef0
mov eax, 1
jmp 0x28ca72f26
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp - 8]
mov rdx, qword [rbp - 0x10]
mov qword [rax], rdx
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x28ca73150
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x28ca73178
mov eax, 0
jmp 0x28ca731c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x28ca731a1
mov eax, 0
jmp 0x28ca731c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x28ca731c1
mov eax, 0
jmp 0x28ca731c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x28ca731cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x28ca7324a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x28ca73241
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x28ca73241
mov rax, qword [rbp - 8]
jmp 0x28ca7325f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x28ca73214
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x28cb07200
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
lea rcx, str.LLD_VERSION
call sub.msvcrt.dll_getenv
lea rbp, [rsp + 0x58]
lea rdi, [rsp + 0xd8]
mov rdx, rax
mov rcx, rbp
call fcn.28cb51040
cmp qword [rsp + 0x60], 0
jne 0x28cb072b4
call fcn.28ca716b0
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov rbx, rax
call fcn.28ca716a8
lea rax, [rsp + 0x88]
lea rdx, str.Linker:
mov word [rsp + 0xd0], 0x104
mov rcx, rax
lea r8, [rsp + 0xb0]
mov qword [rsp + 0xb0], rsi
call fcn.28cb463a0
mov rdx, rax
mov rcx, rdi
call method.llvm::Twine.concat_llvm::Twine_const__const
lea rdx, [rbx + 0x68]
mov r8, rdi
mov rcx, rbp
call fcn.28ca71d08
mov rcx, rsi
call fcn.28ca71ec0
jmp 0x28cb072b4
mov rax, qword [rsp + 0x60]
mov r8d, 8
lea r9, [method.lld::SpecificAlloc_lld::elf::MergeInputSection_.create_void_]
mov edx, 0x68
lea rcx, [sym.liblldELF.dll_lld::SpecificAlloc_lld::elf::MergeInputSection_::tag]
mov rbp, qword [rsp + 0x58]
lea rsi, [rax + 1]
call fcn.28ca71690
mov r8d, 8
mov edx, 0x98
lea rcx, [rax + 8]
call method.llvm::BumpPtrAllocatorImpl_llvm::MallocAllocator__4096ull__4096ull__128ull_.Allocate_unsigned_long_long__unsigned_long_long_
mov rcx, rdi
lea rdx, str..comment
mov rbx, rax
call fcn.28cb51040
lea rax, [rsp + 0x30]
mov edx, 0x30
movups xmm0, xmmword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r9d, 1
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8d, 1
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
call method.lld::elf::MergeInputSection.MergeInputSection_unsigned_long_long__unsigned_int__unsigned_long_long__llvm::ArrayRef_unsigned_char___llvm::StringRef_
mov rcx, rbx
call method.lld::elf::MergeInputSection.splitIntoPieces__
mov rax, rbx
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001a10
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x70
mov r9d, ecx
lea r8, str.VDM_HOST__X
lea rcx, [rsp + 0x20]
mov edx, 0x50
call qword [sym.imp.ntdll.dll_sprintf_s]
lea r8, [rsp + 0x20]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140001a60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001a68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x70
pop rbx
ret
mov eax, 1
add rsp, 0x70
pop rbx
ret
Function at 0x141fdd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141fdd1df
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 0x141fdd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141fdd06f
add dl, dl
jne 0x141fdd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141fdd0f6
xor eax, eax
add dl, dl
jne 0x141fdd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141fdd1ad
add dl, dl
jne 0x141fdd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fdd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fdd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fdd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141fdd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141fdd07e
mov eax, 1
add dl, dl
jne 0x141fdd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141fdd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141fdd0fb
sub eax, ebx
mov ebx, 1
jne 0x141fdd14c
mov ecx, 1
add dl, dl
jne 0x141fdd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141fdd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141fdd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141fdd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141fdd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141fdd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141fdd15d
cmp eax, 0x7d00
jae 0x141fdd19b
cmp eax, 0x500
jb 0x141fdd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141fdd07e
cmp eax, 0x7f
ja 0x141fdd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141fdd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141fdd1d2
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 0x141fdd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1405ce058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405ce1df
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 0x1405ce089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ce06f
add dl, dl
jne 0x1405ce096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ce0f6
xor eax, eax
add dl, dl
jne 0x1405ce0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ce1ad
add dl, dl
jne 0x1405ce0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405ce0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405ce07e
mov eax, 1
add dl, dl
jne 0x1405ce106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ce0fb
sub eax, ebx
mov ebx, 1
jne 0x1405ce14c
mov ecx, 1
add dl, dl
jne 0x1405ce12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ce13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ce123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ce07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405ce168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ce175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ce15d
cmp eax, 0x7d00
jae 0x1405ce19b
cmp eax, 0x500
jb 0x1405ce196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ce07e
cmp eax, 0x7f
ja 0x1405ce19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ce07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405ce1d2
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 0x1405ce07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0x310
mov rdi, rsp
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov dword [rsp + 0x44], 0xffffffff
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [section..data]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140001fa7
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x74], 0x104
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x2b8], rax
mov byte [rsp + 0x2c0], 0
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xea
jne 0x140001e74
cmp dword [rsp + 0x74], 0
jbe 0x140001e74
cmp dword [rsp + 0x74], 0x40000
jae 0x140001e74
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2e8], rax
mov eax, 2
mov rcx, qword [rsp + 0x2e8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140002be8
mov qword [rsp + 0x2d8], rax
mov rax, qword [rsp + 0x2d8]
mov qword [rsp + 0x2b8], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140001f9c
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140001ea7
mov eax, 0xffffffff
jmp 0x140001fab
mov rdx, qword [0x140009018]
lea rcx, [rsp + 0xa0]
call fcn.140002930
test rax, rax
je 0x140001ecc
xor eax, eax
jmp 0x140001fab
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2f0], rax
mov rcx, qword [0x140009018]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rsp + 0x2f0]
lea rax, [rcx + rax*2 + 2]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2f8], rax
mov eax, 2
mov rcx, qword [rsp + 0x2f8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140002be8
mov qword [rsp + 0x2e0], rax
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140001f9c
mov r9, qword [0x140009018]
lea r8, [rsp + 0xa0]
lea rdx, str._s__s
mov rcx, qword [rsp + 0x2c8]
call qword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x20], rax
invalid
invalid
add dword [rax], eax
invalid
Function at 0x14093d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14093d1df
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 0x14093d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093d06f
add dl, dl
jne 0x14093d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093d0f6
xor eax, eax
add dl, dl
jne 0x14093d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093d1ad
add dl, dl
jne 0x14093d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14093d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14093d07e
mov eax, 1
add dl, dl
jne 0x14093d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093d0fb
sub eax, ebx
mov ebx, 1
jne 0x14093d14c
mov ecx, 1
add dl, dl
jne 0x14093d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14093d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14093d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14093d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093d15d
cmp eax, 0x7d00
jae 0x14093d19b
cmp eax, 0x500
jb 0x14093d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093d07e
cmp eax, 0x7f
ja 0x14093d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14093d1d2
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 0x14093d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20