Function at 0x409b10
Capabilities:
Create thread
Encode data using xor
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505e8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x7c], ecx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x53], 0x9fad9ca9
mov dword [ebp - 0x4f], 0x8d84809b
mov dword [ebp - 0x4b], 0xbd94848e
mov dword [ebp - 0x47], 0x95909e91
mov word [ebp - 0x43], 0x83
mov byte [ebp - 0x41], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x11
jb 0x409b68
mov byte [ebp - 0x41], 0
xor ecx, ecx
mov dword [ebp - 0x1f], 0x868d9c89
mov dword [ebp - 0x1b], 0x8289c287
mov word [ebp - 0x17], 0x83
mov byte [ebp - 0x15], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 9
jb 0x409b93
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x1f]
push eax
mov byte [ebp - 0x15], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x53]
push ecx
push eax
call edi
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov dword [ebp - 0x39], 0x9fb89ca9
mov dword [ebp - 0x35], 0xa1949e8e
mov dword [ebp - 0x31], 0x91949a8d
mov word [ebp - 0x2d], 0x87
mov byte [ebp - 0x2b], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x39], al
inc ecx
cmp ecx, 0xd
jb 0x409be1
mov byte [ebp - 0x2b], 0
xor ecx, ecx
mov dword [ebp - 0x2a], 0x868d9c89
mov dword [ebp - 0x26], 0x8289c287
mov word [ebp - 0x22], 0x83
mov byte [ebp - 0x20], 1
lea esp, [esp]
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x2a], al
inc ecx
cmp ecx, 9
jb 0x409c10
lea eax, [ebp - 0x2a]
mov byte [ebp - 0x20], 0
push eax
call esi
lea ecx, [ebp - 0x39]
push ecx
push eax
call edi
push dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x70], eax
test eax, eax
je 0x409ec3
cmp dword [ebx], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x84], 0
jbe 0x409ec0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 8
mov dword [ebp - 0x88], esi
mov ecx, 7
mov dword [ebp - 0x10], 0
lea edi, [ebp - 0xbc]
mov dword [ebp - 0x40], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0xb8], ecx
jne 0x409e99
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0xb4]
push dword [ebp - 0x70]
call dword [ebp - 0x80]
test eax, eax
js 0x409e96
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
mov eax, dword [ebp - 0x40]
jns 0x409ce7
test eax, eax
je 0x409e91
push eax
call fcn.004ee4ec
add esp, 4
mov edi, eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push edi
push 2
push dword [ebp - 0x10]
call esi
test eax, eax
js 0x409e91
cmp word [edi], 0
jbe 0x409e96
push str.File
push dword [edi + 4]
call fcn.004e0cfb
add esp, 8
test eax, eax
je 0x409e96
mov dword [ebp - 0x6a], 0xa59d8da0
xor ecx, ecx
mov dword [ebp - 0x66], 0x8d888689
mov dword [ebp - 0x62], 0x9f90be9b
mov dword [ebp - 0x5e], 0xa29bbd96
mov dword [ebp - 0x5a], 0x9b9c8a9f
mov word [ebp - 0x56], 0x9f
mov byte [ebp - 0x54], 1
lea ebx, [ebx]
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x6a], al
inc ecx
cmp ecx, 0x15
jb 0x409d60
lea eax, [ebp - 0x6a]
mov byte [ebp - 0x54], 0
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x78]
push 0
push 0
push eax
push 0x409990
push 0
push 0
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
push esi
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x409e6a
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x409e6a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], eax
test cx, cx
je 0x409e57
push 1
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
jbe 0x409e0b
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 0x9c]
call fcn.004e0f60
add esp, 8
test eax, eax
je 0x409e57
push edi
call fcn.004edd96
push dword [ebp - 0x74]
call fcn.004edd96
add esp, 8
push dword [ebp - 0x10]
call ebx
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0xb4]
push dword [ebp - 0x70]
call dword [ebp - 0x80]
test eax, eax
js 0x409e96
jmp 0x409e91
push edi
call fcn.004edd96
push dword [ebp - 0x74]
call fcn.004edd96
add esp, 8
jmp 0x409e91
push 0
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call fcn.004edd96
mov eax, dword [ebp - 0x74]
add esp, 4
test eax, eax
je 0x409e91
push eax
call fcn.004edd96
add esp, 4
push dword [ebp - 0x10]
call ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x88]
inc ecx
add esi, 0x1c
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], esi
cmp ecx, dword [eax]
jb 0x409c74
mov eax, dword [ebp - 0x70]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret