joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427830
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0x30
push edi
push 5
mov dword [esp + 0x14], 3
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], 0x4279a0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], str.mouseSimulator
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x4278e1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x3c]
push 0
push dword [esi + 0x20]
push 0
push edi
push eax
mov eax, dword [esp + 0x58]
sub eax, ecx
push eax
push edx
push ecx
push 0x86800000
push str.mouseSimulator
push str.mouseSimulator
push 0x800a8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebx, eax
push esi
push 0xffffffffffffffeb
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call esi
and eax, 0xff30ffff
push eax
push 0xfffffffffffffff0
push ebx
call edi
push 0xffffffffffffffec
push ebx
call esi
and eax, 0xfffdfdfe
push eax
push 0xffffffffffffffec
push ebx
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push 0
push 0xffffff
push ebx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x42a8b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547e30
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00426160
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.004257b0
test eax, eax
je 0x42a929
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push ecx
push 0x201eb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42a9df
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42a9ad
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.00519d20
add esp, 8
test eax, eax
jne 0x42a9ab
mov eax, dword [ebp - 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42a997
push eax
call edi
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x42aac1
push ecx
jmp 0x42aabf
mov byte [eax], bl
push 0x569fa8
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0051e70e
lea eax, [ebp - 0x114]
push eax
push 0x104
push edi
call fcn.0051e768
add esp, 0x18
mov eax, 0x597538
jmp 0x42a9fe
push 0x569fa8
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0051e70e
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
push edi
call fcn.0051e768
push str.UltraVNC.ini
push 0x104
push edi
call fcn.0051e768
mov eax, dword [ebp - 0x120]
add esp, 0x18
test eax, eax
je 0x42aa89
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x42aa3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x42aa89
mov eax, dword [ebp - 0x120]
push 0x104
push edi
push str._TEMP_
push eax
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
push 0x597538
push 0x104
push edi
call fcn.0051e768
push str.UltraVNC.ini
push 0x104
push edi
call fcn.0051e768
add esp, 0x18
mov ecx, esi
call fcn.0042aae0
mov ecx, esi
call fcn.0042aee0
jmp 0x42aa9b
mov ecx, esi
call fcn.0042aae0
mov ecx, esi
call fcn.0042aee0
test ebx, ebx
jne 0x42aaa1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42aab4
push eax
call edi
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x42aac1
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x42ce30
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42ce79
push 0x10
push 0x59aea0
mov edx, str.Failed_to_open_service_control_manager
call fcn.00424f50
add esp, 8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push esi
push 0x10004
push str.uvnc_service
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x42cf01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42ceca
push 0x10
push 0x59aea0
mov edx, str.Failed:_Permission_denied
call fcn.00424f50
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esi + 1]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x42cee5
push 0x10
push 0x59aea0
mov edx, str.Failed_to_open_the_service
call fcn.00424f50
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42cf45
push 0x10
push 0x59aea0
mov edx, str.Failed_to_query_service_status
call fcn.00424f50
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
push esi
je 0x42cf7c
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0042ce30
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x42cfbb
push 0x10
push 0x59aea0
mov edx, str.Failed_to_delete_the_service
call fcn.00424f50
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop edi
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x42d370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], str._rebootforce
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret

Function at 0x42d410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], str._rebootsafemode
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x42da20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x3a4], 0x94
push eax
mov bh, dl
mov bl, cl
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x5b3078
call fcn.0051e70e
add esp, 0xc
test bl, bl
je 0x42da97
push str.__preconnect
push 0x104
push 0x5b3078
call fcn.0051e768
add esp, 0xc
mov ecx, str.__service_rdp_run
test bh, bh
mov eax, str.__service_run
cmovne eax, ecx
push eax
push 0x104
push 0x5b3078
call fcn.0051e768
add esp, 0xc
lea ecx, [ebp - 0x310]
call fcn.00426160
lea eax, [ebp - 0x310]
push eax
push dword [0x5b2e3c]
push str.kickrdp
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5b2e3c], eax
lea eax, [ebp - 0x310]
push eax
push dword [0x5b2f5c]
push str.clearconsole
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5b2f5c], eax
lea eax, [ebp - 0x310]
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x569fa8
push str.service_commandline
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42db40
sub ecx, edx
je 0x42dbd2
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x5b3078
call fcn.0051e70e
add esp, 0xc
test bl, bl
je 0x42db83
push str.__preconnect
push 0x104
push 0x5b3078
call fcn.0051e768
add esp, 0xc
push 0x59b464
push 0x104
push 0x5b3078
call fcn.0051e768
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x5b3078
call fcn.0051e768
add esp, 0x18
test bh, bh
je 0x42dbbb
push str.__service_rdp_run
jmp 0x42dbc0
push str.__service_run
push 0x104
push 0x5b3078
call fcn.0051e768
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x42f330
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, ecx
mov eax, 8
sub eax, dword [ebp + 8]
push edi
push eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
add eax, dword [ebp + 8]
push eax
mov ecx, dword [ecx + 0x3a0]
call fcn.004842f0
mov ecx, dword [esp + 0x14]
mov edi, ecx
and edi, 0xff0000
mov eax, ecx
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
shl eax, 8
or edi, eax
cmp edi, 0xffffffff
jne 0x42f3c3
cmp byte [esi + 0x10], 0
jne 0x42f477
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x42f980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
test eax, eax
je 0x42f477
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xfffffffe
jne 0x42f3ec
cmp byte [esi + 0x10], 0
je 0x42f477
push 0
push 1
push 0x111
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xfffffffd
je 0x42f477
cmp edi, 0x4000
jg 0x42f477
test edi, edi
jne 0x42f42d
push 0x569fa8
push 0x475
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x4000
push edi
push dword [esi + 0x1c]
call fcn.0051a780
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x4000
push 0
push dword [esi + 0x1c]
call fcn.0051a780
mov ecx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [ecx + 0x3a0]
push edi
push dword [esi + 0x1c]
call fcn.004842f0
push 9
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xff
push dword [esi + 0x20]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.0042f570
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x431b10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x431b57
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00519d20
add esp, 8
test eax, eax
je 0x431c2a
mov byte [eax], 0
push str.uvnckeyboardhelper.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0051e768
lea eax, [ebp - 0x108]
push 0x59bc88
push eax
call fcn.0052c00d
add esp, 0x14
test eax, eax
je 0x431c2a
push eax
call fcn.0052c149
add esp, 4
mov dword [ebp - 0x144], 0x3c
lea eax, [ebp - 0x108]
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
movlpd qword [ebp - 0x120], xmm0
push eax
movlpd qword [ebp - 0x118], xmm0
movlpd qword [ebp - 0x110], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], 0x569fa8
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x431c2a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x431c40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548094
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ecx
mov eax, dword [0x5bb8f8]
test eax, eax
jne 0x431c99
push 0x20
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0047a120
mov ecx, dword [ebp - 0x14]
mov dword [0x5bb8f8], eax
cmp byte [eax + 6], 0
je 0x431e2f
cmp dword [0x5b318c], 0
jne 0x431e2f
cmp dword [0x5b3190], 0
je 0x431e2f
push 2
lea ecx, [ebp - 0xd]
call fcn.00431aa0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call esi
shr eax, 8
push 0xa2
mov dword [ebp - 0x18], eax
call esi
shr eax, 8
push 0x5b
mov dword [ebp - 0x1c], eax
call esi
mov esi, dword [0x5b319c]
shr eax, 8
test esi, esi
je 0x431e03
cmp byte [ebp - 0x18], 0
jne 0x431d10
cmp byte [ebp - 0x1c], 0
jne 0x431d10
test al, al
je 0x431e03
cmp byte [esi + 0x1ec], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0x20], al
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1f], bl
mov dword [ebp - 0x1c], eax
je 0x431e13
lea ebx, [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x1e0]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x1c]
call fcn.0051a200
mov eax, dword [esi + 0xc]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x431d5b
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x431d65
push eax
call edi
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x431d75
push eax
call edi
push 0x3e8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x431da2
inc dword [esi + 0x1e8]
cmp dword [esi + 0x1e8], 3
jle 0x431dac
mov byte [esi + 0x1ec], 0
jmp 0x431dd6
mov dword [esi + 0x1e8], 0
cmp byte [esi + 0x1ec], 0
je 0x431dd6
push 0x3e8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x1e4]
push dword [esi + 0x20]
push 0
call fcn.0051a200
add esp, 0xc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x431de0
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x5b318c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push 0
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_keybd_event]
mov dword [0x5b318c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432a60
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor eax, eax
push edi
push eax
push eax
push 3
push eax
push 3
push 0xc0000000
push str.c:_video0.dat
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], eax
call esi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.c:_video1.dat
mov ebx, eax
call esi
mov edi, eax
test ebx, ebx
je 0x432ac0
cmp ebx, 0xffffffff
je 0x432ac0
test edi, edi
je 0x432abd
cmp edi, 0xffffffff
jne 0x432ac9
mov dword [ebp - 4], ebx
test edi, edi
je 0x432ad5
cmp edi, 0xffffffff
je 0x432ad5
test ebx, ebx
je 0x432ad2
cmp ebx, 0xffffffff
jne 0x432ade
mov dword [ebp - 4], edi
test ebx, ebx
je 0x432b55
cmp ebx, 0xffffffff
je 0x432b55
test edi, edi
je 0x432b55
cmp edi, 0xffffffff
je 0x432b55
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push ebx
call esi
push 0
push edi
mov dword [ebp - 0x18], eax
call esi
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
cmp esi, edx
cmove ecx, ebx
mov dword [ebp - 4], ecx
cmp eax, edx
jne 0x432b55
cmp esi, edx
jne 0x432b63
mov esi, dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x432b51
cmp eax, 1
jne 0x432b63
mov edi, ebx
jmp 0x432b63
mov eax, dword [ebp - 4]
mov edi, eax
test eax, eax
je 0x432ba7
cmp edi, 0xffffffff
je 0x432ba7
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x432b9a
cmp esi, 0xffffffff
je 0x432b9a
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov dword [ebp - 0xc], eax
call ebx
push edi
call ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.VideoDriver::videoMemory_GetSharedMemory_:_Error_video.dat__n
push 0
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov edx, 1
call fcn.0041d700
add edi, 0xfffffff8
test edi, edi
jle 0x43670c
lea esi, [ebx + 6]
add esi, edi
dec edi
shr edi, 3
inc edi
mov dl, byte [esi]
movzx ecx, byte [esi - 6]
movzx eax, byte [esi - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 1]
mov dword [ebp - 8], ecx
movzx ecx, byte [esi - 2]
shl ecx, 8
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
call fcn.0041d9f0
movzx eax, byte [ebp - 5]
lea esi, [esi - 8]
mov byte [esi + 2], al
movzx eax, byte [ebp - 6]
mov byte [esi + 3], al
mov eax, dword [ebp - 8]
mov byte [esi + 4], ah
mov byte [esi + 5], al
movzx eax, byte [ebp - 1]
mov byte [esi + 6], al
movzx eax, byte [ebp - 2]
mov byte [esi + 7], al
mov eax, dword [ebp - 4]
mov byte [esi + 8], ah
mov byte [esi + 9], al
movzx eax, byte [esi - 6]
xor byte [esi + 2], al
movzx eax, byte [esi - 5]
xor byte [esi + 3], al
movzx eax, byte [esi - 4]
xor byte [esi + 4], al
movzx eax, byte [esi - 3]
xor byte [esi + 5], al
movzx eax, byte [esi - 2]
xor byte [esi + 6], al
movzx eax, byte [esi - 1]
xor byte [esi + 7], al
mov dl, byte [esi]
movzx eax, byte [esi + 1]
xor byte [esi + 8], dl
xor byte [esi + 9], al
sub edi, 1
jne 0x436651
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 5]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 6]
mov dword [ebp - 8], edx
movzx edx, byte [ebx + 4]
shl edx, 8
or edx, ecx
lea ecx, [ebp - 8]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 7]
shl edx, 8
or edx, eax
mov dword [ebp - 4], edx
call fcn.0041d9f0
movzx eax, byte [ebp - 6]
mov ecx, dword [ebp + 8]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 7]
mov edx, dword [ebp - 5]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 8]
mov byte [ebx + 3], al
movzx eax, byte [ebp - 1]
mov byte [ebx + 4], al
movzx eax, byte [ebp - 2]
mov byte [ebx + 5], al
mov eax, dword [ebp - 4]
mov byte [ebx], dl
mov byte [ebx + 7], al
mov byte [ebx + 6], ah
movzx eax, byte [ecx]
xor al, dl
mov byte [ebx], al
movzx eax, byte [ecx + 1]
xor byte [ebx + 1], al
movzx eax, byte [ecx + 2]
xor byte [ebx + 2], al
movzx eax, byte [ecx + 3]
xor byte [ebx + 3], al
movzx eax, byte [ecx + 4]
xor byte [ebx + 4], al
movzx eax, byte [ecx + 5]
xor byte [ebx + 5], al
movzx eax, byte [ecx + 6]
xor byte [ebx + 6], al
movzx eax, byte [ecx + 7]
xor byte [ebx + 7], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a4a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x105
lea eax, [ebp - 0x10c]
mov esi, ecx
push 0
push eax
call fcn.0051a780
push 0x104
push esi
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.0052d36d
add esp, 0x1c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x43a4e6
sub esi, ecx
inc esi
cmp esi, 0x105
jae 0x43a56b
mov byte [ebp + esi - 0x10c], al
xorps xmm0, xmm0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x124], eax
mov eax, 0x614
mov word [ebp - 0x11c], ax
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x120], 0
movlpd qword [ebp - 0x11a], xmm0
mov dword [ebp - 0x112], 0
mov dword [ebp - 0x128], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 4]
test eax, eax
pop esi
sete al
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
call fcn.00518b89
int3