joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cbae0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x5cbbb5
movdqa xmm0, xmmword [0x00705470]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x5cbb21
movdqa xmm0, xmmword [0x00705480]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x5cbc37
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x5cbc0b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x00705140]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x00705490]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x5d8a40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5d8bdb
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x5d8a61
inc rcx
cmp rbx, rcx
jle 0x5d8bd1
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x5d8a5e
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.0054e040
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rdi
mov rdx, qword [0x00848b58]
test rsi, rsi
mov r8, qword [rsp + 0x88]
cmovne rbx, r8
mov r8, qword [rsp + 0x80]
cmovne rax, r8
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.005d4de0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
mov rdx, qword [rsp + 0x58]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x68]
mov r9d, 0
cmovne r8, r9
nop word [rax + rax]
test rcx, rcx
jne 0x5d8bc5
test rdx, rdx
je 0x5d8bba
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x58], rdx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x008dc7b0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5d8b89
xor eax, eax
lea rbx, [0x0069089d]
mov ecx, 1
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006908b8]
mov r9d, 2
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x58]
call fcn.0044b000
jmp 0x5d8bb0
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00703b28]
mov esi, 1
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0x58]
call fcn.0044af40
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
mov rdi, r9
add rsp, 0x70
pop rbp
ret
mov rax, r9
mov rbx, rsi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045dcc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.005d8a40
Function at 0x619d80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x619e82
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov rcx, qword [rax + 0x28]
mov rbx, qword [rax + 0x30]
nop
mov rax, rcx
call fcn.00562400
test rdi, rdi
jne 0x619dd3
mov rbx, qword [0x008556c0]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx]
mov rdi, qword [rdx + 8]
lea rax, [0x0064b920]
call fcn.004121a0
mov rdi, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x50], rdi
mov rax, qword [rsp + 0x78]
call fcn.00619d20
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
nop
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x008dc7b0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x619e55
xor eax, eax
lea rbx, [0x0069089d]
mov ecx, 1
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
lea r8, [0x006908b8]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x50]
call fcn.0044b000
jmp 0x619e7c
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x00703b28]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x50]
call fcn.0044af40
add rsp, 0x68
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.0045dcc0
mov rax, qword [rsp + 8]
jmp fcn.00619d80
Function at 0x14001873c
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 0x14001859b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001859b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001859b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001859b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001859b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001859b
cmp dword [rcx + 0xf8], 0
je 0x14001859b
mov ecx, ebx
call fcn.140018658
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.140018428
nop
cmp dword [rbp + 0x20], 0
je 0x1400185e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400185f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001852c

Function at 0x140018a7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140025920
sub rsp, rax
mov rax, qword [0x140034860]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b570
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018acb
mov rax, rbp
jmp 0x140018bd3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x35f50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001bbdc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35f50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018bcf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018bcf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001bbdc
test rax, rax
js 0x140018bcf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018bcf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018bc1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018bc1
cmp byte [rcx], 0xd
jne 0x140018ba7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018bb6
cmp byte [rcx + 1], 0xa
jne 0x140018bb6
inc rcx
jmp 0x140018bb6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x34b30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018b89
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018bd3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400124d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c360
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140035f50]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001c3be
cmp word [rdx], r12w
jne 0x14001c3be
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001c3c4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001c51f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001c4fa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001c3fd
mov rcx, r9
jmp 0x14001c420
cmp r9, rdx
jae 0x14001c437
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001c3e1
jmp 0x14001c51f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c4f4
cmp dword [rsp + 0x80], edi
je 0x14001c4f4
mov rdx, r14
lea r11, [0x140035f50]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001c4cd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001c4a0
mov word [rbx], r12w
jmp 0x14001c51b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001c4a9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001c51b
cmp word [rsp + 0x70], r12w
jne 0x14001c4da
cmp rbx, rsi
je 0x14001c49a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001bbe4
cmp word [rsp + 0x70], r12w
je 0x14001c51f
mov word [rbx], r13w
jmp 0x14001c51b
lea r11, [0x140035f50]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001c517
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001c51f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001f110
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001f142
call fcn.14001e8f0
mov dword [rax], 0x16
call fcn.140019ff0
jmp 0x14001f261
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001f261
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001f261
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001f171
lock or dword [rcx + 0x14], 0x10
jmp 0x14001f261
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001f185
call fcn.140022768
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001b570
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001c80c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001f24f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001f21a
mov rcx, rsi
call fcn.14001b570
cmp eax, edi
je 0x14001f205
mov rcx, rsi
call fcn.14001b570
cmp eax, 0xfffffffe
je 0x14001f205
mov rcx, rsi
call fcn.14001b570
movsxd rbx, eax
lea r14, [0x140035f50]
mov rcx, rsi
sar rbx, 6
call fcn.14001b570
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001f20c
lea rdx, [0x140034c30]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001f21a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001f23e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001f23e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001f23e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001f264
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140020d60
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140020d90
xor eax, eax
jmp 0x140020e53
mov rbp, rbx
cmp word [rax], si
je 0x140020db5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020d9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020d98
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140020cb0
movsxd r14, eax
test eax, eax
jne 0x140020df3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020d89
mov rcx, r14
call fcn.14001f27c
mov rdi, rax
test rax, rax
jne 0x140020e0c
xor ecx, ecx
call fcn.14001cfe8
jmp 0x140020de8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140020cb0
test eax, eax
jne 0x140020e3d
mov rcx, rdi
call fcn.14001cfe8
jmp 0x140020e47
xor ecx, ecx
call fcn.14001cfe8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140024790
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bbe4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bbe4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400248e0
cmp rax, 0xffffffffffffffff
je 0x1400248e0
xor edi, edi
test rbp, rbp
jle 0x14002488b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f2dc
mov rbx, rax
test rax, rax
jne 0x140024818
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140024881
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b048
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001e188
cmp eax, 0xffffffff
je 0x140024861
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140024828
mov edx, r15d
mov ecx, r14d
call fcn.14001b048
jmp 0x140024881
cmp byte [rsi + 0x38], dil
je 0x140024878
cmp dword [rsi + 0x34], 5
jne 0x140024878
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140024881
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001cfe8
jmp 0x1400248f4
jns 0x1400248f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bbe4
cmp rax, 0xffffffffffffffff
jne 0x1400248ac
cmp byte [rsi + 0x30], dil
je 0x1400248f4
mov edi, dword [rsi + 0x2c]
jmp 0x1400248f4
mov ecx, r14d
call fcn.1400217d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400248f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400248f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400248ed
mov eax, dword [rsi + 0x2c]
jmp 0x1400248f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bbe4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1412b6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1412b61df
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 0x1412b6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412b606f
add dl, dl
jne 0x1412b6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412b60f6
xor eax, eax
add dl, dl
jne 0x1412b60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412b61ad
add dl, dl
jne 0x1412b60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412b60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412b60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412b60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412b60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1412b607e
mov eax, 1
add dl, dl
jne 0x1412b6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412b6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412b60fb
sub eax, ebx
mov ebx, 1
jne 0x1412b614c
mov ecx, 1
add dl, dl
jne 0x1412b612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1412b613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412b6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412b607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1412b6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1412b6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412b615d
cmp eax, 0x7d00
jae 0x1412b619b
cmp eax, 0x500
jb 0x1412b6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412b607e
cmp eax, 0x7f
ja 0x1412b619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1412b607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412b61d2
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 0x1412b607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001050
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140001097
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001097
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rbx, rax
test rax, rax
je 0x140001097
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x140001099
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000113c
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
test rcx, rcx
jne 0x140001161
xor eax, eax
jmp 0x1400011d4
mov rbx, qword [rcx + 0x28]
test rbx, rbx
jne 0x140001175
call fcn.140001284
mov ecx, eax
mov rbx, qword [rcx + rdi]
mov rax, rbx
shr rax, 0x38
cmp al, 0x40
jne 0x1400011d1
cmp byte [0x140004088], 0
jne 0x1400011c5
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rsp + 0x20]
mov qword [0x140004080], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [0x140004088], 1
mov rax, qword [0x140004080]
test rax, rax
jne 0x1400011d4
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001990
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400011ec
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8d, 0x20
lea r9, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov dword [r11 - 0x38], r8d
mov edi, ecx
call fcn.140001817
mov edx, dword [rsp + 0x20]
mov ecx, 0x400
mov r8d, 0xb1127cfc
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140001241
xor eax, eax
jmp 0x140001269
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov ecx, edi
call fcn.140001817
test eax, eax
je 0x140001266
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000123d
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001990
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140001450
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400014f2
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400014f2
call fcn.14000113c
mov rdi, rax
test rax, rax
je 0x1400014f2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14000154c
test rax, rax
je 0x1400014f2
and qword [rsp + 0x48], 0
mov rcx, rax
and ecx, 0xfff
mov r8d, 0x1000
sub r8, rcx
mov r9d, 1
mov rcx, qword [rbx + 0x20]
mov rdx, rax
cmp r8, rcx
cmovae r8, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400014f7
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001778
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400017ff
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400017ff
call fcn.14000113c
mov rcx, qword [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.14000154c
test rax, rax
je 0x1400017ff
mov rdx, qword [rdi + 0x18]
lea r9, [rsp + 0x38]
mov rcx, rax
mov r8d, 0x1000
and ecx, 0xfff
sub r8, rcx
mov rcx, qword [rdi + 0x20]
cmp r8, rcx
cmovae r8, rcx
mov rcx, rax
call fcn.140001704
xor eax, eax
jmp 0x140001804
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400af4c0]
mov dword [rax], 1
mov rax, qword [0x1400af4d0]
mov dword [rax], 1
mov rax, qword [0x1400af4e0]
mov dword [rax], 1
mov rax, qword [0x1400af440]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret