joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431950
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x108]
mov bl, cl
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, bl
test byte [ebp + eax - 0x108], 1
je 0x43199d
push ecx
push 1
xor dl, dl
mov cl, bl
call fcn.004273d0
add esp, 4
xor dl, dl
mov cl, bl
push 3
call fcn.004273d0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x4319b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x100
lea eax, [ebp - 0x10c]
mov edi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4319fe
push 0x100
push str.Host_name_unavailable
push edi
call fcn.004ae040
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x431a35
push 0x100
push str.IP_address_unavailable
push edi
call fcn.004ae040
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov byte [edi], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x114], 0
cmp dword [eax], 0
je 0x431b1d
xor ecx, ecx
mov dword [ebp - 0x110], ecx
push esi
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0xa]
jge 0x431aaf
mov eax, dword [ebx + 0xc]
mov eax, dword [ecx + eax]
movzx eax, byte [eax + esi]
push eax
lea eax, [ebp - 0xc]
push 0x4e1758
push eax
call fcn.004ad5d8
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431a82
sub eax, edx
mov ecx, 0xff
sub ecx, eax
lea eax, [ebp - 0xc]
push ecx
push eax
push edi
call fcn.004aca70
movsx eax, word [ebx + 0xa]
inc esi
mov ecx, dword [ebp - 0x110]
add esp, 0xc
cmp esi, eax
jl 0x431a61
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431ab4
sub ecx, edx
mov byte [edi + ecx - 1], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x110]
cmp dword [ecx + eax + 4], 0
je 0x431af5
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431ad6
sub ecx, edx
mov eax, 0xff
sub eax, ecx
push eax
push 0x4e175c
push edi
call fcn.004aca70
add esp, 0xc
mov edx, dword [ebp - 0x114]
mov eax, dword [ebx + 0xc]
inc edx
mov dword [ebp - 0x114], edx
lea ecx, [edx*4]
cmp dword [ecx + eax], 0
mov dword [ebp - 0x110], ecx
jne 0x431a57
pop esi
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop edi
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x431b30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x274]
mov edi, dword [esi + 0x26c]
cmp dword [eax + 0x118], 0
je 0x431b9e
cmp byte [0x50149c], 2
jb 0x431be8
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 4]
push 4
push eax
push 0x1006
push 0xffff
push dword [edi + 8]
mov dword [ebp - 4], 0
call ebx
cmp eax, 0xffffffff
je 0x431be8
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [edi + 8]
call ebx
cmp eax, 0xffffffff
je 0x431be8
jmp 0x431c03
cmp byte [0x50149c], 2
jb 0x431be8
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 4]
push 4
push eax
push 0x1006
push 0xffff
push dword [edi + 8]
mov dword [ebp - 4], 0x7530
call ebx
cmp eax, 0xffffffff
je 0x431be8
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [edi + 8]
call ebx
cmp eax, 0xffffffff
jne 0x431c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vncclient.cpp_:_failed_to_set_socket_timeout__d__n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0x10
mov ecx, dword [esi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x254]
test eax, eax
je 0x431cf8
mov ecx, dword [esi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x254]
mov ecx, dword [esi + 0x26c]
push eax
call fcn.004732d0
push str.vncclient.cpp_:_DSMPlugin_Pointer_to_socket_OK_n
push 9
push 0x4f6c50
call fcn.00414f90
mov ecx, dword [esi + 0x270]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x254]
cmp byte [eax + 0x21], 0
je 0x431cdf
mov ecx, dword [esi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x254]
cmp dword [eax + 0x2f0], 0
jne 0x431c97
cmp dword [eax + 0x2f4], 0
jne 0x431c97
mov ecx, dword [esi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
je 0x431c97
push str.vncclient.cpp_:_A_connection_using_DSM_already_exist___client_rejected_to_avoid_crash__n
push 1
jmp 0x431cff
mov ecx, dword [esi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
jne 0x431cbc
mov ecx, dword [esi + 0x270]
mov eax, dword [ecx]
call dword [eax + 0x254]
mov eax, dword [eax + 0x2ec]
call eax
mov eax, dword [esi + 0x26c]
pop edi
mov byte [eax + 0x18], 1
mov eax, dword [esi + 0x274]
pop esi
pop ebx
mov dword [eax + 0xd4], 0
mov al, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x274]
pop edi
pop esi
pop ebx
mov dword [eax + 0xd4], 1
mov al, 1
mov esp, ebp
pop ebp
ret
push str.vncclient.cpp_:_Invalid_DSMPlugin_Pointer_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4369c0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4f5568]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov eax, dword [0x4f5568]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0xe4]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ecx + 0x54]
mov eax, dword [eax + 0xbc]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x54]
mov eax, dword [eax + 0xc4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x54]
mov eax, dword [eax + 0xb8]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x54]
mov eax, dword [eax + 0xc0]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call esi
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x436b34
cmp dword [edi + 0x138], 0
jne 0x436a93
cmp dword [edi + 0x208], 0
jne 0x436a93
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x138], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [edi + 0x210], 0
je 0x436b34
cmp dword [edi + 0x20c], 0
jne 0x436b34
lea eax, [esp + 0x10]
push eax
call esi
mov eax, dword [edi + 0x20]
add eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x1c]
sub edx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
cmp ecx, dword [edi + 0x214]
jne 0x436ae4
cmp edx, dword [edi + 0x218]
je 0x436b34
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0x5e
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x40], 0
mov ecx, edi
mov edx, dword [esp + 0x10]
mov dword [edi + 0x214], edx
mov edx, dword [esp + 0x14]
mov dword [edi + 0x218], edx
mov dword [edi + 0x20c], 1
call fcn.00436890
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x438670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, ecx
mov dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
mov dword [ebp - 8], eax
xor esi, esi
lea esp, [esp]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x2000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4386b0
cmp dword [ebp - 4], eax
je 0x4386b6
mov bl, 1
jmp 0x4386b6
cmp dword [ebp - 4], 0
je 0x4386dc
push 0
push 0
push 0
call fcn.004a6f80
push dword [ebp - 4]
push edi
push eax
call fcn.004a6f80
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [esi + ecx], eax
add esi, 4
mov eax, dword [ebp - 8]
jmp 0x438690
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.004ad334
add esp, 4
or eax, 0xffffffff
test bl, bl
cmovne esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x438780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov bl, 1
push edi
cmp byte [esi + 0x39d], 0
je 0x4387a2
cmp byte [esi + 0x39c], 0
je 0x4387ac
call fcn.004388c0
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov edi, dword [ebp + 8]
test edi, edi
jns 0x4387bd
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
cmp edi, 0x2000
jg 0x4387a2
cmp dword [ebp + 0xc], 2
mov bh, 1
sete al
test al, al
je 0x4387f1
push 1
push 0
push edi
push dword [esi + 0x384]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43887b
jmp 0x4388a7
mov ecx, dword [esi + 0x10c]
push edi
push dword [esi + 0x37c]
call fcn.00473090
cmp eax, 0xffffffff
sete bl
test bl, bl
je 0x438893
xor ecx, ecx
movzx eax, bh
cmp dword [ebp + 0xc], ecx
cmove eax, ecx
mov ecx, 0x2000
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
test al, al
je 0x438853
push edi
push dword [esi + 0x37c]
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x380]
call fcn.004a71f0
add esp, 0x10
test eax, eax
jne 0x43887b
mov edx, dword [esi + 0x380]
mov ecx, dword [ebp + 0xc]
jmp 0x438859
mov edx, dword [esi + 0x37c]
cmp byte [ebp + 8], 0
lea eax, [esi + 0x394]
push 0
push eax
cmovne edi, ecx
push edi
push edx
push dword [esi + 0x384]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4388a1
mov ecx, esi
mov byte [esi + 0x39c], 1
call fcn.004388c0
mov al, bl
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov ecx, esi
mov byte [esi + 0x39c], 1
call fcn.004388c0
mov edi, dword [esi + 0x394]
add dword [esi + 0x398], edi
mov al, bl
inc dword [esi + 0x390]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4388c0
Capabilities:
Clear file content
Delete file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x39d], 0
je 0x438aea
mov ecx, dword [esi + 0x108]
mov byte [esi + 0x39d], 0
mov eax, dword [ecx]
call dword [eax + 0x1dc]
mov ecx, dword [esi + 0x10c]
imul eax, eax, 0x3e8
push eax
call fcn.00472bc0
cmp byte [esi + 0x567], 0
je 0x438938
cmp dword [esi + 0x10c], 0
je 0x438938
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea eax, [ebp - 0x1d]
push 0xd
push 1
push eax
mov byte [ebp - 0x1d], 0xd
call fcn.00472e20
push dword [esi + 0x384]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 0x384]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esi + 0x368]
mov ecx, edx
lea edi, [ecx + 1]
jmp 0x438960
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438960
sub ecx, edi
je 0x4389e9
push edx
call fcn.004ade05
add esp, 4
mov word [ebp - 0x12], ax
lea eax, [esi + 0x36b]
push eax
call fcn.004ade05
add esp, 4
mov word [ebp - 0xe], ax
lea eax, [esi + 0x36e]
push eax
call fcn.004ade05
add esp, 4
mov word [ebp - 0x14], ax
lea eax, [esi + 0x373]
push eax
call fcn.004ade05
add esp, 4
mov word [ebp - 0xc], ax
lea eax, [esi + 0x376]
push eax
call fcn.004ade05
mov word [ebp - 0xa], ax
add esp, 4
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x28]
push eax
push eax
push eax
push dword [esi + 0x384]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esi + 0x384]
cmp eax, 0xffffffff
je 0x438a05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x384], 0xffffffff
lea edi, [esi + 0x224]
mov ecx, esi
push edi
call fcn.00439360
cmp byte [esi + 0x39c], 0
mov bl, al
je 0x438a42
cmp byte [esi + 0x39f], 0
je 0x438a42
push 0x2c
push edi
call fcn.004afa66
add esp, 8
test eax, eax
je 0x438a39
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x438a93
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00413ef0
lea ecx, [ebp - 0x1c]
call fcn.0042d5c0
add esp, 0x18
cmp byte [esi + 0x39c], 0
jne 0x438a82
test bl, bl
jne 0x438a82
cmp dword [ebp - 8], 0x10
lea edx, [ebp - 0x1c]
mov ecx, edi
cmovae edx, dword [ebp - 0x1c]
call fcn.0042d720
test al, al
sete al
mov byte [esi + 0x39c], al
cmp dword [ebp - 8], 0x10
jb 0x438a93
push dword [ebp - 0x1c]
call fcn.004ad35b
add esp, 4
mov eax, dword [esi + 0x380]
test eax, eax
je 0x438ab0
push eax
call fcn.004ad334
add esp, 4
mov dword [esi + 0x380], 0
mov eax, dword [esi + 0x37c]
test eax, eax
je 0x438acd
push eax
call fcn.004ad334
add esp, 4
mov dword [esi + 0x37c], 0
mov eax, dword [esi + 0x4fc]
test eax, eax
je 0x438aea
push eax
call fcn.004ad334
add esp, 4
mov dword [esi + 0x4fc], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x438e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f5568]
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 - 0x28], 0x66
push ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0x4fa], 0
je 0x43900c
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x1dc]
mov ecx, dword [edi + 0x10c]
imul eax, eax, 0x3e8
push eax
call fcn.00472b60
cmp byte [edi + 0x4f9], 0
mov esi, dword [edi + 0x10c]
mov byte [edi + 0x4fa], 0
jne 0x438ed7
mov word [ebp - 0x1c], 0x607
cmp dword [esi + 8], 0xffffffff
je 0x438f7a
cmp byte [esi + 0x1a], 0
jne 0x438f1c
cmp byte [esi + 0x18], 0
je 0x438f1c
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x438f1c
push 1
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 7
push eax
mov ecx, esi
call fcn.00472ec0
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00472ec0
jmp 0x438f7a
mov word [ebp - 0x1c], 0x707
cmp dword [esi + 8], 0xffffffff
je 0x438f7a
cmp byte [esi + 0x1a], 0
jne 0x438f1c
cmp byte [esi + 0x18], 0
je 0x438f1c
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x438f1c
push 1
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 7
push eax
mov ecx, esi
call fcn.00472ec0
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00472ec0
jmp 0x438f7a
cmp byte [esi + 0x18], 0
mov ecx, 0xc
je 0x438f6e
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x438f6e
cmp byte [esi + 0x68], 0
je 0x438f51
mov ecx, dword [esi + 0x64]
add ecx, dword [esi + 0x6c]
movq xmm0, qword [ebp - 0x1c]
movq qword [ecx], xmm0
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
add dword [esi + 0x6c], 0xc
jmp 0x438f7a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00473380
mov ecx, dword [ebp - 0x24]
jmp 0x438f71
lea eax, [ebp - 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.00472c20
mov eax, dword [edi + 0x4e4]
cmp eax, 0xffffffff
je 0x438f96
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x4e4], 0xffffffff
mov eax, dword [edi + 0x37c]
test eax, eax
je 0x438fb3
push eax
call fcn.004ad334
add esp, 4
mov dword [edi + 0x37c], 0
mov eax, dword [edi + 0x380]
test eax, eax
je 0x438fd0
push eax
call fcn.004ad334
add esp, 4
mov dword [edi + 0x380], 0
add edi, 0x3a0
push 0x5c
push edi
call fcn.004afa66
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.004ad660
add esp, 0x14
test eax, eax
jne 0x43900c
push 0x2c
push edi
call fcn.004afa66
add esp, 8
test eax, eax
je 0x439005
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.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x439360
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp byte [eax + 0x39c], 0
push edi
mov dword [ebp - 0x320], eax
jne 0x43947f
push 0x5c
push ebx
call fcn.004afa66
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.004ad660
add esp, 0x14
test eax, eax
jne 0x43947f
lea edx, [ebp - 0x31c]
mov ecx, ebx
sub edx, ebx
lea esp, [esp]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4393c0
lea eax, [ebp - 0x31c]
push 0x5c
push eax
call fcn.004afa66
push 0x2d
lea esi, [eax + 1]
push esi
call fcn.004ae83b
lea edx, [ebp - 0x114]
add esp, 0x10
lea ecx, [eax + 1]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4393f4
lea eax, [ebp - 0x114]
push 0x2e
push eax
call fcn.004afa66
add esp, 8
mov byte [eax], 0
test esi, esi
je 0x43941c
mov byte [esi], 0
lea edx, [ebp - 0x114]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x439424
lea edi, [ebp - 0x31c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x439434
mov ecx, edx
lea eax, [ebp - 0x31c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x320]
push ebx
push eax
mov ecx, dword [ecx + 0x220]
call fcn.00475970
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
Function at 0x43f910
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xe170], 0
mov byte [esi + 0xe174], 1
je 0x43f9d5
push str.vncdesktopsink.cpp_:_vncDesktop::Tell_initwindowthread_to_close__n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 0
push 0
push 0x12
push dword [esi + 0xdbb0]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7d0
push dword [esi + 0xe170]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43f9a9
push str.vncdesktopsink.cpp_:_vncDesktop::ERROR:__messageloop_blocked__n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 0
push dword [esi + 0xe170]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xe170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xdbfc], 0
mov dword [esi + 0xe170], 0
pop esi
ret
push str.vncdesktopsink.cpp_:_vncDesktop::_iniwindowthread_proper_closed__n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push dword [esi + 0xe170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe170], 0
pop esi
ret
push str.vncdesktopsink.cpp_:_initwindowthread_already_closed__n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
pop esi
ret
Function at 0x43f9f0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4f5568]
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.vncdesktopsink.cpp_:_StartInitWindowthread__n
push 9
push 0x4f6c50
mov esi, eax
mov byte [edi + 0xe174], 0
call fcn.00414f90
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x43fb95
mov ecx, str.Default
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43fa80
test dl, dl
je 0x43fa7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43fa80
add eax, 2
add ecx, 2
test dl, dl
jne 0x43fa60
xor eax, eax
jmp 0x43fa85
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43fb81
push str.vncdesktopsink.cpp_:_StartInitWindowthread_default_desk_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
cmp dword [edi + 0xe170], 0
jne 0x43fb7a
push dword [edi + 0xdbac]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [edi + 0xdbb0]
push eax
push 0
push edi
push 0x43fbb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [edi + 0xdbac]
mov dword [edi + 0xe170], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43fb4f
push str.vncdesktopsink.cpp_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x4f6c50
call fcn.00414f90
mov eax, dword [edi + 0xe170]
add esp, 0xc
test eax, eax
je 0x43fb38
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xe170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xdbfc], 0
mov dword [edi + 0xe170], 0
mov byte [edi + 0xe174], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push str.vncdesktopsink.cpp_:_StartInitWindowthread_started_n
push 9
push 0x4f6c50
call fcn.00414f90
mov byte [edi + 0xe174], 1
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push str.vncdesktopsink.cpp_:_StartInitWindowthread_reactivate_n
jmp 0x43fb54
push str.vncdesktopsink.cpp_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x445ff0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], edx
xor esi, esi
xor dh, dh
mov ebx, ecx
cmp eax, 8
je 0x446022
cmp eax, 0x10
jne 0x446015
movzx eax, word [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x446073
mov eax, dword [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor eax, eax
mov ecx, 0x100
mov edi, 0x551f40
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
test edi, edi
jle 0x446069
jmp 0x446040
mov dl, byte [eax + ebx]
movzx ecx, dl
cmp ecx, 0x100
jge 0x446091
inc dword [ecx*4 + 0x551f40]
mov ecx, dword [ecx*4 + 0x551f40]
cmp ecx, esi
jle 0x446064
mov esi, ecx
mov dh, dl
inc eax
cmp eax, edi
jl 0x446040
pop edi
pop esi
movzx eax, dh
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.getBgColour:_bpp__d__n
call fcn.004afcf3
add eax, 0x40
push eax
call fcn.004afdcf
add esp, 0xc
push 1
call fcn.004b0280
push ecx
push str.getBgColour
push str._s:_unusual_colour___d_n
call fcn.004afcf3
add eax, 0x40
push eax
call fcn.004afdcf
add esp, 0x10
push 1
call fcn.004b0280
int3