joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474b50
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc14
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0xc10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
mov dword [esp + 0x10], eax
call fcn.0051f4c6
lea ecx, [esi + 0x320]
add esp, 4
cmp eax, dword [ecx]
jne 0x474b92
cmp edx, dword [ecx + 4]
je 0x474ba8
push ecx
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0052e3f8
add esp, 4
mov ecx, esi
push eax
call fcn.00474ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
mov edi, eax
lea eax, [esp + 0x14]
push 0
push ebx
push 0x400
push eax
call fcn.0041e8b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00527395
add esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x474c50
push 0
push 0x400
lea eax, [esp + 0x820]
push eax
push 0x400
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x474c1f
push edi
lea eax, [esp + 0x81c]
push str.error_code_0x_08X
push eax
call fcn.0042f290
add esp, 0xc
push 0x5a20d8
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.0051f428
add esp, 0xc
lea eax, [esp + 0x818]
push eax
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.0051f428
add esp, 0xc
cmp byte [esi + 9], 0
je 0x474c61
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 0xa], 0
je 0x474c95
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474c70
push 0
lea eax, [esp + 0x10]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
cmp byte [esi + 8], 0
je 0x474ccd
mov edx, dword [esi + 0x14]
test edx, edx
je 0x474ccd
lea ecx, [esp + 0x10]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474cb0
push 0
lea eax, [esp + 0x10]
sub ecx, esi
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 8
Function at 0x474e70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push dword [0x5be0f4]
push str.RestoreDesktop_:_Restorewallpaper__i_n
push 8
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [0x5be0f4]
add esp, 0x10
test eax, eax
je 0x474f3a
push dword [0x5be0f8]
push eax
push str.RestoreDesktop_:_Restorewallpaper__i__i_n
push 8
push 0x5b0d48
call fcn.0041cc90
add esp, 0x14
cmp dword [0x5be0f8], 0
je 0x474ed4
call fcn.00425ee0
cmp eax, 0x40047
jb 0x474ed4
mov cl, 1
call fcn.00425f60
push 2
push 0x5be180
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x474f3a
mov ecx, 0x5be580
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474f10
sub ecx, edx
push ecx
push 0x5be580
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5be0f4], 0
mov esp, ebp
pop ebp
ret

