joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429200
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00429160
cmp eax, 1
jne 0x42924f
mov al, al
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
push 2
push eax
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call ebx
test eax, eax
jne 0x429320
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x429320
mov edi, dword [ebp - 0x10]
lea ecx, [edi + 8]
cmp edi, ecx
sbb eax, eax
test ecx, eax
je 0x429320
cmp edi, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x4292d6
cmp edi, ecx
sbb eax, eax
and eax, ecx
call fcn.00567bb0
mov esi, esp
test esi, esi
je 0x429320
mov dword [esi], 0xcccc
jmp 0x4292f1
cmp edi, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.0054cef5
mov esi, eax
add esp, 4
test esi, esi
je 0x4292f4
mov dword [esi], 0xdddd
add esi, 8
mov edi, dword [ebp - 0x10]
test esi, esi
je 0x429320
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x429348
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x429320
push esi
call fcn.005417da
add esp, 4
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.004293d0
lea ecx, [ebp - 0x34]
call fcn.004293d0
mov al, bl
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42930c
xor ebx, ebx
xor edi, edi
cmp dword [esi], ebx
jbe 0x4293a0
lea ebx, [esi + 4]
nop word [eax + eax]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42939b
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x429380
xor ebx, ebx
jmp 0x4293a0
mov ebx, 1
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x4293b4
push esi
call fcn.005417da
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x429322
Function at 0x429bc0
Capabilities:
Check os version
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0x94
push eax
mov bh, dl
mov bl, cl
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor al, al
cmp dword [ebp - 0x290], 2
mov byte [0x5d9ca6], al
jne 0x429c1f
cmp dword [ebp - 0x29c], 5
jne 0x429c1f
cmp dword [ebp - 0x298], 0
mov ecx, 1
movzx eax, al
cmove eax, ecx
mov byte [0x5d9ca6], al
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 0x5e9200
call fcn.005417f5
add esp, 0xc
test bl, bl
je 0x429c67
push str.__preconnect
push 0x104
push 0x5e9200
call fcn.0054184f
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 0x5e9200
call fcn.0054184f
add esp, 0xc
lea ecx, [ebp - 0x3a4]
call fcn.00425a60
lea eax, [ebp - 0x3a4]
push eax
push dword [0x5d9d3c]
push str.kickrdp
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5d9d3c], eax
lea eax, [ebp - 0x3a4]
push eax
push dword [0x5d9d30]
push str.clearconsole
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5d9d30], eax
lea eax, [ebp - 0x3a4]
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x584fd8
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 0x429d10
sub ecx, edx
je 0x429da2
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x5e9200
call fcn.005417f5
add esp, 0xc
test bl, bl
je 0x429d53
push str.__preconnect
push 0x104
push 0x5e9200
call fcn.0054184f
add esp, 0xc
push 0x5bcef4
push 0x104
push 0x5e9200
call fcn.0054184f
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x5e9200
call fcn.0054184f
add esp, 0x18
test bh, bh
je 0x429d8b
push str.__service_rdp_run
jmp 0x429d90
push str.__service_run
push 0x104
push 0x5e9200
call fcn.0054184f
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x429dc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x429e0b
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x429e1e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x10c]
push str.winlogon.exe
push eax
call fcn.0054cf39
add esp, 8
test eax, eax
cmove esi, dword [ebp - 0x128]
cmp byte [0x5d9ca5], 0
jne 0x429e58
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
test eax, eax
jne 0x429e24
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x42b520
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d7008]
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 0x42b569
push 0x10
push 0x5bcc94
mov edx, str.Failed_to_open_service_control_manager
call fcn.004254b0
add esp, 8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
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 0x42b5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42b5ba
push 0x10
push 0x5bcc94
mov edx, str.Failed:_Permission_denied
call fcn.004254b0
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.0053d630
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x42b5d5
push 0x10
push 0x5bcc94
mov edx, str.Failed_to_open_the_service
call fcn.004254b0
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.0053d630
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 0x42b635
push 0x10
push 0x5bcc94
mov edx, str.Failed_to_query_service_status
call fcn.004254b0
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.0053d630
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
push esi
je 0x42b66c
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.0042b520
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x42b6ab
push 0x10
push 0x5bcc94
mov edx, str.Failed_to_delete_the_service
call fcn.004254b0
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.0053d630
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.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x42ba60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d7008]
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.0053d630
mov esp, ebp
pop ebp
ret

