joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540204
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a6008]
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 0x446578
mov ecx, dword [esi + 0x3a8]
test ecx, ecx
je 0x44655a
push ecx
call fcn.004418c0
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.0051134c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x5b487c]
mov edi, dword [0x5a8c50]
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 0x4465da
push 0x30
call fcn.0051134c
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [0x5a8c50], edi
cmp dword [0x5a8c54], 0
jne 0x44665b
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x85
push eax
mov dword [0x5a8c54], 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 [0x5a8c50]
test edi, edi
jne 0x446674
push 0x30
call fcn.0051134c
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5a8c50], edi
mov eax, 1
nop dword [eax]
cmp byte [edi + eax + 0x24], 0
je 0x446691
inc eax
cmp eax, 7
jl 0x446680
xor eax, eax
jmp 0x446699
mov byte [edi + eax + 0x24], 1
mov eax, dword [edi + eax*4]
mov dword [ebx + 0x14], eax
test edi, edi
jne 0x4466b5
push 0x30
call fcn.0051134c
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5a8c50], edi
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push 0x427bc0
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 0x44d2c0
Capabilities:
Terminate thread

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 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 0x5a6c48
mov byte [esi + 0xe93c], 0
call fcn.0041d720
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push 2
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x44d567
mov ecx, str.Default
lea eax, [ebp - 0x104]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x44d440
test dl, dl
je 0x44d43c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44d440
add eax, 2
add ecx, 2
test dl, dl
jne 0x44d420
xor eax, eax
jmp 0x44d445
sbb eax, eax
or eax, 1
test eax, eax
jne 0x44d553
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_default_desk_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
cmp dword [esi + 0xe938], eax
jne 0x44d528
push dword [esi + 0xe398]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [0x5b6e6c]
cmp dword [eax + 0x788], 0
je 0x44d48c
call fcn.0042ec30
lea eax, [esi + 0xe39c]
push eax
push 0
push esi
push 0x44d580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [esi + 0xe398]
mov dword [esi + 0xe938], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44d521
push str.vncDesktop::StartInitWindowthread_:_ERROR:_initwindowthread_failed_to_start__n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0xe938]
add esp, 0xc
test eax, eax
je 0x44d50a
push 0
push eax
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
xor al, al
mov byte [esi + 0xe93c], al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_started_n
jmp 0x44d52d
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_reactivate_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
mov al, 1
mov byte [esi + 0xe93c], al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
push str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_no_default_desk_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x454e70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.vncEncoder::GetRemotePalette_:_remote_palette_data_requested_n
push 9
push 0x5a6c48
mov esi, ecx
mov dword [ebp - 0x20], ebx
call fcn.0041d720
add esp, 0xc
cmp word [esi + 0x38], 0
je 0x455040
cmp word [esi + 0x34], 0
je 0x455040
cmp word [esi + 0x36], 0
je 0x455040
cmp byte [esi + 0x13], 0
jne 0x454ed2
call fcn.00455060
test eax, eax
je 0x455040
cmp byte [esi + 0x23], 0
jne 0x455040
cmp byte [esi + 0x13], 0
lea edx, [esi + 0xc]
push edi
je 0x454fdc
push str.vncEncoder::GetRemotePalette_:_generating_BGR233_palette_data_n
push 9
push 0x5a6c48
call fcn.0041d720
mov cl, byte [esi + 0x30]
mov ebx, 1
mov eax, dword [edx]
add esp, 0xc
shl ebx, cl
test eax, eax
je 0x454f17
push eax
call fcn.00515679
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.00517363
mov ecx, eax
add esp, 4
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x454faa
xor eax, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jle 0x454faa
inc ecx
mov dword [ebp - 0x1c], 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 [ebp - 0x1c]
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 [ebp - 0x18]
sar eax, cl
and eax, edi
mov ecx, dword [ebp - 0x1c]
imul eax, eax, 0xff
div edi
xor edx, edx
mov byte [ecx + 1], al
movzx ecx, byte [esi + 0x3b]
mov eax, dword [ebp - 0x18]
movzx edi, word [esi + 0x36]
sar eax, cl
and eax, edi
mov ecx, dword [ebp - 0x1c]
imul eax, eax, 0xff
div edi
mov byte [ecx], al
add ecx, 4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jl 0x454f40
mov ebx, dword [ebp - 0x20]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x45501f
push str.vncEncoder::GetRemotePalette_:_failed_to_obtain_colour_map_data__n
push esi
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret 8
push str.vncEncoder::GetRemotePalette_:_generating_8_bit_palette_data_n
push 9
push 0x5a6c48
call fcn.0041d720
lea eax, [ebp - 0x14]
mov dword [ebp - 0x12], 0xff0100
push eax
lea eax, [esi + 0x10]
mov word [ebp - 0x14], 0x1820
push eax
push edx
mov dword [ebp - 0xe], 0xff00ff
mov word [ebp - 0xa], 0x810
mov byte [ebp - 8], 0
call dword [0x5619f4]
add esp, 0x18
jmp 0x454fad
mov edi, ebx
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00511339
mov esp, ebp
pop ebp
ret 8
Function at 0x461ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5409fe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a6008]
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.00454b50
mov dword [ebp - 4], 0
push 0x10
mov dword [ebx], vtable.vncEncodeXZ.0
call fcn.0051134c
mov esi, eax
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
push 0x400
mov dword [esi], vtable.rdr::MemOutStream.0
call fcn.0051138a
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.0051134c
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.00513330
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.0051138a
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.0051138a
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 0x46e2c0
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 0x46e30c
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.0042e870
push dword [esi]
push str.fake__d_down_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0x18
mov byte [esi + 8], 1
pop ebx
pop esi
ret

