Function at 0x410120
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Link many functions at runtime
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ed78
push 0x40a43e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x108], eax
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x134], 0x12345678
xor ebx, ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0x118], ebx
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xac], 0x94
cmp dword [0x428d94], ebx
jne 0x4101cd
push 0x427558
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x428d94], eax
cmp eax, ebx
jne 0x4101c6
mov eax, 0x45a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa8], 6
jb 0x41030b
cmp dword [0x428d90], ebx
jne 0x41030b
cmp word [0x428d9c], bx
jne 0x41022a
push 0x208
push 0x428d9c
call fcn.00410ec0
cmp word [0x428d9c], bx
jne 0x41022a
mov eax, 2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4e20
mov ecx, dword [0x428d94]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x410254
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x20100000
push 3
push ebx
push 7
push 0xc0000000
push 0x428d9c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0xffffffff
jne 0x4102ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x428d94]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4102a7
push 0xa
call ebx
inc esi
cmp esi, 0xa
jl 0x41028c
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x118], 1
cmp esi, 0xffffffff
jne 0x4103e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x428d94]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4102f8
push 0xa
call ebx
inc esi
cmp esi, 0xa
jl 0x4102dd
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4e20
mov eax, dword [0x428d94]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x410334
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x428d90], ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
je 0x410353
push 0x4275ac
jmp 0x410358
push 0x427584
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
call ebx
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0xffffffff
jne 0x4103e3
mov dword [ebp - 4], 0
mov eax, dword [0x428fa8]
test eax, eax
je 0x41038a
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [ebp - 0xc8], eax
mov eax, dword [0x428d90]
test eax, eax
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
je 0x4103ac
push 0x4275ac
jmp 0x4103b1
push 0x427584
call ebx
mov esi, eax
mov dword [ebp - 0x12c], esi
mov dword [ebp - 4], 0xffffffff
call fcn.004103d2
jmp 0x4102c4
push 0x4276d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x410439
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x428d94]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x410426
push 0xa
call ebx
inc esi
cmp esi, 0xa
jl 0x41040b
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4276c8
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0xd4], eax
push 0x4276b4
push ebx
call esi
mov dword [ebp - 0xec], eax
push 0x4276a0
push ebx
call esi
mov dword [ebp - 0x138], eax
push 0x42768c
push ebx
call esi
mov dword [ebp - 0x150], eax
push 0x42767c
push ebx
call esi
mov dword [ebp - 0xb0], eax
push 0x42766c
push ebx
call esi
mov dword [ebp - 0xe0], eax
push 0x427654
push ebx
call esi
mov dword [ebp - 0x14c], eax
push 0x42763c
push ebx
call esi
mov dword [ebp - 0xe8], eax
push 0x42762c
push ebx
call esi
mov dword [ebp - 0xc0], eax
push 0x427620
push ebx
call esi
mov dword [ebp - 0x128], eax
push 0x427618
push ebx
call esi
mov dword [ebp - 0x124], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc4], eax
push 0
push 0x20
push 1
push 0x64
push 0x64
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov esi, eax
mov dword [ebp - 0x13c], esi
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x10c], eax
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xd0], eax
push 0x40
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xdc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xbc], eax
push 0x100
push 0x40
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call esi
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x11c], 0x4275e0
push 0x4275e0
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
mov word [ebp - 0x120], ax
mov eax, dword [ebp - 0x120]
add eax, 2
mov word [ebp - 0x11e], ax
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x104], 0x18
mov dword [ebp - 0xf8], 0x40
lea ecx, [ebp - 0x120]
mov dword [ebp - 0xfc], ecx
lea edx, [ebp - 0x104]
push edx
push 0x20000
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0x128]
push 0xe1
push 0x40
call esi
mov edi, eax
test edi, edi
jne 0x41066b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov esi, dword [ebp - 0x10c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x428d94]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x410658
push 0xa
call ebx
inc esi
cmp esi, 0xa
jl 0x41063e
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0x68636766
mov dword [edi + 4], 0x81
mov dword [edi + 0x1c], 0x82014
xor esi, esi
call fcn.0040f9c0
and eax, 0x800000ff
jns 0x410694
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + esi + 0x60], al
inc esi
cmp esi, 0x20
jl 0x410681
call fcn.0040f9b0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], edx
mov dword [ebp - 0x144], 0
mov ecx, dword [ebp - 0x118]
push ecx
lea edx, [ebp - 0x144]
push edx
push 0x81
push edi
push 0x81
push edi
push 0x82014
mov esi, dword [ebp - 0x12c]
push esi
call fcn.00412970
test eax, eax
jne 0x4106ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4106ed
mov eax, dword [edi + 8]
test eax, eax
jne 0x410b20
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x41073b
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x140]
push eax
push 2
push 1
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x41073b
push eax
push eax
push eax
push eax
push eax
push eax
push 1
lea edx, [ebp - 0x140]
push edx
call dword [ebp - 0xd4]
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x410782
push 0
push 0
push 0
push 0
push 2
lea eax, [ebp - 0x140]
push eax
push 2
push 2
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x410782
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 2
lea edx, [ebp - 0x140]
push edx
call dword [ebp - 0xec]
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x4107ca
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
push 1
push 3
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x4107ca
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp - 0x140]
push edx
call dword [ebp - 0x138]
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x41080a
push 0
push 0
push 0
push 0
push 3
mov eax, dword [ebp - 0xbc]
push eax
push 2
push 4
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x41080a
push 3
mov edx, dword [ebp - 0xbc]
push edx
call dword [ebp - 0x150]
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x41084e
push 0
push 0
push 0
push 0
push 7
mov eax, dword [ebp - 0xbc]
push eax
push 2
push 0xd
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x41084e
push eax
push eax
push eax
push eax
push 7
mov edx, dword [ebp - 0xbc]
push edx
call dword [ebp - 0x14c]
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x410891
push 0
push 0
push 0
push 0
push 8
mov eax, dword [ebp - 0xbc]
push eax
push 2
push 0xe
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x410891
push eax
push eax
push eax
push 8
mov edx, dword [ebp - 0xbc]
push edx
call dword [ebp - 0xe8]
push 0
push 0
push 0
push 0
push 0
push 0xc
push 1
push 5
push edi
mov eax, dword [ebp - 0x118]
push eax
push esi
call fcn.0040fec0
test eax, eax
jne 0x4108bb
push 0xc
call dword [sym.imp.USER32.dll_GetClipboardData]
push 0
push 0
push 0
push 0
push 0
push 0x12312345
push 1
push 6
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x4108f2
mov edx, dword [ebp - 0xdc]
push edx
push 0x12312345
call dword [sym.imp.USER32.dll_SetClipboardData]
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x108]
push eax
push 1
push 7
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x410926
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xe4]
push eax
push 1
push 8
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x41095a
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.USER32.dll_WindowFromDC]
mov eax, dword [ebp - 0xc4]
push eax
push 0x78
push 0x64
push 0
push 0x12345687
mov ecx, dword [ebp - 0x10c]
push ecx
push 6
push 9
push edi
mov edx, dword [ebp - 0x118]
push edx
push esi
call fcn.0040fec0
test eax, eax
jne 0x4109af
push 0xcc0020
push eax
push eax
mov eax, dword [ebp - 0xc4]
push eax
push 0x78
push 0x64
push 0
push 0x12345687
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x108]
push edx
push 1
push 0xa
push edi
mov eax, dword [ebp - 0x118]
push eax
push esi
call fcn.0040fec0
test eax, eax
jne 0x4109ea
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x410a2a
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
push 2
push 0xb
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x410a2a
push eax
push eax
lea edx, [ebp - 0x140]
push edx
call dword [ebp - 0xb0]
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x410a6e
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
push 2
push 0xc
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.0040fec0
test eax, eax
jne 0x410a6e
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp - 0x140]
push edx
call dword [ebp - 0xe0]
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x410ac3
push 0
push 0
push 0
push 0x888
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push 3
push 0xf
push edi
mov edx, dword [ebp - 0x118]
push edx
push esi
call fcn.0040fec0
test eax, eax
jne 0x410ac3
push eax
push eax
push eax
push 0x888
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [ebp - 0xc0]
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x1c], 0x82018
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x144]
push eax
push 0x81
push edi
push 0x81
push edi
push 0x82018
push esi
call fcn.00412970
test eax, eax
jne 0x410b01
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 1
push edi
mov ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.00410010
mov dword [ebp - 0xcc], eax
jmp 0x410b2a
mov dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x134]
cmp eax, 0x12345678
je 0x410b3e
push eax
call dword [ebp - 0x124]
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc4]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x428d94]
push eax
call ebx
test eax, eax
jne 0x410bce
push 0xa
call edi
inc esi
cmp esi, 0xa
jl 0x410bb8
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret