Function at 0x4085c4
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 8]
add eax, 0xffffd801
mov ecx, dword [esp + 0x14]
add edx, 0xffffd814
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
add ecx, 0xffffd122
mov dword [esp + 0x18], eax
lea esi, [ebp - 0x2ede]
mov eax, ebp
mov dword [esp + 0x24], edx
add edi, 0x44a
mov dword [esp + 0x1c], esi
xor eax, 0x921
mov dword [esp + 0x10], ecx
xor ebx, 0x657
cmp edi, eax
jle 0x408956
lea eax, [edx + 0x270a]
cmp edi, eax
jle 0x40882e
mov eax, dword [0x6abc5c]
sub edi, 0x27d
mov ebp, dword [esp + 0x20]
xor esi, 0x2849
mov dword [esp + 0x30], edi
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [eax + 0x40], 0x415bd8
mov edx, dword [0x6abc5c]
mov eax, dword [edx + 0x40]
mov ecx, dword [edi + eax]
add edi, 4
mov eax, dword [edx + 0xa8]
add eax, dword [ebp + 0x44]
xor eax, 0x1cd903
sub dword [edx + 0x8c], eax
mov eax, dword [0x7242d8]
add eax, 0xffe32706
imul eax, dword [0x724284]
mov dword [0x724284], eax
mov eax, dword [ebp + 0xc8]
mov ebx, dword [ebp + 0x2c]
sub eax, 0x64
add dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x6c]
xor eax, dword [0x7242a0]
add eax, 0x7c5eedfb
imul ebx, ecx
xor dword [ebp + 0xa4], eax
mov eax, dword [0x6abc5c]
mov edx, ebx
mov ecx, dword [eax + 0xa8]
mov eax, dword [ebp + 0x4c]
add ecx, 0xffe14239
add eax, ecx
shr edx, 0x10
add dword [ebp + 0x8c], eax
mov eax, 0x98834
sub eax, dword [ebp + 0x48]
add dword [0x7242f8], eax
mov esi, dword [0x6abc5c]
mov eax, dword [0x72430c]
add eax, 0xfff52fb5
mov ecx, dword [esi + 0xa0]
xor ecx, dword [ebp + 8]
add eax, ecx
mov dword [0x72430c], eax
mov ecx, dword [esi + 0x7c]
mov eax, dword [0x724264]
mov byte [eax + ecx], dl
mov ecx, ebx
mov edx, dword [0x724264]
inc edx
shr ecx, 8
mov dword [0x724264], edx
mov eax, dword [ebp + 0x7c]
mov byte [edx + eax], cl
mov ecx, dword [0x724264]
mov eax, dword [0x7242ac]
inc ecx
mov dword [0x724264], ecx
mov byte [eax + ecx], bl
inc dword [0x724264]
mov eax, dword [ebp + 8]
xor eax, 0xad04a
add dword [0x7242d4], eax
mov eax, dword [0x6abc5c]
mov edx, dword [ebp + 0x30]
mov ecx, dword [eax + 0x4c]
sub ecx, edx
sub ecx, 0x1e4ca
imul ecx, dword [ebp + 0x50]
mov dword [ebp + 0x50], ecx
mov eax, dword [0x6abc5c]
sub edx, dword [eax + 0xc8]
add edx, 0x64
imul edx, ecx
mov dword [ebp + 0x50], edx
mov edx, dword [0x6abc5c]
mov eax, dword [0x7242d8]
sub eax, dword [edx + 0xb0]
sub eax, 0xd09d5
xor dword [0x7242bc], eax
cmp edi, 0xe27f0
jl 0x40865b
mov edi, dword [esp + 0x30]
mov eax, edi
mov ebx, dword [esp + 0x10]
xor eax, 0x17
push eax
mov eax, dword [esp + 0x20]
xor edi, 0x6f5
add eax, 0x9fb
mov dword [ebp + 0x2c], 0x68426
mov ebp, dword [esp + 0x2c]
xor ebx, 0x2701
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x3244
push eax
push 0x724230
lea eax, [ebp + 0x487]
push edi
push eax
call fcn.0040934e
lea ecx, [eax + 0x295]
lea eax, [ebx + 0x5ee]
push eax
push dword [0x6abc5c]
lea eax, [ebp + 0x366]
push eax
mov eax, dword [esp + 0x3c]
xor eax, 0x3221
sub eax, 0x9d8
push eax
push ecx
lea eax, [ebx + 0x575]
push eax
call fcn.0040a89c
add esp, 0x30
jmp 0x408956
mov eax, esi
mov esi, dword [esp + 0x20]
imul eax, edi
imul eax, ebp
cmp dword [esi + 0xcc], eax
jbe 0x408897
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [0x6abc5c]
mov edi, dword [esp + 0x24]
mov edx, edi
mov ecx, dword [0x724294]
xor ecx, ebp
sub edx, dword [eax + 0x44]
lea eax, [ebp + 0x1cdd]
push eax
push esi
lea eax, [edi + ebx]
add edx, ebx
push eax
push ecx
push edx
call fcn.00409280
mov ecx, dword [0x6abc5c]
lea edx, [ebp - 0x2ede]
xor edx, 0x2c61
add esp, 0x14
mov ebx, eax
imul edx, dword [ecx + 0x84]
sub dword [esi + 0xa4], edx
mov eax, dword [esi + 0x48]
mov edi, dword [esp + 0x18]
sub eax, edi
mov ecx, dword [0x6abc5c]
imul eax, dword [esi + 0x6c]
mov edx, dword [ecx + 0x64]
mov dword [esp + 0x10], edx
cmp edx, eax
je 0x408956
mov eax, dword [ecx + 0x70]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, ebp
mov dword [esp + 0x24], ebx
sub eax, dword [esi + 0xa4]
imul eax, dword [esp + 0x30]
cmp ebx, eax
jbe 0x40893a
mov edi, dword [esp + 0x1c]
mov eax, dword [ecx + 0x50]
add eax, 0x2cef
imul eax, eax, 0x3221
or dword [esi + 0xb0], eax
mov eax, dword [esi + 0xa4]
sub eax, ebx
imul eax, dword [0x7242f4]
push eax
mov eax, dword [0x72427c]
or eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, dword [0x6abc5c]
mov eax, ebp
sub eax, dword [esi + 0xa4]
add dword [esp + 0x24], 3
mov edx, dword [ecx + 0x70]
imul eax, edx
mov dword [esp + 0x30], edx
cmp dword [esp + 0x24], eax
ja 0x4088dd
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x48]
add edx, 3
sub eax, edi
mov dword [esp + 0x10], edx
imul eax, dword [esi + 0x6c]
cmp edx, eax
jne 0x4088c4
mov ebp, dword [esp + 0x28]
pop edi
pop esi
lea eax, [ebp - 0x2df]
pop ebp
pop ebx
pop ecx
ret