Function at 0x429495
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4294c3
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4294ca
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x429696
push ebx
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x10c]
push eax
call fcn.004b1f9d
lea eax, [ebp - 0x10c]
push eax
call fcn.004af4f0
pop ecx
pop ecx
xor ecx, ecx
xor edx, edx
test eax, eax
jbe 0x429535
movzx ebx, byte [ebp + edx - 0x10c]
mov esi, ecx
shr esi, 9
xor esi, ecx
shr esi, 7
xor esi, ebx
shl ecx, 5
xor ecx, esi
inc edx
cmp edx, eax
jb 0x429517
mov eax, ecx
push 0x7f
xor edx, edx
pop ecx
div ecx
lea ebx, [edx*4 + 0x556840]
mov esi, dword [ebx]
mov dword [ebp - 4], edx
jmp 0x429563
lea eax, [ebp - 0x10c]
push eax
push dword [esi]
call fcn.004b15d0
test eax, eax
pop ecx
pop ecx
je 0x4295bb
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x42954c
push 0x10
push 1
push dword [ebp + 8]
call fcn.00418324
mov esi, eax
inc dword [esi + 8]
lea eax, [ebp - 0x10c]
push eax
mov dword [esi + 4], edi
call fcn.004af4f0
inc eax
push eax
push dword [ebp + 8]
call fcn.004182eb
lea ecx, [ebp - 0x10c]
push ecx
push eax
mov dword [esi], eax
call fcn.004af6d0
mov eax, dword [ebx]
mov dword [esi + 0xc], eax
add esp, 0x20
mov dword [ebx], esi
mov edi, dword [ebp + 0x20]
cmp edi, 1
jl 0x4295c7
lea eax, [edi + edi*2 - 3]
shl eax, 2
jmp 0x4295c9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc dword [esi + 8]
jmp 0x4295aa
xor eax, eax
add eax, 0x30
push eax
push 1
push dword [ebp + 8]
call fcn.00418324
add esp, 0xc
push dword [ebp + 0x10]
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 8], esi
mov dword [ebx + 4], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x20]
test eax, eax
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jle 0x429651
mov dword [ebp - 8], 0xffffffdc
sub dword [ebp - 8], ebx
lea ecx, [ebx + 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0x24]
add esi, dword [eax]
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ecx], 1
jne 0x429637
add dword [ebx + 0x20], 4
jmp 0x429649
mov eax, dword [ecx + 8]
add eax, 3
cdq
push 4
pop esi
idiv esi
shl eax, 2
add dword [ebx + 0x20], eax
add ecx, 0xc
dec dword [ebp - 4]
jne 0x42961c
mov esi, dword [ebp + 8]
push esi
call fcn.0049bea7
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
pop ecx
mov dword [edi + 4], 0x429245
mov dword [edi + 0x14], 0x428a86
jne 0x429675
mov eax, dword [ebp + 0x10]
push eax
push esi
call fcn.004287bf
shl eax, 4
add eax, dword [esi + 0x42c]
push ebx
push edi
push eax
push esi
call fcn.0049beee
add esp, 0x18
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
leave
ret