joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f8e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.c:_video0.dat
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
call edi
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.c:_video1.dat
mov esi, eax
call edi
mov edi, eax
cmp esi, ebx
je 0x40f937
cmp esi, 0xffffffff
je 0x40f937
cmp edi, ebx
je 0x40f933
cmp edi, 0xffffffff
jne 0x40f937
mov dword [esp + 0x14], esi
cmp edi, ebx
je 0x40f94d
cmp edi, 0xffffffff
je 0x40f94d
cmp esi, ebx
je 0x40f949
cmp esi, 0xffffffff
jne 0x40f94d
mov dword [esp + 0x14], edi
cmp esi, ebx
je 0x40f9de
cmp esi, 0xffffffff
je 0x40f9de
cmp edi, ebx
je 0x40f9de
cmp edi, 0xffffffff
je 0x40f9de
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
call ebx
push 0
push edi
mov ebp, eax
call ebx
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 0x18]
cmp ebp, ecx
jne 0x40f987
mov dword [esp + 0x14], esi
cmp eax, ecx
jne 0x40f9de
mov dword [esp + 0x14], edi
cmp ebp, ecx
jne 0x40f9de
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
call ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x40f9da
mov dword [esp + 0x14], edi
cmp eax, 1
jne 0x40f9de
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40fa34
cmp ebx, 0xffffffff
je 0x40fa34
push 0
push 0
push 0
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x40fa23
cmp esi, 0xffffffff
je 0x40fa23
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov dword [esp + 0x20], eax
call edi
push ebx
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
push str.._videodriver.cpp_:_Error_video.dat__n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
Function at 0x410510
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc4
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0xc0], eax
xor eax, eax
push esi
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.004858b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x9c
call esi
test eax, eax
jne 0x4105a0
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x94
call esi
test eax, eax
jne 0x4105a0
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0047c3ff
add esp, 0xc4
ret
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4105c4
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x4105cf
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x38]
sub eax, 2
jne 0x41065f
mov eax, dword [esp + 0x2c]
cmp eax, 6
jne 0x4105fb
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0047c3ff
add esp, 0xc4
ret
cmp eax, 5
jne 0x41065f
mov eax, dword [esp + 0x30]
cmp eax, 2
jne 0x410651
cmp byte [esp + 0xc2], 1
jne 0x410636
cmp word [esp + 4], 9
jne 0x410636
mov eax, 7
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0047c3ff
add esp, 0xc4
ret
mov eax, 5
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0047c3ff
add esp, 0xc4
ret
cmp eax, 1
je 0x410636
test eax, eax
mov eax, 5
je 0x410664
mov eax, 4
mov ecx, dword [esp + 0xc4]
pop esi
xor ecx, esp
call fcn.0047c3ff
add esp, 0xc4
ret

Function at 0x410850
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
je 0x4108fa
push edi
lea eax, [esp + 0xc]
push eax
push str.mv2.dll
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x410876
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.0047c463
add esp, 4
mov esi, eax
push esi
push edi
push 0
push str.mv2.dll
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4108c2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.StringFileInfo000004b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4108e6
mov edx, dword [esp + 8]
push 0x200
push edx
push ebx
call fcn.0047ce10
push esi
call fcn.0047c43d
add esp, 0x10
pop esi
mov eax, 1
pop edi
add esp, 0xc
ret
push esi
mov byte [ebx], 0
call fcn.0047c43d
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x411790
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 1
mov ecx, ebp
call fcn.00401e20
mov eax, dword [esp + 0x10]
add eax, 0xfffffff8
add esp, 4
test eax, eax
jle 0x4117ff
push ebx
lea ebx, [eax - 1]
shr ebx, 3
lea esi, [eax + edi]
inc ebx
mov eax, esi
call fcn.004023e0
movzx eax, byte [esi - 8]
movzx ecx, byte [esi - 7]
xor byte [esi], al
xor byte [esi + 1], cl
movzx edx, byte [esi - 6]
movzx eax, byte [esi - 5]
movzx ecx, byte [esi - 4]
xor byte [esi + 2], dl
xor byte [esi + 3], al
xor byte [esi + 4], cl
movzx edx, byte [esi - 3]
movzx eax, byte [esi - 2]
movzx ecx, byte [esi - 1]
xor byte [esi + 5], dl
xor byte [esi + 6], al
xor byte [esi + 7], cl
add esi, 0xfffffff8
sub ebx, 1
jne 0x4117b8
pop ebx
mov esi, edi
mov eax, edi
call fcn.004023e0
movzx edx, byte [ebp]
xor byte [edi], dl
movzx eax, byte [ebp + 1]
xor byte [edi + 1], al
movzx ecx, byte [ebp + 2]
xor byte [edi + 2], cl
movzx edx, byte [ebp + 3]
xor byte [edi + 3], dl
movzx eax, byte [ebp + 4]
xor byte [edi + 4], al
movzx ecx, byte [ebp + 5]
xor byte [edi + 5], cl
movzx edx, byte [ebp + 6]
xor byte [edi + 6], dl
movzx eax, byte [ebp + 7]
xor byte [edi + 7], al
pop esi
pop ebp
ret
Function at 0x4148e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x128], eax
push 0x105
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004858b0
push 0x104
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0047e188
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
add esp, 0x18
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea ecx, [esp]
lea edx, [esp + 0x20]
mov eax, 0x614
push ecx
mov dword [esp + 8], 3
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x128]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0047c3ff
add esp, 0x12c
ret

Function at 0x414980
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4149a3
test bl, 1
je 0x4149a3
and eax, 0xfffffffe
push eax
push esi
call ebp
cmp dword [0x4bb5d4], 3
jne 0x4149cc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
mov byte [esp + 0xb], al
test al, al
je 0x4149dd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4149dd
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
setne byte [esp + 0xb]
cmp ebx, 0xffffffff
je 0x4149e6
push ebx
push esi
call ebp
mov al, byte [esp + 0xb]
pop ebp
pop ebx
pop ecx
ret
Function at 0x416f00
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x100], eax
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, bl
test byte [esp + ecx], 1
je 0x416f41
push esi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 1
push 0
push ebx
call esi
push 0
push 3
push 0
push ebx
call esi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x104
ret

Function at 0x416f60
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x10c], eax
push 0x100
lea eax, [esp + 0x10]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x416faf
push 0x100
push str.Host_name_unavailable
push edi
call fcn.0047ce10
add esp, 0xc
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x110
ret
push ebp
lea ecx, [esp + 0x10]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
jne 0x416fe9
push 0x100
push str.IP_address_unavailable
push edi
call fcn.0047ce10
add esp, 0xc
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x110
ret
mov byte [edi], 0
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
mov dword [esp + 4], 0
je 0x4170be
push ebx
push esi
xor ebx, ebx
xor eax, eax
xor esi, esi
cmp ax, word [ebp + 0xa]
jge 0x41705a
mov edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + ecx]
movzx eax, byte [edx + esi]
push eax
lea ecx, [esp + 0x14]
push 0x4ab604
push ecx
call fcn.0047c59e
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417032
sub eax, edx
mov edx, 0xff
sub edx, eax
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0047de20
movsx ecx, word [ebp + 0xa]
inc esi
add esp, 0xc
cmp esi, ecx
jl 0x417010
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417060
sub eax, edx
mov byte [edi + eax - 1], cl
mov edx, dword [ebp + 0xc]
cmp dword [ebx + edx + 4], 0
je 0x41709f
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417080
sub eax, edx
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x4ab608
push edi
call fcn.0047de20
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
inc eax
lea ebx, [eax*4]
cmp dword [ebx + edx], 0
mov dword [esp + 0xc], eax
jne 0x417004
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop ebp
xor ecx, esp
call fcn.0047c3ff
add esp, 0x110
ret
Function at 0x41c000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49a697
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00422bc0
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x18], 0
call fcn.00422bc0
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 1
push ecx
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.00422bc0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x41cce0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
mov byte [esp + 7], 0
mov dword [esp + 8], ebp
push edi
push 0
lea eax, [esp + 0x10]
push eax
push 0x2000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x41cd17
test edi, edi
je 0x41cd1b
mov byte [esp + 0xb], 1
jmp 0x41cd1b
test edi, edi
je 0x41cd3d
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.0045e7b0
mov ecx, eax
mov eax, edi
mov edx, esi
call fcn.0045e7b0
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebp], eax
add ebp, 4
jmp 0x41ccf0
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.0047d0a1
add esp, 4
cmp byte [esp + 0xb], 0
pop edi
je 0x41cd65
or eax, 0xffffffff
pop ebp
add esp, 8
ret 4
mov eax, ebp
pop ebp
add esp, 8
ret 4

Function at 0x41cdd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [esi + 0x311], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
mov byte [esp + 0x14], 1
je 0x41cdf7
cmp byte [esi + 0x310], 0
je 0x41ce00
push esi
call fcn.0041cf10
mov al, 1
pop edi
pop ebp
pop ebx
pop ecx
ret 4
test edi, edi
jge 0x41ce0d
xor al, al
pop edi
pop ebp
pop ebx
pop ecx
ret 4
cmp edi, 0x2000
jg 0x41cdf7
cmp ebp, 2
sete al
mov bl, 1
test al, al
je 0x41ce53
mov eax, dword [esi + 0x2f8]
push 1
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41ceea
push esi
mov byte [esi + 0x310], bl
call fcn.0041cf10
mov al, byte [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x2f0]
mov edx, dword [esi + 0xec]
push ecx
mov ecx, edi
call fcn.00453b00
cmp eax, 0xffffffff
sete al
mov byte [esp + 0x14], al
test al, al
je 0x41cf01
test ebp, ebp
jne 0x41ce7f
xor bl, bl
mov eax, dword [esi + 0x2f0]
mov dword [esp + 0xc], 0x2000
test bl, bl
je 0x41cec8
mov edx, dword [esi + 0x2f4]
mov ecx, edi
lea edi, [esp + 0xc]
call fcn.0045ea10
test eax, eax
je 0x41cebe
push esi
mov byte [esi + 0x310], 1
call fcn.0041cf10
mov al, byte [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x2f4]
push 0
lea edx, [esi + 0x308]
push edx
push edi
push eax
mov eax, dword [esi + 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41cea6
mov edi, dword [esi + 0x308]
add dword [esi + 0x30c], edi
inc dword [esi + 0x304]
mov al, byte [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
push esi
mov byte [esi + 0x310], 1
call fcn.0041cf10
jmp 0x41cee4
Function at 0x41d460
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x499b88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
call edx
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp byte [esi + 0x46e], bl
je 0x41d5b7
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1d4]
call edx
imul eax, eax, 0x3e8
mov edi, dword [esi + 0xec]
push eax
call fcn.004537b0
mov edi, dword [esi + 0xec]
mov al, 7
mov byte [esi + 0x46e], bl
mov byte [esp + 0x1c], al
cmp byte [esi + 0x46d], bl
jne 0x41d4fd
mov byte [esp + 0x1d], 6
cmp byte [edi + 0x10], bl
je 0x41d520
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x21], bl
jmp 0x41d50c
mov byte [esp + 0x1d], al
cmp byte [edi + 0x10], bl
je 0x41d520
mov edx, dword [edi + 8]
cmp byte [edx + 0x21], bl
je 0x41d520
mov byte [esp + 0x17], al
mov ecx, 1
lea eax, [esp + 0x17]
call fcn.00453a00
mov ecx, 0xc
lea eax, [esp + 0x1c]
call fcn.00453a00
mov eax, dword [esi + 0x458]
cmp eax, 0xffffffff
je 0x41d54a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x458], 0xffffffff
mov eax, dword [esi + 0x2f0]
cmp eax, ebx
je 0x41d563
push eax
call fcn.0047d0a1
add esp, 4
mov dword [esi + 0x2f0], ebx
mov eax, dword [esi + 0x2f4]
cmp eax, ebx
je 0x41d57c
push eax
call fcn.0047d0a1
add esp, 4
mov dword [esi + 0x2f4], ebx
add esi, 0x314
push 0x5c
push esi
call fcn.0047e5be
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.0047e22e
add esp, 0x14
test eax, eax
jne 0x41d5b7
push 0x2c
push esi
call fcn.0047e5be
add esp, 8
cmp eax, ebx
je 0x41d5b0
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x41d5e0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x41d5fe
xor al, al
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41d63a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [esp + 4]
test eax, eax
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
setne bl
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0x41d910
Capabilities:
Delete file