Function at 0x42bb00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d7008]
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.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x42c0e0
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 + 0x29c]
call fcn.00489800
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 0x42c173
cmp byte [esi + 0x10], 0
jne 0x42c227
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x42c730
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
test eax, eax
je 0x42c227
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xfffffffe
jne 0x42c19c
cmp byte [esi + 0x10], 0
je 0x42c227
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 0x42c227
cmp edi, 0x4000
jg 0x42c227
test edi, edi
jne 0x42c1dd
push 0x584fd8
push 0x475
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x4000
push edi
push dword [esi + 0x1c]
call fcn.0053f2b0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x4000
push 0
push dword [esi + 0x1c]
call fcn.0053f2b0
mov ecx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [ecx + 0x29c]
push edi
push dword [esi + 0x1c]
call fcn.00489800
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.0042c320
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42e8c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d7008]
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 0x42e907
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0053eb80
add esp, 8
test eax, eax
je 0x42e9d0
mov byte [eax], 0
push str.uvnckeyboardhelper.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0054184f
lea eax, [ebp - 0x108]
push 0x5bd854
push eax
call fcn.0054d0c7
add esp, 0x14
test eax, eax
je 0x42e9d0
push eax
call fcn.0054d155
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], 0x584fd8
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
jne 0x42e9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x42e9f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569574
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d7008]
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 [0x5e25d0]
test eax, eax
jne 0x42ea49
push 0x20
call fcn.0053d643
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00476f90
mov ecx, dword [ebp - 0x14]
mov dword [0x5e25d0], eax
cmp byte [eax + 5], 0
je 0x42ebf6
cmp dword [0x5d9e64], 0
jne 0x42ebf6
cmp dword [0x5d9e68], 0
je 0x42ebf6
push 2
lea ecx, [ebp - 0xd]
call fcn.0042e850
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call esi
shr eax, 8
push 0xa5
mov dword [ebp - 0x18], eax
call esi
push 0xa2
call esi
shr eax, 8
push 0xa3
mov dword [ebp - 0x1c], eax
call esi
push 0x5b
call esi
shr eax, 8
push 0x5c
mov dword [ebp - 0x20], eax
call esi
mov esi, dword [0x5d9e74]
test esi, esi
je 0x42ebca
cmp byte [ebp - 0x18], 0
jne 0x42ead7
cmp byte [ebp - 0x1c], 0
jne 0x42ead7
cmp byte [ebp - 0x20], 0
je 0x42ebca
cmp byte [esi + 0x1ec], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 0x24], al
mov eax, dword [ebp + 8]
mov byte [ebp - 0x23], bl
mov dword [ebp - 0x20], eax
je 0x42ebda
lea ebx, [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x1e0]
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x1c]
call fcn.00540f80
mov eax, dword [esi + 0xc]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x42eb22
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42eb2c
push eax
call edi
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x42eb3c
push eax
call edi
push 0x3e8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42eb69
inc dword [esi + 0x1e8]
cmp dword [esi + 0x1e8], 3
jle 0x42eb73
mov byte [esi + 0x1ec], 0
jmp 0x42eb9d
mov dword [esi + 0x1e8], 0
cmp byte [esi + 0x1ec], 0
je 0x42eb9d
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.00540f80
add esp, 0xc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42eba7
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x5d9e64], 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 [0x5d9e64], 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 0x42f850
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 0x42f8b0
cmp ebx, 0xffffffff
je 0x42f8b0
test edi, edi
je 0x42f8ad
cmp edi, 0xffffffff
jne 0x42f8b9
mov dword [ebp - 4], ebx
test edi, edi
je 0x42f8c5
cmp edi, 0xffffffff
je 0x42f8c5
test ebx, ebx
je 0x42f8c2
cmp ebx, 0xffffffff
jne 0x42f8ce
mov dword [ebp - 4], edi
test ebx, ebx
je 0x42f945
cmp ebx, 0xffffffff
je 0x42f945
test edi, edi
je 0x42f945
cmp edi, 0xffffffff
je 0x42f945
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 0x42f945
cmp esi, edx
jne 0x42f953
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 0x42f941
cmp eax, 1
jne 0x42f953
mov edi, ebx
jmp 0x42f953
mov eax, dword [ebp - 4]
mov edi, eax
test eax, eax
je 0x42f997
cmp edi, 0xffffffff
je 0x42f997
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 0x42f98a
cmp esi, 0xffffffff
je 0x42f98a
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.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_videodriver.cpp_:_Error_video.dat__n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433480
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.0041ddf0
add edi, 0xfffffff8
test edi, edi
jle 0x43356c
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.0041e0e0
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 0x4334b1
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.0041e0e0
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 0x4372b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5d7008]
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.0053f2b0
push 0x104
push esi
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.0054e396
add esp, 0x1c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4372f6
sub esi, ecx
inc esi
cmp esi, 0x105
jae 0x43737b
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.0053d630
mov esp, ebp
pop ebp
ret
call fcn.0053da20
int3