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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14002e180]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r14b, r14b
mov word [rsp + 0x20], 0xba49
mov word [rsp + 0x2a], 0xff41
lea rax, [0x140003e10]
mov qword [rsp + 0x22], rax
mov rbx, r9
mov dword [rsp + 0x30], 0
mov rdi, rdx
mov esi, 0xd
test cl, cl
je 0x14000432b
test rbx, rbx
je 0x1400042f6
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x1400043e0
mov eax, dword [r9 + 0x18]
test eax, eax
je 0x1400043e0
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140004381
movsd xmm0, qword [rsp + 0x20]
mov r14b, 1
mov eax, dword [rsp + 0x28]
movsd qword [rdi], xmm0
mov dword [rdi + 8], eax
mov byte [rdi + 0xc], 0xe2
jmp 0x140004381
test rbx, rbx
je 0x1400043e0
cmp qword [r9], 0
je 0x1400043e0
mov eax, dword [r9 + 8]
test eax, eax
je 0x1400043e0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x60], rbp
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000437c
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r14b, 1
mov rbp, qword [rsp + 0x60]
mov rbx, qword [0x140031218]
test rbx, rbx
jne 0x1400043b4
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtFlushInstructionCache
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x140031218], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call rbx
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, r14b
jmp 0x1400043e2
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001e3d0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140004400
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14002e180]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x1400311d8], 0
je 0x14000458e
cmp qword [0x1400311e0], 0
je 0x14000458e
cmp qword [0x1400311e8], 0
jbe 0x14000458e
call fcn.1400041e0
test al, al
je 0x14000458e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp byte [0x1400311f0], bl
mov dword [rsp + 0x20], ebx
je 0x140004469
mov r10d, dword [0x1400311d8]
cmp r10d, 2
jne 0x140004491
mov rdx, qword [0x1400311e8]
lea r9, [0x1400311f8]
mov rcx, qword [0x1400311e0]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10d, dword [0x1400311d8]
mov edx, dword [0x1400311f4]
mov r9, qword [0x1400311e8]
mov rcx, qword [0x1400311e0]
mov rax, r9
shr rax, 2
movd xmm2, edx
pshufd xmm2, xmm2, 0
test rax, rax
je 0x14000452d
cmp rax, 0x10
jb 0x140004522
mov r11, rax
lea r8, [rcx + 0x20]
and r11, 0xfffffffffffffff0
nop dword [rax + rax]
movdqu xmm0, xmmword [r8 - 0x20]
add rbx, 0x10
lea r8, [r8 + 0x40]
pxor xmm0, xmm2
movdqu xmmword [r8 - 0x60], xmm0
movdqu xmm0, xmmword [r8 - 0x50]
pxor xmm0, xmm2
movdqu xmmword [r8 - 0x50], xmm0
movdqu xmm1, xmmword [r8 - 0x40]
pxor xmm1, xmm2
movdqu xmmword [r8 - 0x40], xmm1
movdqu xmm0, xmmword [r8 - 0x30]
pxor xmm0, xmm2
movdqu xmmword [r8 - 0x30], xmm0
cmp rbx, r11
jb 0x1400044d0
cmp rbx, rax
jae 0x14000452d
xor dword [rcx + rbx*4], edx
inc rbx
cmp rbx, rax
jb 0x140004522
mov rbx, qword [rsp + 0x30]
lea rax, [rax*4]
cmp rax, r9
jae 0x14000454b
nop
xor byte [rax + rcx], dl
inc rax
cmp rax, r9
jb 0x140004540
cmp byte [0x1400311f0], 0
jne 0x140004560
cmp r10d, 2
jne 0x140004580
lea r8d, [r10 - 1]
jmp 0x140004567
mov r8d, dword [0x1400311f8]
mov rdx, qword [0x1400311e8]
lea r9, [rsp + 0x20]
mov rcx, qword [0x1400311e0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [0x1400311f0], 0
sete byte [0x1400311f0]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001e3d0
add rsp, 0x38
ret
Function at 0x1400193a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x1400194f4
cmp r9, 4
jb 0x1400193ea
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x1400193d0
xor r11d, r11d
test r9, r9
je 0x1400194f4
cmp r9, 0x40
jb 0x1400194d3
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14001941c
cmp rdx, r8
jae 0x1400194d3
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140019431
cmp rdx, r10
jae 0x1400194d3
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov rsi, r9
and rsi, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140019460
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r11, r9
jae 0x1400194f4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x1400194e0
add rsp, 8
ret

Function at 0x14001f240
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f28a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f28a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f28a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f28a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f28a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001f28c
xor al, al
add rsp, 0x28
ret
Function at 0x6d8f86d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9195e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8f8858
mov rax, qword [0x6d9195e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8f871c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8f87a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8f8700
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8f888d
mov rax, qword [0x6d9195e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d9195e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8f8870
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8f879e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8f8800
add dword [0x6d9195e4], 1
cmp edi, 8
jae 0x6d8f87d3
test dil, 4
jne 0x6d8f8844
test edi, edi
je 0x6d8f87c8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8f885f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8f87c8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8f87ec
jmp 0x6d8f87c8
add rsi, qword [0x6d9195e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8f879e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8f87c8
xor esi, esi
jmp 0x6d8f8727
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8f87c8
mov rax, qword [0x6d9195e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8f8fe0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d9198c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d9198a0]
test rbx, rbx
je 0x6d8f9034
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8f902b
test rsi, rsi
je 0x6d8f902b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8f9010
lea rcx, [0x6d9198c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8f9270
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8f9280
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8f9290
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 0x6d8f92d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8f92c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8f92d3
add rax, 0x28
cmp rax, r9
jne 0x6d8f92b4
xor eax, eax
ret

Function at 0x6d8f9370
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9161f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8f93dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f93dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8f93dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8f93d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8f93df
add rax, 0x28
cmp rax, r9
jne 0x6d8f93c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8f94e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9161f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8f9500
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f94f8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8f955d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8f9554
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8f9564
add rax, 0x28
cmp rax, r9
jne 0x6d8f9540
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8f9580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d9161f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8f95ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8f95ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8f95ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8f95ee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8f95e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8f95f5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8f95d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8f9608
jmp 0x6d8f95ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8f9616
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8f95ee
test r9d, r9d
jg 0x6d8f9600
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8f9980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1800063d9
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x18007f9f0
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret
Function at 0x1805f90b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1805f9237
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 0x1805f90e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805f90c7
add dl, dl
jne 0x1805f90ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805f914e
xor eax, eax
add dl, dl
jne 0x1805f90fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805f9205
add dl, dl
jne 0x1805f910e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f911b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f9128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f9135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805f9142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805f90d6
mov eax, 1
add dl, dl
jne 0x1805f915e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f916b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805f9153
sub eax, ebx
mov ebx, 1
jne 0x1805f91a4
mov ecx, 1
add dl, dl
jne 0x1805f9186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805f9193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805f917b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805f90d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805f91c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805f91cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805f91b5
cmp eax, 0x7d00
jae 0x1805f91f3
cmp eax, 0x500
jb 0x1805f91ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805f90d6
cmp eax, 0x7f
ja 0x1805f91f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805f90d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805f922a
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 0x1805f90d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1407c20b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407c2237
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 0x1407c20e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c20c7
add dl, dl
jne 0x1407c20ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c214e
xor eax, eax
add dl, dl
jne 0x1407c20fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c2205
add dl, dl
jne 0x1407c210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c2128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c2135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407c2142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407c20d6
mov eax, 1
add dl, dl
jne 0x1407c215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c2153
sub eax, ebx
mov ebx, 1
jne 0x1407c21a4
mov ecx, 1
add dl, dl
jne 0x1407c2186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c2193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c20d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407c21c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c21cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c21b5
cmp eax, 0x7d00
jae 0x1407c21f3
cmp eax, 0x500
jb 0x1407c21ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c20d6
cmp eax, 0x7f
ja 0x1407c21f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c20d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407c222a
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 0x1407c20d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010d2
Capabilities:
Connect pipe

Disassembly:
jmp 0x140068100
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x208]
xor eax, eax
cmp rcx, 0xffffffffffffffff
je 0x140068168
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
cmp dword [rdi + 0x214], eax
jne 0x14006814d
cmp dword [rdi + 0x218], eax
jne 0x14006816e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x14006814d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14006815c
mov ebx, 1
mov dword [rdi + 0x210], 1
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, [rdi + 0x278]
mov qword [rdi + 0x278], rax
mov qword [rdi + 0x280], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
test eax, eax
jne 0x140068152
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140068146
mov rcx, qword [rdi + 0x208]
lea r9d, [rbx + 1]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x278]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
test eax, eax
jne 0x140068152
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400010dc
Capabilities:
Read file on windows

Disassembly:
jmp 0x140068a30
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x140068a5d
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x140068a78
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x40]
cmp dword [rcx + 0x218], edi
jne 0x140068aa2
mov rcx, qword [rcx + 0x208]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rcx + 0x230], rdi
mov qword [rsp + 0x48], rsi
lea rsi, [rcx + 0x228]
mov rcx, qword [rcx + 0x208]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x140068b08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140068b06
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000110e
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x14000ec30
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400fae80]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov ebx, r8d
mov rdi, rdx
mov qword [rsp + 0x24], rax
mov qword [rsp + 0x2c], rax
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
mov qword [rsp + 0x38], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0x67452301
test r8d, 0xfffffe00
je 0x14000ecbf
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140001820
add ebx, 0xfffffe00
add rdi, 0x40
test ebx, 0xfffffe00
jne 0x14000eca0
lea rcx, [rsp + 0x20]
movzx r8d, bx
mov rdx, rdi
call fcn.1400011db
lea r9, [rsp + 0x20]
mov r8d, 5
sub r9, rsi
nop
mov ecx, dword [r9 + rsi]
lea rsi, [rsi + 4]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl ecx, 0x10
and eax, 0xff00
shr edx, 8
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rsi - 4], edx
dec r8
jne 0x14000ece0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006cfe0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000119a
Capabilities:
Encode data using base64

Disassembly:
jmp 0x14000e9e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
xor eax, eax
movzx r11d, r8w
mov rdi, rdx
mov word [rsp + 0x19], ax
mov byte [rsp + 0x1b], al
mov eax, 0x55555556
xor r10d, r10d
mov byte [rsp + 0x18], 0
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
imul r11d
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea eax, [rbx + rbx*2]
sub r11d, eax
test ebx, ebx
jle 0x14000eab6
nop dword [rax]
movzx edx, r10w
lea r8, [rdi + rdx*2]
add r8, rdx
movzx edx, byte [r8]
movzx r9d, byte [r8 + 1]
movzx eax, dl
shl dl, 4
shr al, 2
mov byte [rsp + 0x18], al
movzx eax, r9b
shl r9b, 2
shr al, 4
or al, dl
movzx edx, byte [r8 + 2]
mov r8d, 4
and al, 0x3f
mov byte [rsp + 0x19], al
movzx eax, dl
shr al, 6
or al, r9b
and al, 0x3f
and dl, 0x3f
mov byte [rsp + 0x1b], dl
lea rdx, [rsp + 0x18]
mov byte [rsp + 0x1a], al
nop word [rax + rax]
movzx eax, byte [rdx]
inc rcx
lea rdx, [rdx + 1]
movzx eax, byte [rax + rsi]
mov byte [rcx - 1], al
dec r8
jne 0x14000ea90
inc r10w
movzx eax, r10w
cmp eax, ebx
jl 0x14000ea30
dec r11d
je 0x14000eb40
dec r11d
jne 0x14000eb2d
movzx edx, r10w
lea rax, [rdi + rdx*2]
movzx r8d, byte [rdx + rax]
movzx r10d, byte [rdx + rax + 1]
movzx edx, r10b
movzx r9d, r8b
shl r8b, 4
shr dl, 4
shr r9b, 2
and r10b, 0xf
movzx eax, r9b
or dl, r8b
movzx eax, byte [rax + rsi]
and dl, 0x3f
shl r10b, 2
mov byte [rcx], al
movzx eax, dl
movzx eax, byte [rax + rsi]
mov byte [rcx + 1], al
movzx eax, r10b
movzx eax, byte [rax + rsi]
mov byte [rcx + 2], al
mov word [rcx + 3], 0x3d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov byte [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
ret
mov rbx, qword [rsp + 8]
movzx edx, r10w
lea rax, [rdi + rdx*2]
mov rdi, qword [rsp + 0x20]
movzx r8d, byte [rdx + rax]
movzx eax, r8b
and r8b, 3
shr al, 2
shl r8b, 4
movzx eax, al
movzx eax, byte [rax + rsi]
mov byte [rcx], al
movzx eax, r8b
movzx eax, byte [rax + rsi]
mov rsi, qword [rsp + 0x10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
mov byte [rcx + 4], 0
ret