joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418220
Capabilities:
Access peb ldr_data

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

Function at 0x418f00
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 0x418f37
test edi, edi
je 0x418f3b
mov byte [esp + 0xb], 1
jmp 0x418f3b
test edi, edi
je 0x418f5d
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.00456260
mov ecx, eax
mov eax, edi
mov edx, esi
call fcn.00456260
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebp], eax
add ebp, 4
jmp 0x418f10
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.0045e501
add esp, 4
cmp byte [esp + 0xb], 0
pop edi
je 0x418f85
or eax, 0xffffffff
pop ebp
add esp, 8
ret 4
mov eax, ebp
pop ebp
add esp, 8
ret 4

Function at 0x418fd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [esi + 0x2f5], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
mov byte [esp + 0x14], 1
je 0x418ff7
cmp byte [esi + 0x2f4], 0
je 0x419000
push esi
call fcn.00419110
mov al, 1
pop edi
pop ebp
pop ebx
pop ecx
ret 4
cmp edi, 0x2000
jg 0x418ff7
cmp ebp, 2
sete al
mov bl, 1
test al, al
je 0x419046
mov eax, dword [esi + 0x2dc]
push 1
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4190de
push esi
mov byte [esi + 0x2f4], bl
call fcn.00419110
mov al, byte [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x2d4]
mov edx, dword [esi + 0xec]
push ecx
push edx
mov ecx, edi
call fcn.0044b5d0
cmp eax, 0xffffffff
sete al
mov byte [esp + 0x14], al
test al, al
je 0x4190f5
test ebp, ebp
jne 0x419073
xor bl, bl
mov eax, dword [esi + 0x2d4]
mov dword [esp + 0xc], 0x2000
test bl, bl
je 0x4190bc
mov edx, dword [esi + 0x2d8]
mov ecx, edi
lea edi, [esp + 0xc]
call fcn.004564c0
test eax, eax
je 0x4190b2
push esi
mov byte [esi + 0x2f4], 1
call fcn.00419110
mov al, byte [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x2d8]
mov edx, dword [esi + 0x2dc]
push 0
lea ecx, [esi + 0x2ec]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41909a
mov edi, dword [esi + 0x2ec]
add dword [esi + 0x2f0], edi
inc dword [esi + 0x2e8]
mov al, byte [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 4
push esi
mov byte [esi + 0x2f4], 1
call fcn.00419110
jmp 0x4190d8
Function at 0x419110
Capabilities:
Clear file content
Copy file
Delete file
Move file
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
cmp byte [ebp + 0x2f5], 0
push esi
push edi
je 0x41932f
mov ecx, dword [ebp + 0xe8]
mov byte [ebp + 0x2f5], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x1b8]
call edx
imul eax, eax, 0x3e8
mov edi, dword [ebp + 0xec]
push eax
call fcn.0044b290
push 1
mov esi, ebp
call fcn.00419fe0
mov eax, dword [ebp + 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp + 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp + 0x2c0]
mov eax, ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419190
sub eax, esi
je 0x419233
push ecx
call fcn.0045f6c4
lea edx, [ebp + 0x2c3]
add esp, 4
push edx
mov word [esp + 0x1e], ax
call fcn.0045f6c4
mov word [esp + 0x22], ax
lea eax, [ebp + 0x2c6]
add esp, 4
push eax
call fcn.0045f6c4
lea ecx, [ebp + 0x2cb]
add esp, 4
push ecx
mov word [esp + 0x1c], ax
call fcn.0045f6c4
lea edx, [ebp + 0x2ce]
add esp, 4
push edx
mov word [esp + 0x24], ax
call fcn.0045f6c4
mov word [esp + 0x26], ax
xor eax, eax
add esp, 4
lea edx, [esp + 0x10]
mov word [esp + 0x26], ax
push edx
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
mov word [esp + 0x2c], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x10]
push ecx
mov edx, ecx
push edx
mov eax, ecx
mov ecx, dword [ebp + 0x2dc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp + 0x2dc]
cmp eax, 0xffffffff
je 0x41924f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x2dc], 0xffffffff
lea edi, [ebp + 0x17c]
push ebp
mov ebx, edi
call fcn.00419b00
cmp byte [ebp + 0x2f4], 0
mov bl, al
je 0x41928c
cmp byte [ebp + 0x2f6], 0
je 0x41928c
push 0x2c
push edi
call fcn.0045f99f
add esp, 8
test eax, eax
je 0x419283
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x419309
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.00411310
cmp byte [ebp + 0x2f4], 0
mov esi, 0x10
jne 0x4192f6
test bl, bl
jne 0x4192f6
cmp dword [0x48b140], 3
mov eax, dword [esp + 0x1c]
jne 0x4192d7
cmp dword [esp + 0x30], esi
jae 0x4192c0
lea eax, [esp + 0x1c]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4192ef
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4192f6
cmp dword [esp + 0x30], esi
jae 0x4192e1
lea eax, [esp + 0x1c]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4192f6
mov byte [ebp + 0x2f4], 1
cmp dword [esp + 0x30], esi
jb 0x419309
mov edx, dword [esp + 0x1c]
push edx
call fcn.0045dc91
add esp, 4
mov eax, dword [ebp + 0x2d8]
test eax, eax
je 0x41931c
push eax
call fcn.0045e501
add esp, 4
mov ebp, dword [ebp + 0x2d4]
test ebp, ebp
je 0x41932f
push ebp
call fcn.0045e501
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045dc1f
add esp, 0x28
ret 4
Function at 0x419640
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x471fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x24]
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 + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x2c], 0
cmp byte [esi + 0x452], 0
je 0x419794
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1b8]
call edx
imul eax, eax, 0x3e8
mov edi, dword [esi + 0xec]
push eax
call fcn.0044b290
cmp byte [esi + 0x451], 0
mov edi, dword [esi + 0xec]
mov al, 7
mov byte [esi + 0x452], 0
mov byte [esp + 0x18], al
jne 0x4196e3
mov byte [esp + 0x19], 6
cmp byte [edi + 0xc], 0
je 0x419708
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x21], 0
jmp 0x4196f4
mov byte [esp + 0x19], al
cmp byte [edi + 0xc], 0
je 0x419708
mov edx, dword [edi + 8]
cmp byte [edx + 0x21], 0
je 0x419708
mov byte [esp + 0x13], al
mov ecx, 1
lea eax, [esp + 0x13]
call fcn.0044b4f0
mov ecx, 0xc
lea eax, [esp + 0x18]
call fcn.0044b4f0
mov eax, dword [esi + 0x43c]
cmp eax, 0xffffffff
je 0x419732
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x43c], 0xffffffff
mov eax, dword [esi + 0x2d4]
test eax, eax
je 0x419745
push eax
call fcn.0045e501
add esp, 4
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x419758
push eax
call fcn.0045e501
add esp, 4
add esi, 0x2f7
push 0x5c
push esi
call fcn.0045f99f
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.0045f5ee
add esp, 0x14
test eax, eax
jne 0x419794
push 0x2c
push esi
call fcn.0045f99f
add esp, 8
test eax, eax
je 0x41978d
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 + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x4197b0
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 0x4197ce
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 0x41980a
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 0x419b00
Capabilities:
Delete file

Disassembly:
sub esp, 0x310
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebp
mov ebp, dword [esp + 0x318]
cmp byte [ebp + 0x2f4], 0
jne 0x419c10
push 0x5c
push ebx
call fcn.0045f99f
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.0045f5ee
add esp, 0x14
test eax, eax
jne 0x419c10
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 0x419b55
push esi
push edi
lea eax, [esp + 0x110]
push 0x5c
push eax
call fcn.0045f99f
mov esi, eax
inc esi
push 0x2d
push esi
call fcn.0045f78b
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 0x419b85
lea ecx, [esp + 0xc]
push 0x2e
push ecx
call fcn.0045f99f
add esp, 8
mov byte [eax], 0
test esi, esi
je 0x419ba8
mov byte [esi], 0
lea eax, [esp + 0xc]
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419bb0
lea edi, [esp + 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419bc1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
lea edx, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x178]
push edx
call fcn.0044d2a0
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.0045dc1f
add esp, 0x310
ret 4
mov ecx, dword [esp + 0x310]
pop ebp
xor ecx, esp
xor al, al
call fcn.0045dc1f
add esp, 0x310
ret 4
Function at 0x41d010
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
push ebx
xor ebx, ebx
cmp word [0x4a77f0], bx
jne 0x41d098
mov eax, dword [0x4a6550]
push ebx
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x41db40
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.WinVNC_desktop_sink
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov word [0x4a77f0], ax
cmp ax, bx
jne 0x41d098
push str.._vncdesktop.cpp_:_failed_to_register_window_class_n
xor ecx, ecx
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
xor eax, eax
pop ebx
add esp, 0x38
ret
mov edx, dword [0x4a6550]
push ebx
push edx
push ebx
push ebx
push 0xc8
push 0x190
push accept
push accept
push 0xcf0000
push 0x47d010
push str.WinVNC_desktop_sink
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0xdbd8], eax
cmp eax, ebx
jne 0x41d0dd
push str.._vncdesktop.cpp_:_failed_to_create_hook_window_n
jmp 0x41d082
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0xdbd8]
push eax
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [esi + 0xdbe0], eax
mov eax, dword [esi + 0xe0d8]
mov byte [esi + 0xb8], bl
cmp eax, ebx
je 0x41d14e
cmp dword [eax + 8], ebx
jne 0x41d12d
mov dword [esi + 0xe10c], 1
mov dword [esi + 0xe110], 1
mov eax, 1
pop ebx
add esp, 0x38
ret
mov edx, dword [esi + 0xdbd8]
lea ecx, [esp + 4]
push ecx
push ebx
push edx
push 0x41cf50
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebx
add esp, 0x38
ret

Function at 0x41d6c0
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 0x41d6d0
sub eax, edx
mov edi, eax
lea eax, [edi + edi + 1]
push eax
call fcn.0045e0f8
mov ebx, eax
add esp, 4
xor esi, esi
xor eax, eax
test edi, edi
jle 0x41d709
cmp byte [eax + ebp], 0xa
jne 0x41d6fd
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 0x41d6f2
mov edx, dword [esp + 0x14]
mov byte [esi + ebx], 0
mov eax, dword [edx + 0xdbd8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41d762
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x41d762
inc esi
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41d762
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 0x41d748
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call fcn.0045e501
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41e170
Capabilities:
Create thread
Power down monitor

Disassembly:
sub esp, 8
push edi
push str.user32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41e1a1
mov ecx, dword [esi + 0xdbd0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x278]
push 0
call edx
mov ecx, dword [esi + 0xdbd0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x27c]
call edx
mov ecx, str.true
test eax, eax
jne 0x41e1bf
mov ecx, str.false
mov eax, 0x47e87c
test bl, bl
jne 0x41e1cd
mov eax, 0x47e880
push ecx
push eax
push str.._vncdesktop.cpp_:_SetBlankMonitor:_monitor__s__using_alpha__s_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
mov ecx, dword [esi + 0xdbd0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1e0]
add esp, 0xc
call edx
test eax, eax
je 0x41e330
mov ecx, dword [esi + 0xdbd0]
test bl, bl
je 0x41e2d6
mov eax, dword [ecx]
mov edx, dword [eax + 0x27c]
call edx
test eax, eax
je 0x41e279
mov eax, dword [esi + 0xe0d8]
test eax, eax
je 0x41e23b
cmp dword [eax + 8], 0
jne 0x41e279
mov eax, 1
mov dword [esi + 0xe10c], eax
mov dword [esi + 0xe110], eax
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x401580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xdbcc], 0
mov dword [esi + 0xdbcc], 0
setne al
mov byte [esi + 0xe100], al
pop edi
add esp, 8
ret
cmp dword [0x48b140], 2
je 0x41e23b
push 0
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [esi + 0xe0fc]
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 + 0xdbd8]
push 2
push 0xf170
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
add esp, 8
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0x27c]
call eax
test eax, eax
je 0x41e335
mov eax, dword [esi + 0xe0d8]
test eax, eax
je 0x41e305
cmp dword [eax + 8], 0
jne 0x41e335
mov eax, 1
mov dword [esi + 0xe10c], eax
mov dword [esi + 0xe110], eax
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41e323
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
movzx ecx, byte [esi + 0xe100]
mov dword [esi + 0xdbcc], ecx
pop edi
add esp, 8
ret
cmp dword [0x48b140], 2
je 0x41e305
mov eax, dword [esi + 0xe0fc]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x41e357
push 0
push 0
push eax
push 0x52
call edi
push 0
push 0
push 0
push 0x56
call edi
mov eax, dword [esi + 0xdbd8]
test eax, eax
je 0x41e37e
push 0xffffffffffffffff
push 0xf170
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push str.blackscreen
mov dword [esi + 0xe0fc], 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41e330
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
add esp, 8
ret
Function at 0x41eb80
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x16c
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
xor ebx, ebx
cmp dword [esp + 0x174], ebx
je 0x41eca7
push 0x104
lea eax, [esp + 0x64]
push eax
push ebx
mov dword [esi + 0xe118], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41ec0d
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
cmp eax, ebx
je 0x41ecc5
mov byte [eax], bl
lea eax, [esp + 0x60]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x41ebe0
mov edx, dword [str.16bithlp.exe]
mov ecx, dword [0x47ebb4]
mov dword [eax], edx
mov edx, dword [0x47ebb8]
mov dword [eax + 4], ecx
mov cx, word [0x47ebbc]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
push 0x44
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00463710
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x80]
push edx
push ebx
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor ecx, ecx
test eax, eax
mov eax, 0x48c4e8
jne 0x41ec5e
push str.._vncdesktop.cpp_:_set_ddihooks_Failed_n
call fcn.00401000
add esp, 4
jmp 0x41ecbf
push str.._vncdesktop.cpp_:_set_ddihooks_OK_n
call fcn.00401000
mov eax, dword [esp + 0xc]
add esp, 4
push 0x2710
push eax
mov dword [esi + 0xe0f8], 1
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 8]
mov dword [esi + 0xe118], ecx
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x16c
ret 4
mov eax, dword [esi + 0xe118]
cmp eax, ebx
je 0x41ecc5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esi + 0xe118], ebx
mov dword [esi + 0xe0f8], ebx
mov ecx, dword [esp + 0x16c]
pop ebx
xor ecx, esp
call fcn.0045dc1f
add esp, 0x16c
ret 4

Function at 0x41f5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471f18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esi], vtable.rfb::ClippedUpdateTracker.0
mov dword [esi + 4], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
call fcn.0045bcb0
mov edx, dword [esp + 0x34]
mov dword [esi + 8], eax
mov ecx, dword [edx]
lea ebx, [esp + 0xc]
call fcn.0045c7d0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 8
Function at 0x41f690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472748
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0xc]
call fcn.0045c7d0
mov eax, dword [esp + 0x30]
mov esi, eax
mov eax, dword [eax + 8]
push eax
call fcn.0045ecd6
push esi
call fcn.0045ecd6
add esp, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x4249b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, eax
push str.._vncencoder.cpp_:_remote_palette_data_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
cmp byte [esi + 0x13], 0
jne 0x4249e5
mov eax, esi
call fcn.00424b70
test eax, eax
je 0x424b3b
cmp byte [esi + 0x23], 0
jne 0x424b3b
cmp byte [esi + 0x13], 0
mov ecx, 9
mov eax, 0x48c4e8
je 0x424aba
push str.._vncencoder.cpp_:_generating_BGR233_palette_data_n
call fcn.00401000
mov cl, byte [esi + 0x30]
mov eax, dword [esi + 0xc]
mov ebx, 1
shl ebx, cl
lea ebp, [esi + 0xc]
add esp, 4
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
test eax, eax
je 0x424a35
push eax
call fcn.0045ecd6
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0045edb3
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x424b20
xor edi, edi
test ebx, ebx
jle 0x424b20
lea ebp, [eax + 1]
lea ecx, [ecx]
movzx ecx, byte [esi + 0x3c]
movzx ebx, word [esi + 0x38]
mov eax, edi
sar eax, cl
add ebp, 4
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ebp - 5], al
movzx ecx, byte [esi + 0x3a]
movzx ebx, word [esi + 0x34]
mov eax, edi
sar eax, cl
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ebp - 3], al
movzx ecx, byte [esi + 0x3b]
movzx ebx, word [esi + 0x36]
mov eax, edi
sar eax, cl
inc edi
and eax, ebx
imul eax, eax, 0xff
cdq
idiv ebx
cmp edi, dword [esp + 0x14]
mov byte [ebp - 4], al
jl 0x424a60
jmp 0x424b1c
push str.._vncencoder.cpp_:_generating_8_bit_palette_data_n
call fcn.00401000
mov ecx, 0xff
mov eax, ecx
mov edx, ecx
add esp, 4
mov word [esp + 0x20], cx
mov word [esp + 0x1c], ax
lea eax, [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
add esi, 0x10
push esi
push eax
mov byte [esp + 0x27], 1
mov byte [esp + 0x24], 0x20
mov byte [esp + 0x25], 0x18
mov byte [esp + 0x26], 0
mov word [esp + 0x2a], dx
mov byte [esp + 0x2e], 0x10
mov byte [esp + 0x2f], 8
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], eax
call dword [0x48ba90]
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x424b47
push str.._vncencoder.cpp_:_failed_to_obtain_colour_map_data__n
xor ecx, ecx
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea eax, [edx*4]
push eax
push ebp
push ecx
call fcn.00463790
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
Function at 0x425fd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x471bb8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x5c], 6
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esp + 0x14], edi
push 0x414
mov dword [esi], vtable.vncEncodeTight.0
mov dword [esi + 0x197c], edi
mov dword [esi + 0x1980], edi
call fcn.0045e0f8
mov dword [esi + 0x1974], eax
mov dword [esi + 0x1984], edi
add esp, 4
mov dword [esi + 0x1960], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4