joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4662f7
movzx edx, byte [rax]
test edx, edx
jne 0x4661b4
nop dword [rax]
test r8b, r8b
jne 0x4661b4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x4661c7
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4662b7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x4662a5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x466297
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x46621d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x466260
mov eax, 1
cmp rax, rbx
ja 0x46624b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046b120
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x46628f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x466253
mov rcx, r11
mov eax, r12d
jmp 0x466222
mov rcx, rbx
call fcn.0046b060
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046b060
mov eax, r8d
mov rcx, rbx
call fcn.0046b120
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4662ed
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x4662b0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4661cd
mov eax, edx
mov rcx, rbx
call fcn.0046b060
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046b060
nop
int3

Function at 0x467680
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46772f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00454fe0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00468c80
xorps xmm15, xmm15
mov r14, qword [0x0057a6a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00468da0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00467680
Function at 0x46aba0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4036c3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409120
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00468da0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4036a0
cmp byte [0x0057a48c], 0
je 0x46abb5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x467de0
jmp 0x4036a0

Function at 0x46abc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x0057a768]
mov eax, dword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0057a760]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x0057a48c], 0
je 0x46abf5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x0057aaa0]
aesenc xmm0, xmmword [0x0057aab0]
aesenc xmm0, xmmword [0x0057aac0]
movq rax, xmm0
ret
jmp 0x409300

Function at 0x46ac00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x0057a768]
mov rax, qword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0057a760]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x0057a48c], 0
je 0x46ac36
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0057aaa0]
aesenc xmm0, xmmword [0x0057aab0]
aesenc xmm0, xmmword [0x0057aac0]
movq rax, xmm0
ret
jmp 0x409340

Function at 0x46c9a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46c9d4
mov rcx, 0x28
jmp 0x46c9df
shl rcx, 3
add rcx, 0x1480
mov qword [0x0057a6a8], rcx
pop rbp
ret

Function at 0x474ec0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4755ff
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x474eed
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x475171
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x47519d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004c2720]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x0048a260]
lea rbx, [0x004c1ab0]
call fcn.00463a60
inc rax
cmp rax, r8
jge 0x4751c2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4751f7
lea rdi, [0x0048a2e0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x474ee3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4751db
jmp 0x4751b0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00468da0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.00474ec0
Function at 0x4757a0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4757b7
inc rax
cmp rax, 4
jge 0x4757cf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4757b4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4757e0
inc rax
cmp rax, 4
jge 0x4757ee
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x475817
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4757fb
jmp 0x4757dd

Function at 0x479160
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47922a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00402c20
xorps xmm15, xmm15
mov r14, qword [0x0057a6a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47920f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0048a360]
xor ebx, ebx
mov rcx, rdx
call fcn.00464be0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00479740
inc rbx
cmp rcx, rbx
jae 0x4791fe
mov edi, 1
lea rsi, [0x0048a360]
call fcn.00464cc0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004c1b58]
lea rsi, [0x004c1740]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00468da0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00479160
Function at 0x140001590
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400015a9
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]

Function at 0x140001980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007730
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007730
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400019f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0b4]
mov rbx, rcx
test esi, esi
jle 0x140001b20
mov rax, qword [0x14000e0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ac5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a20
mov rcx, rbx
call fcn.140002440
mov rdi, rax
test rax, rax
je 0x140001b42
mov rax, qword [0x14000e0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002580
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001abe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ad0
add dword [0x14000e0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001abe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001980
nop dword [rax]
xor esi, esi
jmp 0x140001a48
mov rax, qword [0x14000e0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001980
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001980
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400020b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x14000210c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002103
test rsi, rsi
je 0x140002103
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002440
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aac0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002460
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002468
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002460
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002460
add rax, 0x28
cmp rax, r9
jne 0x1400024a0
xor eax, eax
ret

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aac0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400024df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400024e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400024df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aac0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000259f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007e30
Capabilities:
Create thread
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4b8
movups xmmword [rsp + 0x490], xmm6
movups xmmword [rsp + 0x4a0], xmm7
call fcn.140001770
lea rax, str.https:__jayasec.netlify.app_HellSecurityyyyyOnDiscord.mp3
lea rdi, [rsp + 0x270]
mov ecx, 0x104
movq xmm7, rax
lea rbp, [rsp + 0x160]
lea rax, str.https:__i.imgur.com_MwQEe9a.jpeg
movq xmm0, rdi
movq xmm1, rbp
movq xmm6, rax
lea rbx, [rsp + 0x380]
punpcklqdq xmm7, xmm0
punpcklqdq xmm6, xmm1
mov rdx, rbx
lea r12, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov r8, rbx
lea rdx, str._sHellSecurityyyyyOnDiscord.mp3
mov rcx, rdi
call fcn.140001560
mov r8, rbx
lea rdx, str._sMwQEe9a.jpeg
mov rcx, rbp
call fcn.140001560
mov r8, rbx
lea rdx, str._smessageFromHell.txt
mov rcx, r12
call fcn.140001560
mov rcx, rdi
call fcn.140001590
mov rcx, rbp
call fcn.140001590
mov rcx, r12
call fcn.140001590
mov rsi, qword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x40]
lea r8, [0x140001670]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
movups xmmword [rsp + 0x40], xmm7
movups xmmword [rsp + 0x30], xmm6
call rsi
lea r9, [rsp + 0x30]
lea r8, [0x140001670]
xor edx, edx
mov r13, rax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call rsi
mov rcx, r13
mov edx, 0xffffffff
mov r13, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, rax
call r13
mov rcx, rbx
mov edx, 0xffffffff
call r13
lea rdx, [0x14000a0ed]
mov rcx, r12
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x14000800c
lea rdx, str.Hey__Im_Nojan__Its_called_Nojan_because_it_rhymes_with_trojan__lol__n
mov rcx, rax
call fcn.140001530
lea rdx, str.I_am_here_to_tell_you_that_you_should_NEVER_open_files_from_strangers_that_you_dont_trust._n_n
mov rcx, rbx
call fcn.140001530
lea rdx, str.Please_dont_skip_this_message__since_I_am_not_here_to_cause_any_actual_harm._n_n
mov rcx, rbx
call fcn.140001530
lea rdx, str.Im_just_a_little_script_that_wants_you_to_give_more_care_to_your_safety_and_privacy._n
mov rcx, rbx
call fcn.140001530
lea rdx, str.I_know_I_sound_like_a_VPN_ad__but_I_just_want_you_to_stop_running_executables_from_people_on_the_Internet._n_n
mov rcx, rbx
call fcn.140001530
lea rdx, str.Instead_of_destroying_your_entire_pc__which_I_could___Ill_let_you_listen_to_some_unreleased_Kendrick_songs_:__n_n
mov rcx, rbx
call fcn.140001530
lea rdx, str.No__i_did_not_steal_your_passwords_either._n_n_n_n
mov rcx, rbx
call fcn.140001530
mov rcx, rbx
lea rdx, str.HellSecurityyyyy_was_here__add_me_on_discord_if_you_want_:D_n
call fcn.140001530
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov r9, r12
lea r8, [0x140001610]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call rsi
mov r9, rbp
lea r8, [0x140001650]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call rsi
mov dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x1400015c0]
xor ecx, ecx
call rsi
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
nop word cs:[rax + rax]
mov ecx, 0x3e8
call rbx
jmp 0x140008080
Function at 0x14000583c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140005876
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000587b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400058c4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400083e0]
cmp byte [rcx + rax], 0
je 0x1400058c4
dec r8
sub rdx, 1
jne 0x1400058aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140006af8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006b42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006b42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006b42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006b42
cmp dword [rcx + 0x84], 0xe
jbe 0x140006b42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006b44
xor al, al
add rsp, 0x28
ret
Function at 0x140001430
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
cmp qword [0x140008438], 0
je 0x140001602
cmp qword [0x140008440], 0
jbe 0x140001602
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001602
cmp dword [rsp + 0x48], 0x20000
jne 0x140001602
mov eax, dword [rsp + 0x44]
test al, 0x20
jne 0x14000149e
test al, 0x40
jne 0x14000149e
test al, 4
je 0x140001602
mov qword [rsp + 0x50], rbx
xor ebx, ebx
cmp byte [0x140008448], bl
mov dword [rsp + 0x68], ebx
jne 0x1400014eb
mov rdx, qword [0x140008440]
lea r9, [0x140008450]
mov rcx, qword [0x140008438]
lea r8d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.____Flipped_to_RW._Ready_for_encryption.
call fcn.140002a20
cmp byte [0x140008448], bl
lea rcx, str.____Starting_encryption_of_shellcode...
je 0x1400014f2
lea rcx, str.____Starting_decryption_of_shellcode...
call fcn.140002a20
mov edx, dword [0x14000844c]
mov r9, qword [0x140008440]
mov rcx, qword [0x140008438]
mov rax, r9
shr rax, 2
movd xmm2, edx
pshufd xmm2, xmm2, 0
test rax, rax
je 0x14000159b
cmp rax, 0x10
jb 0x140001590
mov r10, rax
lea r8, [rcx + 0x20]
and r10, 0xfffffffffffffff0
movdqu xmm0, xmmword [r8 - 0x20]
lea r8, [r8 + 0x40]
add rbx, 0x10
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [r8 - 0x60], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [r8 - 0x50]
pxor xmm0, xmm2
movdqu xmmword [r8 - 0x50], xmm0
movdqu xmm0, xmmword [r8 - 0x40]
pxor xmm1, xmm0
movdqu xmmword [r8 - 0x40], xmm1
movdqu xmm0, xmmword [r8 - 0x30]
pxor xmm0, xmm2
movdqu xmmword [r8 - 0x30], xmm0
cmp rbx, r10
jb 0x140001531
cmp rbx, rax
jae 0x14000159b
nop dword [rax + rax]
xor dword [rcx + rbx*4], edx
inc rbx
cmp rbx, rax
jb 0x140001590
mov rbx, qword [rsp + 0x50]
lea rax, [rax*4]
cmp rax, r9
jae 0x1400015bb
nop dword [rax]
xor byte [rax + rcx], dl
inc rax
cmp rax, r9
jb 0x1400015b0
movzx eax, byte [0x140008448]
test al, al
je 0x1400015fb
mov r8d, dword [0x140008450]
lea r9, [rsp + 0x68]
mov rdx, qword [0x140008440]
mov rcx, qword [0x140008438]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.____Decryption_completed._Flipped_back_to_RX_RWX.
call fcn.140002a20
movzx eax, byte [0x140008448]
test al, al
sete byte [0x140008448]
add rsp, 0x58
ret
Function at 0x140001710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1470
call fcn.140004390
sub rsp, rax
mov rdi, rcx
cmp qword [0x140008438], 0
jne 0x14000193e
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov r8d, 0x30
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000193e
cmp dword [rsp + 0x98], 0x20000
jne 0x14000193e
mov eax, dword [rsp + 0x94]
test al, 0x20
jne 0x140001793
test al, 0x40
jne 0x140001793
test al, 4
je 0x14000193e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140001610
nop
mov rbx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
cmp rbx, r8
je 0x140001953
mov rdx, qword [rbx]
cmp rdi, rdx
jbe 0x1400017ce
mov rcx, qword [rbx + 0x18]
add rcx, rdx
cmp rdi, rcx
jb 0x1400017d4
add rbx, 0x30
jmp 0x1400017b1
mov qword [0x140008438], rdx
mov rax, qword [rbx + 0x18]
mov qword [0x140008440], rax
mov byte [0x140008448], 0
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x1464], 0xffffffff
mov dword [rsp + 0xe4], eax
mov edx, 1
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0xe4], eax
inc rdx
cmp rdx, 0x270
jb 0x140001810
mov dword [rsp + 0xe0], 0x270
lea rcx, [rsp + 0xe0]
call fcn.140003380
mov dword [0x14000844c], eax
lea rcx, str.___Fluctuation_initialized.
call fcn.140002a20
mov esi, dword [0x14000844c]
mov edx, 8
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rdi, qword [rbx + 0x18]
mov rbx, qword [rbx]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xa0], xmm0
mov edx, 8
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x60], esi
mov byte [rsp + 0x58], 0x30
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x20], rbx
mov r9b, 0x30
lea r8, [rsp + 0xb0]
call fcn.140002bd0
nop
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x14000193e
mov rcx, qword [rsp + 0x80]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r8
cmp rdx, 0x1000
jb 0x140001936
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001936
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1400037d0
lea r11, [rsp + 0x1470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rcx, str.____Could_not_initialize_shellcode_fluctuation_
call fcn.140002a20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]