Function at 0x46e310
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 0x46e360
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.0042e870
push dword [esi]
push str.fake__d_up_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0x18
mov byte [esi + 9], 1
pop ebx
pop esi
ret
Function at 0x46e420
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540b4e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5a6008]
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], 0x5b6e90
mov dword [0x5b6e90], 0
mov dword [0x5b6e94], 0
call fcn.0051134c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5b6e90], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [0x5b6e98], 0
mov dword [0x5b6e9c], 0
call fcn.0051134c
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5b6e98], eax
mov byte [ebp - 4], 1
mov esi, 0x5a7050
mov edi, 0x62
nop dword [eax + eax]
push esi
mov ecx, 0x5b6e90
call fcn.0046f6f0
movzx ecx, byte [esi + 4]
push esi
mov byte [eax], cl
mov ecx, 0x5b6e98
call fcn.0046f610
movzx ecx, byte [esi + 5]
add esi, 8
mov byte [eax], cl
sub edi, 1
jne 0x46e4e0
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00513330
add esp, 0xc
nop
movzx eax, byte [edi + 0x5a6ac0]
lea esi, [edi + 0x5a6ac0]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
movzx edx, ax
cmp dx, 0xffff
je 0x46e5e2
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 0x46e5e2
movzx eax, byte [esi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 8
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [0x5b6ea4]
add esp, 0x14
cmp ecx, dword [0x5b6ea8]
je 0x46e5bd
mov al, byte [esi]
mov byte [ecx], al
inc dword [0x5b6ea4]
jmp 0x46e5c9
push esi
push ecx
mov ecx, 0x5b6ea0
call fcn.00446f80
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 0x46e520
mov eax, 0x5b6e90
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.00511339
mov esp, ebp
pop ebp
ret
Function at 0x46f590
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 0x46f60a
push 0x5982ac
push str.down
push esi
push str.SetShiftState_:_setshiftstate__d_____s___s__n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.0042e870
add esp, 8
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
mov ecx, 0x5982ac
mov eax, str.down
cmove eax, ecx
push eax
push esi
push str.SetShiftState_:_new_state__d___s__n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0x14
pop esi
pop ebx
ret

Function at 0x4700f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5a8d8e], 0
jne 0x4701f4
mov eax, dword [0x5d73b0]
push eax
push str.ResetAero_:_Reset__i__n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0x10
test eax, eax
je 0x470133
push eax
call dword [sym.imp.dwmapi.dll_Ordinal_102]
cmp byte [0x5a8d8e], 0
jne 0x4701f4
mov ecx, dword [0x5b6f54]
push ecx
push str.RestoreDesktop_:_Restorewallpaper__i_n
push 8
push 0x5a6c48
call fcn.0041d720
add esp, 0x10
test ecx, ecx
je 0x4701ea
mov eax, dword [0x5b7358]
push eax
push ecx
push str.RestoreDesktop_:_Restorewallpaper__i__i_n
push 8
push 0x5a6c48
call fcn.0041d720
add esp, 0x14
test eax, eax
je 0x470188
call fcn.004262b0
cmp eax, 0x40047
jb 0x470188
mov cl, 1
call fcn.00426330
push 2
push 0x5b6f58
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 closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4701ea
mov ecx, 0x5b735c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4701c0
sub ecx, edx
push ecx
push 0x5b735c
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 [0x5b6f54], 0
mov esp, ebp
pop ebp
ret
Function at 0x470990
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x560f28
lea edx, [edi + 0x62c]
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x4709c2
test bl, bl
je 0x4709be
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4709c2
add eax, 2
add esi, 2
test cl, cl
jne 0x4709a2
xor eax, eax
jmp 0x4709c7
sbb eax, eax
or eax, 1
test eax, eax
je 0x470a5f
mov eax, str.SYSTEM
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4709f4
test cl, cl
je 0x4709f0
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4709f4
add edx, 2
add eax, 2
test cl, cl
jne 0x4709d4
xor eax, eax
jmp 0x4709f9
sbb eax, eax
or eax, 1
test eax, eax
je 0x470a5f
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x470a1e
inc dword [edi + 0x750]
mov byte [edi + 0x74c], al
pop edi
pop esi
pop ebx
ret
cmp byte [edi + 0x74c], 0
jne 0x470a2e
mov ecx, edi
call fcn.00470af0
mov ecx, edi
call fcn.00470f50
lea eax, [edi + 0x756]
push eax
lea eax, [edi + 0x268]
push 0x80
push eax
call fcn.00523f31
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 0x471570
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0051736e
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 0x471792
mov edx, dword [ebp - 0x118]
xor edi, edi
mov esi, dword [ebp - 0x11c]
xor eax, eax
test edx, edx
je 0x47160b
lea ecx, [esi + 8]
nop dword [eax]
cmp dword [ecx], edi
je 0x471605
inc eax
add ecx, 0xc
cmp eax, edx
jb 0x4715e0
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.00511339
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 0x471792
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x471792
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 0x471786
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 0x471758
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.00511339
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.00511339
mov esp, ebp
pop ebp
ret
Function at 0x4717b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x5a6008]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00425e70
test eax, eax
je 0x471808
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 0x471820
mov byte [esp + 0x13], 0
jmp 0x471913
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.0051736e
add esp, 0xc
lea eax, [esp + 0x78]
push str.__openhomepage
push 0x104
push eax
call fcn.005173c8
add esp, 0xc
lea eax, [esp + 0x30]
push 0x44
push 0
push eax
call fcn.00513330
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 0x4718d1
push dword [esp + 0x20]
push 0x408
jmp 0x4718d5
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 0x4718f0
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4718fb
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47190a
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 0x471922
push eax
call edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x471929
push esi
call edi
mov ecx, dword [esp + 0x28c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret