joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027850
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rdx, qword gs:[0x188]
movsx r8d, word [rsp + 0x6c]
movsx ecx, word [rsp + 0x68]
mov eax, dword [rsi + 0x5c]
movsx r10d, word [rsp + 0x6a]
movsx r9d, word [rsp + 0x66]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdx
mov edx, 0x80000002
mov dword [rsp + 0x30], r8d
lea r8, [0x140040580]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
mov ecx, 0x51
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor edx, edx
lea rcx, [rsi + 0x60]
call fcn.140002c44
mov rcx, qword [rsi + 0x40]
mov edi, dword [rsi + 0x140]
and dword [rsi + 0x140], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x14001d28c.0]
lea rdx, [rsi + 0xa0]
mov rcx, rsi
call fcn.140026dc8
and dword [rsi + 0x14c], 0
lea rcx, [rsi + 0x60]
and dword [rsi + 0x148], 0
and dword [rsi + 0x150], 0
call fcn.140002c64
cmp edi, 2
jne 0x14002795e
lea rcx, [rsi + 0x180]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14001d28c.0]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002be04
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, rcx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rdx, qword gs:[0x188]
mov eax, dword [rsi + 8]
movsx r8d, word [rsp + 0x8c]
movsx ecx, word [rsp + 0x88]
movsx r10d, word [rsp + 0x8a]
movsx r9d, word [rsp + 0x86]
mov dword [rsp + 0x60], eax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x58], rax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x50], rax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x48], eax
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdx
mov edx, 0x80000002
mov dword [rsp + 0x30], r8d
lea r8, [0x1400438e0]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
mov ecx, 0x51
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor ebx, ebx
lea rdi, [rsi + 0x30]
cmp dword [rsi + 0x24], ebx
jbe 0x14002befa
mov rcx, rdi
call fcn.14002bae4
mov rcx, rdi
call fcn.14002bf20
inc ebx
mov rdi, rax
cmp ebx, dword [rsi + 0x24]
jb 0x14002bee0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14002d3c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
mov ebx, 1
lock xadd dword [rcx + 0x14], ebx
inc ebx
xor esi, esi
cmp ebx, 1
jne 0x14002d414
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14001d28c.0]
mov esi, eax
test eax, eax
jns 0x14002d414
or ebx, 0xffffffff
lock xadd dword [rdi + 0x14], ebx
dec ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rax, qword gs:[0x188]
movsx ecx, word [rsp + 0x6c]
movsx edx, word [rsp + 0x6a]
movsx r8d, word [rsp + 0x68]
movsx r9d, word [rsp + 0x66]
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov ecx, 0x51
mov dword [rsp + 0x28], edx
mov edx, 0x80000002
mov dword [rsp + 0x20], r8d
lea r8, [0x140043b70]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003010c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
xor esi, esi
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
movsx edx, word [rbp + 0x33]
movsx r8d, word [rbp + 0x31]
mov eax, dword [rdi + 0x514]
movsx r10d, word [rbp + 0x2f]
movsx r9d, word [rbp + 0x2d]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
lea ecx, [rsi + 0x51]
mov dword [rsp + 0x30], edx
mov edx, 0x80000002
mov dword [rsp + 0x28], r8d
lea r8, [0x140041630]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rbx, [rdi + 0x60]
xor edx, edx
mov rcx, rbx
call fcn.140002c44
cmp byte [rdi + 0x510], sil
je 0x140029d05
cmp dword [rdi + 0x514], 1
mov esi, 8
mov eax, 0x100
cmove esi, eax
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rbp + 0x37]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov r8, qword gs:[0x188]
mov edx, 0x80000002
movsx r10d, word [rbp + 0x43]
mov ecx, 0x51
movsx r11d, word [rbp + 0x41]
movsx edi, word [rbp + 0x3f]
movsx r9d, word [rbp + 0x3d]
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], r8
lea r8, [0x140041690]
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, rbx
call fcn.140002c64
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov eax, dword [rcx + 0x4c]
bt eax, edx
jae 0x140030130
mov rax, qword [rcx + 0x18]
mov edx, edx
mov rcx, qword [rax + rdx*8]
test rcx, rcx
je 0x140030130
cmp dword [rcx + 0x140], 2
je 0x140029c38
xor eax, eax
ret
Function at 0x140039910
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14000dfc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
add rcx, 0x58
call fcn.140002c44
mov ebp, 1
test rdi, rdi
jne 0x14003996c
lea edx, [rbp + 9]
xor ecx, ecx
call fcn.1400035bc
mov ecx, eax
lea rdi, [0x14000de30]
mov eax, ebp
shl eax, cl
mov rdi, qword [rdi + rax*8]
cmp rdi, 0x20
ja 0x140039995
je 0x1400399bc
sub rdi, rbp
je 0x1400399bc
sub rdi, rbp
je 0x1400399bc
sub rdi, 2
je 0x1400399bc
sub rdi, 4
je 0x1400399bc
cmp rdi, 8
je 0x1400399bc
jmp 0x140039a18
sub rdi, 0x40
je 0x1400399bc
sub rdi, 0x40
je 0x1400399bc
sub rdi, 0x80
je 0x1400399bc
sub rdi, 0x100
je 0x1400399bc
cmp rdi, 0x200
jne 0x140039a18
and dword [rsi + 0xc4], 0
and dword [rsi + 0x100], 0
mov qword [rsi + 0xa8], rbp
mov dword [rsi + 0xb8], 0x10
mov dword [rsi + 0xe8], 0x1388
mov dword [rsi + 0xd8], ebp
mov qword [rsi + 0xd0], rbp
mov qword [rsi + 0xf8], rbp
mov dword [rsi + 0x110], 0x493e0
mov qword [rsi + 0x120], 0x40100
mov dword [rsi + 0x138], 0x64
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeQuerySystemTimePrecise]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExSystemTimeToLocalTime]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlTimeToTimeFields]
mov rcx, qword gs:[0x188]
mov rax, qword [rsi + 0x110]
movsx edx, word [rsp + 0x6c]
movsx r8d, word [rsp + 0x6a]
movsx r10d, word [rsp + 0x68]
movsx r9d, word [rsp + 0x66]
mov qword [rsp + 0x48], rax
mov rax, qword [rsi + 0xf8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov ecx, 0x51
mov dword [rsp + 0x30], edx
mov edx, 0x80000002
mov dword [rsp + 0x28], r8d
lea r8, [0x140045800]
mov dword [rsp + 0x20], r10d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
lea rcx, [rsi + 0x58]
call fcn.140002c64
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003b50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003f4c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140003b5c
add rsp, 0x28
jmp 0x140003f70
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 [0x14001d938], rdi
jne 0x140008848
mov eax, dword [0x14001d930]
cmp eax, 1
je 0x140008868
mov eax, dword [0x14001d930]
cmp eax, ebx
jne 0x14000887f
mov dword [0x14001d930], 1
lea r13, [0x140014218]
lea rdi, [0x140014200]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000401c
cmp eax, ebx
jne 0x14000401c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140004011
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140003ffa
cmp eax, ebx
jne 0x140008875
mov eax, dword [0x14001d930]
cmp eax, 1
jne 0x14000404c
lea rdx, [0x1400141f8]
lea rcx, [0x1400141c0]
call fcn.140147000
mov dword [0x14001d930], 2
cmp r12d, ebx
jne 0x14000405b
mov rax, rbx
xchg qword [0x14001d938], rax
cmp qword [0x14001d950], rbx
jne 0x14000888e
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x1400088b7
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14000409f
cmp word [rcx], 0x22
je 0x140008912
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140004084
cmp word [rcx], bx
jne 0x1400088c1
cmp word [rcx], bx
jne 0x1400088ce
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400040e8
nop
jmp 0x1400088e6
cmp rax, rdi
jne 0x140008858
mov r12d, 1
jmp 0x140003fba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003fa9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140004024
mov eax, 0xff
jmp 0x140008951
mov dword [0x14001db2c], 1
jmp 0x140004024
lea rcx, [0x14001d950]
call fcn.140011e1c
cmp eax, ebx
je 0x140004068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14001d950]
nop
jmp 0x140004068
mov eax, 0xff
jmp 0x140008951
cmp edx, ebx
je 0x1400040a8
jmp 0x14000408a
cmp word [rcx], 0x20
ja 0x1400040b1
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400040a8
mov dword [0x14001db28], eax
cmp dword [0x14001d30c], ebx
jne 0x1400088fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001db2c], ebx
jne 0x140008910
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001db28]
jmp 0x140008951
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140004094
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
Function at 0x140001070
Capabilities:
Get session user name
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xf0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [r11 + 0x10], rbp
lea rcx, str.flag.bin
xor ebp, ebp
mov qword [r11 + 0x18], rsi
mov qword [rsp + 0x30], rbp
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov qword [rsp + 0x50], rbp
mov edi, ebp
mov dword [rsp + 0x58], 0x40
mov esi, ebp
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140005630], rax
cmp rax, 0xffffffffffffffff
je 0x14000123c
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, str.flag.txt
call qword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
test eax, eax
jne 0x140001235
mov r8, qword [rsp + 0x50]
lea rcx, section..text
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_ReadEncryptedFileRaw]
test eax, eax
jne 0x140001235
cmp dword [0x140005628], esi
jne 0x140001143
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140005628], esi
je 0x140001130
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [0x14000332c]
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov rdi, rax
test rax, rax
je 0x140001235
xor r8d, r8d
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x60]
mov r9d, 0x80007
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov rsi, rax
test rax, rax
je 0x140001235
xor r9d, r9d
mov dword [rsp + 0x20], 7
lea r8, str.SECCON_CTF_2023_Finals
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
test eax, eax
je 0x140001235
mov qword [rsp + 0x100], rbx
mov ebx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r9d, r9d
mov dword [rsp + 0x20], 7
lea r8, str.SECCON_CTF_2023_Finals
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
mov rbx, qword [rsp + 0x100]
test eax, eax
je 0x140001235
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x5c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x140005630]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x140005630]
mov rbp, qword [rsp + 0x108]
test rax, rax
je 0x140001252
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001262
call qword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
cmp qword [rsp + 0x48], 0
je 0x140001280
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x14000128e
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rsi, qword [rsp + 0x110]
test rdi, rdi
je 0x1400012a6
xor edx, edx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400012e0
add rsp, 0xf0
pop rdi
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14069c190
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14069c19d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14069c1ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14069c195
lea eax, [rcx + 1]
jmp 0x14069c1bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14069c1ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14069c1b4
sub eax, 3
jb 0x14069c1ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14069c23d
sar eax, 1
movsxd rbp, eax
jb 0x14069c224
jmp 0x14069c1fc
add ebx, ebx
jne 0x14069c1fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14069c224
inc ecx
add ebx, ebx
jne 0x14069c20a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14069c224
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14069c21d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14069c20c
add ecx, 2
jmp 0x14069c229
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14069c152
jmp 0x14069c19d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x694000]
mov eax, dword [rdi]
or eax, eax
je 0x14069c29d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x69c4ec]
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 0x14069c24d
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 0x14069c297
mov qword [rbx], rax
add rbx, 8
jmp 0x14069c26d
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 0x14069c2e1
cmp al, 0xef
ja 0x14069c2c9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14069c2a9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14069c2b8
mov eax, dword [rdi]
add rdi, 4
jmp 0x14069c2b8
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 + 0x1af]
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
mov byte [fcn.14069c360], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14069c360
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14069c350
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x10000124c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.100001180
add rsp, 0x28
jmp 0x100001270
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 [section..data], rdi
jne 0x10000169f
mov eax, dword [0x100003014]
cmp eax, 1
je 0x1000016bf
mov eax, dword [0x100003014]
cmp eax, ebx
jne 0x1000016d6
mov dword [0x100003014], 1
lea r13, [0x100002168]
lea rdi, [0x100002150]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000131c
cmp eax, ebx
jne 0x10000131c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100001311
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000012fa
cmp eax, ebx
jne 0x1000016cc
mov eax, dword [0x100003014]
cmp eax, 1
jne 0x10000134c
lea rdx, [0x100002148]
lea rcx, [0x100002138]
call fcn.100119000
mov dword [0x100003014], 2
cmp r12d, ebx
jne 0x10000135b
mov rax, rbx
xchg qword [section..data], rax
cmp qword [0x1000035d8], rbx
jne 0x1000016e5
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x10000170e
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [rcx], 0x20
jbe 0x1000013ab
cmp word [rcx], 0x22
je 0x100001741
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100001390
cmp word [rcx], bx
je 0x1000013b4
cmp edx, ebx
jne 0x100001396
cmp word [rcx], bx
je 0x1000013ca
cmp word [rcx], 0x20
ja 0x1000013ca
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000013b4
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.100001400
nop
jmp 0x100001715
cmp rax, rdi
jne 0x1000016af
mov r12d, 1
jmp 0x1000012ba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000012a9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100001324
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e4], 1
jmp 0x100001324
lea rcx, [0x1000035d8]
call fcn.1000018fc
cmp eax, ebx
je 0x100001368
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000035d8]
nop
jmp 0x100001368
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e0], eax
cmp dword [0x100003008], ebx
jne 0x10000172b
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000036e4], ebx
jne 0x10000173f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000036e0]
jmp 0x100001780
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x1000013a0
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
Function at 0x140ea81b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ea833f
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 0x140ea81e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea81cf
add dl, dl
jne 0x140ea81f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea8256
xor eax, eax
add dl, dl
jne 0x140ea8205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea830d
add dl, dl
jne 0x140ea8216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea8223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea8230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea823d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ea824a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ea81de
mov eax, 1
add dl, dl
jne 0x140ea8266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea8273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea825b
sub eax, ebx
mov ebx, 1
jne 0x140ea82ac
mov ecx, 1
add dl, dl
jne 0x140ea828e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ea829b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea8283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea81de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ea82c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ea82d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea82bd
cmp eax, 0x7d00
jae 0x140ea82fb
cmp eax, 0x500
jb 0x140ea82f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea81de
cmp eax, 0x7f
ja 0x140ea82fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea81de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ea8332
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 0x140ea81de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20