Function at 0x41d4f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
mov edi, eax
mov al, byte [0x4274dd]
test al, al
je 0x41d51d
mov cl, byte [0x4274de]
test cl, cl
mov byte [0x4274e0], 1
jne 0x41d524
mov byte [0x4274e0], 0
movsx eax, al
push eax
push 0xe69bffff
call fcn.0040c720
movsx cx, byte [0x4274da]
or edx, 0xffffffff
add esp, 8
mov byte [0x4274de], al
xor esi, esi
sub edx, ecx
mov word [0x4274fc], dx
xor eax, eax
mov byte [esp + eax + 0x1c], al
inc eax
cmp eax, 0x100
jb 0x41d552
movsx eax, word [0x427500]
push eax
push 0x317fffff
call fcn.0040c720
movsx edx, byte [0x4274d9]
movsx ecx, word [0x4274f0]
mov byte [0x4274de], al
mov al, byte [0x4274e0]
or ecx, edx
movsx edx, al
movsx ax, al
mov dword [0x427528], ecx
movsx ecx, byte [0x4274d8]
xor bl, bl
or ecx, edx
add esp, 8
dec eax
mov byte [esp + 0x13], 0
mov dword [0x427510], ecx
mov word [0x4274ec], ax
mov word [0x4274e8], si
mov byte [esp + 0x12], bl
movsx ecx, word [0x4274e4]
push 0xce2bffff
push ecx
call fcn.0040c7b0
movsx edx, word [0x427500]
push 0x20adffff
push edx
mov dword [0x427528], eax
call fcn.0040c760
mov dword [0x427520], eax
xor edx, edx
mov eax, esi
div ebp
mov cl, byte [esp + 0x22]
push 0xcb2dffff
push 0xed5ffff
mov al, byte [edx + edi]
add al, byte [esp + esi + 0x34]
mov dl, byte [0x4274db]
add cl, al
mov byte [esp + 0x2a], cl
mov cl, byte [0x4274f4]
sub cl, dl
mov byte [0x4274dc], cl
call fcn.0040c870
mov cl, byte [esp + esi + 0x34]
mov word [0x4274f0], ax
movzx eax, byte [esp + 0x2a]
mov dl, byte [esp + eax + 0x34]
lea eax, [esp + eax + 0x34]
mov byte [esp + esi + 0x34], dl
mov byte [eax], cl
movsx eax, word [0x4274ec]
movsx ecx, byte [0x4274dd]
push eax
push ecx
call fcn.0040c6e0
or dl, 0xff
mov byte [0x4274d8], al
sub dl, byte [0x4274f8]
add esp, 0x20
cmp word [0x4274f4], 0
mov byte [0x4274dc], 1
setne al
inc esi
cmp esi, 0x100
mov byte [0x4274d9], dl
mov byte [0x4274df], al
jb 0x41d5c2
mov ecx, dword [esp + 0x12c]
test ecx, ecx
jbe 0x41d7c5
mov ebp, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
sub eax, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov edi, edi
mov dl, byte [0x4274d8]
mov cl, byte [0x427510]
and cl, dl
movsx edx, word [0x4274e4]
push edx
push 0x1919ffff
mov byte [0x4274df], 0xff
mov byte [0x4274da], cl
call fcn.0040c7f0
mov cl, byte [esp + 0x1b]
inc cl
movzx esi, cl
mov byte [esp + 0x1b], cl
mov cl, byte [esp + esi + 0x24]
lea esi, [esp + esi + 0x24]
add bl, cl
movsx ecx, byte [0x4274df]
movsx edx, al
push ecx
push edx
mov byte [0x4274de], al
call fcn.0040c8a0
mov dx, word [0x4274e4]
movzx edi, bl
mov cl, byte [esp + edi + 0x2c]
lea edi, [esp + edi + 0x2c]
mov word [0x4274e8], ax
mov al, byte [esi]
mov byte [esi], cl
movsx ecx, word [0x4274fc]
mov byte [edi], al
mov eax, dword [0x427510]
push eax
dec dx
push ecx
mov word [0x427504], dx
call fcn.0040c8a0
mov cl, byte [edi]
mov dl, byte [esi]
add dl, cl
mov byte [0x4274df], al
movzx eax, dl
mov cl, byte [esp + eax + 0x34]
mov edx, dword [esp + 0x30]
mov byte [0x4274da], 0
xor cl, byte [edx + ebp]
mov byte [ebp], cl
mov eax, dword [0x427510]
push eax
push 0x7633ffff
call fcn.0040c720
movsx edx, byte [0x4274de]
mov cl, byte [0x4274e8]
dec cl
push 0x7973ffff
push edx
mov dword [0x427528], eax
mov byte [0x4274da], cl
call fcn.0040c8e0
mov word [0x427500], ax
mov eax, dword [esp + 0x3c]
add esp, 0x28
inc ebp
dec eax
mov dword [esp + 0x14], eax
jne 0x41d6c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0x10