joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4229c0
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
xor ebx, ebx
cmp dword [esp + 0x174], ebx
je 0x422ae7
push 0x104
lea eax, [esp + 0x64]
push eax
push ebx
mov dword [esi + 0xe13c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x422a4d
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.0047c410
add esp, 8
cmp eax, ebx
je 0x422b05
mov byte [eax], bl
lea eax, [esp + 0x60]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x422a20
mov edx, dword [str.16bithlp.exe]
mov ecx, dword [0x4ad3c0]
mov dword [eax], edx
mov edx, dword [0x4ad3c4]
mov dword [eax + 4], ecx
mov cx, word [0x4ad3c8]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
push 0x44
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.004858b0
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, 0x4bc990
jne 0x422a9e
push str.._vncdesktop.cpp_:_set_ddihooks_Failed_n
call fcn.00401110
add esp, 4
jmp 0x422aff
push str.._vncdesktop.cpp_:_set_ddihooks_OK_n
call fcn.00401110
mov eax, dword [esp + 0xc]
add esp, 4
push 0x2710
push eax
mov dword [esi + 0xe11c], 1
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 8]
mov dword [esi + 0xe13c], ecx
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x16c
ret 4
mov eax, dword [esi + 0xe13c]
cmp eax, ebx
je 0x422b05
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esi + 0xe13c], ebx
mov dword [esi + 0xe11c], ebx
mov ecx, dword [esp + 0x16c]
pop ebx
xor ecx, esp
call fcn.0047c3ff
add esp, 0x16c
ret 4

Function at 0x423c50
Capabilities:
Terminate thread

