joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005ce34
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x18008f320]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x18005ce8a
cmp word [rdx], r9w
jne 0x18005ce8a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x18005ce8f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x18005d00e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x18005cfd9
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18005ced7
cmp rcx, r8
jae 0x18005cef7
cmp word [rcx], r9w
jne 0x18005ced7
add rax, 4
mov edx, r9d
jmp 0x18005ceda
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x18005ceac
jmp 0x18005d00e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005cfd2
cmp dword [rsp + 0x80], edi
je 0x18005cfd2
lea r9, [0x18008f320]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x18005cfac
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x18005cf5f
mov word [rbx], bp
jmp 0x18005d00b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x18005cf7a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x18005d00b
cmp word [rsp + 0x70], bp
jne 0x18005cfb8
cmp rbx, rsi
je 0x18005cf57
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005cd90
cmp word [rsp + 0x70], bp
je 0x18005d00e
mov word [rbx], 0xd
jmp 0x18005d00b
mov rcx, r15
lea r9, [0x18008f320]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18005d008
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18005d00e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180060534
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18006054a
mov al, 1
jmp 0x1800605b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18006055b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800605b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800657e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800605b4
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800605b4
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800605b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800605b6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180063e64
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 0x180063e94
xor eax, eax
jmp 0x180063f57
mov rbp, rbx
cmp word [rax], si
je 0x180063eb9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180063ea0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180063e9c
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.1800624fc
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180063efa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180063e8d
call fcn.18005eb20
mov rdi, rax
test rax, rax
jne 0x180063f10
xor ecx, ecx
call fcn.180059ea0
jmp 0x180063eef
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.1800624fc
test eax, eax
jne 0x180063f41
mov rcx, rdi
call fcn.180059ea0
jmp 0x180063f4b
xor ecx, ecx
call fcn.180059ea0
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 0x180067e3c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x180067eaf
cmp word [rcx], si
je 0x180067eaf
lea rdx, [0x180079770]
call fcn.18006a88c
test eax, eax
je 0x180067eaf
lea rdx, [0x180079788]
mov rcx, rbx
call fcn.18006a88c
test eax, eax
jne 0x180067ea5
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180067ecc
mov eax, dword [rsp + 0x30]
jmp 0x180067ede
mov rcx, rbx
call fcn.180059644
jmp 0x180067ede
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x180067ed0
xor eax, eax
jmp 0x180067ede
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x180067ede
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180067ef0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.18005b090
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180067f93
cmp edi, dword [rsp + 0x30]
je 0x180067f8c
test ebp, ebp
je 0x180067f8c
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x180067f68
sub dx, 0x61
cmp dx, 0x19
ja 0x180067f74
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x180067f55
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x180067f78
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180067f95
mov eax, 1
jmp 0x180067f95
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18006a594
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.18005cd90
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005cd90
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18006a6e1
cmp rax, 0xffffffffffffffff
je 0x18006a6e1
xor edi, edi
test rbp, rbp
jle 0x18006a68f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180059e20
mov rbx, rax
test rax, rax
jne 0x18006a61c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18006a685
mov edx, 0x8000
mov ecx, r14d
call fcn.18006a418
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.18005e3e4
cmp eax, 0xffffffff
je 0x18006a665
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18006a62c
mov edx, r15d
mov ecx, r14d
call fcn.18006a418
jmp 0x18006a685
cmp byte [rsi + 0x38], dil
je 0x18006a67c
cmp dword [rsi + 0x34], 5
jne 0x18006a67c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18006a685
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180059ea0
jmp 0x18006a6f3
jns 0x18006a6f3
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005cd90
cmp rax, 0xffffffffffffffff
jne 0x18006a6ad
cmp byte [rsi + 0x30], dil
je 0x18006a6f3
jmp 0x18006a6e9
mov ecx, r14d
call fcn.1800657e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006a6f3
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 0x18006a6f3
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18006a6ee
mov edi, dword [rsi + 0x2c]
jmp 0x18006a6f3
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005cd90
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 0x18006bb70
Capabilities:
Parse pe header

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

Disassembly:
call 0x140e2a1df
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 0x140e2a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a06f
add dl, dl
jne 0x140e2a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a0f6
xor eax, eax
add dl, dl
jne 0x140e2a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a1ad
add dl, dl
jne 0x140e2a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e2a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e2a07e
mov eax, 1
add dl, dl
jne 0x140e2a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a0fb
sub eax, ebx
mov ebx, 1
jne 0x140e2a14c
mov ecx, 1
add dl, dl
jne 0x140e2a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e2a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a15d
cmp eax, 0x7d00
jae 0x140e2a19b
cmp eax, 0x500
jb 0x140e2a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a07e
cmp eax, 0x7f
ja 0x140e2a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e2a1d2
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 0x140e2a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180003e48
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.180003cb8

Function at 0x180005724
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000573a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000573c
xor eax, eax
test eax, eax
je 0x18000574c
mov ecx, eax
call fcn.180007478
or eax, 0xffffffff
jmp 0x18000574e
xor eax, eax
add rsp, 0x28
ret
jmp 0x180005724

Function at 0x180005754
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000573a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000573c
xor eax, eax
test eax, eax
je 0x18000574c
mov ecx, eax
call fcn.180007478
or eax, 0xffffffff
jmp 0x18000574e
xor eax, eax
add rsp, 0x28
ret
jmp 0x180005724

Function at 0x1800061a3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800830b0]
jne 0x1800033da
rol rcx, 0x10
test cx, 0xffff
jne 0x1800033d6
repz ret
ror rcx, 0x10
jmp 0x1800060fc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180084d40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180084e38]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180006181
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180084d40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800061a3
mov rax, qword [rsp + 0x88]
mov qword [0x180084e38], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180084dd8], rax
mov rax, qword [0x180084e38]
mov qword [0x180084cb0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180084dc0], rax
mov dword [0x180084ca0], 0xc0000409
mov dword [0x180084ca4], 1
mov rax, qword [0x1800830b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800830b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180084d38], eax
mov ecx, 1
call fcn.18000d874
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800376c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180084d38], 0
jne 0x18000622a
mov ecx, 1
call fcn.18000d874
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800100e4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800830b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180008274
xor ebx, ebx
cmp qword [0x180085d00], rbx
mov rdi, rax
jne 0x1800101f7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800102ce
lea rdx, [0x180038ff0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800102ce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180085d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180085d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180085d10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180085d20], rax
test rax, rax
je 0x1800101ee
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180085d18], rax
jmp 0x1800101fe
mov rax, qword [0x180085d18]
jmp 0x180010205
mov rax, qword [0x180085d18]
mov r11, qword [0x180085d20]
cmp rax, rdi
je 0x18001026c
cmp r11, rdi
je 0x18001026c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180085d20]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18001026c
test rax, rax
je 0x18001026c
call rsi
test rax, rax
je 0x180010266
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180010266
test byte [rsp + 0x40], 1
jne 0x18001026c
bts ebp, 0x15
jmp 0x1800102ac
mov rcx, qword [0x180085d08]
cmp rcx, rdi
je 0x1800102ac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800102ac
call rax
mov rbx, rax
test rax, rax
je 0x1800102ac
mov rcx, qword [0x180085d10]
cmp rcx, rdi
je 0x1800102ac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800102ac
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180085d00]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800102ce
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800102d0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800033c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002d600
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
lea rax, str.RT3u__ivZz3Agincqw6LnAl__Co6cW
mov qword [rsp + 0x20], rax
lea rcx, str.4096
call fcn.18000398c
mov dword [rsp + 0x34], eax
lea rcx, str.8192
call fcn.18000398c
mov ecx, dword [rsp + 0x34]
or ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x58]
mov r9d, 0x40
mov r8d, eax
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18002d66e
xor eax, eax
jmp 0x18002d6e0
mov dword [rsp + 0x30], 0
jmp 0x18002d682
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x30], eax
jae 0x18002d6db
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowWindow]
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
cdq
and edx, 0x1f
add eax, edx
and eax, 0x1f
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov byte [rdx + rcx], al
jmp 0x18002d678
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x18002d7e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa98
mov rax, qword [0x1800830b0]
xor rax, rsp
mov qword [rsp + 0xa80], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x18002d88e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x200
lea r8, [rsp + 0x680]
mov edx, eax
mov rax, qword [rsp + 0xaa0]
mov rcx, qword [rax + 0x18]
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::SystemErrorStr_unsigned_long_int__wchar_t____ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea r9, [rsp + 0x680]
lea r8, str.Cannot_get_process_snapshot:__s
mov edx, 0x200
lea rcx, [rsp + 0x280]
call fcn.180003e98
lea r9, [rsp + 0x280]
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xaa0]
mov rcx, qword [rax + 0x10]
call fcn.18002bd00
mov eax, 1
jmp 0x18002da4a
mov dword [rsp + 0x30], 0x130
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x270], eax
mov byte [rsp + 0x160], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x18002d8ff
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x270], eax
jne 0x18002d8e8
lea r8, [rsp + 0x5c]
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.180003ebc
jmp 0x18002d8ff
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x18002d8c2
movsx eax, byte [rsp + 0x160]
test eax, eax
jne 0x18002d954
lea r9, [rsp + 0x160]
lea r8, str.Cannot_find_my_own_name_in_the_process_list:__s
mov edx, 0x200
lea rcx, [rsp + 0x680]
call fcn.180003e98
lea r9, [rsp + 0x680]
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xaa0]
mov rcx, qword [rax + 0x10]
call fcn.18002bd00
mov eax, 1
jmp 0x18002da4a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_Process32First]
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x270], eax
jne 0x18002d979
jmp 0x18002da1f
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x5c]
call fcn.180004034
test eax, eax
je 0x18002d9ce
lea rdx, str.jkdefrag.exe
lea rcx, [rsp + 0x5c]
call fcn.180004034
test eax, eax
je 0x18002d9ce
lea rdx, str.jkdefragscreensaver.exe
lea rcx, [rsp + 0x5c]
call fcn.180004034
test eax, eax
je 0x18002d9ce
lea rdx, str.jkdefragcmd.exe
lea rcx, [rsp + 0x5c]
call fcn.180004034
test eax, eax
jne 0x18002da1f
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x5c]
lea r8, str.I_am_already_running:__S
mov edx, 0x200
lea rcx, [rsp + 0x680]
call fcn.180003e98
lea r9, [rsp + 0x680]
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0xaa0]
mov rcx, qword [rax + 0x10]
call fcn.18002bd00
mov eax, 1
jmp 0x18002da4a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x18002d967
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1800033c0
add rsp, 0xa98
ret
Function at 0x1442ea058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1442ea1df
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 0x1442ea089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1442ea06f
add dl, dl
jne 0x1442ea096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1442ea0f6
xor eax, eax
add dl, dl
jne 0x1442ea0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1442ea1ad
add dl, dl
jne 0x1442ea0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1442ea0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1442ea0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1442ea0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1442ea0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1442ea07e
mov eax, 1
add dl, dl
jne 0x1442ea106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1442ea113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1442ea0fb
sub eax, ebx
mov ebx, 1
jne 0x1442ea14c
mov ecx, 1
add dl, dl
jne 0x1442ea12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1442ea13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1442ea123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1442ea07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1442ea168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1442ea175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1442ea15d
cmp eax, 0x7d00
jae 0x1442ea19b
cmp eax, 0x500
jb 0x1442ea196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1442ea07e
cmp eax, 0x7f
ja 0x1442ea19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1442ea07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1442ea1d2
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 0x1442ea07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20