joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d1c70
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x1800d1c9c
add rcx, 0xc
mov rbx, rcx
jmp 0x1800d1c9e
xor ebx, ebx
mov qword [rbp - 0x40], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.180006650
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1800066a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
mov rax, qword gs:[0x58]
mov ecx, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1800d1d19
mov dword [rdi + 0x70], esi
movzx eax, bl
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rdi, rax
jmp 0x1800d1d02

Function at 0x1800d2b00
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1800c5080
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rbx
mov qword [rbp - 0x5c], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9, rdi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.180006650
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1800066a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x1800d2bbd
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1800c50c0
mov rax, qword gs:[0x58]
mov ecx, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1800d2bf6
mov dword [rdi + 0x70], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rdi, rax
jmp 0x1800d2bdd
Function at 0x1800d2c40
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1800c5080
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, rsi
mov qword [rbp - 0x64], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9, rbx
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.180006650
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.1800066a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1800d2d0f
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1800c50c0
mov rax, qword gs:[0x58]
mov ecx, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1800d2d48
mov dword [rdi + 0x70], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rdi, rax
jmp 0x1800d2d2f

Function at 0x1800d35a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov ebx, r8d
mov qword [rbp - 0x40], rdx
mov rsi, rdx
test rcx, rcx
je 0x1800d35da
add rcx, 0xc
mov rdi, rcx
jmp 0x1800d35dc
xor edi, edi
mov qword [rbp - 0x48], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov rdx, rsi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
lea rcx, [rbp - 0x88]
call fcn.180006650
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1800066a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x180266c0c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1800d366e
mov dword [rdi + 0x70], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1800ce100]
call rax
mov rdi, rax
jmp 0x1800d3658
Function at 0x1800d5a00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
mov r10, qword [rcx + 0x20]
lea r9, [rdx + rdx*4]
rol r9, 7
lea r9, [r9 + r9*8]
mov r11, rdx
shl r11, 0x11
xor r8, rax
xor r10, rdx
xor rdx, r8
xor rax, r10
xor r8, r11
rol r10, 0x2d
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], r8
mov qword [rcx + 0x20], r10
mov rax, r9
shr rax, 0x21
cmp rax, 0x7fffffff
je fcn.1800d5a00
ret

Function at 0x1800f48f0
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
cmp edx, 0xffffffff
jne 0x1800f4904
mov esi, 0xd5313557
jmp 0x1800f492b
mov ecx, edx
call fcn.1800f4820
mov rdx, rax
lea rcx, [0x180140680]
lea r8, [0x180146098]
call fcn.18008cfb0
mov rcx, rax
call fcn.1800f47a0
mov esi, eax
mov eax, esi
rol eax, 0xd
add eax, esi
mov esi, eax
xor esi, ebx
mov eax, esi
rol eax, 0xf
add eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1800f7d30
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov esi, r8d
mov edi, r9d
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1800c5080
nop
mov rdx, qword [rbx]
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x68], rdx
mov r8d, esi
mov dword [rbp - 0x54], r8d
mov r9d, edi
mov dword [rbp - 0x58], r9d
lea rcx, [rbp - 0x90]
call fcn.180006650
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8d, dword [rbp - 0x54]
mov r9d, dword [rbp - 0x58]
call sub.bcrypt.dll_BCryptHashData
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1800066a0
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1800f7de3
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1800c50c0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x18011ba00
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x28
xor eax, eax
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x18011ba3f
mov r10d, eax
lea r10, [rdx + r10*8 + 0x10]
mov r10, qword [r10]
test r10, r10
jne 0x18011ba24
xor r9d, r9d
jmp 0x18011ba28
mov r9d, dword [r10 + 0x14]
mov r10d, ecx
rol r10d, 0xd
add r10d, ecx
mov ecx, r10d
xor ecx, r9d
inc eax
cmp r8d, eax
jg 0x18011ba0f
mov eax, ecx
rol eax, 0xf
add eax, ecx
add rsp, 0x28
ret
Function at 0x180129620
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x180129671
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x18012989b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x180129665
inc edx
cmp edx, r9d
jl 0x180129645
jmp 0x18012989b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [0x1801e3570]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x1801297db
add rax, 0x10
cmp rax, r8
jb 0x1801296b8
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x18012989b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x18012d860
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov esi, edx
xor edi, edi
mov ebp, dword [rbx + 8]
test ebp, ebp
jle 0x18012d894
mov ecx, edi
mov rcx, qword [rbx + rcx*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ecx, esi
rol ecx, 0xd
add ecx, esi
mov esi, eax
xor esi, ecx
inc edi
cmp ebp, edi
jg 0x18012d876
mov eax, esi
rol eax, 0xf
add eax, esi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret
Function at 0x140001580
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x278
mov rbx, rcx
mov rdi, rbx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rsi, rcx
lea rcx, [rbx + rsi*2]
lea rdx, [0x14001900a]
mov r10, rcx
sub rcx, rdx
mov ax, word [rdx]
mov word [rcx + rdx], ax
add rdx, 2
test ax, ax
jne 0x1400015b6
mov rax, r10
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov word [rbx + rsi*2], 0
or rax, 0xffffffffffffffff
cmp rdi, rax
je 0x1400016e3
xor r12d, r12d
lea rdx, [0x140019006]
lea rcx, [rsp + 0x4c]
call fcn.14000c9d0
test eax, eax
je 0x14000168c
lea rdx, [0x140019000]
lea rcx, [rsp + 0x4c]
call fcn.14000c9d0
test eax, eax
je 0x14000168c
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x4c]
mov r10, rcx
sub rcx, rdx
mov ax, word [rdx]
mov word [rcx + rdx], ax
add rdx, 2
test ax, ax
jne 0x14000162d
mov rax, r10
test dword [rsp + 0x20], 0x10
je 0x140001666
lea rdx, [0x140019152]
mov rcx, rbx
call fcn.14000e350
mov rcx, rbx
call fcn.140001580
mov r12d, eax
jmp 0x140001687
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001687
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test r12d, r12d
jne 0x1400016b4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400015f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp r12d, 0x12
jne 0x1400016b4
xor r12d, r12d
mov word [rbx + rsi*2], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r12d, r12d
jne 0x1400016de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400016de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov eax, r12d
jmp 0x1400016e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x278
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002220
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
mov eax, 0x1048
call fcn.14000ca90
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov dword [rsi], 0
mov qword [rbx], 0
xor eax, eax
mov qword [rsp + 0x30], rax
mov eax, pe_nt_image_headers64
mov dword [rsp + 0x28], eax
mov eax, 3
mov dword [rsp + 0x20], eax
xor r9, r9
mov r8d, 1
mov edx, 0x80000000
lea rcx, [0x1400214d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
or rax, 0xffffffffffffffff
cmp r12, rax
jne 0x14000228f
xor eax, eax
jmp 0x140002419
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1044]
mov r8d, 0x1000
lea rdx, [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002401
cmp word [rsp + 0x38], 0x5a4d
jne 0x14000240e
mov eax, dword [rsp + 0x74]
movsxd rax, eax
cmp rax, 0xef8
jae 0x14000240e
mov eax, dword [rsp + 0x74]
movsxd rax, eax
lea rax, [rsp + rax + 0x38]
cmp dword [rax], 0x4550
jne 0x14000240e
lea rdx, [rax + 0x108]
lea rcx, [rsp + 0x1038]
cmp rdx, rcx
jae 0x14000240e
xor ecx, ecx
xor r8d, r8d
jmp 0x14000232c
cmp dword [rdx + 0x14], ecx
jbe 0x140002324
mov ecx, dword [rdx + 0x14]
mov r9d, dword [rdx + 0x14]
add r9d, dword [rdx + 0x10]
mov dword [rsi], r9d
add rdx, 0x28
add r8d, 1
movzx r9d, word [rax + 6]
cmp r8d, r9d
jl 0x140002311
mov eax, dword [rsi]
add eax, 2
mov edx, eax
xor r9d, r9d
xor r8, r8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000240e
mov qword [rsp + 0x1038], 0
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1044]
mov r8d, 8
lea rdx, [rsp + 0x1038]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002401
mov rax, qword [rsp + 0x1038]
mov qword [rbx], rax
mov eax, dword [rsp + 0x1044]
cmp rax, 8
jb 0x140002401
mov qword [rsp + 0x1038], 0
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1044]
mov r8d, 8
lea rdx, [rsp + 0x1038]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002401
mov rax, qword [rsp + 0x1038]
mov qword [rdi], rax
mov eax, dword [rsp + 0x1044]
cmp rax, 8
jb 0x140002401
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002419
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140002419
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x1048
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002f70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
xor eax, eax
lea rdx, [0x140022180]
mov ecx, eax
mov r8d, 8
nop
nop
nop
mov r9d, ecx
shr r9d, 1
xor r10d, r10d
mov r11d, ecx
and r11d, 1
sub r10d, r11d
and r10d, 0xedb88320
mov ecx, r9d
xor ecx, r10d
sub r8d, 1
jne 0x140002f90
mov dword [rdx], ecx
add rdx, 4
add eax, 1
cmp eax, 0x100
jb 0x140002f7d
mov eax, 0x100
lea rdx, [0x140022580]
nop
nop
nop
nop
mov ecx, eax
lea r8, [0x140022180]
mov ecx, dword [r8 + rcx*4 - 0x400]
mov r8d, ecx
and r8d, 0xff
mov r8d, r8d
lea r9, [0x140022180]
mov r8d, dword [r9 + r8*4]
shr ecx, 8
xor r8d, ecx
mov dword [rdx], r8d
add rdx, 4
add eax, 1
cmp eax, 0x800
jb 0x140002fe0
lea rax, [0x140007060]
mov qword [0x140024190], rax
lea rax, [0x140007060]
mov qword [0x140024180], rax
lea rax, [0x140007140]
mov qword [0x1400241a0], rax
call fcn.140007370
test eax, eax
jne 0x140003061
lea rax, [0x140007140]
mov qword [0x140024180], rax
add rsp, 0x28
ret

Function at 0x1400031e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x14000325c
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x140003211
mov eax, 0x400000
jmp 0x140003214
mov eax, r12d
mov r8d, eax
mov dword [rsp + 0x2c], 0
xor eax, eax
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
lea r9, [rsp + 0x2c]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x2c]
add rsi, rdx
mov edx, dword [rsp + 0x2c]
sub r12, rdx
mov edx, dword [rsp + 0x2c]
add qword [rdi], rdx
test eax, eax
je 0x140003260
cmp dword [rsp + 0x2c], 0
je 0x14000325c
test r12, r12
jne 0x140003201
xor eax, eax
jmp 0x140003266
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003270
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r12, qword [rdi]
test r12, r12
je 0x1400032ec
mov qword [rdi], 0
cmp r12, 0x400000
jbe 0x1400032a1
mov eax, 0x400000
jmp 0x1400032a4
mov eax, r12d
mov r8d, eax
mov dword [rsp + 0x2c], 0
xor eax, eax
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
lea r9, [rsp + 0x2c]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x2c]
add rsi, rdx
mov edx, dword [rsp + 0x2c]
sub r12, rdx
mov edx, dword [rsp + 0x2c]
add qword [rdi], rdx
test eax, eax
je 0x1400032f0
cmp dword [rsp + 0x2c], 0
je 0x1400032ec
test r12, r12
jne 0x140003291
xor eax, eax
jmp 0x1400032f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003390
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rbx, rdx
mov rcx, qword [rcx]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1400033b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400033ca
mov eax, dword [rsp + 0x24]
shl rax, 0x20
mov edx, esi
add rax, rdx
mov qword [rbx], rax
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x1400034d0
Capabilities:
Timestomp file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, r8
mov rdi, qword [rcx]
or rax, 0xffffffffffffffff
cmp rdi, rax
je 0x140003529
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140003529
mov eax, dword [rbx]
mov dword [rsp + 0x24], eax
mov eax, dword [rsi]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006f20
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xa60
mov rbx, rcx
mov edx, 0x208
lea rcx, [rsp + 0x648]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x140006f77
lea rcx, [rsp + 0x648]
call fcn.140015190
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x648]
lea r8, str._ls_ls
mov edx, 0x30e
lea rcx, [rsp + 0x2c]
call fcn.14000e850
jmp 0x140006f8a
mov r8d, 0x30e
mov rdx, rbx
lea rcx, [rsp + 0x2c]
call fcn.14000eac0
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0xa60
pop rbx
ret

Function at 0x14000c520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
and rdx, 0xfffffffffffffffc
sub r8d, 4
mov rax, rcx
add rdx, rcx
cmp rax, rdx
jae 0x14000c5f2
add rax, 4
cmp byte [rax - 4], 0x40
jne 0x14000c548
test byte [rax - 3], 0xc0
je 0x14000c554
cmp byte [rax - 4], 0x7f
jne 0x14000c52f
cmp byte [rax - 3], 0xc0
jb 0x14000c52f
movzx r10d, byte [rax - 4]
shl r10d, 0x18
movzx r11d, byte [rax - 3]
shl r11d, 0x10
or r10d, r11d
movzx r11d, byte [rax - 2]
shl r11d, 8
or r10d, r11d
movzx r11d, byte [rax - 1]
or r10d, r11d
add r10d, r10d
add r10d, r10d
test r9d, r9d
je 0x14000c596
mov r11, rax
sub r11, rcx
add r11d, r8d
add r10d, r11d
jmp 0x14000c5a2
mov r11, rax
sub r11, rcx
add r11d, r8d
sub r10d, r11d
mov r11d, r10d
and r11d, 0x1ffffff
sub r11d, 0x1000000
xor r11d, 0xff000000
shr r11d, 2
mov r10d, r11d
or r10d, 0x40000000
lea r11, [rax - 4]
mov ebx, r10d
shr ebx, 0x18
mov byte [r11], bl
mov ebx, r10d
shr ebx, 0x10
mov byte [r11 + 1], bl
mov ebx, r10d
shr ebx, 8
mov byte [r11 + 2], bl
mov byte [r11 + 3], r10b
jmp 0x14000c52f
sub rax, rcx
pop rbx
ret