Disassembly:
push ecx
cmp dword [esi + 0xe170], 0
mov byte [esi + 0xe174], 1
mov ecx, 9
mov eax, 0x4bc990
je 0x423d14
push str.._vncdesktopsink.cpp_:_vncDesktop::Tell_initwindowthread_to_close__n
call fcn.00401110
mov eax, dword [esi + 0xdba0]
add esp, 4
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [esi + 0xe170]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
mov eax, 0x4bc990
jne 0x423cee
push str.._vncdesktopsink.cpp_:_vncDesktop::ERROR:__messageloop_blocked__n
call fcn.00401110
mov edx, dword [esi + 0xe170]
add esp, 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xe170]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xdc14], 0
mov dword [esi + 0xe170], 0
pop ecx
ret
push str.._vncdesktopsink.cpp_:_vncDesktop::_iniwindowthread_proper_closed__n
call fcn.00401110
mov ecx, dword [esi + 0xe170]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe170], 0
pop ecx
ret
push str.._vncdesktopsink.cpp_:_initwindowthread_already_closed__n
call fcn.00401110
add esp, 4
pop ecx
ret
Function at 0x423d30
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x114
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
xor ebx, ebx
mov edi, eax
push str.._vncdesktopsink.cpp_:_StartInitWindowthread__n
lea ecx, [ebx + 9]
mov eax, 0x4bc990
mov byte [esi + 0xe174], bl
call fcn.00401110
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x100
lea ecx, [esp + 0x18]
push ecx
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x423ece
mov ecx, str.Default
lea eax, [esp + 0x10]
jmp 0x423da0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x423dc0
cmp dl, bl
je 0x423dbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x423dc0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x423da0
xor eax, eax
jmp 0x423dc5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov ecx, 9
mov eax, 0x4bc990
jne 0x423ec1
push str.._vncdesktopsink.cpp_:_StartInitWindowthread_default_desk_n
call fcn.00401110
add esp, 4
cmp dword [esi + 0xe170], ebx
jne 0x423ea4
mov edx, dword [esi + 0xdb9c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xdba0]
push eax
push ebx
push esi
push 0x423ef0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0xdb9c]
push 0x2710
push ecx
mov dword [esi + 0xe170], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov ecx, 9
mov eax, 0x4bc990
jne 0x423e91
push str.._vncdesktopsink.cpp_:_ERROR:_initwindowthread_failed_to_start__n
call fcn.00401110
mov eax, dword [esi + 0xe170]
add esp, 4
cmp eax, ebx
je 0x423e74
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xe170]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xdc14], ebx
mov dword [esi + 0xe170], ebx
mov byte [esi + 0xe174], bl
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x114
ret
push str.._vncdesktopsink.cpp_:_StartInitWindowthread_started_n
call fcn.00401110
mov byte [esi + 0xe174], 1
jmp 0x423ecb
push str.._vncdesktopsink.cpp_:_StartInitWindowthread_reactivate_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov byte [esi + 0xe174], 1
jmp 0x423ecb
push str.._vncdesktopsink.cpp_:_StartInitWindowthread_no_default_desk_n
call fcn.00401110
add esp, 4
mov ecx, dword [esp + 0x114]
pop edi
pop ebx
xor ecx, esp
call fcn.0047c3ff
add esp, 0x114
ret
Function at 0x42a6d0
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, 0x4bc990
call fcn.00401110
add esp, 4
cmp byte [esi + 0x13], 0
jne 0x42a705
mov eax, esi
call fcn.0042a890
test eax, eax
je 0x42a85b
cmp byte [esi + 0x23], 0
jne 0x42a85b
cmp byte [esi + 0x13], 0
mov ecx, 9
mov eax, 0x4bc990
je 0x42a7da
push str.._vncencoder.cpp_:_generating_BGR233_palette_data_n
call fcn.00401110
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 0x42a755
push eax
call fcn.0047d643
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0047da45
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x42a840
xor edi, edi
test ebx, ebx
jle 0x42a840
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 0x42a780
jmp 0x42a83c
push str.._vncencoder.cpp_:_generating_8_bit_palette_data_n
call fcn.00401110
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 [0x4bbf28]
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x42a867
push str.._vncencoder.cpp_:_failed_to_obtain_colour_map_data__n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
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.00485490
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
Function at 0x42bce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4990d8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ba700]
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.0047cc97
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
Function at 0x42f860
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4990d8
mov eax, dword fs:[0]
push eax
push ebx
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]
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 ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x5c], 6
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esp + 0x14], ebx
push 0x20001
mov dword [esi], vtable.vncEncodeUltra.0
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], 0x20000
call fcn.0047cc97
add esp, 4
mov dword [esi + 0x74], eax
cmp eax, ebx
jne 0x42f923
push str.._vncEncodeUltra.cpp_:_Memory_error
lea ecx, [ebx + 9]
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
mov ecx, dword [esi + 0x8c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + ecx + 8]
push ecx
call fcn.0047cc97
add esp, 4
mov dword [esi + 0x78], eax
cmp dword [esi + 0x74], ebx
jne 0x42f966
push str.._vncEncodeUltra.cpp_:_Memory_error
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
mov eax, esi
mov byte [esi + 0xa0], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4301c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4990d8
mov eax, dword fs:[0]
push eax
push ebx
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]
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 ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x5c], 6
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esp + 0x14], ebx
push 0x20001
mov dword [esi], vtable.vncEncodeZlib.0
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov byte [esi + 0xc4], bl
mov dword [esi + 0xd4], 0x20000
call fcn.0047cc97
add esp, 4
mov dword [esi + 0x78], eax
cmp eax, ebx
jne 0x43029b
push str.._vncEncodeZlib.cpp_:_Memory_error
lea ecx, [ebx + 9]
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
mov ecx, dword [esi + 0xd4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + ecx + 8]
push ecx
call fcn.0047cc97
add esp, 4
mov dword [esi + 0x7c], eax
cmp dword [esi + 0x78], ebx
jne 0x4302de
push str.._vncEncodeZlib.cpp_:_Memory_error
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4315c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4990d8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ba700]
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
or eax, 0xffffffff
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], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esp + 0x14], edi
push 0x20001
mov dword [esi], vtable.vncEncodeZlibHex.0
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], 0x20000
mov dword [esi + 0x80], eax
mov dword [esi + 0xb8], eax
call fcn.0047cc97
add esp, 4
mov dword [esi + 0xe8], eax
cmp eax, edi
jne 0x431691
push str.._vncEncodeZlibHex.cpp_:_Memory_error
lea ecx, [edi + 9]
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x439f30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49967e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
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 ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x5c], 6
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esp + 0x18], ebx
push 0x10
mov dword [esi], vtable.vncEncodeZRLE.0
call fcn.0047c463
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 1
cmp eax, ebx
je 0x439fce
push eax
call fcn.00432eb0
jmp 0x439fd0
xor eax, eax
mov byte [esp + 0x18], bl
push 0x20
mov dword [esi + 0x78], eax
call fcn.0047c463
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 2
cmp eax, ebx
je 0x439ff6
push eax
call fcn.00464280
jmp 0x439ff8
xor eax, eax
mov byte [esp + 0x18], bl
push 0x4004
mov dword [esi + 0x74], eax
call fcn.0047cc97
mov dword [esi + 0x7c], eax
add esp, 4
mov dword [esi + 0x70], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x43ad40
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x43ad96
mov cl, byte [esi]
mov eax, dword [esi + 4]
push 0
push eax
movzx edx, cl
push 0
push edx
mov byte [esp + 0x10], cl
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [esi]
push ecx
push str.fake__d_down_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
mov byte [esi + 8], 1
pop ecx
ret

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

Disassembly:
push ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x43adf9
mov eax, dword [esi + 4]
mov cl, byte [esi]
push 0
or eax, 2
push eax
movzx edx, cl
push 0
push edx
mov byte [esp + 0x10], cl
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [esi]
push ecx
push str.fake__d_up_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
mov byte [esi + 9], 1
pop ecx
ret

Function at 0x43ae00
Capabilities:
Log keystrokes

Disassembly:
push ecx
cmp byte [esi + 8], 0
je 0x43ae4a
mov eax, dword [esi + 4]
mov cl, byte [esi]
push 0
or eax, 2
push eax
movzx eax, cl
push 0
push eax
mov byte [esp + 0x10], cl
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
mov edx, dword [esi]
push edx
push str.fake__d_up_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
pop ecx
ret
cmp byte [esi + 9], 0
je 0x43ae8e
mov eax, dword [esi + 4]
mov cl, byte [esi]
push 0
push eax
movzx eax, cl
push 0
push eax
mov byte [esp + 0x10], cl
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
mov edx, dword [esi]
push edx
push str.fake__d_down_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
pop ecx
ret
Function at 0x43ba90
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx esi, bl
push esi
call edi
shr eax, 0xf
and eax, 1
je 0x43bb0b
push 0x4af6b8
push str.down
push esi
push str.._vnckeymap.cpp_:_setshiftstate__d_____s___s__n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 0x10
push 0
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
push esi
call edi
test eax, 0x8000
mov eax, str.down
jne 0x43baf2
mov eax, 0x4af6b8
push eax
push esi
push str.._vnckeymap.cpp_:_new_state__d___s__n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 0xc
pop edi
pop esi
pop ecx
ret

Function at 0x43dcb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x308
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x304], eax
lea eax, [esp]
push eax
call fcn.00407a90
lea ecx, [esp]
push ecx
push 0x200
lea edx, [esp + 0x10c]
push edx
push 0x4a3fbe
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x104]
push eax
call fcn.0043e0c0
mov ecx, 0x4bcbaa
mov al, byte [ecx]
mov byte [ecx - 0x202], al
inc ecx
test al, al
jne 0x43dd05
push edi
mov edi, 0x4bc9a8
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43dd20
mov cx, word [0x4a3f08]
mov eax, 0x4bc9a8
mov word [edi], cx
dec eax
pop edi
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43dd40
mov edx, dword [str.WinVNC.log]
mov ecx, dword [0x4af728]
mov dword [eax], edx
mov dx, word [0x4af72c]
mov dword [eax + 4], ecx
mov cl, byte [0x4af72e]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
cmp byte [0x4bc998], 0
mov byte [0x4bcba8], 1
je 0x43dd82
call fcn.0043dda0
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x308
ret
Function at 0x43dda0
Capabilities:
Move file

Disassembly:
sub esp, 8
mov eax, 0x4bc9a8
push esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ddb0
sub eax, edx
jne 0x43dde0
mov byte [0x4bc998], al
push str.Error_opening_log_file_n
xor ecx, ecx
mov eax, 0x4bc990
mov byte [0x4bc999], 1
call fcn.00401110
add esp, 4
pop esi
add esp, 8
ret
cmp byte [0x4bcba8], 0
mov byte [0x4bc998], 1
jne 0x43de60
mov eax, 0x4bc9a8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ddf8
sub eax, edx
add eax, 5
push eax
call fcn.0047cc97
mov esi, eax
add esp, 4
test esi, esi
je 0x43de60
mov eax, 0x4bc9a8
mov edx, esi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43de20
mov eax, esi
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43de30
mov ecx, dword [str..bak]
push 1
mov dword [eax], ecx
mov dl, byte [0x4af74c]
push esi
push 0x4bc9a8
mov byte [eax + 4], dl
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call fcn.0047d0a1
add esp, 4
mov eax, dword [0x4bc9a4]
test eax, eax
je 0x43de7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4bc9a4], 0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x4bc9a8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4bc9a4], eax
cmp eax, 0xffffffff
jne 0x43decd
push 0x4bc9a8
push str.Error_opening_log_file__s_n
xor ecx, ecx
mov eax, 0x4bc990
mov byte [0x4bc999], 1
mov byte [0x4bc998], 0
call fcn.00401110
mov eax, dword [0x4bc9a4]
add esp, 8
cmp byte [0x4bcba8], 0
je 0x43dee8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
add esp, 8
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
add esp, 8
ret

Function at 0x43e220
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x104], eax
xor eax, eax
mov cl, byte [eax + 0x4bcbaa]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x43e236
push edi
lea edi, [esp + 4]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43e250
mov ax, word [0x4a3f08]
mov word [edi], ax
lea eax, [esp + 4]
dec eax
pop edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43e267
mov ecx, dword [str.codec.cfg]
mov edx, dword [0x4af788]
mov dword [eax], ecx
mov cx, word [0x4af78c]
mov dword [eax + 4], edx
lea edx, [esp]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x108
ret