joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47eb60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
cmp esi, dword [edi + 0x10c]
je 0x47ed32
push 0x7f0
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x14], eax
test eax, eax
je 0x47ed32
push 0x479
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
test eax, eax
je 0x47ed32
test esi, esi
jne 0x47ebcb
push dword [edi + 0x110]
jmp 0x47ebd1
push dword [edi + 0x114]
push 0
push 0xf7
push 0x800
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
test esi, esi
je 0x47ec50
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x47ec3d
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 0x47ec10
mov edi, dword [esp + 0x18]
cmp dword [ebp + 0xc], 0
jne 0x47ecee
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi + 0x1098], 0
jne 0x47eca0
cmp dword [edi + 0x109c], 0
jne 0x47eca0
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x1c]
mov dword [edi + 0x1098], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push 0
push dword [esp + 0x14]
mov dword [edi + 0x109c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x20]
push 6
push eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x24]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x5c8648
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [edi + 0x10c], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 8
push 6
push dword [edi + 0x109c]
push dword [edi + 0x1098]
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x402
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Hide
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [edi + 0x10c], 1
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 8
Function at 0x484420
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x364]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x94]
test eax, eax
je 0x4844c7
push dword [eax + 0xe400]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4844c1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4844c1
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484465
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 0x4844c0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x4844c0
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484498
sub ecx, dword [ebp + 8]
push ebx
lea eax, [ecx + 1]
push eax
push edx
call fcn.005417f5
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 0x484dc0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x478
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0x474], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0x34], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
lea eax, [esi + 0x364]
push edi
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x484f53
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x484e41
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_Failed_rootdc__n
push eax
push 0x5d7d48
call fcn.0041c960
xor esi, esi
add esp, 0xc
mov dword [esp + 0x10], esi
xor cl, cl
jmp 0x484f7e
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
call esi
movzx edi, ax
push 0xa
push dword [esp + 0x10]
mov ax, di
mov dword [esp + 0x38], eax
mov word [esp + 0x18], ax
call esi
movzx eax, ax
push eax
push edi
mov edi, dword [esp + 0x14]
push edi
mov word [esp + 0x1e], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x484e97
xor esi, esi
mov byte [esp + 8], al
push edi
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x484f7a
push 0x430
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.0053f2b0
add esp, 0xc
mov dword [esp + 0x4c], 0x28
xor eax, eax
mov word [esp + 0x5a], ax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
jne 0x484ed5
mov dword [esp + 0x10], esi
mov byte [esp + 8], al
jmp 0x484f3e
push 0
lea eax, [esp + 0x50]
push eax
push 0
push 1
push 0
push dword [esp + 0x20]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x484f29
push 0
lea eax, [esp + 0x50]
push eax
push 0
push 1
push 0
push dword [esp + 0x20]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x484f29
cmp byte [esp + 0x5a], 0x18
mov edx, 0x20
movzx ecx, byte [esp + 0x5a]
mov esi, dword [esp + 0x30]
cmove ecx, edx
mov dword [esp + 8], ecx
jmp 0x484f34
xor esi, esi
mov byte [esp + 8], 0
mov dword [esp + 0x10], esi
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x484f7a
movups xmm0, xmmword [eax + 0xe3c8]
movups xmmword [esp + 0x10], xmm0
mov si, word [esp + 0x10]
movq xmm0, qword [eax + 0xe3d8]
mov al, byte [esp + 0x14]
movq qword [esp + 0x20], xmm0
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x38]
push dword [esp + 0x44]
movzx eax, si
mov dword [edx], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
shr eax, 0x10
mov dword [edx], eax
movzx eax, cl
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 0xc
Function at 0x485ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x640], 0
je 0x486058
cmp byte [0x5d9e87], 0
jne 0x486058
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_AutoConnectRetry__:_started_n
push 9
push 0x5d7d48
call fcn.0041c960
mov eax, dword [esi + 0x5c]
add esp, 0xc
test eax, eax
je 0x48603a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x486058
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x5e25d4]
push 0x485fd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x5c], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x486060
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x640], 0
je 0x486253
lea ebx, [edi + 0x64c]
nop
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486085
sub ecx, edx
je 0x486253
cmp byte [0x5d9e87], al
jne 0x486253
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_Attempting_AutoReconnect...._n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
push 0x23a4
call fcn.0053d643
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.00488d80
mov esi, eax
mov dword [edi + 0x70], esi
test esi, esi
je 0x4861d0
cmp dword [esi + 8], 0xffffffff
mov dword [esp + 0xc], 1
je 0x486131
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vsocket.cpp_:_closing_socket_n
push 0xa
push 0x5d7d48
call fcn.0041c960
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 ecx, dword [esi + 0x14]
mov dword [esi + 8], 0xffffffff
test ecx, ecx
je 0x486131
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x486165
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x486165
mov ecx, esi
call fcn.00489200
push dword [edi + 0x648]
mov ecx, dword [edi + 0x70]
push ebx
call fcn.00489010
test eax, eax
jne 0x4861df
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_connect_failed__waitin_5_sec_to_retry...._n
push 9
push 0x5d7d48
call fcn.0041c960
mov ecx, dword [edi + 0x70]
add esp, 0xc
test ecx, ecx
je 0x486199
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [edi + 0x640], 0
mov dword [edi + 0x70], 0
je 0x486253
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4861b2
sub eax, edx
je 0x4861d0
cmp byte [0x5d9e87], cl
jne 0x4861d0
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x640], 0
jne 0x486080
jmp 0x486253
lea ebx, [edi + 0x74b]
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4861f0
sub ecx, edx
je 0x486225
mov ecx, dword [edi + 0x70]
push 0xfa
push ebx
call fcn.004893f0
mov ecx, dword [edi + 0x70]
push 0
call fcn.004892d0
push 1
push dword [edi + 0x648]
lea eax, [edi + 0x64c]
push eax
push ebx
jmp 0x486236
push 1
push dword [edi + 0x648]
lea eax, [edi + 0x64c]
push eax
push 0
mov esi, dword [edi]
mov ecx, edi
push 0
push 0
push 1
call dword [esi + 0x260]
neg eax
mov ecx, edi
sbb eax, eax
inc eax
push eax
push dword [edi + 0x70]
call dword [esi]
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncserver.cpp_:_leaving_reconnectThread...._n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4864f0
Capabilities:
Enumerate processes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c0]
call fcn.00425a60
push 0x584fd8
lea eax, [ebp - 0x90]
push 0x81
push eax
call fcn.005417f5
add esp, 0xc
lea eax, [ebp - 0x2c0]
push eax
push 0x100
lea eax, [ebp - 0x90]
push eax
push 0x584fd8
push str.alternate_shell
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c8], ebx
mov dword [0x5e25d8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x486598
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push edi
call esi
push str.ProcessIdToSessionId
push edi
mov ebx, eax
call esi
mov dword [0x5e25d8], eax
test ebx, ebx
je 0x486598
call ebx
mov ebx, eax
jmp 0x48659a
xor ebx, ebx
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4865d6
cmp dword [0x5e25d8], 0
je 0x4865d6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], 0xffffffff
push ecx
push eax
call dword [0x5e25d8]
mov ebx, dword [ebp - 0x2c4]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x48660a
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x486630
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x486615
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x194]
push str.explorer.exe
push eax
call fcn.0054cf39
add esp, 8
test eax, eax
je 0x486676
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486651
sub ecx, edx
je 0x4866b8
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.0054cf39
add esp, 8
test eax, eax
jne 0x4866b8
mov eax, dword [0x5e25d8]
mov dword [ebp - 0x2c4], 0
test eax, eax
je 0x4866ac
lea ecx, [ebp - 0x2c4]
push ecx
push dword [ebp - 0x1b0]
call eax
test eax, eax
je 0x4866b8
cmp dword [ebp - 0x2c4], ebx
jne 0x4866b8
mov ebx, dword [ebp - 0x1b0]
jmp 0x4866d4
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x486630
mov ebx, dword [ebp - 0x2c8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4866e6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x486700
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5e65e4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, ecx
mov esi, 1
mov ecx, dword [0x5e65ec]
test ecx, ecx
cmovne eax, esi
mov dword [0x5e65e4], eax
mov eax, dword [0x5e65e8]
cmp eax, 2
jne 0x4867b6
test ecx, ecx
je 0x4867b6
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x48690c
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x4c], 0
jne 0x4867a8
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [0x5e65e4], 0
push 0x584fd8
push 0x101
push edi
call fcn.005417f5
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
cmp dword [0x5e65e4], 0
je 0x486782
mov eax, dword [0x5e65e8]
sub eax, 1
je 0x4867c4
sub eax, 1
jne 0x48690c
mov dword [ebp - 0x58], 0x101
call fcn.004864f0
test eax, eax
jne 0x4867ec
push 0x584fd8
push 0x101
push edi
call fcn.005417f5
add esp, 0xc
jmp 0x4868d9
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x4c]
push eax
push 0x201eb
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x48682f
push 0x584fd8
push 0x101
push edi
call fcn.005417f5
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4868d3
lea eax, [ebp - 0x5c]
push eax
push 0x4000
push 0x5e25e0
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4868ad
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0053f2b0
add esp, 0xc
mov dword [ebp - 0x50], 0x3f
lea eax, [ebp - 0x60]
mov dword [ebp - 0x54], 0x101
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push dword [0x5e25e0]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push 0x584fd8
push 0x101
push edi
call fcn.005417f5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 0x4c]
call esi
push ebx
call esi
mov esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x486897
call ebx
cmp eax, 0x4dd
je 0x486782
call ebx
push eax
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncservice.cpp_:_getusername_error__d_n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x486990
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5e65e8], 2
je 0x4869bc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
xor edi, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x486a2f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [ebp - 0x20c]
push str.LogonUI.exe
push eax
call fcn.005596a3
add esp, 8
test eax, eax
je 0x486a29
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4869f0
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov edi, 1
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053d630
mov esp, ebp
pop ebp
ret

Function at 0x487440
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x42c], 0
je 0x487499
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x487490
cmp dword [ebp - 4], 4
jne 0x487490
cmp dword [ebp - 8], 4
jne 0x487490
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx + 0x430]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4874c0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x42c], 0
je 0x48754c
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0
push edi
push dword [ebp + 8]
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x487542
cmp dword [ebp - 4], 3
jne 0x487542
push 0x100
mov dword [ebp - 8], 0x100
call fcn.0053d681
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x487539
cmp dword [ebp - 4], 3
je 0x48757b
push esi
call fcn.0053d63e
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x96
call fcn.0053d681
add esp, 4
lea ecx, [edi + 0x430]
mov esi, eax
push ecx
push 0x96
push esi
push 0x584fd8
push dword [ebp + 0xc]
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x487590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 0x42c], 0
je 0x4875d7
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x5bcc88
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [edi + 0x430]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053d630
mov esp, ebp
pop ebp
ret 0xc
Function at 0x488d10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x488d59
mov dword [esi], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 8]
mov ecx, dword [esp + 0x19c]
mov word [0x609460], ax
mov eax, esi
mov dword [esi], 0xffffffff
pop esi
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret

Function at 0x488ec0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
cmp dword [esi + 8], 0xffffffff
je 0x488ed9
call fcn.00488f20
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x488f14
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x488f14
mov ecx, esi
call fcn.00489200
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x489010
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 0xffffffff
je 0x4890a1
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
push edi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x489065
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4890a1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4890a1
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4890a1
mov ecx, esi
call fcn.00489200
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053d630
mov esp, ebp
pop ebp
ret 8