Function at 0x412294
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], 0x885
xor eax, 0x144e
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x5d2]
xor ebp, 0x206d
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
xor ebp, ebp
mov dword [edi + 0xb4], 0x4e56b8
mov eax, dword [0x566634]
mov ecx, 0xb2d12
sub ecx, dword [eax + 0xe8]
sub ecx, dword [0x572678]
add dword [edi + 0x78], ecx
mov ecx, dword [0x566634]
mov eax, dword [ecx + 0x118]
sub eax, 0x160c63
imul eax, dword [ecx + 0x48]
mov dword [ecx + 0x48], eax
mov ecx, dword [0x566634]
mov eax, dword [ecx + 0xb4]
mov esi, dword [eax + ebp]
add ebp, 4
mov eax, dword [edi + 0xfc]
sub dword [ecx + 0xe0], eax
mov eax, 0x10fd33
sub eax, dword [edi + 0x5c]
add dword [edi + 0xdc], eax
mov edx, dword [0x566634]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x114]
add ecx, 0xfff048dd
add eax, ecx
xor dword [edx + 8], eax
mov eax, dword [0x566634]
mov eax, dword [eax + 0x7c]
xor eax, dword [0x572740]
sub eax, 0x13e42d
or dword [0x572764], eax
mov ebx, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov eax, dword [edi + 0xb8]
imul ebx, esi
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [edi + 0x84]
mov eax, dword [0x566634]
shr edx, 8
mov ecx, dword [eax + 0xb8]
mov eax, dword [0x5726dc]
mov byte [eax + ecx], dl
xor eax, eax
inc dword [0x5726dc]
inc eax
sub eax, dword [edi + 0xd8]
mov ecx, dword [0x566634]
add dword [ecx + 0x34], eax
mov eax, dword [0x57269c]
add eax, 0xffec0036
add dword [edi + 0x110], eax
mov eax, dword [0x566634]
mov ecx, dword [eax + 0x114]
sub ecx, dword [eax + 0xe0]
mov eax, dword [edi + 0x10c]
sub ecx, 0x1d
add dword [edi + 0xfc], ecx
sub dword [edi + 0xf4], eax
mov eax, dword [edi + 0xac]
sub eax, 0x47
imul eax, dword [0x572734]
mov dword [0x572734], eax
mov eax, dword [0x566634]
mov ecx, dword [eax + 0xb8]
mov eax, dword [edi + 0x84]
mov byte [ecx + eax], bl
inc dword [edi + 0x84]
cmp ebp, 0x3240
jl 0x4122d7
mov ebp, dword [esp + 0x20]
mov ebx, 0x206d
mov eax, ebp
xor eax, ebx
cmp ebp, eax
je 0x41258c
mov esi, dword [esp + 0x14]
mov eax, ebp
xor eax, 0x1eac
cmp esi, eax
je 0x412482
mov eax, dword [0x5726d0]
sub eax, dword [edi + 0x118]
mov edx, dword [0x566634]
add eax, 0x161598
mov dword [0x5726d8], eax
mov eax, dword [0x57271c]
add eax, 0xf82a4
add eax, dword [0x5726c0]
add dword [edx + 0x80], eax
jmp 0x4124f2
imul eax, dword [edi + 0x7c], 0x11d6
and eax, dword [0x572764]
push eax
mov eax, dword [0x572768]
xor eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edx, dword [0x566634]
mov eax, dword [edi + 0x38]
sub eax, dword [edx + 0x3c]
imul eax, eax, 0x1110
push eax
mov eax, dword [edx + 0x70]
imul eax, dword [edi + 0x78]
xor eax, ebp
push eax
mov eax, dword [0x5726f4]
add eax, 0xffffdf0f
add eax, dword [edi + 0xf8]
push eax
mov eax, ebp
and eax, 0x1110
or eax, dword [edx + 0x38]
push eax
mov eax, dword [edi + 0xa0]
add eax, 0x1a9b
xor eax, dword [edi + 0xe8]
push edx
push eax
call fcn.004128ba
add esp, 0x18
mov eax, dword [esp + 0x2c]
add eax, 0xfffffd4a
cmp ebp, eax
jge 0x41258c
mov ecx, dword [esp + 0x30]
mov eax, ebp
xor eax, ebx
cmp ecx, eax
je 0x412534
cmp dword [edi + 0x108], 0x3c85
mov esi, dword [esp + 0x10]
je 0x41252b
xor dword [edi + 0x80], 0x83951
jmp 0x412590
add dword [edi + 0x70], 0x320a
jmp 0x412590
mov eax, dword [edi + 0x114]
xor eax, ecx
mov ecx, dword [0x566634]
push eax
push ecx
mov eax, dword [ecx + 0x14]
xor eax, esi
mov esi, dword [esp + 0x18]
or eax, ebp
push eax
mov eax, dword [ecx + 0x38]
and eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0xe0]
sub eax, dword [0x57266c]
imul eax, eax, 0x105c
push eax
mov eax, dword [0x57275c]
sub eax, dword [0x572750]
push eax
mov eax, dword [edi + 0x70]
or eax, esi
and eax, dword [0x5726d0]
push eax
call fcn.004052c2
add esp, 0x1c
jmp 0x412590
mov esi, dword [esp + 0x10]
pop edi
lea eax, [esi + 0x656]
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret