joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c66a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2054
call fcn.00500f90
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
test esi, esi
jne 0x4c66ca
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4c66df
call edi
mov esi, eax
mov byte [ebp - 0x54], 0
jmp 0x4c66ec
push 0x50
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
jne 0x4c671e
mov ecx, dword [0x5c0834]
push 0x2000
lea edx, [ebp - 0x2054]
movzx eax, ax
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x2054]
mov dword [ebp + 0x10], edx
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4c6773
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push ecx
push edi
call fcn.00505b47
mov edx, dword [ebp + 0xc]
add esp, 0xc
or edx, 0x10000
push edx
lea eax, [ebp - 0x54]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret

Function at 0x4c67c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546590
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x118], bl
push 0x103
push ebx
lea eax, [ebp - 0x117]
push eax
call fcn.004ff6f0
add esp, 0xc
cmp esi, ebx
je 0x4c6839
cmp byte [esi], bl
je 0x4c6839
push 0x104
push esi
lea ecx, [ebp - 0x118]
push ecx
call fcn.004bf0a0
add esp, 0xc
jmp 0x4c684c
push 0x104
lea edx, [ebp - 0x118]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x54f3f0
lea eax, [ebp - 0x118]
push eax
call fcn.004fee10
add esp, 8
cmp eax, ebx
je 0x4c688d
mov byte [eax + 2], bl
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x4c6882
cmp eax, 5
je 0x4c6882
xor eax, eax
jmp 0x4c6887
mov eax, 1
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c7800
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4c7883
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c789c
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x18]
push esi
push esi
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 1
push 1
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c7ba0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x110], ebx
test esi, esi
je 0x4c7cea
cmp byte [esi], 0
je 0x4c7cea
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x108]
push eax
push 0xf003f
push 0
push esi
push ebx
call edi
cmp dword [ebp + 0x10], 0
je 0x4c7c07
test eax, eax
je 0x4c7c0f
lea ecx, [ebp - 0x108]
push ecx
push 0xf013f
push 0
push esi
push ebx
call edi
test eax, eax
jne 0x4c7cb9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x108]
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0
push edx
mov dword [ebp - 0x10c], 0x100
call ebx
test eax, eax
jne 0x4c7c9e
lea esp, [esp]
mov ecx, dword [ebp - 0x108]
push 0
lea eax, [ebp - 0x104]
push eax
push ecx
call fcn.004c7ba0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4c7cca
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x108]
push eax
push eax
push eax
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x10c], 0x100
call ebx
test eax, eax
je 0x4c7c50
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x110]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x32
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c7d80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ecx
test ebx, ebx
je 0x4c7ec4
test edi, edi
je 0x4c7ec4
test eax, eax
je 0x4c7ec4
push 0x103
lea edx, [ebp - 0x20b]
push 0
push edx
mov dword [ebp - 0x21c], 0x103
mov byte [ebp - 0x20c], 0
call fcn.004ff6f0
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004ff6f0
add esp, 0x18
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004c3e70
lea edx, [ebp - 0x108]
push edx
push edi
call fcn.00500b92
add esp, 0x10
test eax, eax
je 0x4c7e47
mov eax, edi
push esi
push ebx
push eax
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x4c7ec9
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x218]
cmp dword [ebp + 0x18], eax
je 0x4c7ea1
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push ecx
push 0xf003f
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov eax, 0x32
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c7ee0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546620
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x22c], ecx
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x220], 0x32
test ebx, ebx
je 0x4c8078
test edi, edi
je 0x4c8078
test eax, eax
je 0x4c8078
mov dword [ebp - 4], 0
mov byte [ebp - 0x438], 0
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x230], 0x103
mov byte [ebp - 0x21c], 0
push 0x103
push 0
lea edx, [ebp - 0x21b]
push edx
call fcn.004ff6f0
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.004ff6f0
add esp, 0x18
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004c3e70
lea edx, [ebp - 0x118]
push edx
push edi
call fcn.00500b92
add esp, 0x10
test eax, eax
je 0x4c7fe4
mov eax, dword [ebp - 0x224]
mov dword [esi], 0
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x4c805a
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x228]
cmp dword [ebp + 0x18], eax
je 0x4c8042
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push edx
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4c807d
push ecx
push 0xf013f
push 0
push edx
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4c807d
mov eax, 0x32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c82a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4c8326
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4c8326
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c8326
cmp dword [ebp + 0x14], 0
je 0x4c8326
push ebx
push esi
lea esi, [ebp - 4]
push esi
push 0
lea esi, [ebp + 0xc]
push esi
push eax
push edx
push ecx
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0
call fcn.004c7d80
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c8314
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 0xc]
push edx
mov esi, eax
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c831e
push eax
call ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x32
mov esp, ebp
pop ebp
ret

Function at 0x4c8450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4c84d2
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4c84d2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c84d2
push ebx
push esi
lea esi, [ebp - 4]
push esi
mov esi, dword [ebp + 0x24]
push esi
lea esi, [ebp + 0xc]
push esi
push eax
push edx
push ecx
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0
call fcn.004c7d80
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c84c0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 0xc]
push edx
mov esi, eax
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c84ca
push eax
call ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x32
mov esp, ebp
pop ebp
ret
Function at 0x4c9c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x220], eax
xor ebx, ebx
xor eax, eax
cmp esi, ebx
je 0x4c9ddb
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.004ff6f0
add esp, 0xc
cmp byte [esi], 0x5c
lea edx, [ebp - 0x108]
jne 0x4c9cb3
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c9ca7
jmp 0x4c9cc2
push esi
push 0x576d0c
push edx
call fcn.004ff1e4
add esp, 0xc
push edi
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.004ff6f0
lea ecx, [ebp - 0x21c]
push ecx
push ebx
lea edx, [ebp - 0x210]
push edx
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x108]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov dword [ebp - 0x218], 0x104
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
call fcn.004c7d80
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
add esp, 0x24
cmp esi, ebx
jne 0x4c9d62
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push ebx
push str.SystemRoot
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x210]
push edx
mov esi, eax
call edi
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x4c9d6f
push eax
call edi
mov eax, esi
pop edi
cmp dword [ebp + 0x10], ebx
jne 0x4c9dae
cmp esi, ebx
je 0x4c9db2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x214]
push edx
push str.SystemRoot
push str.SoftwareMicrosoftWindowsCurrentVersion
lea eax, [ebp - 0x108]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.004c82a0
add esp, 0x1c
cmp eax, ebx
jne 0x4c9dd9
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.004bfc00
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4c9df0
Capabilities:
Check for foreground window switch
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call edi
push 0x44
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004ff6f0
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
mov ecx, 5
mov word [ebp - 0x50], cx
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
push edx
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x4c9e68
push ebx
call fcn.004c75f0
add esp, 4
jmp 0x4c9ef0
mov dword [ebp - 4], ebx
jmp 0x4c9e70
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x18]
je 0x4c9e95
inc ebx
cmp ebx, 0x64
jb 0x4c9e70
mov edx, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push edx
call ebx
test eax, eax
je 0x4c9ef0
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4c9edc
call edi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x4c9edc
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x20]
push 0
push edx
call ebx
test eax, eax
jne 0x4c9ea7
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9f20
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5466e0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov eax, dword [str.landesk0]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x57760c]
mov dword [ebp - 0x1c], ecx
mov dl, byte [0x577610]
mov byte [ebp - 0x18], dl
push esi
push 0x10000000
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov dword [ebp - 0x38], eax
push 0x44
push esi
lea ecx, [ebp - 0x80]
push ecx
call fcn.004ff6f0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x80], 0x44
mov ax, word [ebp + 0x14]
mov word [ebp - 0x50], ax
lea edx, [ebp - 0x20]
mov dword [ebp - 0x78], edx
mov ecx, 5
cmp cx, ax
je 0x4c9fd2
mov dword [ebp - 0x54], 1
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x4c9ffb
push esi
call fcn.004c75f0
add esp, 4
jmp 0x4ca04a
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4ca04a
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x9c]
push edx
call ebx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
mov dword [ebp - 0x3c], esi
test edi, edi
je 0x4ca007
cmp esi, edi
jb 0x4ca007
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x30]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x34]
push edx
call esi
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4ca0a0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x44
mov dword [ebp - 4], eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.004ff6f0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov ax, word [ebp + 0x18]
mov ecx, 5
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov word [ebp - 0x48], ax
cmp cx, ax
je 0x4ca0ed
mov dword [ebp - 0x4c], 1
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 8], eax
push 0
test eax, eax
jne 0x4ca123
call fcn.004c75f0
add esp, 4
jmp 0x4ca1a2
mov eax, dword [ebp - 0x18]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4ca181
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [ebp + 0x1c]
mov edi, edi
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
call ebx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
test edi, edi
je 0x4ca161
cmp esi, edi
jae 0x4ca173
mov edx, dword [ebp - 0x18]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4ca140
jmp 0x4ca17f
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop ebx
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4ca1a2
mov edx, dword [ebp - 0x18]
lea ecx, [ebp + 0x18]
push ecx
push edx
mov dword [ebp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x18]
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4cac30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x108]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x10c], 0
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cac78
push 1
lea ecx, [ebp - 0x10c]
push ecx
push esi
push ebx
call fcn.004c6e00
add esp, 0x10
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x4cad92
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x4caddb
movzx edx, word [ebp - 0x11c]
push str.RT_RCDATA
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4cad3a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4cad78
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4cad78
mov edx, dword [ebp - 0x114]
push 0
lea ecx, [ebp - 0x10c]
push ecx
push ebx
push eax
push edx
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cad54
cmp dword [ebp - 0x10c], ebx
jne 0x4cad54
xor esi, esi
mov eax, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4cad98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x114]
push eax
mov esi, 0x714
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4cad98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4cad25
mov ebx, dword [ebp - 0x110]
lea esi, [eax + 0x70]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4cad98
mov eax, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x110]
push eax
mov esi, 0x714
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4cad98
mov esi, dword [ebp - 0x10c]
test esi, esi
jne 0x4cadd9
cmp dword [ebp - 0x118], esi
je 0x4cadd9
lea ecx, [ebp - 0x108]
push ebx
push ecx
call fcn.004ff027
add esp, 8
test eax, eax
je 0x4cadd9
lea edx, [ebp - 0x108]
push edx
push ebx
call fcn.004cabd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret