joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov bl, 1
push edi
cmp byte [esi + 0x721], 0
je 0x44f43a
cmp byte [esi + 0x720], 0
jne 0x44f3c9
mov edi, dword [ebp + 8]
test edi, edi
jns 0x44f32c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x2000
jg 0x44f43a
cmp dword [ebp + 0xc], 2
jne 0x44f35c
push 1
push 0
push edi
push dword [esi + 0x708]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
cmp eax, 0xffffffff
setne dl
jmp 0x44f404
mov ecx, dword [esi + 0x3a0]
lea eax, [esi + 0x700]
push edi
push dword [eax]
mov dword [esp + 0x18], eax
call fcn.0048ef70
cmp eax, 0xffffffff
sete bl
jne 0x44f418
cmp dword [ebp + 0xc], 0
mov ecx, 0x2000
mov dword [esp + 0xc], ecx
jne 0x44f393
xor dl, dl
jmp 0x44f3df
mov eax, dword [esi + 0x700]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], edi
lea ecx, [esi + 0x704]
push eax
push dword [ecx]
mov dword [esp + 0x20], ecx
call sym.winvnc.exe_uncompress2
add esp, 0x10
test eax, eax
je 0x44f3d9
mov byte [esi + 0x720], 1
mov ecx, esi
call fcn.0044f450
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
mov dl, 1
push 0
lea eax, [esi + 0x718]
test dl, dl
push eax
mov eax, edi
cmovne eax, ecx
push eax
mov eax, dword [esp + 0x1c]
push dword [eax]
push dword [esi + 0x708]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, eax
lea eax, [esi + 0x718]
mov cl, bl
test edx, edx
je 0x44f3c0
cmp dword [ebp + 0xc], 2
jne 0x44f42c
jmp 0x44f42e
mov ecx, esi
mov byte [esi + 0x720], 1
call fcn.0044f450
lea eax, [esi + 0x718]
mov edi, dword [eax]
add dword [esi + 0x71c], edi
inc dword [esi + 0x714]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44fca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5574dd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5c3040]
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 edi, ecx
mov eax, dword [edi]
call dword [eax + 0x28]
mov ebx, eax
mov dword [ebp - 0x24], 0x66
push ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0x73a], 0
je 0x44fe10
mov eax, dword [0x5d1914]
mov ecx, dword [edi + 0x3a0]
imul eax, dword [eax + 0x758], 0x3e8
push eax
call fcn.0048eaa0
cmp byte [edi + 0x739], 0
xorps xmm0, xmm0
mov esi, dword [edi + 0x3a0]
movq qword [ebp - 0x1c], xmm0
mov byte [edi + 0x73a], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x1c], 0x607
je 0x44fd45
mov word [ebp - 0x1c], 0x707
cmp dword [esi + 8], 0xffffffff
je 0x44fd7e
cmp byte [esi + 0x1a], 0
jne 0x44fd71
cmp byte [esi + 0x18], 0
je 0x44fd71
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x44fd71
push 1
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 7
push eax
mov ecx, esi
call fcn.0048edf0
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0048edf0
mov eax, dword [edi + 0x724]
cmp eax, 0xffffffff
je 0x44fd9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x724], 0xffffffff
mov eax, dword [edi + 0x700]
test eax, eax
je 0x44fdb7
push eax
call fcn.00524771
add esp, 4
mov dword [edi + 0x700], 0
mov eax, dword [edi + 0x704]
test eax, eax
je 0x44fdd4
push eax
call fcn.00524771
add esp, 4
mov dword [edi + 0x704], 0
add edi, 0x111
push 0x5c
push edi
call fcn.00535b2d
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.00534300
add esp, 0x14
test eax, eax
jne 0x44fe10
push 0x2c
push edi
call fcn.00535b2d
add esp, 8
test eax, eax
je 0x44fe09
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00524763
mov esp, ebp
pop ebp
ret
Function at 0x450a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55762d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5c3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x258], 0
jne 0x450b7a
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.00526a30
add esp, 0xc
cmp edi, 0x142
ja 0x450b73
mov ecx, dword [esi + 0x3a0]
lea eax, [esi + 0x111]
push edi
push eax
call fcn.0048ef70
test eax, eax
je 0x450b73
mov eax, dword [0x5d1914]
cmp dword [eax + 0x790], 0
je 0x450b73
cmp byte [ebp + 0x1c], 0
je 0x450b73
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0x4509f0
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 0x451050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5576a4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c3040]
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 0x4510b8
mov ecx, dword [esi + 0x3a8]
test ecx, ecx
je 0x45109a
push ecx
call fcn.0044c320
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.00524776
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x5d07c8]
mov edi, dword [0x5c66b4]
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 0x45111a
push 0x30
call fcn.00524776
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [0x5c66b4], edi
cmp dword [0x5c66b8], 0
jne 0x45119b
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x85
push eax
mov dword [0x5c66b8], 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 [0x5c66b4]
test edi, edi
jne 0x4511b4
push 0x30
call fcn.00524776
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5c66b4], edi
mov eax, 1
nop dword [eax]
cmp byte [edi + eax + 0x24], 0
je 0x4511d1
inc eax
cmp eax, 7
jl 0x4511c0
xor eax, eax
jmp 0x4511d9
mov byte [eax + edi + 0x24], 1
mov eax, dword [edi + eax*4]
mov dword [ebx + 0x14], eax
test edi, edi
jne 0x4511f5
push 0x30
call fcn.00524776
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5c66b4], edi
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push 0x428730
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 0x457ad0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov dword [0x5c6a1c], 0
cmp dword [esi + 0xe938], 0
mov byte [esi + 0xe93c], 1
je 0x457b9f
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::Tell_initwindowthread_to_close__n
push 9
push 0x5c3db0
call fcn.0041dde0
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 0x457b73
push str.vncDesktop::StopInitWindowthread_:_vncDesktop::ERROR:__messageloop_blocked__n
push 0
push 0x5c3db0
call fcn.0041dde0
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 0x5c3db0
call fcn.0041dde0
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 0x5c3db0
call fcn.0041dde0
add esp, 0xc
pop esi
ret
Function at 0x457bc0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5c3040]
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 0x5c3db0
mov esi, eax
mov byte [edi + 0xe93c], 0
call fcn.0041dde0
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 0x457d7a
mov ecx, str.Default
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x457c50
test dl, dl
je 0x457c4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x457c50
add eax, 2
add ecx, 2
test dl, dl
jne 0x457c30
xor eax, eax
jmp 0x457c55
sbb eax, eax
or eax, 1
test eax, eax
jne 0x457d66
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_default_desk_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
cmp dword [edi + 0xe938], 0
jne 0x457d3a
push dword [edi + 0xe398]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5d1914]
cmp dword [eax + 0x788], 0
je 0x457c9d
call fcn.004388b0
lea eax, [edi + 0xe39c]
push eax
push 0
push edi
push 0x457d90
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 0x457d33
push str.vncDesktop::StartInitWindowthread_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0xe938]
add esp, 0xc
test eax, eax
je 0x457d1b
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.00524763
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_started_n
jmp 0x457d3f
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_reactivate_n
push 9
push 0x5c3db0
call fcn.0041dde0
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.00524763
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00524763
mov esp, ebp
pop ebp
ret
Function at 0x45f570
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5c3040]
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 0x5c3db0
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.0041dde0
add esp, 0xc
cmp word [esi + 0x38], 0
je 0x45f6e0
cmp word [esi + 0x34], 0
je 0x45f6e0
cmp word [esi + 0x36], 0
je 0x45f6e0
cmp byte [esi + 0x13], 0
jne 0x45f5da
mov ecx, esi
call fcn.0045f770
test eax, eax
je 0x45f6e0
cmp byte [esi + 0x23], 0
jne 0x45f6e0
cmp byte [esi + 0x13], 0
lea edi, [esi + 0xc]
je 0x45f6f6
push str.vncEncoder::GetRemotePalette_:_generating_BGR233_palette_data_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov cl, byte [esi + 0x30]
mov ebx, 1
mov eax, dword [edi]
add esp, 0xc
shl ebx, cl
test eax, eax
je 0x45f61e
push eax
call fcn.0052a52b
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.0052c198
mov ecx, eax
add esp, 4
mov dword [edi], ecx
test ecx, ecx
je 0x45f6c2
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x45f6c2
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 0x45f650
mov ebx, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x45f741
push str.vncEncoder::GetRemotePalette_:_failed_to_obtain_colour_map_data__n
push esi
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret 8
push str.vncEncoder::GetRemotePalette_:_generating_8_bit_palette_data_n
push 9
push 0x5c3db0
call fcn.0041dde0
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 fcn.00437c00
add esp, 0xc
jmp 0x45f6c6
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.00524763
mov esp, ebp
pop ebp
ret 8
Function at 0x46c790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557e9e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.0045f240
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx], vtable.vncEncodeXZ.0
call fcn.00524776
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.005247b4
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.00524776
mov edi, eax
mov dword [ebp - 0x14], 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.00526a30
push dword [edi + 0x10]
mov dword [esi], 0x200000
mov dword [edi + 0x38], 0x80
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.005247b4
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.005247b4
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 0x478b80
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 0x5c3db0
mov edi, ecx
call fcn.0041dde0
add esp, 0xc
cmp dword [edi + 0x54], 0
jne 0x478cd9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
nop dword [eax]
mov ecx, dword [edi + 0x5c]
call fcn.0048e820
mov esi, eax
test esi, esi
je 0x478cd7
cmp dword [edi + 0x54], 0
jne 0x478ccf
push str.vncHTTPConnectThread::run_undetached_:_HTTP_client_connected_n
push 1
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 0xfa
call ebx
cmp byte [0x5f2074], 2
jb 0x478c2e
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 0x478c2e
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
cmp dword [esi + 8], 0xffffffff
je 0x478ca0
push str.VSocket::Shutdown_:_shutdown_socket_n
push 0xa
push 0x5c3db0
call fcn.0041dde0
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]
cmp dword [esi + 8], 0xffffffff
je 0x478ca0
push str.VSocket::Close_:_closing_socket_n
push 0xa
push 0x5c3db0
call fcn.0041dde0
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 0x478cbb
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 + 0x54], 0
je 0x478bb0
jmp 0x478cd7
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 0x5c3db0
call fcn.0041dde0
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x479230
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.005247b4
add esp, 4
mov dword [ebp - 8], eax
xor ebx, ebx
nop dword [eax + eax]
lea edi, [ebp - 1]
mov esi, 1
nop dword [eax + eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x479282
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x479280
add edi, eax
sub esi, eax
jmp 0x47928f
je 0x4792b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4792df
test esi, esi
jne 0x479260
mov al, byte [ebp - 1]
cmp al, byte [ebp + 0xc]
je 0x4792cf
mov ecx, dword [ebp - 8]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, 0x3ff
jne 0x479250
pop edi
pop esi
mov byte [ebx + ecx], 0
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
push 4
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
jmp 0x4792fa
mov eax, dword [ebp - 8]
pop edi
pop esi
mov byte [ebx + eax], 0
pop ebx
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 0x5c3db0
call fcn.0041dde0
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00524771
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x479647
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.004384f0
push dword [esi]
push str.fake__d_down_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0x18
mov byte [esi + 8], 1
pop ebx
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x47969b
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.004384f0
push dword [esi]
push str.fake__d_up_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0x18
mov byte [esi + 9], 1
pop ebx
pop esi
ret
Function at 0x4796a0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558020
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5c3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 8], 0
je 0x4796f4
mov eax, dword [esi + 4]
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.004384f0
push dword [esi]
push str.fake__d_up_n
jmp 0x47971c
cmp byte [esi + 9], 0
je 0x47972b
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.004384f0
push dword [esi]
push str.fake__d_down_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret