joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0
mov rax, qword [0x140002118]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov rdx, qword [0x140002118]
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, section..data
mov rcx, rax
call fcn.140001144
mov qword [rbp - 0x20], 0xd
movabs rax, 0x5f63524356524574
mov qword [rbp - 0x40], rax
movabs rax, 0x37535652455f6352
mov qword [rbp - 0x3b], rax
lea rax, [rbp - 0x40]
lea rdx, [0x140006010]
mov rcx, rax
call fcn.1400011d0
lea rbx, [0x140006010]
mov qword [rbp - 0x28], 9
movabs rax, 0x5045b525945525c
mov qword [rbp - 0x33], rax
mov byte [rbp - 0x2b], 0x37
lea rax, [rbp - 0x33]
lea rdx, [section..bss]
mov rcx, rax
call fcn.1400012b0
lea rax, [section..bss]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 0
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x78
pop rbx
pop rbp
ret
Function at 0x140d19058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d191df
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 0x140d19089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d1906f
add dl, dl
jne 0x140d19096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d190f6
xor eax, eax
add dl, dl
jne 0x140d190a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d191ad
add dl, dl
jne 0x140d190b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d190c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d190d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d190dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d190ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d1907e
mov eax, 1
add dl, dl
jne 0x140d19106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d19113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d190fb
sub eax, ebx
mov ebx, 1
jne 0x140d1914c
mov ecx, 1
add dl, dl
jne 0x140d1912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d1913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d19123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d1907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d19168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d19175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d1915d
cmp eax, 0x7d00
jae 0x140d1919b
cmp eax, 0x500
jb 0x140d19196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d1907e
cmp eax, 0x7f
ja 0x140d1919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d1907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d191d2
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 0x140d1907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000203c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x17]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x17
jb 0x140002042
mov rax, rcx
ret

Function at 0x140002058
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x13]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x13
jb 0x14000205e
mov rax, rcx
ret

Function at 0x140002074
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x11]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x11
jb 0x14000207a
mov rax, rcx
ret

Function at 0x140002090
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 6]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 6
jb 0x140002096
mov rax, rcx
ret

Function at 0x1400020ac
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x10]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x10
jb 0x1400020b2
mov rax, rcx
ret

Function at 0x1400020c8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x14]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x14
jb 0x1400020ce
mov rax, rcx
ret

Function at 0x1400020e4
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x12]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x12
jb 0x1400020ea
mov rax, rcx
ret

Function at 0x140002100
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 9]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 9
jb 0x140002106
mov rax, rcx
ret

Function at 0x14000211c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x15]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x15
jb 0x140002122
mov rax, rcx
ret

Function at 0x140002138
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x19]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x19
jb 0x14000213e
mov rax, rcx
ret

Function at 0x140002154
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xe]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xe
jb 0x14000215a
mov rax, rcx
ret

Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xb]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xb
jb 0x140002176
mov rax, rcx
ret

Function at 0x14000218c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xc]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xc
jb 0x140002192
mov rax, rcx
ret

Function at 0x1400021a8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xd]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xd
jb 0x1400021ae
mov rax, rcx
ret

Function at 0x1400021c4
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x12]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 9
jb 0x1400021ca
mov rax, rcx
ret
Function at 0x1400021e8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 2]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 2
jb 0x1400021ee
mov rax, rcx
ret

Function at 0x140002204
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 7]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 7
jb 0x14000220a
mov rax, rcx
ret

Function at 0x140002220
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 8]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 8
jb 0x140002226
mov rax, rcx
ret

Function at 0x1400048c0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 5]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 5
jb 0x1400048c6
mov rax, rcx
ret

Function at 0x1400048dc
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x62]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x31
jb 0x1400048e2
mov rax, rcx
ret

Function at 0x140004900
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x46]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x23
jb 0x140004906
mov rax, rcx
ret

Function at 0x140004924
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x24]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x12
jb 0x14000492a
mov rax, rcx
ret

Function at 0x140004948
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x18]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xc
jb 0x14000494e
mov rax, rcx
ret

Function at 0x14000496c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x16]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xb
jb 0x140004972
mov rax, rcx
ret

Function at 0x140004990
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x1a]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0xd
jb 0x140004996
mov rax, rcx
ret

Function at 0x1400049b4
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 8]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 4
jb 0x1400049ba
mov rax, rcx
ret
Function at 0x14010bc80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140110590
sub rsp, rax
mov rax, qword [0x140153840]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14010bd42
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14010bced
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14010bce0
cmp rcx, 1
jb 0x14010bd9a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14010bd10
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14011fb54
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14010bcd0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14010bd73
lea rcx, [rsp + 0x80]
call fcn.140122994
jmp 0x14010bd75
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1401102c0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140114920
int3
Function at 0x14010fe40
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140153840]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14010fee5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14010fe9d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14010fe90
cmp rcx, 1
jb 0x14010ff16
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14010feb3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14011fb54
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14010fe80
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401102c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140114920
int3

Function at 0x140110150
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140153840]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1401101f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401101ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401101a0
cmp rcx, 1
jb 0x140110227
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401101c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14011fb54
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140110190
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401102c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140114920
int3

Function at 0x140110cf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140110d3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140110d3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140110d3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140110d3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140110d3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140110d40
xor al, al
add rsp, 0x28
ret
Function at 0x140116198
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 0x140116003
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140116003
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140116003
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140116003
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140116003
cmp dword [rcx + 0x84], 0xe
jbe 0x140116003
cmp dword [rcx + 0xf8], 0
je 0x140116003
mov ecx, ebx
call fcn.1401160b4
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.140115e90
nop
cmp dword [rbp + 0x20], 0
je 0x140116051
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011605c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140115f94
Function at 0x140127c00
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 0x140127c87
mov rsi, rbx
cmp word [rax], bp
je 0x140127c46
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140127c30
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140127c2c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140123180
mov rdi, rax
test rax, rax
je 0x140127c74
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14012df80
mov rbp, rdi
xor ecx, ecx
call fcn.140123cc8
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 0x14012b7fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14012b812
mov al, 1
jmp 0x14012b872
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14012b823
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14012b870
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401283a4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14012b870
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14012b870
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14012b870
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14012b872
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14012dd60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14012dd88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14012dd88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140712058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407121df
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 0x140712089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071206f
add dl, dl
jne 0x140712096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407120f6
xor eax, eax
add dl, dl
jne 0x1407120a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407121ad
add dl, dl
jne 0x1407120b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407120c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407120d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407120dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407120ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14071207e
mov eax, 1
add dl, dl
jne 0x140712106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140712113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407120fb
sub eax, ebx
mov ebx, 1
jne 0x14071214c
mov ecx, 1
add dl, dl
jne 0x14071212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14071213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140712123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140712168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140712175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071215d
cmp eax, 0x7d00
jae 0x14071219b
cmp eax, 0x500
jb 0x140712196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071207e
cmp eax, 0x7f
ja 0x14071219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407121d2
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 0x14071207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001960
Capabilities:
Access pe header

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400019c3
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140001b5e
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10b
je 0x1400019e6
cmp dword [rsp + 0x30], 0x20b
je 0x1400019f5
jmp 0x140001a05
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x40], rax
jmp 0x140001a15
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x140001a15
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140001b5e
lea r9, [rsp + 0x60]
mov r8w, 5
mov dl, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001a43
cmp dword [rsp + 0x60], 0
jne 0x140001a78
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x16]
and eax, 1
test eax, eax
je 0x140001a60
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x34], eax
jmp 0x140001a6b
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
jmp 0x140001b5e
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x60], 0
je 0x140001b53
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140001ac6
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140001b5e
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x20]
sub rax, 8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call fcn.1400016b0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001b4e
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x140001b5e
jmp 0x140001a98
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x78
ret
Function at 0x140002f90
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
lea rdx, [rsp + 0x38]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140002ff1
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x38]
call fcn.1400151a0
mov dword [rsp + 0x30], eax
jmp 0x140003017
lfence
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x140004350]
lea r8, [0x140004300]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x38], 0
je 0x14000302a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x58
ret

Function at 0x140003040
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
cmp dword [0x140006558], 0
je 0x14000307b
cmp dword [0x140006538], 0
jne 0x1400030a0
lea r9, [0x140004260]
lea r8, [0x140004280]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000141
jmp 0x140003171
movzx eax, byte [0x140006528]
test eax, eax
jne 0x1400030d0
lea r9, [0x140004260]
lea r8, [0x1400042c0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000a004
jmp 0x140003171
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
lea rdx, [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140003134
mov eax, dword [0x140006538]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x40], rax
xor ecx, ecx
call fcn.140010450
mov ecx, dword [0x140006558]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
call qword [0x140005338]
jmp 0x14000315a
lfence
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x140004260]
lea r8, [0x140004300]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x50], 0
je 0x14000316d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x68
ret