joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140291db8
Capabilities:
Log keystrokes via polling

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, 0x20
cmp dword [rdx + 8], 0x100
mov rbp, rdx
mov rbx, rcx
jne 0x140291ea8
xor edx, edx
call fcn.1401e1c54
mov rcx, rbx
test rax, rax
je 0x140291e00
mov rdx, rbp
call fcn.1401ccdfc
jmp 0x140291eb3
call fcn.1401e1c4c
cmp dword [rbx + 0x1394], 0
mov esi, eax
je 0x140291e16
sub esi, dword [rbx + 0x1388]
mov r14d, dword [rbx + 0x1138]
test r14d, r14d
js 0x140291ea8
cmp r14d, esi
jge 0x140291ea8
mov edi, dword [rbp + 0x10]
cmp edi, 9
jne 0x140291e49
lea ecx, [rdi + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, al
btc edi, 7
shr edi, 6
or edi, 0x25
mov rcx, rbx
call fcn.1401965b4
bt eax, 0x16
jae 0x140291e69
cmp edi, 0x25
je 0x140291eeb
cmp edi, 0x27
je 0x140291f41
sub edi, 0xd
je 0x140291f87
sub edi, 0xe
je 0x140291f55
sub edi, 0xa
je 0x140291f41
sub edi, 2
je 0x140291eeb
mov rcx, rbx
cmp edi, 1
je 0x140291ece
mov rax, qword [rbx]
mov edx, dword [rbp + 0x10]
mov rax, qword [rax + 0x728]
call qword [case.0x1401acf82.0]
test eax, eax
jne 0x140291ee4
mov rdx, rbp
mov rcx, rbx
call fcn.1401e7d2c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, dword [rbx + 0x1138]
call fcn.1401e1b2c
mov rdx, rax
mov rcx, rbx
call fcn.1401e1150
mov eax, 1
jmp 0x140291eb3
inc dword [rbx + 0x1138]
cmp dword [rbx + 0x1138], esi
jl 0x140291f00
and dword [rbx + 0x1138], 0
mov edx, r14d
mov rcx, rbx
call fcn.1401e2424
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.1401e2424
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x1138]
mov rax, qword [rax + 0x4b8]
call qword [case.0x1401acf82.0]
jmp 0x140291ea8
sub dword [rbx + 0x1138], 1
jns 0x140291f00
lea eax, [rsi - 1]
mov dword [rbx + 0x1138], eax
jmp 0x140291f00
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c0]
call qword [case.0x1401acf82.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c8]
call qword [case.0x1401acf82.0]
and dword [0x1403bcd98], 0
jmp 0x140291ea8
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.1401e1b2c
mov rdx, rax
mov rcx, rbx
call fcn.1401e1150
test eax, eax
jne 0x140291ee4
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.1401e1b2c
mov rdx, rax
mov rcx, rbx
call fcn.1401e7fc0
jmp 0x140291ee4
Function at 0x1402a8144
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140318dec
test eax, eax
jne 0x1402a81a8
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.1401883e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1402a8168
jmp 0x1402a81ba
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1402a83a8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1402a8469
mov ebx, 0x811c9dc5
xor esi, esi
mov rcx, rdx
call fcn.14030b730
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x1402a840c
movzx ecx, word [rdi + rsi*2]
imul ebx, ebx, 0x1000193
xor ebx, ecx
add esi, edx
cmp esi, r8d
jb 0x1402a83f9
mov dword [r14], ebx
xor edx, edx
mov eax, ebx
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x1402a8449
mov rbx, qword [rbx + rdx*8]
jmp 0x1402a8444
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x1402a8441
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.14030fd0c
nop
test eax, eax
je 0x1402a8464
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1402a8428
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, rbx
jmp 0x1402a844b
call fcn.140184b68
int3
Function at 0x1402b14ac
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
cmp dword [rdx + 8], 0x100
jne 0x1402b15e2
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1402b15e2
cmp ebx, 0x43
je 0x1402b14fa
cmp ebx, 0x2d
jne 0x1402b15e2
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1402b15e2
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.140187c3c
mov rcx, rax
test rax, rax
je 0x1402b1601
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1401acf82.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
movzx eax, byte [rsi + 0x196]
movzx r9d, byte [rsi + 0x195]
movzx r8d, byte [rsi + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x48]
call fcn.14018889c
mov rbx, qword [rsp + 0x48]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x1402b15ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1402b15ba
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1402b15e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401acf82.0]
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.14018482c
int3
Function at 0x1402d280c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov rdi, rcx
xor ebp, ebp
cmp edx, 0x79
jne 0x1402d283a
lea ecx, [rdx - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1402d283f
cmp esi, 0x5d
jne 0x1402d2864
or eax, 0xffffffff
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rdi
call fcn.1402d23b4
mov eax, 1
jmp 0x1402d2906
mov edx, esi
mov rcx, qword [rdi + 0x1558]
call fcn.1402cde94
test eax, eax
jne 0x1402d285a
cmp qword [rdi + 0x1560], rbp
je 0x1402d28c0
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1401e1a18
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1403bca1c], ebp
mov rcx, qword [rdi + 0x1560]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1b8]
mov edx, esi
call qword [case.0x1401acf82.0]
nop
mov dword [0x1403bca1c], ebx
jmp 0x1402d2906
cmp qword [rdi + 0x1580], rbp
je 0x1402d2904
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1401e1a18
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1403bca1c], ebp
mov rcx, qword [rdi + 0x1580]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1d0]
mov edx, esi
call qword [case.0x1401acf82.0]
nop
jmp 0x1402d28b8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1402fac28
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx + 8], 0x100
mov rdi, rdx
mov rbx, rcx
jne 0x1402fad36
cmp qword [rdx + 0x10], 9
je 0x1402fac6c
cmp qword [rdx + 0x10], 0x1b
jne 0x1402facc0
call fcn.140190880
test rax, rax
je 0x1402facc0
mov rcx, rbx
call fcn.140190880
jmp 0x1402facae
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14019026c
test rax, rax
je 0x1402facc0
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14019026c
mov rdx, qword [rbx + 0x40]
xor r8d, r8d
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.14019026c
mov rcx, rax
call fcn.1401968e8
mov eax, 1
jmp 0x1402fad41
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14019026c
cmp rax, rbx
jne 0x1402fad36
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1402fad36
mov rax, qword [rdi + 0x10]
cmp rax, 0x2e
je 0x1402fad2f
cmp rax, 0x43
je 0x1402fad28
cmp rax, 0x56
je 0x1402fad11
cmp rax, 0x58
je 0x1402fad0a
cmp rax, 0x5a
jne 0x1402fad36
lea edx, [rax + 0x6d]
jmp 0x1402fad16
mov edx, 0x300
jmp 0x1402fad16
mov edx, 0x302
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1402facb6
mov edx, 0x301
jmp 0x1402fad16
mov edx, 0x303
jmp 0x1402fad16
mov rdx, rdi
mov rcx, rbx
call fcn.1401ae268
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14030a730
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 0x14030a79f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14030a79f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14030a79f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14030a79f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14030a79f
cmp dword [rcx + 0x84], 0xe
jbe 0x14030a79f
cmp dword [rcx + 0xf8], 0
je 0x14030a79f
mov ecx, ebx
call fcn.14030a850
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.14030a62c
nop
cmp dword [rbp + 0x20], 0
je 0x14030a7ed
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14030a7f8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14030a730

Function at 0x14030a934
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14030a730
Function at 0x14031cfec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14031d073
mov rsi, rbx
cmp word [rax], bp
je 0x14031d032
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14031d01c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14031d018
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14031b5c8
mov rdi, rax
test rax, rax
je 0x14031d060
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140325f40
mov rbp, rdi
xor ecx, ecx
call fcn.14031b628
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403258e0
Capabilities:
Parse pe header

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

Function at 0x140785058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407851df
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 0x140785089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078506f
add dl, dl
jne 0x140785096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407850f6
xor eax, eax
add dl, dl
jne 0x1407850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407851ad
add dl, dl
jne 0x1407850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14078507e
mov eax, 1
add dl, dl
jne 0x140785106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140785113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407850fb
sub eax, ebx
mov ebx, 1
jne 0x14078514c
mov ecx, 1
add dl, dl
jne 0x14078512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140785123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140785168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140785175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078515d
cmp eax, 0x7d00
jae 0x14078519b
cmp eax, 0x500
jb 0x140785196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078507e
cmp eax, 0x7f
ja 0x14078519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407851d2
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 0x14078507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002b900
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002b90d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002b91d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002b905
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002b935
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002b922
sub eax, 3
jb 0x14002b94f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002b986
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002b976
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002b974
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002b963
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002b8c2
jmp 0x14002b90d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002b9d2
cmp rsi, rcx
jae 0x14002b9da
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002b9b9
cmp al, 0x8f
ja 0x14002b9b9
cmp byte [rsi - 2], 0xf
je 0x14002b9bf
sub al, 0xe8
cmp al, 1
ja 0x14002b9a3
cmp rsi, rcx
jae 0x14002b9da
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002b9a9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002b9da
lodsb al, byte [rsi]
jmp 0x14002b9b9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x29000]
mov eax, dword [rdi]
or eax, eax
je 0x14002ba43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2ca00]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002b9e7
jns 0x14002ba1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14002ba26
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002ba3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14002ba07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002ba9b
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0
Function at 0x1805c8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1805c81df
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 0x1805c8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805c806f
add dl, dl
jne 0x1805c8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805c80f6
xor eax, eax
add dl, dl
jne 0x1805c80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805c81ad
add dl, dl
jne 0x1805c80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805c80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805c80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805c80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805c80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805c807e
mov eax, 1
add dl, dl
jne 0x1805c8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805c8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805c80fb
sub eax, ebx
mov ebx, 1
jne 0x1805c814c
mov ecx, 1
add dl, dl
jne 0x1805c812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805c813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805c8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805c807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805c8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805c8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805c815d
cmp eax, 0x7d00
jae 0x1805c819b
cmp eax, 0x500
jb 0x1805c8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805c807e
cmp eax, 0x7f
ja 0x1805c819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805c807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805c81d2
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 0x1805c807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000143c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rcx, qword [rsp + 0x30]
xor ebx, ebx
test rcx, rcx
jne 0x14000145d
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140001479
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001479
mov edx, 0x410
mov ecx, 1
and eax, edx
cmp eax, edx
cmove ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14000166c
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x280
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, qword [rbp + 0x1c0]
lea rcx, [rsp + 0x20]
mov r15, qword [rbp + 0x1c8]
xor edx, edx
mov r8d, 0x250
call fcn.14001f180
or rbx, 0xffffffffffffffff
xor r12d, r12d
mov rdi, rbx
test rsi, rsi
je 0x1400017fd
mov rax, rbx
inc rax
cmp word [rsi + rax*2], r12w
jne 0x1400016da
test rax, rax
je 0x1400017fd
lea r8, [0x140050ef4]
mov rcx, rsi
call fcn.140001328
mov r14, rax
test rax, rax
jne 0x140001712
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400017ed
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rbx
je 0x1400017d9
test byte [rsp + 0x20], 0x10
je 0x14000175d
lea rdx, [0x140050ef8]
lea rcx, [rsp + 0x4c]
call fcn.14002589c
test eax, eax
je 0x1400017c3
lea rdx, [0x140050efc]
lea rcx, [rsp + 0x4c]
call fcn.14002589c
test eax, eax
je 0x1400017c3
lea r8, [rsp + 0x4c]
mov rcx, rsi
call fcn.140001328
mov rbx, rax
test rax, rax
je 0x1400017c3
test byte [rsp + 0x20], 0x10
mov rcx, rax
je 0x14000179e
call fcn.14000143c
test eax, eax
jne 0x140001793
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call fcn.14000166c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400017af
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rax, r15
call qword [0x1400405a8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000172c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x14000180a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001870
Capabilities:
Check if file exists
Delete directory

Disassembly:
push rbp
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x1400591e0]
xor rax, rsp
mov qword [rbp + 0x340], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14001f180
xor edx, edx
lea rcx, [rbp + 0x130]
mov r8d, 0x208
call fcn.14001f180
lea rcx, [rbp + 0x130]
call fcn.140003594
test eax, eax
je 0x14000197a
mov rcx, qword [0x14005c9a8]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140011840
test al, al
je 0x14000197a
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
call fcn.14002589c
test eax, eax
je 0x14000197a
mov rcx, qword [0x14005c9a8]
call fcn.140011fe8
test al, al
je 0x140001973
mov rcx, qword [0x14005c9a8]
call fcn.1400120c4
test al, al
je 0x140001973
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140001973
lea rcx, [rsp + 0x20]
call fcn.14000143c
test eax, eax
jne 0x140001968
lea rdx, [0x140001490]
lea rcx, [rsp + 0x20]
call fcn.14000166c
test eax, eax
je 0x140001973
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x14000197c
xor eax, eax
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x450
pop rbp
ret