joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001570
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x90], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
jmp 0x1400015d0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x30], 0
je 0x14000162d
cmp qword [rsp + 0x90], 0
jne 0x14000162d
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc8]
cmp qword [rsp + 0x48], rax
jne 0x140001606
jmp 0x1400015c3
xor r9d, r9d
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
call fcn.140001190
mov qword [rsp + 0x90], rax
jmp 0x1400015c3
cmp qword [rsp + 0x90], 0
jne 0x1400016a9
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
call fcn.1400016c0
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x14000169d
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x68]
mov rax, qword [rsp + 0xc0]
call qword [rax + 0x20]
lea r9, [rsp + 0x90]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xc0]
call qword [rax + 0x18]
jmp 0x1400016a9
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
add rsp, 0xb8
ret
Function at 0x1400016c0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0x68], 0xffffffff
mov dword [rsp + 0x78], 0
jmp 0x1400016fa
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0xe8]
movsx eax, byte [rax + rcx]
test eax, eax
je 0x14000172f
cmp dword [rsp + 0x78], 0x40
jae 0x14000172f
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + rdx]
mov byte [rsp + rcx + 0x20], al
jmp 0x1400016ef
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x20], 0
mov eax, dword [rsp + 0x78]
sub eax, 4
mov eax, eax
movsx eax, byte [rsp + rax + 0x20]
cmp eax, 0x2e
je 0x1400017af
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x20], 0x2e
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x20], 0x64
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x20], 0x6c
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x20], 0x6c
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov byte [rsp + rax + 0x20], 0
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xb0], rax
jmp 0x1400017f7
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
cmp dword [rsp + 0x68], 0
je 0x1400018ef
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x30], 0
je 0x1400018ef
cmp qword [rsp + 0xc0], 0
jne 0x1400018ef
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x88]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jne 0x140001885
jmp 0x1400017e4
mov ecx, dword [rsp + 0xb8]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x20]
call section..text
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1400018ea
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc0], rax
jmp 0x1400017e4
cmp qword [rsp + 0xc0], 0
jne 0x140001931
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x98]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x10]
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x98]
xor edx, edx
xor ecx, ecx
mov rax, qword [rsp + 0xe0]
call qword [rax + 8]
mov rax, qword [rsp + 0xc0]
add rsp, 0xd8
ret
Function at 0x140001d90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
jmp 0x140001de5
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x30], 0
je 0x140001e1d
cmp qword [rsp + 0x38], 0
jne 0x140001e1d
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140001950
mov qword [rsp + 0x38], rax
jmp 0x140001dd8
mov rax, qword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400ec960
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400edea0
nop
cmp dword [0x1400f8768], 1
je 0x1400ec90c
mov dword [0x1400f8764], 1
mov byte [0x1400f8760], r12b
test ebx, ebx
jne 0x1400ec8f8
mov rcx, qword [0x1400f9838]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ec8e5
mov rcx, qword [0x1400f9830]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400ec884
call fcn.1400ed7fc
cmp qword [rdi], rax
jne 0x1400ec884
jmp 0x1400ec86a
cmp rdi, rsi
jb 0x1400ec8e5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400ed7fc
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400f9838]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400f9830]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400ec8c3
cmp r13, rax
je 0x1400ec8e3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400ec86a
lea rdx, [0x1400f27a0]
lea rcx, [0x1400f2798]
call fcn.1400ec6b4
lea rdx, [0x1400f27b0]
lea rcx, [0x1400f27a8]
call fcn.1400ec6b4
nop
test r12d, r12d
je 0x1400ec91b
mov ecx, 8
call fcn.1400edda0
test r12d, r12d
jne 0x1400ec946
mov dword [0x1400f8768], 1
lea ecx, [r12 + 8]
call fcn.1400edda0
mov ecx, r15d
call fcn.1400ec648
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400ec7d4

Function at 0x1400ec96c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400ec7d4
Function at 0x1400ee690
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400ed7fc
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400f8f38], rbx
jne 0x1400ee796
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400ee86b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ee86b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400f8f38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400f8f40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400f8f48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400f8f58], rax
test rax, rax
je 0x1400ee78d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400f8f50], rax
jmp 0x1400ee79d
mov rax, qword [0x1400f8f50]
jmp 0x1400ee7a4
mov rax, qword [0x1400f8f50]
mov r11, qword [0x1400f8f58]
cmp rax, rdi
je 0x1400ee80c
cmp r11, rdi
je 0x1400ee80c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400f8f58]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400ee80c
test rax, rax
je 0x1400ee80c
call rsi
test rax, rax
je 0x1400ee806
lea rcx, [rsp + 0x88]
mov r9d, LBItemFromPt
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400ee806
test byte [rsp + 0x38], 1
jne 0x1400ee80c
bts ebp, 0x15
jmp 0x1400ee84a
mov rcx, qword [0x1400f8f40]
cmp rcx, rdi
je 0x1400ee84a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400ee84a
call rax
mov rbx, rax
test rax, rax
je 0x1400ee84a
mov rcx, qword [0x1400f8f48]
cmp rcx, rdi
je 0x1400ee84a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400ee84a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400f8f38]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400ee86b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400ee86d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400f0f83
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400f71e0]
jne 0x1400efd8a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400efd86
repz ret
ror rcx, 0x10
jmp 0x1400f0edc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400f9060]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400f9158]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400f0f61
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400f9060]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400f0f83
mov rax, qword [rsp + 0x88]
mov qword [0x1400f9158], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400f90f8], rax
mov rax, qword [0x1400f9158]
mov qword [0x1400f8fd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400f90e0], rax
mov dword [0x1400f8fc0], 0xc0000409
mov dword [0x1400f8fc4], 1
mov rax, qword [0x1400f71e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400f71e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400f9058], eax
mov ecx, 1
call fcn.1400efb74
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400f3d18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400f9058], 0
jne 0x1400f100a
mov ecx, 1
call fcn.1400efb74
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1411d90b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411d9237
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 0x1411d90e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411d90c7
add dl, dl
jne 0x1411d90ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411d914e
xor eax, eax
add dl, dl
jne 0x1411d90fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411d9205
add dl, dl
jne 0x1411d910e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411d911b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411d9128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411d9135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411d9142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411d90d6
mov eax, 1
add dl, dl
jne 0x1411d915e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411d916b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411d9153
sub eax, ebx
mov ebx, 1
jne 0x1411d91a4
mov ecx, 1
add dl, dl
jne 0x1411d9186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411d9193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411d917b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411d90d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411d91c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411d91cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411d91b5
cmp eax, 0x7d00
jae 0x1411d91f3
cmp eax, 0x500
jb 0x1411d91ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411d90d6
cmp eax, 0x7f
ja 0x1411d91f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411d90d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411d922a
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 0x1411d90d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400182d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400182dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400182ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400182d5
lea eax, [rcx + 1]
jmp 0x1400182fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14001830e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400182f4
sub eax, 3
jb 0x14001832e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14001837d
sar eax, 1
movsxd rbp, eax
jb 0x140018364
jmp 0x14001833c
add ebx, ebx
jne 0x14001833a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140018364
inc ecx
add ebx, ebx
jne 0x14001834a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140018364
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14001835d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14001834c
add ecx, 2
jmp 0x140018369
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140018292
jmp 0x1400182dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb800
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400183cd
cmp rsi, rcx
jae 0x1400183d5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400183b4
cmp al, 0x8f
ja 0x1400183b4
cmp byte [rsi - 2], 0xf
je 0x1400183ba
sub al, 0xe8
cmp al, 1
ja 0x14001839e
cmp rsi, rcx
jae 0x1400183d5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400183a4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400183d5
lodsb al, byte [rsi]
jmp 0x1400183b4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x16000]
mov eax, dword [rdi]
or eax, eax
je 0x140018432
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x18000]
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 0x1400183e2
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 0x14001842c
mov qword [rbx], rax
add rbx, 8
jmp 0x140018402
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 0x14001846c
cmp al, 0xef
ja 0x14001845e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14001843e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14001844d
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.1400184eb], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400184eb
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400184db
sub rsp, 0xffffffffffffff80
jmp 0x140001410
Function at 0x1407b2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407b21df
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 0x1407b2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407b206f
add dl, dl
jne 0x1407b2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407b20f6
xor eax, eax
add dl, dl
jne 0x1407b20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407b21ad
add dl, dl
jne 0x1407b20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407b20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407b207e
mov eax, 1
add dl, dl
jne 0x1407b2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407b2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407b20fb
sub eax, ebx
mov ebx, 1
jne 0x1407b214c
mov ecx, 1
add dl, dl
jne 0x1407b212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407b213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407b2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407b207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407b2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407b2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407b215d
cmp eax, 0x7d00
jae 0x1407b219b
cmp eax, 0x500
jb 0x1407b2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407b207e
cmp eax, 0x7f
ja 0x1407b219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407b207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407b21d2
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 0x1407b207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000cde0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x14000ffbb]
call sub.msvcrt.dll_getenv
jmp 0x14000d2bf
lea rcx, [0x14000ffbf]
lea rdx, [0x14000ffb7]
mov r8, rax
mov rax, qword [0x140010244]
call rax
mov rsi, rax
lea rdi, [0x14000ffbf]
lea r12, [0x14000d626]
push r12
push rbp
mov rbp, rsp
sub rsp, 0x1d0
mov r10, qword [rbp - 0x37]
mov r11, qword [rbp - 0x152]
call fcn.14000d47a
mov ecx, dword [0x14000f006]
mov word [rbp - 0x54], ax
mov qword [rbp - 0xdb], r10
mov eax, eax
and dword [rbp - 0x16a], eax
sub qword [rbp - 0x105], r9
mov dword [rbp - 0x192], ecx
mov edx, dword [rbp - 0xa7]
mov ecx, 0xa541
cmp ecx, 0xe0264a68
jo 0x14000d3ad
mov rax, qword [rbp - 0xf4]
mov qword [rbp - 0x158], rdx
mov rdx, qword [rbp - 0x198]
mov edx, eax
add rax, rdx
add r9, qword [rbp - 0x133]
sub qword [rbp - 0xbc], r10
mov rcx, qword [rbp - 0x1f]
mov ecx, dword [rbp - 0x1b4]
mov r8, qword [0x14000f00e]
mov ah, byte [rbp - 0xc3]
mov ecx, 0x185f
mov edx, dword [rbp - 0x1a9]
mov dx, word [rbp - 0x93]
mov ecx, eax
mov rax, qword [rbp - 0x7d]
lea r8, [rbp - 0xfc]
movzx ecx, dx
mov eax, dword [rbp - 0x72]
mov eax, 0xb6ff
mov rdx, qword [rbp - 0x54]
mov qword [rbp - 0x79], r9
mov dword [rbp - 0x170], ecx
mov eax, dword [0x14000f007]
movzx eax, ch
mov eax, dword [rbp - 0x135]
mov eax, dword [rbp - 0x1cb]
cmp ecx, dword [0x14000f008]
jne 0x14000d3e2
movzx eax, dh
mov r10, qword [rbp - 0x32]
mov qword [rbp - 0x10a], r9
mov r9, rdx
lea ecx, [rbp - 0x16d]
add eax, eax
mov dword [rbp - 0x17b], edx
mov qword [rbp - 0x122], r11
and r11, 0xb045
xor ax, dx
mov dword [rbp - 0x137], ecx
cmp r10, qword [0x14000f00c]
je 0x14000d441
add edx, dword [rbp - 0x184]
mov dword [rbp - 0x118], eax
mov edx, eax
add eax, 0xfcea
mov byte [rbp - 0x139], dl
mov eax, dword [rbp - 0x169]
mov dword [0x14000f00b], ecx
sub edx, 0x54ef
movzx ecx, cx
sub r8, rcx
add eax, edx
and r9, rdx
mov qword [rbp - 0x2e], rcx
mov r10, rcx
mov eax, ecx
mov qword [rbp - 0xa9], r8
or al, byte [rbp - 0x21]
cmp eax, eax
js 0x14000d478
movzx edx, byte [0x14000f001]
mov qword [rbp - 0x15a], rcx
mov r10, 0x9db6
sub rax, r9
leave
ret
Function at 0x140001d54
Capabilities:
Parse pe header

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

Function at 0x140007a28
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007a97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007a97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007a97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007a97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007a97
cmp dword [rcx + 0x84], 0xe
jbe 0x140007a97
cmp dword [rcx + 0xf8], 0
je 0x140007a97
mov ecx, ebx
call fcn.140007b48
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007924
nop
cmp dword [rbp + 0x20], 0
je 0x140007ae5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007af0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007a28

Function at 0x140007c2c
Capabilities:
Parse pe header

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