joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401fd6b0
Capabilities:
Parse pe header

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

Function at 0x1401fde80
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14022c570
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14022c59d
xor al, al
jmp 0x14022c6ff
mov rax, qword [0x14024b6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14024b6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14024b6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14024b6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14024b6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14024b6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14024b6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14024b6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14024b700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14022c6f1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14022c649
mov r11d, 2
jmp 0x14022c66d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14022c663
mov r11d, 1
jmp 0x14022c66d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14022c715
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14022c6b2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14022c6ca
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14022c6da
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14022c6e8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14022c630
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14022c6fa
Function at 0x1406d3f0d
Capabilities:
Execute syscall

Disassembly:
syscall
ret
mov r10, rcx
jmp 0x140612431

Function at 0x140a7b87b
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
syscall
ret

Function at 0x140d323c5
Capabilities:
Execute syscall

Disassembly:
syscall
ret
mov r10, rcx
jmp 0x14033d253
Function at 0x14000f428
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov r10d, dword [rcx + 0x24]
test edx, r10d
jne 0x14000f439
xor eax, eax
jmp 0x14000f46f
lea eax, [r10 - 4]
test eax, 0xfffffffb
je 0x14000f46a
test r8d, r8d
jne 0x14000f46a
cmp r10d, 2
jne 0x14000f456
mov rcx, qword [rcx + 0x248]
mov rdx, qword [rcx + 0x198]
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14000f435
mov eax, 1
add rsp, 0x28
ret

Function at 0x140022700
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x140022749
test byte [rcx + 0x1c], 4
je 0x140022749
cmp byte [rcx + 0x19], 5
jb 0x140022749
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400828c0]
mov edx, 0x2b
call fcn.140001024
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftFaxReceipts
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.140066b60
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x1400227bb
mov rax, qword [str.___t_]
cmp rax, r14
je 0x1400228b0
test byte [rax + 0x1c], 4
je 0x1400228b0
cmp byte [rax + 0x19], 2
jb 0x1400228b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rdi + 0x2c]
mov r9d, eax
lea r8, [0x1400828c0]
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x1400228b0
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14007265c
mov rbx, rax
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x140022883
test eax, eax
je 0x14002283f
test rbx, rbx
lea r8, [0x140081e18]
mov rcx, rdi
cmovne r8, rbx
call fcn.1400722a8
test eax, eax
jne 0x140022883
mov rax, qword [str.___t_]
cmp rax, r14
je 0x14002283f
test byte [rax + 0x1c], 4
je 0x14002283f
cmp byte [rax + 0x19], 2
jb 0x14002283f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x1400828c0]
mov r9d, eax
mov edx, 0x2d
mov rcx, qword [rcx + 0x10]
call fcn.140001048
lea rdx, str.Password
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140022883
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140022883
test byte [rcx + 0x1c], 4
je 0x140022883
cmp byte [rcx + 0x19], 2
jb 0x140022883
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400828c0]
mov edx, 0x2e
mov r9d, eax
call fcn.140001048
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x1400228b0
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140022895
add rcx, rcx
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.1400634d4
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14006b0b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x598]
sub rsp, 0x680
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rbx, rcx
mov edi, 0x20a
mov r8d, edi
lea rcx, [rbp + 0x360]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rdi - 2]
lea rcx, [rbp + 0x150]
call sub.msvcrt.dll_memset
xor r14d, r14d
mov dword [rsp + 0x30], edi
test rbx, rbx
je 0x14006b305
lea r9d, [r14 + 1]
mov word [rbx], r14w
mov r8d, r9d
lea rdx, str.SoftwareMicrosoftFaxSetup
mov rcx, 0xffffffff80000001
call fcn.140066b60
mov rdi, rax
test rax, rax
je 0x14006b305
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rdi
lea rdx, str.CoverPageDir
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, 0x105
test esi, esi
je 0x14006b1b2
cmp esi, 2
jne 0x14006b305
lea rdi, str.FaxPersonal_Coverpages_
jmp 0x14006b224
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14006b305
mov rcx, r12
lea rax, [rsp + 0x40]
cmp word [rax], r14w
je 0x14006b1d9
add rax, 2
sub rcx, 1
jne 0x14006b1c9
test rcx, rcx
je 0x14006b1e6
mov rdx, r12
sub rdx, rcx
jmp 0x14006b1e9
mov rdx, r14
mov rax, rcx
lea rdi, [rsp + 0x40]
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14006b224
cmp word [rsp + r8*2 + 0x3e], 0x5c
je 0x14006b224
lea r8, [0x140084bb8]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14000a1e4
test eax, eax
js 0x14006b2fc
mov r8d, r12d
lea rdx, [rbp + 0x360]
mov ecx, 5
call fcn.14006af78
test eax, eax
jne 0x14006b255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSpecialPath_failed_err_ld
call fcn.140069168
jmp 0x14006b305
mov esi, 0x104
lea r8, [rbp + 0x360]
mov edx, esi
mov rcx, rbx
call fcn.140002a68
test eax, eax
js 0x14006b2fc
cmp word [rdi], 0x5c
je 0x14006b28e
lea r8, [0x140084bb8]
mov edx, esi
mov rcx, rbx
call fcn.14000a1e4
test eax, eax
js 0x14006b2fc
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14000a1e4
test eax, eax
js 0x14006b2fc
lea rax, [rbp + 0x150]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, str.FaxPersonal_CoverPages
mov edx, 0x8005
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
js 0x14006b2fc
mov r8d, 0x93d
lea rdx, str._SystemRoot__system32_fxsresm.dll
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
test eax, eax
js 0x14006b2fc
mov rcx, rbx
call fcn.14006422c
mov eax, 1
jmp 0x14006b307
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x140078b70
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
mov r10, qword [rcx]
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x140078be3
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
mov ebp, dword [rbp + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x140078beb
mov r13, qword [r11]
mov r11, r13
jmp 0x140078b9f
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx

Function at 0x14007933c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140079388
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140079380
cmp dword [rcx + 0x3c], edx
jl 0x140079380
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140079380
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 0x140079388
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001483
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
add rdi, rcx
mov rbx, rcx
mov r12d, edx
mov r13d, dword [rdi + 0x20]
mov ebp, dword [rdi + 0x1c]
add r13, rcx
cmp esi, ebp
jae 0x1400014e9
mov ecx, dword [r13 + rsi*4]
add rcx, rbx
call fcn.140001450
mov edx, eax
lea rax, [rsi + 1]
cmp edx, r12d
jne 0x1400014e4
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx eax, word [rsi + rax]
lea rax, [rbx + rax*4]
mov eax, dword [rax + rbp]
add rax, rbx
jmp 0x1400014eb
mov rsi, rax
jmp 0x1400014af
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400017c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007530
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007530
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001830
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400180a4]
mov rbx, rcx
test esi, esi
jle 0x140001960
mov rax, qword [0x1400180a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000187b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001905
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001860
mov rcx, rbx
call fcn.140002280
mov rdi, rax
test rax, rax
je 0x140001982
mov rax, qword [0x1400180a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400023c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400180a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001910
add dword [0x1400180a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400180a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017c0
nop dword [rax]
xor esi, esi
jmp 0x140001888
mov rax, qword [0x1400180a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017c0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ef0
Capabilities:
Get thread local storage value

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

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

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

Function at 0x140002300
Capabilities:
Parse pe header

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

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140015200]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1406ba160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406ba2e7
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 0x1406ba191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ba177
add dl, dl
jne 0x1406ba19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ba1fe
xor eax, eax
add dl, dl
jne 0x1406ba1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ba2b5
add dl, dl
jne 0x1406ba1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ba1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ba1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ba1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406ba1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406ba186
mov eax, 1
add dl, dl
jne 0x1406ba20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ba21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ba203
sub eax, ebx
mov ebx, 1
jne 0x1406ba254
mov ecx, 1
add dl, dl
jne 0x1406ba236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ba243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ba22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ba186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406ba270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ba27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ba265
cmp eax, 0x7d00
jae 0x1406ba2a3
cmp eax, 0x500
jb 0x1406ba29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ba186
cmp eax, 0x7f
ja 0x1406ba2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ba186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406ba2da
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 0x1406ba186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140bdb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bdb1df
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 0x140bdb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bdb06f
add dl, dl
jne 0x140bdb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bdb0f6
xor eax, eax
add dl, dl
jne 0x140bdb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bdb1ad
add dl, dl
jne 0x140bdb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bdb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bdb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bdb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bdb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bdb07e
mov eax, 1
add dl, dl
jne 0x140bdb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bdb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bdb0fb
sub eax, ebx
mov ebx, 1
jne 0x140bdb14c
mov ecx, 1
add dl, dl
jne 0x140bdb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bdb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bdb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bdb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bdb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bdb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bdb15d
cmp eax, 0x7d00
jae 0x140bdb19b
cmp eax, 0x500
jb 0x140bdb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bdb07e
cmp eax, 0x7f
ja 0x140bdb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bdb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bdb1d2
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 0x140bdb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005310
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005344
cmp word [rcx], 0x5a4d
jne 0x140005344
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005344
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005344
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005250
test eax, eax
jne 0x140005360
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400052c0
test rax, rax
je 0x140005355
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005b09
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005a10
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400059b0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005e64
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14053ae58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14053ae54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005eb2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140005eaa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140005f99
inc ebx
add rax, 0x28
jmp 0x140005e8a
mov rcx, r12
call fcn.140006691
mov rbp, rax
test rax, rax
jne 0x140005ed1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005e00
movsxd rbx, ebx
mov rax, qword [0x14053ae58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000673f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14053ae58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140005f33
mov rax, qword [0x14053ae58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005e00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140005f93
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005f93
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14053ae58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005f93
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005e00
inc dword [0x14053ae54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret