joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002160
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400021ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400021a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021af
add rax, 0x28
cmp rax, r9
jne 0x140002190
xor eax, eax
ret

Function at 0x1400021b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002240
mov rdx, qword [0x140009710]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000222e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000222e
cmp word [rax + 0x18], 0x20b
jne 0x14000222e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002240
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002219
add rbx, 0x28
cmp rbx, rdi
je 0x140002240
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002210
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140009710]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002270
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002278
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002270
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022cd
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]
cmp rcx, r8
mov rdx, r8
jb 0x1400022c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002270
add rax, 0x28
cmp rax, r9
jne 0x1400022b0
xor eax, eax
ret

Function at 0x1400022d0
Capabilities:
Parse pe header

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

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009710]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002330
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002338
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002330
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002380
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002377
test rcx, rcx
je 0x140002330
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002368
xor eax, eax
ret
Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009710]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140009710]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023f0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400023f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002444
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002450
add rdx, 0x28
cmp r9, rdx
jne 0x140002430
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009710]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002482
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002490
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002482
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002482
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002482
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400024e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024f8
add rdx, 0x28
cmp rdx, r10
jne 0x1400024d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002507
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002517
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024ee
test ecx, ecx
jg 0x140002500
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14000190c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001956
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001956
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001956
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001956
cmp dword [rcx + 0x84], 0xe
jbe 0x140001956
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001958
xor al, al
add rsp, 0x28
ret
Function at 0x140003950
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 0x140003984
cmp word [rcx], 0x5a4d
jne 0x140003984
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003984
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003984
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003890
test eax, eax
jne 0x1400039a0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003900
test rax, rax
je 0x140003995
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.140004152
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004050
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.140003ff0
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 0x1400044b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140529af8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140529af4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004502
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044fa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045e9
inc ebx
add rax, 0x28
jmp 0x1400044da
mov rcx, r12
call fcn.140004ce1
mov rbp, rax
test rax, rax
jne 0x140004521
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004450
movsxd rbx, ebx
mov rax, qword [0x140529af8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d8f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140529af8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004583
mov rax, qword [0x140529af8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004450
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045e3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045e3
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 [0x140529af8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004450
inc dword [0x140529af4]
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
Function at 0x140004a10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140529b60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140529b40]
test rbx, rbx
je 0x140004a5c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a56
test eax, eax
jne 0x140004a56
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a2e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c10
Capabilities:
Parse pe header

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

Function at 0x140004c34
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c6e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c65
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c70
inc r8d
add rax, 0x28
jmp 0x140004c4c
xor eax, eax
ret

Function at 0x140004ce1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140525d10]
mov r8, rcx
mov rcx, r9
call fcn.140004c10
test eax, eax
je 0x140004d0d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c34
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001cac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140005650], rbx
je 0x14000118c
cmp rax, rbx
jne 0x14000117f
mov ebx, 1
mov esi, ebx
jmp 0x140001191
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001164
mov ebx, 1
mov eax, dword [0x140005658]
cmp eax, ebx
jne 0x1400011a7
mov ecx, 0x1f
call fcn.140149000
jmp 0x140001216
mov eax, dword [0x140005658]
test eax, eax
jne 0x140001210
mov dword [0x140005658], ebx
lea r15, [0x140003408]
lea rdi, [0x1400033f0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001202
test eax, eax
jne 0x140001206
cmp qword [rdi], 0
je 0x1400011f7
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [vtable.LI_IsIUIkH.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400011ce
test eax, eax
je 0x140001216
mov eax, 0xff
jmp 0x1400012fc
mov dword [0x140005064], ebx
mov eax, dword [0x140005658]
cmp eax, ebx
jne 0x14000123d
lea rdx, [0x1400033e8]
lea rcx, [0x1400033d8]
call sub.msvcrt.dll__initterm
mov dword [0x140005658], 2
test esi, esi
jne 0x14000124a
xor eax, eax
xchg qword [0x140005650], rax
cmp qword [0x140005660], 0
je 0x140001288
lea rcx, [0x140005660]
call fcn.140001510
test eax, eax
je 0x140001288
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140005660]
mov r9, qword [vtable.LI_IsIUIkH.0]
call r9
mov r8, qword [0x140005078]
mov rdx, qword [0x140005070]
mov ecx, dword [0x140005068]
call fcn.140001b00
mov dword [0x140005060], eax
cmp dword [0x140005080], 0
jne 0x1400012b8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140005064], 0
jne 0x1400012cd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005060]
jmp 0x1400012fc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400015a4
add rsp, 0x28
jmp 0x140001140

Function at 0x1400013fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001448
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001440
cmp dword [rcx + 0x3c], edx
jl 0x140001440
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001440
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 0x140001448
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001570
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001598
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001598
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
push r9
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1406540b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140654237
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 0x1406540e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406540c7
add dl, dl
jne 0x1406540ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065414e
xor eax, eax
add dl, dl
jne 0x1406540fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140654205
add dl, dl
jne 0x14065410e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065411b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140654128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140654135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140654142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406540d6
mov eax, 1
add dl, dl
jne 0x14065415e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065416b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140654153
sub eax, ebx
mov ebx, 1
jne 0x1406541a4
mov ecx, 1
add dl, dl
jne 0x140654186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140654193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065417b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406540d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406541c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406541cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406541b5
cmp eax, 0x7d00
jae 0x1406541f3
cmp eax, 0x500
jb 0x1406541ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406540d6
cmp eax, 0x7f
ja 0x1406541f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406540d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065422a
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 0x1406540d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180004f30
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x250
movups xmm0, xmmword [0x1800090d0]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rbx, rcx
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.HighPoly.dll_public:_class_A3d_Channel____ptr64___cdecl_A3d_Channel::GetChildFromLinkGuid_struct__GUID__int____ptr64]
movups xmm0, xmmword [0x1800090d0]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov rsi, rax
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.HighPoly.dll_public:_class_A3d_Channel____ptr64___cdecl_A3d_Channel::GetChildFromLinkGuid_struct__GUID__int____ptr64]
mov r14, rax
test rsi, rsi
je 0x180005136
test rax, rax
je 0x180005136
mov ebx, 0x104
mov qword [rsp + 0x260], rbp
mov r8d, ebx
mov qword [rsp + 0x268], rdi
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, ebx
lea rax, [rsp + 0x40]
nop
cmp word [rax], 0
je 0x180004ff0
add rax, 2
sub rcx, 1
jne 0x180004fe0
xor ebp, ebp
lea rdi, [0x180009350]
mov rax, rbx
mov r8d, ebp
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x18000505f
mov rdx, rbx
lea rcx, [rsp + 0x40]
lea rcx, [rcx + r8*2]
sub rdx, r8
je 0x180005051
lea rax, [r8 + 0x7ffffefa]
mov r9, rdi
add rax, rdx
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x180005051
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x180005051
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x180005030
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd8]
mov edx, 0x208
lea rcx, [rsp + 0x40]
mov r8, rax
call fcn.180006080
mov rcx, rbx
lea rax, [rsp + 0x40]
cmp word [rax], bp
je 0x180005094
add rax, 2
sub rcx, 1
jne 0x180005085
mov rax, rbx
mov rdx, rbp
sub rax, rcx
test rcx, rcx
cmovne rdx, rax
je 0x1800050ed
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rdx*2]
sub rbx, rdx
je 0x1800050df
lea rax, [rdx + 0x7ffffefa]
add rax, rbx
sub rdi, rcx
test rax, rax
je 0x1800050df
movzx edx, word [rdi + rcx]
test dx, dx
je 0x1800050df
mov word [rcx], dx
dec rax
add rcx, 2
sub rbx, 1
jne 0x1800050c1
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bp
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0xd8]
mov edx, 0x208
lea rcx, [rsp + 0x40]
mov r8, rax
call fcn.180006080
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdi, qword [rsp + 0x268]
mov rbp, qword [rsp + 0x260]
cmp eax, 0xffffffff
je 0x180005136
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1800174b0
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 0x1800174dd
xor al, al
jmp 0x18001763f
mov rax, qword [0x1800376b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1800376b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1800376c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1800376c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1800376d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1800376d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1800376e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1800376e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1800376f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x180017631
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x180017589
mov r11d, 2
jmp 0x1800175ad
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1800175a3
mov r11d, 1
jmp 0x1800175ad
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x180017655
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 0x1800175f2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x18001760a
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 0x18001761a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x180017628
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x180017570
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 0x18001763a
Function at 0x1400175d2
Capabilities:
Execute syscall

Disassembly:
mov dl, 0xee
pop qword [rax]
add byte [rax + 0x39], cl
leave
cmp rsi, rbx
syscall
ret