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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549c9d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x258], 0
jne 0x449f2a
mov eax, dword [esi]
call dword [eax + 0x28]
mov ebx, eax
mov dword [ebp - 0x14], 0x5a
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov eax, ecx
mov dword [ebp - 4], 0
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [ebp + 0x10]
mov edi, ecx
shl eax, 8
or edx, eax
cmp edx, 1
push 0x144
sete al
and edi, 0xff0000
mov byte [esi + 0x738], al
mov eax, ecx
shr eax, 0x10
or edi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edi, 8
shl eax, 8
or edi, eax
lea eax, [esi + 0x111]
push 0
push eax
call fcn.0051b450
add esp, 0xc
cmp edi, 0x142
ja 0x449f23
mov ecx, dword [esi + 0x3a0]
lea eax, [esi + 0x111]
push edi
push eax
call fcn.00484cd0
test eax, eax
je 0x449f23
mov eax, dword [0x5be08c]
cmp dword [eax + 0x790], 0
je 0x449f23
cmp byte [ebp + 0x1c], 0
je 0x449f23
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x449da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x258], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x44a370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549d14
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov al, byte [ebp + 8]
mov byte [esi + 0x3a4], al
test al, al
je 0x44a3d8
mov ecx, dword [esi + 0x3a8]
test ecx, ecx
je 0x44a3ba
push ecx
call fcn.00445950
mov dword [esi + 0x3a8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x24
call fcn.0051946c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x5bbad0]
mov edi, dword [0x5b2e30]
mov dword [ebp + 8], eax
mov byte [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x20], eax
test edi, edi
jne 0x44a43a
push 0x30
call fcn.0051946c
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [0x5b2e30], edi
cmp dword [0x5b2e34], 0
jne 0x44a4bb
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x85
push eax
mov dword [0x5b2e34], eax
call esi
push 0x81
push dword [ebp + 8]
mov dword [edi], eax
call esi
push 0x82
push dword [ebp + 8]
mov dword [edi + 4], eax
call esi
push 0x42e
push dword [ebp + 8]
mov dword [edi + 8], eax
call esi
push 0x84
push dword [ebp + 8]
mov dword [edi + 0xc], eax
call esi
push 0x86
push dword [ebp + 8]
mov dword [edi + 0x10], eax
call esi
push 0x87
push dword [ebp + 8]
mov dword [edi + 0x14], eax
call esi
mov esi, dword [ebp - 0x10]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x24], eax
mov word [edi + 0x28], ax
mov byte [edi + 0x2a], al
mov edi, dword [0x5b2e30]
test edi, edi
jne 0x44a4d4
push 0x30
call fcn.0051946c
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5b2e30], edi
mov eax, 1
nop dword [eax]
cmp byte [edi + eax + 0x24], 0
je 0x44a4f1
inc eax
cmp eax, 7
jl 0x44a4e0
xor eax, eax
jmp 0x44a4f9
mov byte [edi + eax + 0x24], 1
mov eax, dword [edi + eax*4]
mov dword [ebx + 0x14], eax
test edi, edi
jne 0x44a515
push 0x30
call fcn.0051946c
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5b2e30], edi
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push 0x427870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3a8], 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 4
Function at 0x450f20
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov dword [0x5b318c], 0
cmp dword [esi + 0xe938], 0
mov byte [esi + 0xe93c], 1
je 0x450fef
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::Tell_initwindowthread_to_close__n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 0
push 0
push 0x12
push dword [esi + 0xe39c]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7d0
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x450fc3
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::ERROR:__messageloop_blocked__n
push 0
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 0
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe404], 0
mov dword [esi + 0xe938], 0
pop esi
ret
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::_iniwindowthread_proper_closed__n
push 0
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push dword [esi + 0xe938]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe938], 0
pop esi
ret
push str.vncDesktop::StopInitWindowthread_:_initwindowthread_already_closed__n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
pop esi
ret
Function at 0x451010
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5b0008]
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.vncDesktop::StartInitWindowthread_:_StartInitWindowthread__n
push 9
push 0x5b0d48
mov esi, eax
mov byte [edi + 0xe93c], 0
call fcn.0041cc90
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 0x4511ca
mov ecx, str.Default
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4510a0
test dl, dl
je 0x45109c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4510a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x451080
xor eax, eax
jmp 0x4510a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4511b6
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_default_desk_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
cmp dword [edi + 0xe938], 0
jne 0x45118a
push dword [edi + 0xe398]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5be08c]
cmp dword [eax + 0x788], 0
je 0x4510ed
call fcn.00432110
lea eax, [edi + 0xe39c]
push eax
push 0
push edi
push 0x4511e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [edi + 0xe398]
mov dword [edi + 0xe938], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x451183
push str.vncDesktop::StartInitWindowthread_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [edi + 0xe938]
add esp, 0xc
test eax, eax
je 0x45116b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xe938]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xe404], 0
mov dword [edi + 0xe938], 0
xor al, al
mov byte [edi + 0xe93c], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_started_n
jmp 0x45118f
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_reactivate_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
mov al, 1
mov byte [edi + 0xe93c], al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x458b20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.vncEncoder::GetRemotePalette_:_remote_palette_data_requested_n
push 9
push 0x5b0d48
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.0041cc90
add esp, 0xc
cmp word [esi + 0x38], 0
je 0x458c90
cmp word [esi + 0x34], 0
je 0x458c90
cmp word [esi + 0x36], 0
je 0x458c90
cmp byte [esi + 0x13], 0
jne 0x458b8a
mov ecx, esi
call fcn.00458d20
test eax, eax
je 0x458c90
cmp byte [esi + 0x23], 0
jne 0x458c90
cmp byte [esi + 0x13], 0
lea edi, [esi + 0xc]
je 0x458ca6
push str.vncEncoder::GetRemotePalette_:_generating_BGR233_palette_data_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov cl, byte [esi + 0x30]
mov ebx, 1
mov eax, dword [edi]
add esp, 0xc
shl ebx, cl
test eax, eax
je 0x458bce
push eax
call fcn.0051d799
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0051f3c3
mov ecx, eax
add esp, 4
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x458c72
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x458c72
inc ecx
mov dword [esp + 0x14], ecx
nop word [eax + 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 0x458c00
mov ebx, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x458cf2
push str.vncEncoder::GetRemotePalette_:_failed_to_obtain_colour_map_data__n
push esi
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 8
push str.vncEncoder::GetRemotePalette_:_generating_8_bit_palette_data_n
push 9
push 0x5b0d48
call fcn.0041cc90
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 [0x56ab00]
add esp, 0xc
jmp 0x458c76
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.00519459
mov esp, ebp
pop ebp
ret 8
Function at 0x465c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a4ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
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.00458800
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx], vtable.vncEncodeXZ.0
call fcn.0051946c
mov esi, eax
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.005194aa
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.0051946c
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.0051b450
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.005194aa
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.005194aa
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 0x472160
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push str.vncHTTPConnectThread::run_undetached_:_started_HTTP_server_thread_n
push 9
push 0x5b0d48
mov edi, ecx
call fcn.0041cc90
add esp, 0xc
cmp dword [edi + 0x60], 0
jne 0x4722d7
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
nop dword [eax]
mov ecx, dword [edi + 0x68]
call fcn.00483d30
mov esi, eax
test esi, esi
je 0x4722d5
cmp dword [edi + 0x60], 0
jne 0x4722cd
push str.vncHTTPConnectThread::run_undetached_:_HTTP_client_connected_n
push 1
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x472210
cmp byte [0x5de5d0], 2
jb 0x472210
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x3a98
push ecx
push 0x1006
push 0xffff
push eax
call ebx
cmp eax, 0xffffffff
je 0x472210
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call ebx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x472255
cmp byte [0x5de5d0], 2
jb 0x472255
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x3a98
push ecx
push 0x1006
push 0xffff
push eax
call ebx
cmp eax, 0xffffffff
je 0x472255
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [esi + 0xc]
call ebx
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x10]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 8], 0xffffffff
je 0x47228d
push str.VSocket::Shutdown4_:_shutdown_socket_n
push 0xa
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
cmp dword [esi + 0xc], 0xffffffff
je 0x4722b2
push str.VSocket::Shutdown6_:_shutdown_socket_n
push 0xa
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 2
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, esi
call fcn.00483af0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
cmp dword [edi + 0x60], 0
je 0x472190
jmp 0x4722d5
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
pop ebx
push str.vncHTTPConnectThread::run_undetached_:_quitting_HTTP_server_thread_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4727b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x401
call fcn.005194aa
mov ebx, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov ecx, dword [sym.imp.WS2_32.dll_recv]
nop word [eax + eax]
lea edi, [ebp + 0xb]
mov esi, 1
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
jne 0x4727fc
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x472885
push 0
push esi
push edi
push eax
call ecx
test eax, eax
jle 0x47280d
add edi, eax
sub esi, eax
jmp 0x47281c
je 0x472885
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x472868
mov ecx, dword [sym.imp.WS2_32.dll_recv]
test esi, esi
jne 0x4727e8
mov al, byte [ebp + 0xb]
cmp al, byte [ebp + 0xc]
je 0x472855
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov byte [esi + edx], al
inc edx
mov dword [ebp - 4], edx
cmp edx, 0x3ff
jne 0x4727e0
pop edi
mov byte [esi + 0x3ff], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
push 4
push 0x5b0d48
call fcn.0041cc90
add esp, 0x10
jmp 0x472899
push str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
push 4
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00519467
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x472b20
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 0x472b6c
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.00431d50
push dword [esi]
push str.fake__d_down_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0x18
mov byte [esi + 8], 1
pop ebx
pop esi
ret

Function at 0x472b70
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 0x472bc0
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.00431d50
push dword [esi]
push str.fake__d_up_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0x18
mov byte [esi + 9], 1
pop ebx
pop esi
ret
Function at 0x472c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a68e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5b0008]
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], 0x5be0b4
mov dword [0x5be0b4], 0
mov dword [0x5be0b8], 0
call fcn.0051946c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5be0b4], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [0x5be0bc], 0
mov dword [0x5be0c0], 0
call fcn.0051946c
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5be0bc], eax
mov byte [ebp - 4], 1
mov esi, 0x5b1150
mov edi, 0x62
nop dword [eax + eax]
push esi
mov ecx, 0x5be0b4
call fcn.00473f50
movzx ecx, byte [esi + 4]
push esi
mov byte [eax], cl
mov ecx, 0x5be0bc
call fcn.00473e70
movzx ecx, byte [esi + 5]
add esi, 8
mov byte [eax], cl
sub edi, 1
jne 0x472d40
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0051b450
add esp, 0xc
nop
movzx eax, byte [edi + 0x5b0bbc]
lea esi, [edi + 0x5b0bbc]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
movzx edx, ax
cmp dx, 0xffff
je 0x472e42
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 0x472e42
movzx eax, byte [esi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 8
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [0x5be0c8]
add esp, 0x14
cmp ecx, dword [0x5be0cc]
je 0x472e1d
mov al, byte [esi]
mov byte [ecx], al
inc dword [0x5be0c8]
jmp 0x472e29
push esi
push ecx
mov ecx, 0x5be0c4
call fcn.0044ac70
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 0x472d80
mov eax, 0x5be0b4
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.00519459
mov esp, ebp
pop ebp
ret
Function at 0x473df0
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 0x473e6a
push 0x5a2024
push str.down
push esi
push str.SetShiftState_:_setshiftstate__d_____s___s__n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.00431d50
add esp, 8
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
mov ecx, 0x5a2024
mov eax, str.down
cmove eax, ecx
push eax
push esi
push str.SetShiftState_:_new_state__d___s__n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x474850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x418]
call fcn.00426250
lea eax, [ebp - 0x418]
push eax
push 0x200
lea eax, [ebp - 0x310]
push eax
push 0x569fe8
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4748a0
sub ecx, edx
jne 0x4748e2
push 0x104
lea eax, [ebp - 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4748da
lea eax, [ebp - 0x110]
push 0x5c
push eax
call fcn.0051a9e0
add esp, 8
test eax, eax
je 0x4748fb
mov byte [eax], 0
lea eax, [ebp - 0x110]
jmp 0x4748e8
lea eax, [ebp - 0x310]
push eax
push 0x104
push 0x5b0f62
call fcn.0051f3ce
add esp, 0xc
push 0x5b0f62
push 0x200
push 0x5b0d60
call fcn.0051f3ce
add esp, 0xc
push 0x597578
push 0x200
push 0x5b0d60
call fcn.0051f428
add esp, 0xc
push str.WinVNC.log
push 0x200
push 0x5b0d60
call fcn.0051f428
add esp, 0xc
mov byte [0x5b0f60], 1
cmp byte [0x5b0d50], 0
je 0x474955
call fcn.00474970
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x474970
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5b0d60
push esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474980
sub ecx, edx
jne 0x4749ac
push str.Error_opening_log_file_n
push ecx
push 0x5b0d48
mov word [0x5b0d50], 0x100
call fcn.0041cc90
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x5b0f60], 0
mov byte [0x5b0d50], 1
jne 0x474a38
mov ecx, 0x5b0d60
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4749c4
sub ecx, edx
lea eax, [ecx + 5]
push eax
call fcn.005194aa
mov esi, eax
add esp, 4
mov eax, 0x5b0d60
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4749e3
sub eax, edx
push 0x5b0d60
add eax, 5
push eax
push esi
call fcn.0051f3ce
mov ecx, 0x5b0d60
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474a06
sub ecx, edx
push str..bak
lea eax, [ecx + 5]
push eax
push esi
call fcn.0051f428
add esp, 0xc
push 1
push esi
push 0x5b0d60
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call fcn.00519467
add esp, 4
mov eax, dword [0x5b0d5c]
test eax, eax
je 0x474a52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5b0d5c], 0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x5b0d60
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5b0d5c], eax
cmp eax, 0xffffffff
jne 0x474aa0
push 0x5b0d60
push str.Error_opening_log_file__s_n
push 0
push 0x5b0d48
mov word [0x5b0d50], 0x100
call fcn.0041cc90
mov eax, dword [0x5b0d5c]
add esp, 0x10
cmp byte [0x5b0f60], 0
je 0x474abb
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