joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400014a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r15, r8
mov r11, rdx
mov r9, rcx
xor edx, edx
mov r10d, edx
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x1400014df
lea eax, [rdx + 5]
jmp 0x1400015d2
movsxd rax, dword [rcx + 0x3c]
mov ecx, 0x20b
cmp word [rax + r9 + 0x18], cx
jne 0x1400014fa
mov ecx, dword [rax + r9 + 0x88]
jmp 0x1400014ff
mov ecx, dword [rax + r9 + 0x78]
mov esi, ecx
mov r12d, dword [rsi + r9 + 0x24]
add r12, r9
mov r13d, dword [rsi + r9 + 0x20]
add r13, r9
mov r14d, dword [rsi + r9 + 0x1c]
add r14, r9
mov r8d, edx
mov dword [rsp + 0x28], edx
mov edi, edx
mov ecx, edx
mov ebx, 0xffff
cmp edi, dword [rsi + r9 + 0x14]
jae 0x1400015bd
cmp r11, rbx
jbe 0x140001556
cmp edi, dword [rsi + r9 + 0x18]
jae 0x1400015b6
mov eax, edi
mov edx, dword [r13 + rax*4]
add rdx, r9
mov eax, ecx
movzx r8d, word [r12 + rax*2]
cmp r11, rbx
ja 0x14000156c
movzx ecx, r8w
add ecx, dword [rsi + r9 + 0x10]
movzx eax, r11w
cmp eax, ecx
je 0x1400015a0
cmp r11, rbx
jbe 0x1400015b2
mov rbx, r11
sub rbx, rdx
movzx eax, byte [rdx]
movzx ecx, byte [rdx + rbx]
sub eax, ecx
jne 0x140001584
inc rdx
test ecx, ecx
jne 0x140001572
xor edx, edx
test eax, eax
je 0x1400015a2
mov ebx, 0xffff
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], r8d
mov edi, r8d
mov ecx, r8d
jmp 0x140001529
xor edx, edx
movzx eax, r8w
mov r10d, dword [r14 + rax*4]
add r10, r9
mov qword [r15], r10
jmp 0x1400015bd
xor edx, edx
jmp 0x14000158f
mov eax, 8
jmp 0x1400015d2
test r10, r10
jne 0x1400015c8
lea eax, [r10 + 1]
jmp 0x1400015d2
movzx eax, dx
jmp 0x1400015d2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x1400015ec
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14, r8
movups xmm0, xmmword [rdx]
movdqu xmmword [rsp + 0x48], xmm0
test rcx, 0xfffffffffffffffb
je 0x1400017bf
xor r15d, r15d
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x21], r15b
mov byte [rsp + 0x20], r15b
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001667
lea eax, [r15 + 3]
jmp 0x1400017c4
mov r12d, 1
mov byte [rsp + 0x21], r12b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x21], r15b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rbx, rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x20], r12b
mov rdi, r15
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rcx, qword [rsp + 0x28]
test rbx, rbx
je 0x140001715
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rsi, rax
mov ecx, dword [rax + 0xc]
mov ebx, dword [rcx + 0xc]
mov ecx, dword [rsi + 0xc]
add rcx, 0xc
cmp rbx, rcx
je 0x140001770
mov ecx, dword [rbx + 0x30]
test ecx, ecx
jne 0x1400016e7
jmp 0x140001711
mov rdx, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, r12b
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x140001711
mov edi, dword [rbx + 0x18]
jmp 0x140001764
mov ebx, dword [rbx]
jmp 0x1400016ce
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rsi + 0x18]
add rcx, 0x10
cmp rbx, rcx
je 0x140001770
mov rdx, qword [rbx + 0x60]
test rdx, rdx
jne 0x14000173e
jmp 0x14000176b
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, r12b
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x14000176b
mov rdi, qword [rbx + 0x30]
mov qword [rsp + 0x30], rdi
jmp 0x140001770
mov rbx, qword [rbx]
jmp 0x140001726
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x20], r15b
mov qword [r14], rdi
test rdi, rdi
jne 0x14000178e
movzx eax, r12w
jmp 0x1400017c4
movzx eax, r15w
jmp 0x1400017c4
mov eax, 2
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001f00
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400017ec
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
xor r14d, r14d
mov qword [r11 - 0x60], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov byte [r11 - 0x67], r14b
mov byte [r11 - 0x68], r14b
mov qword [r11 - 0x58], r14
lea rdx, [r11 - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000184f
lea eax, [r14 + 3]
jmp 0x1400018dd
mov byte [rsp + 0x21], 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x21], r14b
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x20], 1
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.1400014a8
movzx ebx, ax
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x20], r14b
mov rcx, qword [rsp + 0x30]
mov qword [rsi], rcx
test bx, bx
je 0x1400018ae
movzx eax, bx
jmp 0x1400018dd
movzx eax, r14w
jmp 0x1400018dd
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001f00
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret

Function at 0x1400018fc
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov ebx, edx
test rcx, 0xfffffffffffffffb
je 0x140001a1e
xor esi, esi
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x31], sil
mov byte [rsp + 0x30], sil
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000196a
lea eax, [rsi + 3]
jmp 0x140001a23
mov r14d, 1
mov byte [rsp + 0x31], r14b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x31], sil
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x30], r14b
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x30], sil
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
test rcx, rcx
jne 0x1400019ee
movzx eax, r14w
jmp 0x140001a23
movzx eax, si
jmp 0x140001a23
mov eax, 2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140001f00
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret
Function at 0x140001b9c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r9
mov esi, r8d
mov rdi, rdx
test rcx, 0xfffffffffffffffb
je 0x140001df9
lea rax, [rdx - 0x10000]
movabs rdx, 0x7ffffffeffff
cmp rax, rdx
ja 0x140001df9
xor r14d, r14d
mov qword [r11 - 0x70], r14
mov qword [r11 - 0x80], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x78], r14
mov byte [rsp + 0x34], r14b
mov byte [rsp + 0x33], r14b
mov byte [rsp + 0x32], r14b
mov byte [rsp + 0x31], r14b
mov byte [rsp + 0x30], r14b
lea rdx, [r11 - 0x70]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001c40
lea eax, [r14 + 3]
jmp 0x140001dfe
lfence
mov r15d, 1
mov byte [rsp + 0x34], r15b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov byte [rsp + 0x34], r14b
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x33], r15b
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140001ca7
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
movzx eax, r15w
jmp 0x140001dfe
lfence
mov byte [rsp + 0x32], r15b
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov byte [rsp + 0x31], r15b
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [rsp + 0x33], r14b
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov qword [rsp + 0x40], rax
lfence
test rax, rax
jne 0x140001d20
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
movzx eax, r15w
jmp 0x140001dfe
mov byte [rsp + 0x30], r15b
mov r8, rsi
cmp byte [rsp + 0xe0], r14b
jne 0x140001d42
lfence
mov rdi, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
jmp 0x140001d4d
mov rdx, rbx
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140002080
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov byte [rsp + 0x30], r14b
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov byte [rsp + 0x31], r14b
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
mov byte [rsp + 0x32], r14b
movzx eax, r14w
jmp 0x140001dfe
mov eax, 2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140001f00
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encrypt data using rc4 via systemfunction032
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov edx, dword [0x1400df044]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000111b
mov r8d, dword [0x1400df044]
lea rdx, [0x14000f330]
mov rcx, rax
call fcn.140001bc0
mov ecx, dword [0x1400df044]
lea rax, [rsp + 0x50]
movups xmm0, xmmword [str.gnUJw3wQWFP12II2T0IxNGf9VMAEh9W7Abj3ZIZGaNRpLjE9IQGQcvaRyCFCDtMU]
mov dword [rsp + 0x38], ecx
movups xmm1, xmmword [0x1400df010]
mov dword [rsp + 0x3c], ecx
lea rcx, str.cryptsp.dll
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x1400df020]
mov byte [rsp + 0x90], 0
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x1400df030]
mov qword [rsp + 0x40], rbx
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x2c], 0x40
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call rax
mov edx, dword [0x1400df044]
lea r9, [rsp + 0x20]
mov r8d, 0x10
mov dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000111b
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
add rsp, 0xa0
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0xa0
pop rbx
ret

Function at 0x1400018a0
Capabilities:
Parse pe header

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

Function at 0x140005990
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000578c
Function at 0x140008a44
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 0x140008a74
xor eax, eax
jmp 0x140008b37
mov rbp, rbx
cmp word [rax], si
je 0x140008a99
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008a80
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008a7c
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.140008964
movsxd r14, eax
test eax, eax
jne 0x140008ad7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008a6d
mov rcx, r14
call fcn.1400094d8
mov rdi, rax
test rax, rax
jne 0x140008af0
xor ecx, ecx
call fcn.140006f9c
jmp 0x140008acc
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.140008964
test eax, eax
jne 0x140008b21
mov rcx, rdi
call fcn.140006f9c
jmp 0x140008b2b
xor ecx, ecx
call fcn.140006f9c
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 0x14002f870
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002f87d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002f88d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002f875
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002f8a5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002f892
sub eax, 3
jb 0x14002f8bf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002f8f6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002f8e6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002f8e4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002f8d3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002f832
jmp 0x14002f87d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x18e00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002f946
cmp rsi, rcx
jae 0x14002f94e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002f92d
cmp al, 0x8f
ja 0x14002f92d
cmp byte [rsi - 2], 0xf
je 0x14002f933
sub al, 0xe8
cmp al, 1
ja 0x14002f917
cmp rsi, rcx
jae 0x14002f94e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002f91d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002f94e
lodsb al, byte [rsi]
jmp 0x14002f92d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2d000]
mov eax, dword [rdi]
or eax, eax
je 0x14002f9ab
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2f1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002f95b
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002f9a5
mov qword [rbx], rax
add rbx, 8
jmp 0x14002f97b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14002f9e5
cmp al, 0xef
ja 0x14002f9d7
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002f9b7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002f9c6
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002fa39
sub rsp, 0xffffffffffffff80
jmp 0x140009b20
Function at 0x140014d7c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400230c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000cfd8
xor ebx, ebx
cmp qword [0x140025970], rbx
mov rdi, rax
jne 0x140014e8f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140014f66
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014f66
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140025970], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140025978], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140025980], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140025990], rax
test rax, rax
je 0x140014e86
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140025988], rax
jmp 0x140014e96
mov rax, qword [0x140025988]
jmp 0x140014e9d
mov rax, qword [0x140025988]
mov r11, qword [0x140025990]
cmp rax, rdi
je 0x140014f04
cmp r11, rdi
je 0x140014f04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140025990]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140014f04
test rax, rax
je 0x140014f04
call rsi
test rax, rax
je 0x140014efe
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140014efe
test byte [rsp + 0x40], 1
jne 0x140014f04
bts ebp, 0x15
jmp 0x140014f44
mov rcx, qword [0x140025978]
cmp rcx, rdi
je 0x140014f44
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014f44
call rax
mov rbx, rax
test rax, rax
je 0x140014f44
mov rcx, qword [0x140025980]
cmp rcx, rdi
je 0x140014f44
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014f44
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140025970]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014f66
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140014f68
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a780
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140b37000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140b3700a
jmp 0x140b3900f
jmp fcn.1407c6058
Function at 0x140007af0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140007b18
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140007b3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007b40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007b99
test ecx, ecx
jle 0x140007b79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007b99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007b99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140007bc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007be2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140007bf8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007c14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007c16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007c52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140007cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007c8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140007cce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140007cee
cmp rbx, rax
ja 0x140007ca0
test rbx, rbx
je 0x140007cee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret