joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44db80
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread__n
push 9
push 0x5d7d48
mov esi, eax
mov byte [edi + 0xe938], 0
call fcn.0041c960
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x44dd3e
mov ecx, str.Default
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x44dc10
test dl, dl
je 0x44dc0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44dc10
add eax, 2
add ecx, 2
test dl, dl
jne 0x44dbf0
xor eax, eax
jmp 0x44dc15
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44dd2a
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_default_desk_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
cmp dword [edi + 0xe934], 0
jne 0x44dcfe
push dword [edi + 0xe394]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0xe3c0]
mov eax, dword [ecx]
call dword [eax + 0x158]
test eax, eax
je 0x44dc61
call fcn.0042edd0
lea eax, [edi + 0xe398]
push eax
push 0
push edi
push 0x44dd50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [edi + 0xe394]
mov dword [edi + 0xe934], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44dcf7
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x5d7d48
call fcn.0041c960
mov eax, dword [edi + 0xe934]
add esp, 0xc
test eax, eax
je 0x44dcdf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xe934]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xe400], 0
mov dword [edi + 0xe934], 0
xor al, al
mov byte [edi + 0xe938], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_started_n
jmp 0x44dd03
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_reactivate_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
mov al, 1
mov byte [edi + 0xe938], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncdesktopsink.cpp_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x454290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 8], esi
xor dh, dh
cmp eax, 8
je 0x4542c7
cmp eax, 0x10
jne 0x4542ba
movzx eax, word [ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x45431c
mov eax, dword [ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor eax, eax
mov ecx, 0x100
mov edi, 0x623cf0
rep stosd dword es:[edi], eax
xor edi, edi
test esi, esi
jle 0x454312
nop dword [eax]
mov eax, dword [ebp - 4]
mov esi, ebx
mov dl, byte [edi + eax]
movzx ecx, dl
movzx eax, dh
mov ebx, dword [ecx*4 + 0x623cf0]
inc ebx
cmp ebx, esi
mov dword [ecx*4 + 0x623cf0], ebx
movzx ecx, dl
cmovle ecx, eax
inc edi
cmp ebx, esi
mov dh, cl
cmovle ebx, esi
cmp edi, dword [ebp - 8]
jl 0x4542e0
pop edi
pop esi
movzx eax, dh
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.getBgColour:_bpp__d__n
push 2
call fcn.0054d4c0
add esp, 4
push eax
call fcn.004535a0
add esp, 0xc
push 1
call fcn.0054e6da
int3
Function at 0x4557e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncencoder.cpp_:_remote_palette_data_requested_n
push 9
push 0x5d7d48
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.0041c960
add esp, 0xc
cmp byte [esi + 0x13], 0
jne 0x455829
mov ecx, esi
call fcn.004559c0
test eax, eax
je 0x455930
cmp byte [esi + 0x23], 0
jne 0x455930
cmp byte [esi + 0x13], 0
lea edi, [esi + 0xc]
je 0x455946
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncencoder.cpp_:_generating_BGR233_palette_data_n
push 9
push 0x5d7d48
call fcn.0041c960
mov cl, byte [esi + 0x30]
mov ebx, 1
mov eax, dword [edi]
add esp, 0xc
shl ebx, cl
test eax, eax
je 0x45586d
push eax
call fcn.005417da
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0054cef5
mov ecx, eax
add esp, 4
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x455912
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x455912
inc ecx
mov dword [esp + 0x14], ecx
nop dword [eax]
movzx ecx, byte [esi + 0x3c]
xor edx, edx
movzx edi, word [esi + 0x38]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
xor edx, edx
mov byte [ecx - 1], al
movzx ecx, byte [esi + 0x3a]
movzx edi, word [esi + 0x34]
mov eax, dword [esp + 0x10]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
xor edx, edx
mov byte [ecx + 1], al
movzx ecx, byte [esi + 0x3b]
mov eax, dword [esp + 0x10]
movzx edi, word [esi + 0x36]
sar eax, cl
and eax, edi
mov ecx, dword [esp + 0x14]
imul eax, eax, 0xff
div edi
mov byte [ecx], al
add ecx, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x4558a0
mov ebx, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x455992
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncencoder.cpp_:_failed_to_obtain_colour_map_data__n
push esi
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 8
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncencoder.cpp_:_generating_8_bit_palette_data_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
mov dword [esp + 0x1e], 0xff0100
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], 0x1820
mov dword [esp + 0x22], 0xff00ff
mov word [esp + 0x26], 0x810
push eax
lea eax, [esi + 0x10]
mov byte [esp + 0x2c], 0
push eax
push edi
call dword [0x585ab4]
add esp, 0xc
jmp 0x455916
mov edi, ebx
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 8
Function at 0x456dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 8], esi
xor dh, dh
push edi
cmp eax, 8
je 0x456e0a
cmp eax, 0x10
jne 0x456dfc
movzx eax, word [ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x456e5c
mov eax, dword [ecx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x100
mov edi, 0x6240f0
rep stosd dword es:[edi], eax
xor edi, edi
test esi, esi
jle 0x456e52
nop
mov eax, dword [ebp - 4]
mov esi, ebx
mov dl, byte [edi + eax]
movzx ecx, dl
movzx eax, dh
mov ebx, dword [ecx*4 + 0x6240f0]
inc ebx
cmp ebx, esi
mov dword [ecx*4 + 0x6240f0], ebx
movzx ecx, dl
cmovle ecx, eax
inc edi
cmp ebx, esi
mov dh, cl
cmovle ebx, esi
cmp edi, dword [ebp - 8]
jl 0x456e20
pop edi
pop esi
movzx eax, dh
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.getBgColour:_bpp__d__n
push 2
call fcn.0054d4c0
add esp, 4
push eax
call fcn.004535a0
add esp, 0xc
push 1
call fcn.0054e6da
int3
Function at 0x462830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56abfe
mov eax, dword fs:[0]
push eax
sub esp, 8
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, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.004554c0
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx], vtable.vncEncodeXZ.0
call fcn.0053d643
mov esi, eax
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.0053d681
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
add eax, 0x400
mov dword [esi + 8], eax
mov byte [ebp - 4], 0
push 0x80
mov dword [ebx + 0x8c], esi
call fcn.0053d643
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 4
lea esi, [edi + 0x1c]
push 0x60
push 0
push esi
mov dword [edi], vtable.rdr::xzOutStream.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x10000
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.0053f2b0
push dword [edi + 0x10]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x34], 2
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 4
mov dword [edi + 0x28], 2
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [esi], 0x400000
mov dword [edi + 0x38], 0xc0
call fcn.0053d681
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [edi + 0x7c], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov byte [ebp - 4], 0
push 0x4004
mov dword [ebx + 0x88], edi
call fcn.0053d681
mov dword [ebx + 0x90], eax
add esp, 0x20
mov dword [ebx + 0x84], 0
mov eax, ebx
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 0x46ecd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vnchttpconnect.cpp_:_started_HTTP_server_thread_n
push 9
push 0x5d7d48
mov edi, ecx
call fcn.0041c960
add esp, 0xc
cmp dword [edi + 0x60], 0
jne 0x46ee2d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
nop dword [eax]
mov ecx, dword [edi + 0x68]
call fcn.004890c0
mov esi, eax
test esi, esi
je 0x46ee2b
cmp dword [edi + 0x60], 0
jne 0x46ee23
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vnchttpconnect.cpp_:_HTTP_client_connected_n
push 1
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push 0xfa
call ebx
cmp byte [0x609460], 2
jb 0x46ed7e
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x3a98
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x46ed7e
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x10]
push 0x1f4
call ebx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x46edf4
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_shutdown_socket_n
push 0xa
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x46edf4
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_closing_socket_n
push 0xa
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0xffffffff
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x46ee0f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
cmp dword [edi + 0x60], 0
je 0x46ed00
jmp 0x46ee2b
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
pop ebx
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vnchttpconnect.cpp_:_quitting_HTTP_server_thread_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x46f2e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x401
call fcn.0053d681
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
lea edi, [ebp - 1]
mov esi, 1
nop dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x46f332
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x46f330
add edi, eax
sub esi, eax
jmp 0x46f33b
je 0x46f36e
call ebx
cmp eax, 0x2733
jne 0x46f394
test esi, esi
jne 0x46f310
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
cmp al, byte [ebp + 0xc]
je 0x46f384
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], al
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x3ff
jne 0x46f304
pop edi
pop esi
mov byte [edx + 0x3ff], 0
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_zero_bytes_read3_n
push 4
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
jmp 0x46f3ab
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret 8
call ebx
push eax
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_HTTP_socket_error:__d_n
push 4
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.0053d63e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46f6b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x46f6fc
push ebx
mov bl, byte [esi]
push ecx
push dword [esi + 4]
movzx eax, bl
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.0042e9f0
push dword [esi]
push str.fake__d_down_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0x18
mov byte [esi + 8], 1
pop ebx
pop esi
ret

Function at 0x46f700
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x46f750
mov eax, dword [esi + 4]
push ebx
mov bl, byte [esi]
or eax, 2
push ecx
push eax
push 0
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.0042e9f0
push dword [esi]
push str.fake__d_up_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0x18
mov byte [esi + 9], 1
pop ebx
pop esi
ret
Function at 0x46f810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ad9e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x118], eax
push 0x18
mov dword [ebp - 0x118], 0x5e8d08
mov dword [0x5e8d08], 0
mov dword [0x5e8d0c], 0
call fcn.0053d643
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5e8d08], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [0x5e8d10], 0
mov dword [0x5e8d14], 0
call fcn.0053d643
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5e8d10], eax
mov byte [ebp - 4], 1
mov esi, 0x5d8150
mov edi, 0x61
nop dword [eax + eax]
push esi
mov ecx, 0x5e8d08
call fcn.00470bc0
movzx ecx, byte [esi + 4]
push esi
mov byte [eax], cl
mov ecx, 0x5e8d10
call fcn.00470ae0
movzx ecx, byte [esi + 5]
add esi, 8
mov byte [eax], cl
sub edi, 1
jne 0x46f8d0
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0053f2b0
add esp, 0xc
nop
movzx eax, byte [edi + 0x5d7bb0]
lea esi, [edi + 0x5d7bb0]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
movzx edx, ax
cmp dx, 0xffff
je 0x46f9d2
mov ecx, edx
movzx ebx, dl
shr ecx, 8
mov al, cl
shl al, 7
mov byte [ebp - 0x100], al
mov al, cl
and al, 0xfe
and cl, 0xfc
shl al, 6
push 0
mov byte [ebp - 0xff], al
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
shl cl, 5
push eax
push 0
push ebx
mov byte [ebp - 0xfe], cl
call dword [sym.imp.USER32.dll_ToAscii]
test eax, eax
jns 0x46f9d2
movzx eax, byte [esi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 8
push 0x5d7d48
call fcn.0041c960
mov ecx, dword [0x5e8d1c]
add esp, 0x14
cmp ecx, dword [0x5e8d20]
je 0x46f9ad
mov al, byte [esi]
mov byte [ecx], al
inc dword [0x5e8d1c]
jmp 0x46f9b9
push esi
push ecx
mov ecx, 0x5e8d18
call fcn.00447940
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_ToAscii]
inc edi
cmp edi, 7
jb 0x46f910
mov eax, 0x5e8d08
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x470a60
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov bl, cl
movzx esi, bl
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x470ada
push 0x5c6924
push str.down
push esi
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vnckeymap.cpp_:_setshiftstate__d_____s___s__n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.0042e9f0
add esp, 8
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
mov ecx, 0x5c6924
mov eax, str.down
cmove eax, ecx
push eax
push esi
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vnckeymap.cpp_:_new_state__d___s__n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x4714c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40c]
call fcn.00425a60
lea eax, [ebp - 0x40c]
push eax
push 0x200
lea eax, [ebp - 0x308]
push eax
push 0x584fd8
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x308]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471510
sub ecx, edx
jne 0x471552
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x47154a
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0053eb80
add esp, 8
test eax, eax
je 0x47156b
mov byte [eax], 0
lea eax, [ebp - 0x108]
jmp 0x471558
lea eax, [ebp - 0x308]
push eax
push 0x104
push 0x5d7f62
call fcn.005417f5
add esp, 0xc
push 0x5d7f62
push 0x200
push 0x5d7d60
call fcn.005417f5
push 0x5b92c8
push 0x200
push 0x5d7d60
call fcn.0054184f
push str.WinVNC.log
push 0x200
push 0x5d7d60
call fcn.0054184f
add esp, 0x24
mov byte [0x5d7f60], 1
cmp byte [0x5d7d50], 0
je 0x4715bf
call fcn.004715d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x4715d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5d7d60
push esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4715e0
sub ecx, edx
jne 0x47160c
push str.Error_opening_log_file_n
push ecx
push 0x5d7d48
mov word [0x5d7d50], 0x100
call fcn.0041c960
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x5d7f60], 0
mov byte [0x5d7d50], 1
jne 0x471698
mov ecx, 0x5d7d60
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471624
sub ecx, edx
lea eax, [ecx + 5]
push eax
call fcn.0053d681
mov esi, eax
add esp, 4
mov eax, 0x5d7d60
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x471643
sub eax, edx
push 0x5d7d60
add eax, 5
push eax
push esi
call fcn.005417f5
mov ecx, 0x5d7d60
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471666
sub ecx, edx
push str..bak
lea eax, [ecx + 5]
push eax
push esi
call fcn.0054184f
add esp, 0xc
push 1
push esi
push 0x5d7d60
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call fcn.0053d63e
add esp, 4
mov eax, dword [0x5d7d5c]
test eax, eax
je 0x4716b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5d7d5c], 0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x5d7d60
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5d7d5c], eax
cmp eax, 0xffffffff
jne 0x471700
push 0x5d7d60
push str.Error_opening_log_file__s_n
push 0
push 0x5d7d48
mov word [0x5d7d50], 0x100
call fcn.0041c960
mov eax, dword [0x5d7d5c]
add esp, 0x10
cmp byte [0x5d7f60], 0
je 0x47171b
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4717b0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc14
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0xc10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
mov dword [esp + 0x10], eax
call fcn.005418eb
lea ecx, [esi + 0x320]
add esp, 4
cmp eax, dword [ecx]
jne 0x4717f2
cmp edx, dword [ecx + 4]
je 0x471808
push ecx
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0054e6f0
add esp, 4
mov ecx, esi
push eax
call fcn.00471730
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
mov edi, eax
lea eax, [esp + 0x14]
push 0
push ebx
push 0x400
push eax
call fcn.0041efc0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00547a73
add esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4718b0
push 0
push 0x400
lea eax, [esp + 0x820]
push eax
push 0x400
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x47187f
push edi
lea eax, [esp + 0x81c]
push str.error_code_0x_08X
push eax
call fcn.0042ad60
add esp, 0xc
push 0x5c6a38
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.0054184f
add esp, 0xc
lea eax, [esp + 0x818]
push eax
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.0054184f
add esp, 0xc
cmp byte [esi + 9], 0
je 0x4718c1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 0xa], 0
je 0x4718f5
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4718d0
push 0
lea eax, [esp + 0x10]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp byte [esi + 8], 0
je 0x47192d
mov edx, dword [esi + 0x14]
test edx, edx
je 0x47192d
lea ecx, [esp + 0x10]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471910
push 0
lea eax, [esp + 0x10]
sub ecx, esi
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 8