Function at 0x414096
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x20]
lea ecx, [edx - 0x4036]
push edi
lea edi, [ebx - 0x3a86]
xor esi, 0x8c8
lea ebp, [edi + 0x3a42]
xor edx, 0x763d
cmp esi, ebp
jge 0x41432f
mov ecx, dword [esp + 0x2c]
lea eax, [edx + 0x492]
xor ecx, 0xfa3
cmp ecx, eax
je 0x4142d7
cmp esi, ebx
mov esi, dword [esp + 0x18]
jg 0x41412c
cmp dword [esi + 0x98], 0x1083c
jb 0x414104
xor dword [esi + 0x80], 0x83951
jmp 0x414119
mov eax, dword [esi + 0x78]
xor eax, dword [esi + 0xc4]
xor eax, dword [0x52a9c0]
mov dword [esi + 0xc4], eax
mov eax, dword [0x517e7c]
mov eax, dword [eax + 0x48]
sub eax, 0x40ad61b4
xor dword [0x52aa20], eax
mov eax, dword [esp + 0x1c]
push ebp
add eax, 0xfffffd63
push eax
lea eax, [edx + 0x745]
xor edx, 0xd6d
push eax
push edx
push esi
call fcn.00413d20
add esp, 0x14
xor ebp, ebp
mov edx, dword [0x517e7c]
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 0xdc]
xor eax, 0xfb6cf
sub dword [0x52aaac], eax
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax + ebp]
add ebp, 4
mov eax, dword [esi + 0x7c]
xor eax, dword [esi + 0xe8]
sub eax, 0x13e42d
add dword [edx + 0x120], eax
mov eax, dword [0x517e7c]
mov ebx, dword [eax + 0x80]
mov eax, dword [0x52aab0]
dec eax
imul ebx, ecx
add eax, dword [esi + 0x90]
mov dword [0x52aab0], eax
mov ecx, dword [esi + 0xb8]
mov eax, dword [0x52aa24]
mov edx, ebx
shr edx, 0x10
mov byte [eax + ecx], dl
mov ecx, ebx
mov edx, dword [0x52aa24]
inc edx
shr ecx, 8
mov dword [0x52aa24], edx
mov eax, dword [esi + 0xb8]
mov byte [edx + eax], cl
mov edx, 0xb2d12
inc dword [0x52aa24]
mov ecx, dword [0x517e7c]
mov eax, dword [esi + 0xc4]
add dword [0x52aa88], eax
mov eax, dword [ecx + 0x108]
add eax, dword [0x52a9c0]
xor eax, 0x8e8bf
or dword [ecx + 0x1c], eax
mov eax, dword [esi + 0xe8]
sub eax, edx
or dword [0x52aa08], eax
mov eax, dword [esi + 0x20]
add eax, dword [0x52aaac]
sub dword [esi + 0xac], eax
mov eax, dword [0x52aa24]
mov ecx, dword [esi + 0xb8]
mov byte [eax + ecx], bl
inc dword [0x52aa24]
mov eax, dword [0x517e7c]
mov eax, dword [eax + 0x44]
sub eax, 0x13ffca
xor dword [esi + 0x110], eax
mov eax, dword [0x517e7c]
mov ecx, dword [eax + 0x68]
mov eax, 0xffe85340
xor ecx, dword [esi + 0x7c]
sub eax, ecx
add dword [esi + 0xe8], eax
mov ecx, dword [0x517e7c]
mov eax, dword [esi + 0x90]
sub eax, dword [ecx + 0xe8]
add eax, edx
imul eax, dword [ecx + 0x7c]
mov dword [ecx + 0x7c], eax
cmp ebp, 0xeff0
jl 0x414150
mov edx, dword [0x517e7c]
mov eax, dword [edx + 0x1c]
cmp eax, dword [esi + 0x10c]
ja 0x4142bc
mov eax, dword [edx + 0x114]
sub eax, dword [esi + 0x5c]
add eax, 0x1bf2a
imul eax, dword [esi + 0x108]
mov dword [esi + 0x108], eax
jmp 0x41435a
mov eax, dword [0x52a9bc]
add eax, 0x5f02a38e
add eax, dword [edx + 0x90]
mov dword [edx + 0x80], eax
jmp 0x41435a
mov eax, dword [0x52aa80]
mov edx, dword [esp + 0x18]
add eax, 0xffffc49a
mov ecx, dword [0x517e7c]
push eax
lea eax, [esi + 0x3ded]
push eax
mov eax, dword [ecx + 0x10]
xor eax, dword [edx + 0x118]
xor eax, edi
push edx
push eax
mov eax, dword [edx + 8]
sub eax, 0x3d35
or eax, 0x3ded
push eax
mov eax, dword [ecx + 0x48]
or eax, dword [edx + 0x48]
or eax, 0x3a42
push eax
imul eax, dword [edx + 0xe0], 0x3ea1
push eax
call fcn.0040497c
add esp, 0x1c
jmp 0x41435a
mov eax, edi
xor eax, 0x3a42
cmp ecx, eax
jge 0x41435a
lea eax, [ecx - 0x3ab3]
mov ecx, dword [0x52a9c4]
push eax
xor ecx, 0x40c9
push ecx
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edi, 0x3a86
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret