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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [0x46f3b8], esi
mov dword [0x46f3b4], esi
call fcn.00404610
cmp eax, 1
jne 0x4046f4
mov al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x46f3b4]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
mov byte [ebp - 0x14], 0
push eax
push esi
push esi
push 2
push ecx
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
call ebx
test eax, eax
je 0x404733
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40474a
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0044a8b0
mov esi, esp
test esi, esi
jne 0x40476b
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x46f3b4]
lea edx, [ebp - 4]
push edx
push edi
push esi
push 2
push eax
call ebx
test eax, eax
jne 0x40478b
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
xor edi, edi
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea edx, [ebp - 0x14]
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4047ba
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [ebp - 0xc], edi
cmp eax, edi
jbe 0x4047ea
lea ebx, [esi + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4047e3
mov eax, dword [esi]
inc edi
add ebx, 8
cmp edi, eax
jb 0x4047c6
jmp 0x4047ea
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x46f3b8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404806
push eax
call esi
mov eax, dword [0x46f3b4]
test eax, eax
je 0x404812
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
setne al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4048b0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x4000
mov dword [esi], 0x457568
mov dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x30], bl
call fcn.00449d10
mov edi, eax
mov ecx, 0x1000
xor eax, eax
mov dword [esi + 0x14], edi
rep stosd dword es:[edi], eax
push 0x4000
call fcn.00449d10
mov edi, eax
mov ecx, 0x1000
xor eax, eax
mov dword [esi + 0x18], edi
rep stosd dword es:[edi], eax
push 0x4000
call fcn.00449d10
mov edi, eax
mov ecx, 0x1000
xor eax, eax
mov dword [esi + 0x1c], edi
rep stosd dword es:[edi], eax
push 0x80
call fcn.00449d10
mov edi, eax
mov ecx, 0x20
xor eax, eax
mov dword [esi + 0x20], edi
rep stosd dword es:[edi], eax
push 0x80
call fcn.00449d10
mov edi, eax
mov ecx, 0x20
xor eax, eax
mov dword [esi + 0x24], edi
rep stosd dword es:[edi], eax
push 0x4000
call fcn.00449d10
mov edi, eax
mov ecx, 0x1000
xor eax, eax
mov dword [esi + 0x28], edi
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x24]
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40499f
cmp dword [esp + 0x10], 0x80
jb 0x40499f
mov ecx, dword [esi + 0x24]
mov al, 0x2e
mov byte [ecx + 0x7c], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7d], al
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0x7e], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7f], bl
push str.RICHED32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x2c], eax
jne 0x4049c4
push 0x30
push 0x480560
push 0x480710
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 4

Function at 0x405070
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x405040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop ecx
ret
Function at 0x407bb0
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
je 0x407c56
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x407c56
lea eax, [esp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x407c56
push edi
call fcn.00449d10
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x407c25
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.StringFileInfo000004b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407c49
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.0044abe0
push esi
call fcn.00449d1e
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
mov byte [ebp], 0
call fcn.00449d1e
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4087e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 1
push ebp
call fcn.004014b0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
add eax, 0xfffffff8
add esp, 8
test eax, eax
jle 0x408830
lea ebx, [eax - 1]
lea esi, [eax + edi]
shr ebx, 3
inc ebx
push esi
push esi
call fcn.004016b0
add esp, 8
xor eax, eax
mov cl, byte [esi + eax - 8]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 8
jl 0x408818
sub esi, 8
dec ebx
jne 0x40880c
push edi
push edi
call fcn.004016b0
mov ecx, ebp
add esp, 8
mov eax, edi
sub ecx, edi
mov esi, 8
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x408845
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4097a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 0x28]
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
mov byte [esp + 0xc], al
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
push 1
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], edi
call fcn.00403470
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x409829
mov eax, dword [esp + 0x14]
mov edx, eax
sub edx, esi
sar edx, 4
mov dword [esp + 0x34], edx
je 0x409829
cmp esi, eax
je 0x409829
mov edi, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push esi
push edi
push ebx
mov ecx, ebp
call fcn.00408d30
mov eax, dword [esp + 0x18]
add esi, 0x10
cmp esi, eax
jne 0x40980f
mov esi, dword [esp + 0x14]
pop ebx
push esi
call fcn.00449d1e
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0xc

Function at 0x40c370
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [esp + 0x108]
mov ecx, esi
and ecx, 0xff
test byte [esp + ecx + 4], 1
je 0x40c3b2
push edi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 1
push 0
push esi
call edi
push 0
push 3
push 0
push esi
call edi
pop edi
pop esi
add esp, 0x100
ret
Function at 0x412510
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
push 0x2000
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], edi
call fcn.00449d10
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x41253e
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push 0
push eax
push 0x2000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x41256f
test eax, eax
je 0x412573
mov byte [esp + 0x13], 1
jmp 0x412573
test eax, eax
je 0x412595
push 0
push 0
push 0
call fcn.0043b7c0
mov ecx, dword [esp + 0x20]
push ecx
push esi
push eax
call fcn.0043b7c0
add esp, 0x18
mov dword [edi + ebx], eax
add edi, 4
jmp 0x412548
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00449d1e
mov al, byte [esp + 0x17]
add esp, 4
test al, al
pop ebp
pop ebx
je 0x4125c0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret 0xc
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0xc

Function at 0x412630
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x2f1]
test al, al
je 0x41277d
mov al, byte [esi + 0x2f0]
test al, al
je 0x41265a
call fcn.00412790
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov edi, dword [esp + 0x14]
cmp edi, 0x2000
jg 0x41277d
mov ebp, dword [esp + 0x18]
mov bl, 1
cmp ebp, 2
sete al
test al, al
je 0x4126a9
mov eax, dword [esi + 0x2d8]
push 1
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x412762
mov ecx, esi
mov byte [esi + 0x2f0], bl
call fcn.00412790
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [esi + 0x2d0]
push edi
push ecx
mov ecx, dword [esi + 0xe8]
call fcn.00438e50
test eax, eax
je 0x41274e
test ebp, ebp
jne 0x4126ca
xor bl, bl
test bl, bl
mov dword [esp + 0x14], 0x2000
je 0x412717
mov edx, dword [esi + 0x2d0]
mov ecx, dword [esi + 0x2d4]
push edi
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call fcn.0043ba30
add esp, 0x10
test eax, eax
je 0x41270b
mov ecx, esi
mov byte [esi + 0x2f0], 1
call fcn.00412790
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x2d4]
jmp 0x41271d
mov eax, dword [esi + 0x2d0]
lea edx, [esi + 0x2e8]
push 0
push edx
push edi
push eax
mov eax, dword [esi + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41275c
mov ecx, esi
mov byte [esi + 0x2f0], 1
call fcn.00412790
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, esi
mov byte [esi + 0x2f0], 1
call fcn.00412790
mov edi, dword [esi + 0x2e8]
mov ecx, dword [esi + 0x2ec]
mov eax, dword [esi + 0x2e4]
add ecx, edi
inc eax
mov dword [esi + 0x2ec], ecx
mov dword [esi + 0x2e4], eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x412790
Capabilities:
Clear file content
Timestomp file

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov al, byte [esi + 0x2f1]
test al, al
je 0x4128ac
mov eax, dword [esi + 0x2d8]
push edi
push eax
mov byte [esi + 0x2f1], 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esi + 0x2bc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x41286b
push edx
call fcn.0044b0e1
lea edx, [esi + 0x2bf]
mov word [esp + 0x12], ax
push edx
call fcn.0044b0e1
mov word [esp + 0x1a], ax
lea eax, [esi + 0x2c2]
push eax
call fcn.0044b0e1
lea ecx, [esi + 0x2c7]
mov word [esp + 0x18], ax
push ecx
call fcn.0044b0e1
lea edx, [esi + 0x2ca]
mov word [esp + 0x24], ax
push edx
call fcn.0044b0e1
add esp, 0x14
mov word [esp + 0x16], ax
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push ecx
mov word [esp + 0x22], 0
mov word [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 4]
lea eax, [esp + 4]
push edx
mov edx, dword [esi + 0x2d8]
lea ecx, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esi + 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x178]
push ecx
mov ecx, esi
call fcn.00412f50
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x412899
push eax
call fcn.00449d1e
add esp, 4
mov esi, dword [esi + 0x2d0]
test esi, esi
je 0x4128ac
push esi
call fcn.00449d1e
add esp, 4
pop esi
add esp, 0x18
ret
Function at 0x412b80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x455a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x24]
mov ebp, eax
push ebp
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x44e]
mov dword [esp + 0x20], 0
test al, al
je 0x412c83
mov al, byte [esi + 0x44d]
mov byte [esi + 0x44e], 0
test al, al
mov eax, 7
push eax
mov byte [esp + 0x10], al
push 0xc
jne 0x412bed
lea ecx, [esp + 0x14]
mov byte [esp + 0x15], 6
push ecx
jmp 0x412bf6
lea edx, [esp + 0x14]
mov byte [esp + 0x15], al
push edx
mov ecx, dword [esi + 0xe8]
call fcn.00438c80
mov eax, dword [esi + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2d0]
test eax, eax
je 0x412c21
push eax
call fcn.00449d1e
add esp, 4
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x412c34
push eax
call fcn.00449d1e
add esp, 4
push edi
mov edi, str._UVNCDIR_
or ecx, 0xffffffff
xor eax, eax
add esi, 0x2f2
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._UVNCDIR_
push 0x5c
push esi
call fcn.0044a480
add esp, 8
inc eax
push eax
call fcn.0044b0f0
add esp, 0xc
test eax, eax
pop edi
jne 0x412c83
push 0x2c
push esi
call fcn.0044a480
add esp, 8
test eax, eax
je 0x412c7c
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x412f50
Capabilities:
Delete file

Disassembly:
sub esp, 0x310
push ebx
push ebp
mov ebp, ecx
push edi
mov al, byte [ebp + 0x2f0]
test al, al
jne 0x41304f
mov edi, str._UVNCDIR_
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x320]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._UVNCDIR_
push 0x5c
push ebx
call fcn.0044a480
add esp, 8
inc eax
push eax
call fcn.0044b0f0
add esp, 0xc
test eax, eax
jne 0x41304f
lea edx, [esp + 0x114]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x412fad
push esi
lea eax, [esp + 0x118]
push 0x5c
push eax
call fcn.0044a480
mov esi, eax
push 0x2d
inc esi
push esi
call fcn.0044ae60
add esp, 0x10
inc eax
lea edx, [esp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x412fdc
lea ecx, [esp + 0x14]
push 0x2e
push ecx
call fcn.0044a480
add esp, 8
mov byte [eax], 0
test esi, esi
je 0x412fff
mov byte [esi], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
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 eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x174]
call fcn.0043a060
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret 4
Function at 0x415250
Capabilities:
Create thread

Disassembly:
sub esp, 0x34
push ebx
xor ebx, ebx
cmp word [0x46f40c], bx
push esi
mov esi, ecx
jne 0x4152c7
mov eax, dword [0x480310]
push ebx
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x415ed0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], str.WinVNC_desktop_sink
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
cmp ax, bx
mov word [0x46f40c], ax
jne 0x4152c7
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_failed_to_register_window_class_n
jmp 0x41530a
mov edx, dword [0x480310]
push ebx
push edx
push ebx
push ebx
push 0xc8
push 0x190
push bind
push bind
push 0xcf0000
push str.WinVNC
push str.WinVNC_desktop_sink
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [esi + 0xdbb8], eax
jne 0x415320
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_failed_to_create_hook_window_n
push ebx
push 0x46f3bc
call fcn.00405970
add esp, 0xc
xor eax, eax
pop esi
pop ebx
add esp, 0x34
ret
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0xdbb8]
push eax
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov ecx, esi
mov dword [esi + 0xdbc0], eax
mov byte [esi + 0xb8], bl
call fcn.004168f0
test eax, eax
je 0x41536f
mov edx, dword [esi + 0xdbb8]
lea ecx, [esp + 8]
push ecx
push ebx
push edx
push 0x415190
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
add esp, 0x34
ret

Function at 0x4159c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov dword [esp + 0x10], ecx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + edi + 1]
push eax
call fcn.00449d10
mov ebx, eax
add esp, 4
xor esi, esi
xor eax, eax
test edi, edi
jle 0x415a09
cmp byte [eax + ebp], 0xa
jne 0x4159fd
mov byte [esi + ebx], 0xd
inc esi
mov cl, byte [eax + ebp]
mov byte [esi + ebx], cl
inc esi
inc eax
cmp eax, edi
jl 0x4159f2
mov edx, dword [esp + 0x10]
mov byte [esi + ebx], 0
mov eax, dword [edx + 0xdbb8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x415a62
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x415a62
inc esi
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x415a62
push edi
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x415a48
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call fcn.00449d1e
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x416560
Capabilities:
Create thread
Power down monitor

Disassembly:
push ebx
push esi
push edi
push str.user32
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x416590
mov ecx, dword [esi + 0xdbb0]
push 0
mov eax, dword [ecx]
call dword [eax + 0x244]
mov ecx, esi
call fcn.004168f0
test eax, eax
je 0x4165ab
mov ecx, dword [esi + 0xdbb0]
push 0
mov edx, dword [ecx]
call dword [edx + 0x244]
call fcn.0042e290
mov ebx, dword [esp + 0x10]
cmp eax, 1
jne 0x4165d0
mov eax, dword [esi + 0xe110]
test eax, eax
je 0x4165f0
mov ecx, ebx
and ecx, 0xff
push ecx
call eax
jmp 0x4165f0
mov ecx, dword [esi + 0xdbb0]
mov eax, ebx
and eax, 0xff
mov edx, dword [ecx]
push eax
call dword [edx + 0x114]
mov dword [esi + 0xe0e8], 1
mov ecx, dword [esi + 0xdbb0]
mov edx, dword [ecx]
call dword [edx + 0x1c8]
test eax, eax
je 0x416738
mov ecx, dword [esi + 0xdbb0]
test bl, bl
je 0x4166b4
mov eax, dword [ecx]
call dword [eax + 0x248]
test eax, eax
jne 0x416674
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esi + 0xe0dc]
push 0
push ecx
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 edx, dword [esi + 0xdbb8]
push 2
push 0xf170
push 0x112
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
ret 4
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x401450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xdbac]
mov dword [esi + 0xdbac], 0
test eax, eax
setne cl
mov byte [esi + 0xe0e0], cl
pop edi
pop esi
pop ebx
ret 4
mov edx, dword [ecx]
call dword [edx + 0x248]
test eax, eax
jne 0x41670c
mov eax, dword [esi + 0xe0dc]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x4166d9
push 0
push 0
push eax
push 0x52
call edi
push 0
push 0
push 0
push 0x56
call edi
mov eax, dword [esi + 0xdbb8]
push 0xffffffffffffffff
push 0xf170
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0xe0dc], 0
pop edi
pop esi
pop ebx
ret 4
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41672a
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor ecx, ecx
mov cl, byte [esi + 0xe0e0]
mov dword [esi + 0xdbac], ecx
pop edi
pop esi
pop ebx
ret 4
Function at 0x416f00
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x158
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x41701a
lea eax, [esp + 0x60]
push 0x104
push eax
push ebx
mov dword [esi + 0xe0f8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x416f7d
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.0044a480
add esp, 8
cmp eax, ebx
je 0x417038
mov byte [eax], bl
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [str.16bithlp.exe]
mov eax, dword [0x46586c]
mov ecx, dword [0x465870]
dec edi
mov dword [edi], edx
mov dx, word [0x465874]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov word [edi + 0xc], dx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x416fd7
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_set_ddihooks_Failed_n
push ebx
push 0x46f3bc
call fcn.00405970
add esp, 0xc
mov dword [esi + 0xe0d8], ebx
pop edi
pop esi
pop ebx
add esp, 0x158
ret 4
push str.S:UltraVNCwinvncwinvnc_vncdesktop.cpp_:_set_ddihooks_OK_n
push ebx
push 0x46f3bc
call fcn.00405970
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0xe0d8], 1
push 0x2710
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0xc]
pop edi
mov dword [esi + 0xe0f8], ecx
pop esi
pop ebx
add esp, 0x158
ret 4
mov eax, dword [esi + 0xe0f8]
cmp eax, ebx
je 0x417038
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esi + 0xe0f8], ebx
mov dword [esi + 0xe0d8], ebx
pop edi
pop esi
pop ebx
add esp, 0x158
ret 4