joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4662b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54982e
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.00458f00
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx], vtable.vncEncodeXZ.0
call fcn.005187ac
mov esi, eax
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.005187ea
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.005187ac
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.0051a780
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.005187ea
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.005187ea
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 0x472770
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.0041ccb0
add esp, 0xc
cmp dword [edi + 0x60], 0
jne 0x4728cd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
nop dword [eax]
mov ecx, dword [edi + 0x68]
call fcn.00483ba0
mov esi, eax
test esi, esi
je 0x4728cb
cmp dword [edi + 0x60], 0
jne 0x4728c3
push str.vncHTTPConnectThread::run_undetached_:_HTTP_client_connected_n
push 1
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0xfa
call ebx
cmp byte [0x5de534], 2
jb 0x47281e
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 0x47281e
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
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x472894
push str.VSocket::Shutdown_:_shutdown_socket_n
push 0xa
push 0x5b0d48
call fcn.0041ccb0
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 eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x472894
push str.VSocket::Close_:_closing_socket_n
push 0xa
push 0x5b0d48
call fcn.0041ccb0
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 0x4728af
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 + 0x60], 0
je 0x4727a0
jmp 0x4728cb
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.0041ccb0
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x472d80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x401
call fcn.005187ea
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
lea edi, [ebp - 1]
mov esi, 1
nop dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x472dd2
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x472dd0
add edi, eax
sub esi, eax
jmp 0x472ddb
je 0x472e0e
call ebx
cmp eax, 0x2733
jne 0x472e34
test esi, esi
jne 0x472db0
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
cmp al, byte [ebp + 0xc]
je 0x472e24
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], al
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x3ff
jne 0x472da4
pop edi
pop esi
mov byte [edx + 0x3ff], 0
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
jmp 0x472e4b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret 8
call ebx
push eax
push str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.005187a7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5499ee
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], 0x5be018
mov dword [0x5be018], 0
mov dword [0x5be01c], 0
call fcn.005187ac
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5be018], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [0x5be020], 0
mov dword [0x5be024], 0
call fcn.005187ac
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5be020], eax
mov byte [ebp - 4], 1
mov esi, 0x5b1150
mov edi, 0x62
nop dword [eax + eax]
push esi
mov ecx, 0x5be018
call fcn.004745a0
movzx ecx, byte [esi + 4]
push esi
mov byte [eax], cl
mov ecx, 0x5be020
call fcn.004744c0
movzx ecx, byte [esi + 5]
add esi, 8
mov byte [eax], cl
sub edi, 1
jne 0x473370
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0051a780
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 0x473472
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 0x473472
movzx eax, byte [esi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 8
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [0x5be02c]
add esp, 0x14
cmp ecx, dword [0x5be030]
je 0x47344d
mov al, byte [esi]
mov byte [ecx], al
inc dword [0x5be02c]
jmp 0x473459
push esi
push ecx
mov ecx, 0x5be028
call fcn.0044b350
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 0x4733b0
mov eax, 0x5be018
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.00518799
mov esp, ebp
pop ebp
ret
Function at 0x474440
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 0x4744ba
push 0x5a1ffc
push str.down
push esi
push str.SetShiftState_:_setshiftstate__d_____s___s__n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.00431c40
add esp, 8
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
mov ecx, 0x5a1ffc
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.0041ccb0
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x474ea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40c]
call fcn.00426160
lea eax, [ebp - 0x40c]
push eax
push 0x200
lea eax, [ebp - 0x308]
push eax
push 0x569fa8
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x308]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474ef0
sub ecx, edx
jne 0x474f32
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x474f2a
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00519d20
add esp, 8
test eax, eax
je 0x474f4b
mov byte [eax], 0
lea eax, [ebp - 0x108]
jmp 0x474f38
lea eax, [ebp - 0x308]
push eax
push 0x104
push 0x5b0f62
call fcn.0051e70e
add esp, 0xc
push 0x5b0f62
push 0x200
push 0x5b0d60
call fcn.0051e70e
push 0x597538
push 0x200
push 0x5b0d60
call fcn.0051e768
push str.WinVNC.log
push 0x200
push 0x5b0d60
call fcn.0051e768
add esp, 0x24
mov byte [0x5b0f60], 1
cmp byte [0x5b0d50], 0
je 0x474f9f
call fcn.00474fd0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x474fd0
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 0x474fe0
sub ecx, edx
jne 0x47500c
push str.Error_opening_log_file_n
push ecx
push 0x5b0d48
mov word [0x5b0d50], 0x100
call fcn.0041ccb0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x5b0f60], 0
mov byte [0x5b0d50], 1
jne 0x475098
mov ecx, 0x5b0d60
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475024
sub ecx, edx
lea eax, [ecx + 5]
push eax
call fcn.005187ea
mov esi, eax
add esp, 4
mov eax, 0x5b0d60
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475043
sub eax, edx
push 0x5b0d60
add eax, 5
push eax
push esi
call fcn.0051e70e
mov ecx, 0x5b0d60
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475066
sub ecx, edx
push str..bak
lea eax, [ecx + 5]
push eax
push esi
call fcn.0051e768
add esp, 0xc
push 1
push esi
push 0x5b0d60
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call fcn.005187a7
add esp, 4
mov eax, dword [0x5b0d5c]
test eax, eax
je 0x4750b2
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 0x475100
push 0x5b0d60
push str.Error_opening_log_file__s_n
push 0
push 0x5b0d48
mov word [0x5b0d50], 0x100
call fcn.0041ccb0
mov eax, dword [0x5b0d5c]
add esp, 0x10
cmp byte [0x5b0f60], 0
je 0x47511b
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
Function at 0x4751b0
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.0051e806
lea ecx, [esi + 0x320]
add esp, 4
cmp eax, dword [ecx]
jne 0x4751f2
cmp edx, dword [ecx + 4]
je 0x475208
push ecx
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0052d738
add esp, 4
mov ecx, esi
push eax
call fcn.00475130
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.0041e8d0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005266d5
add esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4752b0
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 0x47527f
push edi
lea eax, [esp + 0x81c]
push str.error_code_0x_08X
push eax
call fcn.0042f170
add esp, 0xc
push 0x5a20b0
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.0051e768
add esp, 0xc
lea eax, [esp + 0x818]
push eax
lea eax, [esp + 0x14]
push 0x801
push eax
call fcn.0051e768
add esp, 0xc
cmp byte [esi + 9], 0
je 0x4752c1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 0xa], 0
je 0x4752f5
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4752d0
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 0x47532d
mov edx, dword [esi + 0x14]
test edx, edx
je 0x47532d
lea ecx, [esp + 0x10]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475310
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.00518799
mov esp, ebp
pop ebp
ret 8
Function at 0x4754d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x5be058]
push str.RestoreDesktop_:_Restorewallpaper__i_n
push 8
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [0x5be058]
add esp, 0x10
test eax, eax
je 0x47559a
push dword [0x5be05c]
push eax
push str.RestoreDesktop_:_Restorewallpaper__i__i_n
push 8
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x14
cmp dword [0x5be05c], 0
je 0x475532
call fcn.00425df0
cmp eax, 0x40047
jb 0x475532
mov cl, 1
call fcn.00425e70
push 2
push 0x5be0e0
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 0x47559a
mov ecx, 0x5be4e0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475570
sub ecx, edx
push ecx
push 0x5be4e0
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 [0x5be058], 0
mov esp, ebp
pop ebp
ret

Function at 0x475d20
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x569fa8
lea edx, [edi + 0x62c]
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x475d52
test bl, bl
je 0x475d4e
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x475d52
add eax, 2
add esi, 2
test cl, cl
jne 0x475d32
xor eax, eax
jmp 0x475d57
sbb eax, eax
or eax, 1
test eax, eax
je 0x475def
mov eax, str.SYSTEM
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x475d84
test cl, cl
je 0x475d80
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x475d84
add edx, 2
add eax, 2
test cl, cl
jne 0x475d64
xor eax, eax
jmp 0x475d89
sbb eax, eax
or eax, 1
test eax, eax
je 0x475def
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x475dae
inc dword [edi + 0x750]
mov byte [edi + 0x74c], al
pop edi
pop esi
pop ebx
ret
cmp byte [edi + 0x74c], 0
jne 0x475dbe
mov ecx, edi
call fcn.00475e80
mov ecx, edi
call fcn.004763b0
lea eax, [edi + 0x756]
push eax
lea eax, [edi + 0x268]
push 0x80
push eax
call fcn.0052c4ee
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 0x4769d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0051e70e
add esp, 0xc
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x476bf2
mov edx, dword [ebp - 0x118]
xor edi, edi
mov esi, dword [ebp - 0x11c]
xor eax, eax
test edx, edx
je 0x476a6b
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], edi
je 0x476a65
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x476a40
push esi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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 0x476bf2
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x476bf2
push 1
push dword [ebp - 0x10c]
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x476be6
lea eax, [ebp - 0x114]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 1
push eax
push 0x1a
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor eax, eax
mov dword [ebp - 0x170], 0
mov word [ebp - 0x132], ax
xorps xmm0, xmm0
mov word [ebp - 0x144], ax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x174]
movlpd qword [ebp - 0x168], xmm0
push eax
push 0
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
movlpd qword [ebp - 0x160], xmm0
push 0x420
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x114]
movlpd qword [ebp - 0x158], xmm0
movlpd qword [ebp - 0x150], xmm0
movlpd qword [ebp - 0x142], xmm0
movlpd qword [ebp - 0x13a], xmm0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x174], 0x44
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x16c], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x476bb8
push dword [ebp - 0x12c]
call esi
push dword [ebp - 0x130]
call esi
push dword [ebp - 0x110]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x10c]
call esi
push dword [ebp - 0x114]
call esi
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x476c10
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.004257b0
test eax, eax
je 0x476c68
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 0x476c80
mov byte [esp + 0x13], 0
jmp 0x476d73
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.0051e70e
add esp, 0xc
lea eax, [esp + 0x78]
push str.__openhomepage
push 0x104
push eax
call fcn.0051e768
add esp, 0xc
lea eax, [esp + 0x30]
push 0x44
push 0
push eax
call fcn.0051a780
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 0x476d31
push dword [esp + 0x20]
push 0x408
jmp 0x476d35
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 0x476d50
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x476d5b
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x476d6a
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 0x476d82
push eax
call edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x476d89
push esi
call edi
mov ecx, dword [esp + 0x28c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret