joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140084870
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x140084870
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x40]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x78], 0
movzx eax, word [rsp + 0xa0]
mov r8d, 0xa
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14008490a
lea rcx, str._error__FindResource_n
call fcn.140002b6c
call fcn.1400018de
xor eax, eax
jmp 0x140084a57
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14008493c
lea rcx, str._error__LoadResource_n
call fcn.140002b6c
call fcn.1400018de
xor eax, eax
jmp 0x140084a57
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14008496c
lea rcx, str._error__LockResource_n
call fcn.140002b6c
call fcn.1400018de
xor eax, eax
jmp 0x140084a57
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14008499c
lea rcx, str._error__SizeOfResource_n
call fcn.140002b6c
call fcn.1400018de
xor eax, eax
jmp 0x140084a57
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x1400849f3
lea rcx, str._error__WriteResourceToDisk.CreateFile_n
call fcn.140002b6c
call fcn.1400018de
mov eax, 0xffffffff
jmp 0x140084a57
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x140084a3c
lea rcx, str._error__WriteResourceToDisk.WriteFile_n
call fcn.140002b6c
call fcn.1400018de
xor eax, eax
jmp 0x140084a57
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401724e0]
call fcn.140003f7b
mov rax, rdi
add rsp, 0x90
pop rdi
ret

Function at 0x140084bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140084bf0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x140084c28
Function at 0x1400aaf00
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400aaf00
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400aa880
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400aaf3f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401bb020]
jmp 0x1400aaf49
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14012b6b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140001a32
sub rsp, rax
mov rax, qword [0x1401a8240]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401ab550]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14012b8a2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14012b7f6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14012b7f6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14012b7db
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14012b778
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14012b862
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012b8c1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14012b89d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012b8c1
jmp 0x14012b74e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002c02
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14012b970
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140001a32
sub rsp, rax
mov rax, qword [0x1401a8240]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401ab550]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012bb7d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14012bac9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012bac9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14012baa9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14012ba38
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14012bb3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012bb9c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14012bb78
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012bb9c
jmp 0x14012ba0e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140002c02
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140bba0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bba237
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 0x140bba0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bba0c7
add dl, dl
jne 0x140bba0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bba14e
xor eax, eax
add dl, dl
jne 0x140bba0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bba205
add dl, dl
jne 0x140bba10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bba11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bba128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bba135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bba142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bba0d6
mov eax, 1
add dl, dl
jne 0x140bba15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bba16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bba153
sub eax, ebx
mov ebx, 1
jne 0x140bba1a4
mov ecx, 1
add dl, dl
jne 0x140bba186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bba193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bba17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bba0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bba1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bba1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bba1b5
cmp eax, 0x7d00
jae 0x140bba1f3
cmp eax, 0x500
jb 0x140bba1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bba0d6
cmp eax, 0x7f
ja 0x140bba1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bba0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bba22a
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 0x140bba0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140006700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140006868
test al, al
je 0x140006868
cmp qword [rsi + 0x58], 0
je 0x140006884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400365a0
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14000690d
mov rcx, rdi
call fcn.140006710
mov r14, rax
mov rbp, qword [0x14003f2b0]
test rbp, rbp
jne 0x1400068cb
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x14003f2b0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140006866
test dword [rsp + 0x38], 0x1000000
jne 0x140006866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140006984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140006866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400069a4
xor eax, eax
jmp 0x1400069b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400066a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400069e0
mov bpl, 1
jmp 0x140006868

Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rcx - 0x34], ch
push rdx
and al, 0xa5
rcl dword [rsi - 0x66d5e1af], cl
add byte [rbp + 0x54], al
cli
xchg ebp, eax
invalid
mov cl, 0xb1
outsb dx, byte [rsi]
invalid
Function at 0x180008870
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov edx, dword [0x1800c1d50]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x1800c1d54], edx
jle 0x1800088fb
lea rcx, [0x1800c1d54]
call fcn.180085628
cmp dword [0x1800c1d54], 0xffffffff
jne 0x1800088fb
mov r8d, 1
lea rdx, [0x1800a5998]
lea rcx, [0x1800bbd88]
call fcn.180008a90
lea rcx, [0x180088a80]
call fcn.18003fc48
nop
lea rcx, [0x1800c1d54]
call fcn.1800855c8
cmp qword [rbx + 0x18], 8
jb 0x180008907
mov rcx, qword [rbx]
jmp 0x18000890a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180008972
mov rcx, rbx
call fcn.1800089d0
cmp rax, 0xffffffffffffffff
je 0x18000895d
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180008990
nop
mov rcx, rax
call fcn.180008870
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x18000895d
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.180003e80
cmp qword [rbx + 0x18], 8
jb 0x180008967
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18003ff90
add rsp, 0x50
pop rbx
ret

Function at 0x180008c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
lea r10, [0x1800c1d80]
xor eax, eax
mov r8, r10
mov edx, eax
lea r8, [r8 + 4]
and edx, 1
mov ecx, eax
shr ecx, 1
dec edx
not edx
inc eax
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x180008c22
cmp eax, 0x800
jae 0x180008d0a
lea r9, [r10 + rax*4]
nop dword [rax]
lea ecx, [rax - 0x100]
inc eax
mov r8d, dword [r10 + rcx*4]
lea r9, [r9 + 4]
movzx edx, r8b
shr r8d, 8
mov ecx, dword [r10 + rdx*4]
xor ecx, r8d
mov dword [r9 - 4], ecx
cmp eax, 0x800
jb 0x180008ce0
lea rbx, [0x180009ab0]
call fcn.180009ba0
test eax, eax
lea rcx, [0x180009b90]
cmove rbx, rcx
mov qword [0x1800c1d58], rbx
add rsp, 0x20
pop rbx
ret
Function at 0x18000baf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push r15
mov r8d, dword [r9]
xor r14d, r14d
and r8d, 7
mov r15, r9
mov rbp, rcx
mov r10d, r14d
cmp rdx, 5
jae 0x18000bb17
xor eax, eax
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x20], rbx
lea rbx, [rdx - 4]
mov qword [rsp + 0x28], rsi
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
add rbx, rbp
mov qword [rsp + 0x38], r12
lea r12, [0x180000000]
nop dword [rax]
lea r9, [r10 + rbp]
cmp r9, rbx
jae 0x18000bb62
nop dword [rax]
movzx eax, byte [r9]
and al, 0xfe
cmp al, 0xe8
je 0x18000bb62
inc r9
cmp r9, rbx
jb 0x18000bb50
mov r10, r9
sub r10, rbp
mov rax, r10
sub rax, rsi
cmp r9, rbx
jae 0x18000bc84
cmp rax, 3
jbe 0x18000bb9f
mov r8d, r14d
movzx ecx, byte [r9 + 4]
mov rsi, r10
lea eax, [rcx - 1]
cmp al, 0xfd
ja 0x18000bbea
and r8d, 3
add r8d, r8d
or r8d, 1
inc r10
jmp 0x18000bb40
lea ecx, [rax - 1]
shl r8d, cl
and r8d, 7
je 0x18000bb80
movzx eax, byte [r8 + r12 + 0xa5a08]
mov ecx, 4
sub ecx, eax
movsxd rax, ecx
movzx ecx, byte [rax + r9]
cmp byte [r8 + r12 + 0xa5a00], r14b
je 0x18000bbd4
inc cl
test cl, 0xfe
jne 0x18000bb80
and r8d, 3
mov rsi, r10
add r8d, r8d
or r8d, 1
inc r10
jmp 0x18000bb40
movzx eax, cl
lea rdi, [r12 + 0xa5a08]
movzx ecx, byte [r9 + 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [r9 + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [r9 + 1]
shl eax, 8
or eax, ecx
mov ecx, r8d
add rdi, rcx
nop dword [rax]
sub eax, r10d
lea r11d, [rax - 5]
test r8d, r8d
je 0x18000bc53
movzx edx, byte [rdi]
add eax, 0xfffffffb
shl edx, 3
neg edx
lea ecx, [rdx + 0x18]
shr eax, cl
inc al
test al, 0xfe
jne 0x18000bc53
lea ecx, [rdx + 0x20]
mov eax, 1
shl eax, cl
dec eax
xor eax, r11d
jmp 0x18000bc20
mov eax, r11d
mov byte [r9 + 1], r11b
shr eax, 0x18
and al, 1
dec al
not al
mov byte [r9 + 4], al
mov eax, r11d
shr eax, 0x10
mov byte [r9 + 3], al
mov eax, r11d
shr eax, 8
mov byte [r9 + 2], al
add r10, 5
jmp 0x18000bb40
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
cmp rax, 3
ja 0x18000bcab
lea ecx, [rax - 1]
shl r8d, cl
and r8d, 7
mov r14d, r8d
mov dword [r15], r14d
mov rax, r10
pop r15
pop r14
pop rbp
ret
Function at 0x18000d710
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
je 0x18000d747
xor r9d, r9d
cmp dword [rcx + 0x3d0], r9d
jle 0x18000d747
sub r8, rdx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
inc r9d
xor byte [rdx], al
lea rdx, [rdx + 1]
cmp r9d, dword [rcx + 0x3d0]
jl 0x18000d730
ret
Function at 0x180011470
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
lea rcx, [rsp + 0x40]
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
mov dword [rsp + 0x30], ebx
call fcn.18005f7c0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [0x180090270]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x180090278]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180011538
lea rax, [rsp + 0x40]
xor r8d, r8d
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [0x180090270]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [0x180090278]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
test eax, eax
jne 0x180011562
xor r8d, r8d
lea rdx, [0x18008e0a0]
jmp 0x180011584
cmp word [rsp + 0x40], bx
je 0x18001157c
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180011572
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180008a90
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18003ff90
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1800115b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
mov rdi, rdx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x30]
xor ecx, ecx
lea r8d, [rbx + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp qword [0x1800be580], 8
lea rdx, [0x1800be568]
lea rcx, [rsp + 0x30]
cmovae rdx, qword [0x1800be568]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18001162a
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp qword [0x1800be4c0], 8
lea rdx, [0x1800be4a8]
lea rcx, [rsp + 0x30]
cmovae rdx, qword [0x1800be4a8]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x30], bx
je 0x18001167a
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180011670
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180008a90
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18003ff90
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret