joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002000
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x140002070
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000f104]
mov r12, rcx
test ebx, ebx
jle 0x1400021a0
mov rax, qword [0x14000f108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400020bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140002145
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400020a0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400021c2
mov rax, qword [0x14000f108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400021a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000213e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002150
add dword [0x14000f104], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000f108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000213e
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 ebx, ebx
jmp 0x1400020c8
mov rax, qword [0x14000f108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002740
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14000f160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f140]
test rbx, rbx
je 0x14000279c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002793
test r12, r12
je 0x140002793
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002778
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400029d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400029e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400029f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002a00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002a45
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140002a3c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002a47
add rax, 0x28
cmp rax, r9
jne 0x140002a28
xor eax, eax
ret

Function at 0x140002a50
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002ae0
mov rdx, qword [0x14000a980]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140002ace
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002ace
cmp word [rax + 0x18], 0x20b
jne 0x140002ace
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002ae0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002ab9
add r12, 0x28
cmp r12, rsi
je 0x140002ae0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002ab0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x14000a980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002b65
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b5c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b10
add rax, 0x28
cmp rax, r9
jne 0x140002b48
xor eax, eax
ret

Function at 0x140002b70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a980]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002b90
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002b98
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002b90
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x140002bb0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a980]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002bd0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002bd8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002bd0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002c18
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002c0f
test rcx, rcx
je 0x140002bd0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002c00
xor eax, eax
ret

Function at 0x140002c20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a980]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002c40
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002c48
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x14000a980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002c80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002c88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c80
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002c80
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002ccc
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ce0
add rdx, 0x28
cmp rdx, r9
jne 0x140002cb8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a980]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002d12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002d20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002d12
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002d12
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002d6d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002d80
add rdx, 0x28
cmp r10, rdx
jne 0x140002d58
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002d8f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002d9f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002d76
test ecx, ecx
jg 0x140002d88
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140012f20
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003aab8]
test rcx, rcx
je 0x140012f8a
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012f7d
mov rcx, qword [0x14003aab8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003aab8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003d2d0], 1
jne 0x140013037
mov rbx, qword [0x14002abe0]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x14002abd0]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x14002abc0]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x14002abb0]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x14003aad0]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140013037
and eax, 0x10
je 0x140013037
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140013000
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014440
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140014280
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.1400143e0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003aac0]
test eax, eax
je 0x1400142b5
test eax, eax
jg 0x1400142fd
jmp 0x140014332
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.1400124d0
test al, al
je 0x1400143ba
lea rcx, [rsp + 0x20]
call fcn.14001af20
movsxd rcx, dword [0x14003aac0]
lea rdx, [0x140047b30]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003aac0], eax
test eax, eax
jle 0x140014332
lea rdi, [0x140047b30]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001bb60
test eax, eax
je 0x14001439b
inc rbx
movsxd rax, dword [0x14003aac0]
add rdi, 8
cmp rbx, rax
jl 0x140014310
mov rcx, rsi
call fcn.14001bb98
cmp rax, 2
jne 0x140014349
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x14001439d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140014368
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x14001439d
cmp dword [0x14003aac0], 0x3ff
jg 0x14001439d
mov rcx, rsi
call fcn.14001af20
movsxd rcx, dword [0x14003aac0]
lea rdx, [0x140047b30]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003aac0], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140014440
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140013770
int3

Function at 0x140014bc0
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019e34
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 0x140019ea3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019ea3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019ea3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019ea3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019ea3
cmp dword [rcx + 0x84], 0xe
jbe 0x140019ea3
cmp dword [rcx + 0xf8], 0
je 0x140019ea3
mov ecx, ebx
call fcn.140019d60
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.140019fc8
nop
cmp dword [rbp + 0x20], 0
je 0x140019ef1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140019e00
int3

Function at 0x14001c020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001c048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001c048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140021928
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400219af
mov rsi, rbx
cmp word [rax], bp
je 0x14002196e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021958
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021954
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001edc8
mov rdi, rax
test rax, rax
je 0x14002199c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140015410
mov rbp, rdi
xor ecx, ecx
call fcn.14001de88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18181f0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18181f237
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 0x18181f0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18181f0c7
add dl, dl
jne 0x18181f0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18181f14e
xor eax, eax
add dl, dl
jne 0x18181f0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18181f205
add dl, dl
jne 0x18181f10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18181f11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18181f128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18181f135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18181f142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18181f0d6
mov eax, 1
add dl, dl
jne 0x18181f15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18181f16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18181f153
sub eax, ebx
mov ebx, 1
jne 0x18181f1a4
mov ecx, 1
add dl, dl
jne 0x18181f186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18181f193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18181f17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18181f0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18181f1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18181f1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18181f1b5
cmp eax, 0x7d00
jae 0x18181f1f3
cmp eax, 0x500
jb 0x18181f1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18181f0d6
cmp eax, 0x7f
ja 0x18181f1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18181f0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18181f22a
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 0x18181f0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1405f3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405f31df
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 0x1405f3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f306f
add dl, dl
jne 0x1405f3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f30f6
xor eax, eax
add dl, dl
jne 0x1405f30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f31ad
add dl, dl
jne 0x1405f30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405f30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405f307e
mov eax, 1
add dl, dl
jne 0x1405f3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f30fb
sub eax, ebx
mov ebx, 1
jne 0x1405f314c
mov ecx, 1
add dl, dl
jne 0x1405f312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405f3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f315d
cmp eax, 0x7d00
jae 0x1405f319b
cmp eax, 0x500
jb 0x1405f3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f307e
cmp eax, 0x7f
ja 0x1405f319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405f31d2
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 0x1405f307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000ae50
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd78]
test rcx, rcx
je 0x14000ae8b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000ae7e
mov rcx, qword [0x14002dd78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003cdd0], 0
je 0x14000af7e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028858]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400365a0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000af5f
test al, 0x10
je 0x14000af5f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000af05
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x907900
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x90790d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x90791d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x907905
lea eax, [rcx + 1]
jmp 0x90792b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x90793e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x907924
sub eax, 3
jb 0x90795e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x9079ad
sar eax, 1
movsxd rbp, eax
jb 0x907994
jmp 0x90796c
add ebx, ebx
jne 0x90796a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x907994
inc ecx
add ebx, ebx
jne 0x90797a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x907994
call r11
adc ecx, ecx
add ebx, ebx
jne 0x90798d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x90797c
add ecx, 2
jmp 0x907999
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.009078c2
jmp 0x90790d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x21f600
mov dl, 0x26
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x9079f9
cmp rsi, rcx
jae 0x907a01
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x9079e0
cmp al, 0x8f
ja 0x9079e0
cmp byte [rsi - 2], 0xf
je 0x9079e6
sub al, 0xe8
cmp al, 1
ja 0x9079ca
cmp rsi, rcx
jae 0x907a01
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x9079d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x907a01
lodsb al, byte [rsi]
jmp 0x9079e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x500000]
mov eax, dword [rdi]
or eax, eax
je 0x907a5e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x507000]
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 0x907a0e
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 0x907a58
mov qword [rbx], rax
add rbx, 8
jmp 0x907a2e
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 0x907aa2
cmp al, 0xef
ja 0x907a8a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x907a6a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x907a79
mov eax, dword [rdi]
add rdi, 4
jmp 0x907a79
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x907af6
sub rsp, 0xffffffffffffff80
jmp 0x467f00