Function at 0x41d680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
lea esi, [ebp + 8]
mov ecx, 8
mov edi, 0x428bfc
mov dword [esp + 0x1c], esi
rep movsd dword es:[edi], dword [esi]
and eax, 0xff
lea ecx, [ebp + 0x28]
push eax
push ecx
call fcn.0041d5a0
add esp, 8
xor bl, bl
mov byte [esp + 0x18], bl
mov edi, 1
jmp 0x41d6c5
mov ebp, dword [esp + 0x24]
lea edx, [edi - 1]
lea ecx, [edi + 3]
and edx, 0xf
and ecx, 0xf
cmp bl, 0xb
lea eax, [ebp + edx*4 + 0x28]
lea ebp, [ebp + ecx*4 + 0x28]
mov dword [esp + 0x14], eax
jbe 0x41d73f
mov esi, dword [esp + 0x24]
mov edx, edi
and edx, 0xf
push 0xf
lea eax, [esi + edx*4 + 0x28]
push eax
call fcn.0041d5e0
lea ecx, [edi - 6]
push 7
and ecx, 0xf
mov edx, dword [esi + ecx*4 + 0x28]
xor eax, edx
mov edx, dword [ebp]
xor edx, eax
mov dword [ebp], edx
lea edx, [edi + 6]
and edx, 0xf
lea eax, [esi + edx*4 + 0x28]
push eax
call fcn.0041d5e0
push 0x17
push 0xf
push ebp
mov esi, eax
call fcn.0041d610
mov edx, dword [esp + 0x40]
lea ecx, [edi - 3]
and ecx, 0xf
xor esi, eax
add esp, 0x1c
xor esi, dword [edx + ecx*4 + 0x28]
mov dword [ebp], esi
cmp bl, 0x10
jae 0x41d78a
mov eax, dword [esp + 0x18]
push eax
push 0x423fd8
call fcn.0041d5e0
mov esi, dword [0x428c04]
mov ecx, dword [0x428c00]
mov edx, dword [0x428c10]
mov dword [esp + 0x30], eax
mov eax, dword [0x428bfc]
xor esi, ecx
mov ecx, dword [0x428c14]
xor esi, eax
mov eax, dword [0x428c0c]
xor ecx, edx
add esp, 8
xor ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x41d7e1
cmp bl, 0x20
lea eax, [edi - 1]
jb 0x41d795
lea eax, [edi - 0x21]
push eax
push 0x423fdc
call fcn.0041d5e0
mov ecx, dword [0x428bfc]
mov edx, dword [0x428c04]
mov dword [esp + 0x30], eax
mov eax, dword [0x428c00]
mov esi, eax
and eax, ecx
or esi, ecx
mov ecx, dword [0x428c14]
and esi, edx
add esp, 8
or esi, eax
mov eax, dword [0x428c0c]
mov edx, eax
not edx
and edx, ecx
mov ecx, dword [0x428c10]
and ecx, eax
or edx, ecx
mov dword [esp + 0x10], edx
push 0xc
push 0x428bfc
call fcn.0041d5e0
mov ecx, dword [0x428c0c]
mov edx, dword [esp + 0x30]
add eax, ecx
push 7
add edx, eax
mov dword [esp + 0x34], edx
lea edx, [esp + 0x34]
push edx
call fcn.0041d5e0
mov ecx, dword [esp + 0x24]
push 0xc
push 0x428bfc
mov dword [esp + 0x40], eax
mov edx, dword [ecx]
mov ecx, dword [0x428c18]
add edx, ecx
mov ecx, dword [esp + 0x28]
add edx, eax
add ecx, edx
mov dword [esp + 0x28], ecx
call fcn.0041d5e0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
xor ecx, eax
mov eax, dword [ebp]
mov ebp, dword [edx]
push 0x13
xor eax, ebp
mov ebp, dword [0x428c08]
add eax, ebp
push 0x428c10
add eax, ecx
mov ecx, dword [0x428c14]
add esi, eax
mov eax, dword [0x428bfc]
mov dword [esp + 0x48], eax
mov dword [0x428bfc], esi
mov dword [0x428c18], ecx
call fcn.0041d5e0
mov edx, dword [0x428c0c]
mov dword [0x428c14], eax
push 0x11
lea eax, [esp + 0x34]
push 9
push eax
mov dword [0x428c10], edx
call fcn.0041d610
mov ecx, dword [0x428c04]
push 9
push 0x428c00
mov dword [0x428c0c], eax
mov dword [0x428c08], ecx
call fcn.0041d5e0
mov edx, dword [esp + 0x5c]
add esp, 0x34
inc bl
inc edi
cmp bl, 0x40
mov dword [0x428c04], eax
mov dword [0x428c00], edx
mov byte [esp + 0x18], bl
jb 0x41d6c1
mov eax, dword [esp + 0x1c]
mov ecx, 0x428bfc
mov edx, 8
mov esi, dword [ecx]
mov ebp, dword [eax]
xor ebp, esi
add ecx, 4
mov dword [eax], ebp
add eax, 4
dec edx
jne 0x41d8e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret