joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014c986
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
jmp 0x14039cd80
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov eax, dword [rsp + 0x88]
shl eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax*4]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.140155cbb
mov dword [rsp + 0x20], 4
mov eax, dword [rsp + 0x88]
lea eax, [rax*4 - 4]
mov dword [rsp + 0x24], eax
jmp 0x14039cde8
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
sub eax, 4
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x14039ce69
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x50]
movdqu xmmword [rcx + rax*4], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rcx + rax*4], xmm0
jmp 0x14039cdd2
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rcx + rax*4], xmm0
add rsp, 0x70
pop rdi
ret

Function at 0x14014f014
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140354b70
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140354b87
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x140354c26
movsxd rax, dword [rsp]
lea rcx, str.cw
movzx eax, byte [rcx + rax]
mov byte [rsp + 4], al
movzx eax, byte [rsp + 4]
shl eax, 8
movzx ecx, byte [rsp + 4]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [rsp + 4]
shl ecx, 1
movzx edx, byte [rsp + 4]
sar edx, 7
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
shl ecx, 0x18
or eax, ecx
mov dword [rsp + 8], eax
movzx eax, byte [rsp + 4]
shl eax, 1
movzx ecx, byte [rsp + 4]
sar ecx, 7
and ecx, 1
imul ecx, ecx, 0x11b
xor eax, ecx
movzx ecx, byte [rsp + 4]
xor eax, ecx
mov ecx, dword [rsp + 8]
or ecx, eax
mov eax, ecx
mov eax, eax
shl rax, 0x20
mov ecx, dword [rsp + 8]
or rax, rcx
movsxd rcx, dword [rsp]
lea rdx, [0x1404f7650]
mov qword [rdx + rcx*8], rax
jmp 0x140354b7f
mov eax, 8
imul rax, rax, 0x101
lea rcx, [0x1404f7650]
mov qword [rcx + rax], 0
mov eax, 8
imul rax, rax, 0x100
lea rcx, [0x1404f7650]
mov qword [rcx + rax], 0
mov byte [0x1404f8660], 1
add rsp, 0x10
pop rdi
ret
Function at 0x1401500f9
Capabilities:
Terminate process

Disassembly:
jmp 0x1403bd090
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 0x140150685
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1402d67a0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0
jmp 0x1402d67ce
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp], rax
jae 0x1402d6831
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov byte [rsp + 8], al
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp + 8]
mov byte [rax], cl
jmp 0x1402d67c3
add rsp, 0x10
pop rdi
ret
Function at 0x140150ef5
Capabilities:
Get geographical location

Disassembly:
jmp 0x1403b7d80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1403b7dbd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140154d4d
add rsp, 0x58
ret

Function at 0x1401517ce
Capabilities:
Parse pe header

Disassembly:
jmp 0x1403be450
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1403be470
xor al, al
jmp 0x1403be4f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1403be483
xor al, al
jmp 0x1403be4f1
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 0x1403be4ad
xor al, al
jmp 0x1403be4f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1403be4c1
xor al, al
jmp 0x1403be4f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1403be4d3
xor al, al
jmp 0x1403be4f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1403be4ef
xor al, al
jmp 0x1403be4f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140152a43
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x14033e340
mov qword [rsp + 8], rcx
push rdi
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax], 0xc3d2e1f0
pop rdi
ret

Function at 0x140152f9d
Capabilities:
Hash data using sha256

Disassembly:
jmp 0x14033eaf0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8d, 0x20
lea rdx, [0x140464fd0]
mov rcx, qword [rsp + 0x30]
call fcn.14014f54b
add rsp, 0x20
pop rdi
ret
Function at 0x140154b68
Capabilities:
Write file on windows

Disassembly:
jmp 0x1401c89f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1404e30c0]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x14052e009]
call fcn.140154dbb
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x1401c8a56
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1401c8a5d
mov al, 1
jmp 0x1401c8bcd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14014d061
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14014d061
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.14015289f
movzx eax, al
test eax, eax
je 0x1401c8ac0
xor al, al
jmp 0x1401c8bcd
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x1401c8b33
cmp dword [rbp + 0x160], 1
je 0x1401c8b3e
cmp dword [rbp + 0x160], 3
je 0x1401c8bbc
jmp 0x1401c8bcb
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1401c8b8e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1401c8b8e
xor al, al
jmp 0x1401c8bcd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1401c8ba9
mov dword [rbp + 0x154], 1
jmp 0x1401c8bb3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1401c8bcd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1401c8bcd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14040ba80]
call fcn.14015304c
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14014f4b5
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140155e23
Capabilities:
Copy file
Get common file path
Get startup folder
Write file to startup folder

Disassembly:
jmp 0x1401dcfd0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x1404e30c0]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14052e063]
call fcn.140154dbb
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 7
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x1401dd0aa
lea rdx, [0x1404f5d40]
lea rcx, [rbp + 0x238]
call fcn.14014a2c6
nop
lea rdx, str.AppDataLocal_svhost.exe
lea rcx, [rbp + 0x238]
call fcn.1401545dc
lea rcx, [rbp + 0x238]
call fcn.14014dbb5
mov qword [rbp + 0x3e8], rax
lea rcx, [0x1404f5db8]
call fcn.14014dbb5
mov qword [rbp + 0x3f0], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x3e8]
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rcx, [rbp + 0x238]
call fcn.14015346b
lea rcx, [rbp - 0x30]
lea rdx, [0x14040a570]
call fcn.14015304c
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.14014f4b5
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x140001f50
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, rdx
mov rbx, rcx
mov qword [rcx + 8], rdx
lea rdx, [rcx + 0x24]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140004370
nop
mov dword [rsp + 0xb8], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xc0]
lea rdx, str.ExtraHelperCapabilitiesFlags
lea rcx, [rsp + 0x70]
call fcn.140003cd0
mov eax, dword [rsp + 0xc0]
mov dword [rbx + 0x28], eax
mov dword [rsp + 0xb0], 1
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140004300
nop
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140004590
test eax, eax
je 0x14000203f
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xb0]
lea rdx, str.UseSetProcessDPIAware
lea rcx, [rsp + 0x40]
call fcn.140003cd0
lea rcx, [rsp + 0x40]
call fcn.140003c80
cmp dword [rsp + 0xb0], 1
jne 0x14000206d
cmp qword [rbx + 0x60], 0
je 0x14000206d
mov ecx, 1
call fcn.1400027c0
test eax, eax
jne 0x14000206d
call fcn.140002770
xor edx, edx
lea rcx, str.SynTPEnhWndClass
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rbx + 0x10], rax
mov edx, 0x8000
mov rcx, qword [rbx + 8]
call fcn.140006180
test eax, eax
jne 0x1400020b7
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140002720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
call fcn.140007aa0
mov rcx, rbx
call fcn.1400018d0
nop
lea rcx, [rsp + 0x38]
call fcn.140004430
nop
lea rcx, [rsp + 0x68]
call fcn.140004430
mov eax, 1
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140002240
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x2890
call fcn.140007d30
sub rsp, rax
mov rax, qword [0x140026b30]
xor rax, rsp
mov qword [rsp + 0x2880], rax
mov rbp, r8
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000233d
lea r9, [rsp + 0x40]
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000233d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x2828
call fcn.140007dc0
mov eax, dword [rsi]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [0x14001a6c8]
lea r8, [rsp + 0x68]
mov r9d, 0x104
mov rcx, rdi
movaps xmmword [rsp + 0x2860], xmm0
mov dword [rsp + 0x50], 0xf
mov dword [rsp + 0x2870], eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x140002334
mov r8, qword [rsi + 8]
xor eax, eax
lea r9, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea edx, [rbx + 0x4a]
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x2828
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x2880]
xor rcx, rsp
call fcn.140007d90
mov rbx, qword [rsp + 0x28c8]
add rsp, 0x2890
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test r9, r9
je 0x140003cf9
mov r14d, dword [r9]
test rdx, rdx
je 0x140003dc3
test r8, r8
je 0x140003dc3
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140003db4
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x140003d51
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003db4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x140003d91
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x140003db4
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x140003dab
cmp eax, 3
jne 0x140003db0
cmp dword [rsp + 0x68], 4
jne 0x140003db0
mov ebx, 1
mov eax, ebx
jmp 0x140003dc5
test rdi, rdi
je 0x140003dc3
mov dword [rsi], r14d
mov eax, 1
jmp 0x140003dc5
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140003de0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov r12, r9
mov rsi, r8
mov r15, rdx
mov rdi, rcx
cmp r8, rbx
jne 0x140003e28
lea rdx, str.RegistryEx.cpp
lea rcx, str.pszValue___pszDefaultValue
mov r8d, 0x126
call fcn.1400065b0
xor ebp, ebp
mov r13d, ebp
test r15, r15
je 0x140003fc0
test rsi, rsi
je 0x140003fc0
test r12, r12
je 0x140003fc0
mov rcx, qword [rdi + 0x10]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x60], r14
test rcx, rcx
je 0x140003f75
mov r14, qword [rsp + 0x88]
mov r13d, dword [r12]
mov qword [rsp + 0x68], rcx
test r14, r14
je 0x140003e9d
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003f75
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r14, r14
je 0x140003ece
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x80]
cmp ecx, 2
jne 0x140003f40
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.140006a18
mov r14, rax
test rax, rax
je 0x140003f39
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x140003f10
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bp
jne 0x140003f24
mov rcx, r14
mov dword [r12], eax
call fcn.140007c00
mov ecx, dword [rsp + 0x80]
test r15d, r15d
jne 0x140003f75
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140003f52
cmp ecx, 7
jne 0x140003f57
mov ebp, 1
mov eax, ebp
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
test rbx, rbx
je 0x140003fbc
nop word [rax + rax]
cmp word [rbx + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140003f80
lea ecx, [rdi*2 + 2]
cmp ecx, r13d
ja 0x140003fbc
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rsi + rbx - 2], ax
test ax, ax
jne 0x140003fa0
mov dword [r12], ecx
mov eax, 1
jmp 0x140003f59
xor eax, eax
jmp 0x140003f59
xor eax, eax
jmp 0x140003f5e
Function at 0x140004fc0
Capabilities:
Get disk information

Disassembly:
push rbx
push rdi
sub rsp, 0x658
mov rbx, rdx
mov edi, ecx
test rdx, rdx
je 0x1400051ab
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140004fe0
cmp rax, 0x104
ja 0x1400051ab
lea rdx, [0x14001afb4]
mov rcx, rbx
call fcn.140008270
test rax, rax
je 0x1400051ab
mov qword [rsp + 0x670], rbp
mov qword [rsp + 0x678], rsi
mov qword [rsp + 0x680], r14
xor r14d, r14d
mov r8d, edi
xor edx, edx
mov ecx, 0x400
mov qword [rsp + 0x650], r15
mov ebp, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000519e
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000519e
lea rdx, str.GetProcessImageFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r15d, [r14 + 1]
test rax, rax
je 0x14000509b
lea rdx, [rsp + 0x440]
mov r8d, 0x104
mov rcx, rdi
call rax
test eax, eax
cmovne ebp, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
je 0x14000519e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x230]
sub rcx, rbx
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x1400050c0
lea rcx, [rsp + 0x230]
call fcn.140008888
lea rdx, [0x14001afb4]
lea rcx, [rsp + 0x230]
call fcn.140008270
lea rcx, [rsp + 0x440]
mov rbx, rax
call fcn.140008888
lea rdx, [rbx + 4]
lea rcx, [rsp + 0x440]
call fcn.140008270
test rax, rax
je 0x1400051a7
mov word [rax - 2], r14w
mov word [rbx + 2], r14w
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r14w
call fcn.140007dc0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
mov r8d, 0x103
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400051a7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x440]
call fcn.140008514
test eax, eax
jne 0x1400051a7
mov eax, r15d
mov r14, qword [rsp + 0x680]
mov rsi, qword [rsp + 0x678]
mov rbp, qword [rsp + 0x670]
mov r15, qword [rsp + 0x650]
add rsp, 0x658
pop rdi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005174
xor eax, eax
add rsp, 0x658
pop rdi
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140010620]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140010630]
mov dword [rax], 1
mov rax, qword [0x140010640]
mov dword [rax], 1
mov rax, qword [0x1400105d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140010610]
mov dword [0x14001300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400106e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400106c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140010580]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001647
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xdc], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x140001692
mov eax, 0
jmp 0x140001720
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
test eax, eax
sete al
test al, al
je 0x1400016eb
mov eax, 0
jmp 0x140001720
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x2c]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpiA]
call rax
test eax, eax
sete al
test al, al
je 0x1400016eb
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xdc], eax
jmp 0x140001707
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
jne 0x1400016bc
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x160
pop rbp
ret

Function at 0x140001729
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x20], 0x20
mov r9d, 0x1000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 8], rax
mov r8d, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001808
mov rax, qword [rbp - 0x10]
mov edx, 0x1f4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
jmp 0x14000180d
mov eax, 0xffffffff
add rsp, 0x50
pop rbp
ret

Function at 0x140001e50
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]