Disassembly:
sub esp, 0x310
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebp
mov ebp, dword [esp + 0x318]
cmp byte [ebp + 0x310], 0
jne 0x41da20
push 0x5c
push ebx
call fcn.0047e5be
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.0047e22e
add esp, 0x14
test eax, eax
jne 0x41da20
lea edx, [esp + 0x108]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41d965
push esi
push edi
lea eax, [esp + 0x110]
push 0x5c
push eax
call fcn.0047e5be
mov esi, eax
inc esi
push 0x2d
push esi
call fcn.0047e3aa
inc eax
lea edx, [esp + 0x1c]
add esp, 0x10
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41d995
lea ecx, [esp + 0xc]
push 0x2e
push ecx
call fcn.0047e5be
add esp, 8
mov byte [eax], 0
test esi, esi
je 0x41d9b8
mov byte [esi], 0
lea eax, [esp + 0xc]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d9c0
lea edi, [esp + 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41d9d1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x194]
push ebx
lea edx, [esp + 0x114]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00455880
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x310
ret 4
mov ecx, dword [esp + 0x310]
pop ebp
xor ecx, esp
xor al, al
call fcn.0047c3ff
add esp, 0x310
ret 4
Function at 0x421be0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421bf0
sub eax, edx
mov edi, eax
lea eax, [edi + edi + 1]
push eax
call fcn.0047cc97
mov ebx, eax
add esp, 4
xor esi, esi
xor eax, eax
test edi, edi
jle 0x421c29
cmp byte [eax + ebp], 0xa
jne 0x421c1d
mov byte [esi + ebx], 0xd
inc esi
mov cl, byte [eax + ebp]
mov byte [esi + ebx], cl
inc eax
inc esi
cmp eax, edi
jl 0x421c12
mov edx, dword [esp + 0x14]
mov byte [esi + ebx], 0
mov eax, dword [edx + 0xdc14]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x421c82
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x421c82
inc esi
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x421c82
push edi
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x421c68
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call fcn.0047d0a1
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4220f0
Capabilities:
Create thread
Power down monitor

Disassembly:
push ecx
push ebx
push edi
push str.user32
mov bl, al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x422122
mov ecx, dword [esi + 0xdc0c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2ac]
push 0
call edx
mov ecx, dword [esi + 0xdc0c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2b0]
call edx
mov ecx, str.true
test eax, eax
jne 0x422140
mov ecx, str.false
mov eax, 0x4ad0e4
test bl, bl
jne 0x42214e
mov eax, 0x4ad0e8
push ecx
push eax
push str.._vncdesktop.cpp_:_SetBlankMonitor:_monitor__s__using_alpha__s_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov ecx, dword [esi + 0xdc0c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1fc]
add esp, 0xc
call edx
test eax, eax
je 0x42228b
mov ecx, dword [esi + 0xdc0c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2b0]
call edx
test bl, bl
je 0x422241
mov ebx, 1
test eax, eax
je 0x4221e5
mov eax, dword [esi + 0xe0fc]
test eax, eax
je 0x4221bc
cmp dword [eax + 8], 0
jne 0x4221e5
mov dword [esi + 0xe130], ebx
mov dword [esi + 0xe134], ebx
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x401750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0xe124], bl
pop edi
pop ebx
pop ecx
ret
cmp dword [0x4bb5d4], 2
je 0x4221bc
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [esi + 0xe120]
push eax
push 0
push 0x50
call edi
push 0
push 0
push 0x64
push 0x52
call edi
push 0
push 0
push 1
push 0x56
call edi
mov ecx, dword [esi + 0xdc14]
push 2
push 0xf170
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebx
pop ecx
ret
test eax, eax
je 0x42228f
mov eax, dword [esi + 0xe0fc]
test eax, eax
je 0x422266
cmp dword [eax + 8], 0
jne 0x42228f
mov ebx, 1
mov dword [esi + 0xe130], ebx
mov dword [esi + 0xe134], ebx
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x422284
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esi + 0xe124], 0
pop edi
pop ebx
pop ecx
ret
cmp dword [0x4bb5d4], 2
je 0x422266
mov eax, dword [esi + 0xe120]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x4222b1
push 0
push 0
push eax
push 0x52
call edi
push 0
push 0
push 0
push 0x56
call edi
mov eax, dword [esi + 0xdc14]
test eax, eax
je 0x4222d8
push 0xffffffffffffffff
push 0xf170
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push str.blackscreen
mov dword [esi + 0xe120], 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x42228b
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop ebx
pop ecx
ret