Function at 0x4756d0
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x569fe8
lea edx, [edi + 0x62c]
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x475702
test bl, bl
je 0x4756fe
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x475702
add eax, 2
add esi, 2
test cl, cl
jne 0x4756e2
xor eax, eax
jmp 0x475707
sbb eax, eax
or eax, 1
test eax, eax
je 0x47579f
mov eax, str.SYSTEM
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x475734
test cl, cl
je 0x475730
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x475734
add edx, 2
add eax, 2
test cl, cl
jne 0x475714
xor eax, eax
jmp 0x475739
sbb eax, eax
or eax, 1
test eax, eax
je 0x47579f
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x47575e
inc dword [edi + 0x750]
mov byte [edi + 0x74c], al
pop edi
pop esi
pop ebx
ret
cmp byte [edi + 0x74c], 0
jne 0x47576e
mov ecx, edi
call fcn.00475b00
mov ecx, edi
call fcn.00476030
lea eax, [edi + 0x756]
push eax
lea eax, [edi + 0x268]
push 0x80
push eax
call fcn.0052d1ae
add esp, 0xc
lea eax, [edi + 0x250]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
pop esi
pop ebx
ret
Function at 0x476030
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x100
lea edi, [esi + 0x756]
push edi
push 0x66
push dword [0x5bb944]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0xffffffffffffffff
push 0x5a219c
push 0x80
push edi
call fcn.0052e5b7
mov ecx, dword [esi]
add esp, 0x10
mov eax, dword [ecx]
call dword [eax + 0xd0]
test eax, eax
je 0x4760b9
push ecx
lea eax, [ebp - 0x70]
push eax
call fcn.00475830
push 0x64
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0051f120
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
push eax
push 0x80
push edi
call fcn.0052e5b7
add esp, 0x1c
jmp 0x4760ce
push 0xffffffffffffffff
push str.Not_listening
push 0x80
push edi
call fcn.0052e5b7
add esp, 0x10
push 0x200
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0051b450
push 0x100
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.0051b450
add esp, 0x18
lea eax, [ebp - 0x170]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x47615c
lea ecx, [ebp - 0x170]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476116
sub ecx, edx
lea eax, [ebp - 0x170]
push ecx
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0051f120
push 0xffffffffffffffff
push 0x5a219c
push 0x80
push edi
call fcn.0052e5b7
push 0xffffffffffffffff
lea eax, [ebp - 0x438]
push eax
push 0x80
push edi
call fcn.0052e5b7
add esp, 0x2c
mov eax, dword [0x5be08c]
mov edx, str.___service__
push 0xffffffffffffffff
mov ecx, str.___application__
cmp dword [eax + 0xe20], 0
cmovne ecx, edx
push ecx
push 0x80
push edi
call fcn.0052e5b7
push 0xffffffffffffffff
push 0x5b35b0
push 0x80
push edi
call fcn.0052e5b7
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x4764d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0051f3ce
add esp, 0xc
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x124]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x4766f2
mov edx, dword [ebp - 0x120]
xor edi, edi
mov esi, dword [ebp - 0x124]
xor eax, eax
test edx, edx
je 0x47656b
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], edi
je 0x476565
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x476540
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
lea eax, [eax + eax*2]
mov edi, dword [esi + eax*4]
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test edi, edi
je 0x4766f2
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x4766f2
push 1
push dword [ebp - 0x114]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4766e6
lea eax, [ebp - 0x11c]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 4
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 1
push eax
push 0x1a
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor eax, eax
mov dword [ebp - 0x17c], 0
mov word [ebp - 0x13e], ax
xorps xmm0, xmm0
mov word [ebp - 0x150], ax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x180]
movlpd qword [ebp - 0x174], xmm0
push eax
push 0
push dword [ebp - 0x118]
lea eax, [ebp - 0x110]
movlpd qword [ebp - 0x16c], xmm0
push 0x420
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x11c]
movlpd qword [ebp - 0x164], xmm0
movlpd qword [ebp - 0x15c], xmm0
movlpd qword [ebp - 0x14e], xmm0
movlpd qword [ebp - 0x146], xmm0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x180], 0x44
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x178], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4766b8
push dword [ebp - 0x134]
call esi
push dword [ebp - 0x138]
call esi
push dword [ebp - 0x118]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x114]
call esi
push dword [ebp - 0x11c]
call esi
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x476710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00425890
test eax, eax
je 0x476768
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
push 0x201eb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x476780
mov byte [esp + 0x13], 0
jmp 0x476873
push 0x104
lea eax, [esp + 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.0051f3ce
add esp, 0xc
lea eax, [esp + 0x78]
push str.__openhomepage
push 0x104
push eax
call fcn.0051f428
add esp, 0xc
lea eax, [esp + 0x30]
push 0x44
push 0
push eax
call fcn.0051b450
add esp, 0xc
mov dword [esp + 0x38], str.Winsta0Default
mov eax, 5
mov dword [esp + 0x30], 0x44
mov word [esp + 0x60], ax
xorps xmm0, xmm0
lea eax, [esp + 0x14]
movaps xmmword [esp + 0x20], xmm0
push 0
push esi
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x84]
je 0x476831
push dword [esp + 0x20]
push 0x408
jmp 0x476835
push 0
push 8
push 0
push 0
push 0
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x476850
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47685b
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47686a
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x476882
push eax
call edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x476889
push esi
call edi
mov ecx, dword [esp + 0x28c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x479de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x98], 0x94
push esi
lea eax, [ebp - 0x98]
push eax
mov dword [ebx], vtable.VNC_OSVersion.0
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0xb], 0
mov dword [ebx + 6], 0
mov byte [ebx + 0xa], 0
mov word [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete al
mov byte [ebx + 0x11], al
mov eax, dword [ebp - 0x88]
sub eax, 1
je 0x479ee2
sub eax, 1
jne 0x479ee6
mov eax, dword [ebp - 0x94]
cmp eax, 6
jne 0x479eb5
mov eax, dword [ebp - 0x90]
cmp eax, 2
jb 0x479ea1
mov byte [ebx + 6], 1
jmp 0x479ee6
cmp eax, 1
jne 0x479eab
mov byte [ebx + 7], al
jmp 0x479ee6
test eax, eax
jne 0x479ee2
mov byte [ebx + 8], 1
jmp 0x479ee6
cmp eax, 5
jne 0x479ee2
mov eax, dword [ebp - 0x90]
cmp eax, 2
je 0x479ed8
cmp eax, 1
je 0x479ed8
test eax, eax
jne 0x479ee2
mov byte [ebx + 0xa], 1
mov byte [ebx + 0xe], 1
jmp 0x479ee6
mov byte [ebx + 9], 1
mov byte [ebx + 0xe], 1
jmp 0x479ee6
mov byte [ebx + 0xd], 1
cmp byte [ebx + 0xe], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sete al
cmp byte [ebx + 6], 0
mov byte [ebx + 0xf], al
je 0x479f9c
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x479f4b
push str.RtlGetVersion
push eax
call esi
mov esi, eax
test esi, esi
je 0x479f4b
push 0x110
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.0051b450
add esp, 0xc
mov dword [ebp - 0x1ac], 0x114
lea eax, [ebp - 0x1ac]
push eax
call esi
test eax, eax
je 0x479f61
push 0x114
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.0051b450
add esp, 0xc
mov ecx, 0x45
lea edi, [ebp - 0x2c4]
lea esi, [ebp - 0x1ac]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2c0], 0xa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
jne 0x479f9c
cmp dword [ebp - 0x2b8], 0x4a61
mov byte [ebx + 6], 0
mov byte [ebx + 4], 1
jb 0x479f9c
mov byte [ebx + 5], 1
cmp dword [ebx + 0x14], 0
jne 0x479fcc
push 0x5a27f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x479fcc
push 0x5a2800
push eax
call esi
push str.DwmEnableComposition
push dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
call esi
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x47d090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
cmp eax, dword [edi + 0xc]
je 0x47d25a
xorps xmm0, xmm0
push 0x7f0
push esi
movaps xmmword [esp + 0x28], xmm0
movaps xmmword [esp + 0x38], xmm0
movaps xmmword [esp + 0x48], xmm0
movaps xmmword [esp + 0x58], xmm0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x18], eax
test eax, eax
je 0x47d25a
push 0x479
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
test eax, eax
je 0x47d25a
cmp dword [ebp + 0xc], 0
jne 0x47d111
push dword [edi + 0x10]
jmp 0x47d114
push dword [edi + 0x14]
push 0
push 0xf7
push 0x800
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
test esi, esi
je 0x47d190
mov edi, dword [ebp + 0xc]
nop dword [eax]
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x47d17d
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x47d150
mov edi, dword [esp + 0x1c]
cmp dword [ebp + 0xc], 0
mov esi, dword [esp + 0x14]
jne 0x47d220
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi], 0
jne 0x47d1d6
cmp dword [edi + 4], 0
jne 0x47d1d6
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0
push dword [esp + 0x14]
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x24]
push 6
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x28]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x5a2bf8
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [edi + 0xc], 0
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 8
push 6
push dword [edi + 4]
push dword [edi]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Hide
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [edi + 0xc], 1
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 8
Function at 0x480a90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x2c8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x480b37
push dword [eax + 0xe404]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x480b31
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x480b31
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480ad5
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x480b30
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x480b30
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480b08
sub ecx, dword [ebp + 8]
push ebx
lea eax, [ecx + 1]
push eax
push edx
call fcn.0051f3ce
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
ret 4
Function at 0x4823a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x2f4], 0
je 0x482408
cmp byte [0x5b31af], 0
jne 0x482408
push str.vncServer::AutoConnectRetry_:_AutoConnectRetry__:_started_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [esi + 0x70]
add esp, 0xc
test eax, eax
je 0x4823ea
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x482408
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x5bb8fc]
push 0x482380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4832e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x483320
mov dword [esi], 0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0x198]
mov ecx, dword [ebp - 4]
mov word [0x5de5d0], ax
xor ecx, ebp
mov dword [esi], 0xffffffff
mov eax, esi
pop esi
call fcn.00519459
mov esp, ebp
pop ebp
ret

Function at 0x483500
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x2c]
push edi
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x10], 1
push eax
push dword [ebp + 0xc]
movaps xmmword [esp + 0x1c], xmm0
mov edi, ecx
movaps xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x24], 1
call fcn.0052cb5a
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x48364f
mov esi, dword [esp + 8]
test esi, esi
je 0x48366b
mov eax, dword [esi + 4]
mov ecx, dword [sym.imp.WS2_32.dll_socket]
cmp eax, 2
jne 0x4835e4
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call ecx
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x48363a
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, edi
call fcn.00484410
push dword [esi + 0x10]
push dword [esi + 0x18]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x483664
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 0x17
jne 0x48363a
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call ecx
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x48363a
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, edi
call fcn.004844e0
push dword [esi + 0x10]
push dword [esi + 0x18]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x48368f
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xc], 0xffffffff
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x483574
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.00484410
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x48364f
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.004844e0
jmp 0x48366b