Function at 0x10041950
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x304
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
xor ecx, ecx
mov eax, 1
push esi
lea ecx, [ecx]
mov edx, eax
and dl, 0x80
movsx edx, dl
mov byte [esp + ecx + 0x108], al
mov byte [esp + ecx + 0x207], al
mov byte [esp + eax + 8], cl
inc ecx
neg edx
sbb edx, edx
and edx, 0x11b
lea esi, [eax + eax]
xor edx, esi
xor eax, edx
cmp eax, 1
jne 0x10041970
xor ecx, ecx
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x100e7798], al
and edx, 0x11b
add eax, eax
inc ecx
xor eax, edx
cmp ecx, 0x1e
jb 0x100419a3
xor eax, eax
test al, al
je 0x100419e1
movzx ecx, al
movzx edx, byte [esp + ecx + 8]
lea ecx, [esp + 0x207]
sub ecx, edx
movzx edx, byte [ecx]
jmp 0x100419e3
xor edx, edx
lea ecx, [edx + edx]
xor ecx, edx
add ecx, ecx
xor ecx, edx
add ecx, ecx
xor ecx, edx
add ecx, ecx
xor edx, ecx
mov ecx, edx
sar ecx, 8
xor cl, dl
xor cl, 0x63
mov byte [eax + 0x100e78b8], cl
mov byte [eax*4 + 0x100e6799], cl
mov byte [eax*4 + 0x100e6798], cl
mov byte [eax*4 + 0x100e6b9b], cl
mov byte [eax*4 + 0x100e6b98], cl
mov byte [eax*4 + 0x100e6f9b], cl
mov byte [eax*4 + 0x100e6f9a], cl
mov byte [eax*4 + 0x100e739a], cl
mov byte [eax*4 + 0x100e7399], cl
je 0x10041a50
movzx edx, cl
movzx edx, byte [esp + edx + 8]
movzx edx, byte [esp + edx + 0x121]
jmp 0x10041a52
xor edx, edx
mov byte [eax*4 + 0x100e679b], dl
mov byte [eax*4 + 0x100e6b9a], dl
mov byte [eax*4 + 0x100e6f99], dl
mov byte [eax*4 + 0x100e7398], dl
test cl, cl
je 0x10041a84
movzx ecx, cl
movzx edx, byte [esp + ecx + 8]
movzx ecx, byte [esp + edx + 0x109]
jmp 0x10041a86
xor ecx, ecx
mov byte [eax*4 + 0x100e679a], cl
mov byte [eax*4 + 0x100e6b99], cl
mov byte [eax*4 + 0x100e6f98], cl
mov byte [eax*4 + 0x100e739b], cl
movzx esi, al
lea ecx, [esi*8]
xor ecx, esi
add ecx, ecx
add ecx, ecx
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
xor dl, cl
xor dl, 5
je 0x10041af5
lea ecx, [esi*8]
xor ecx, esi
add ecx, ecx
add ecx, ecx
xor ecx, esi
add ecx, ecx
mov edx, ecx
sar edx, 8
movzx edx, dl
movzx ecx, cl
xor edx, ecx
xor edx, 5
movzx edx, byte [esp + edx + 8]
lea ecx, [esp + 0x207]
sub ecx, edx
mov bl, byte [ecx]
jmp 0x10041af7
xor bl, bl
mov byte [eax + 0x100e77b8], bl
test bl, bl
je 0x10041b13
movzx edx, bl
movzx ecx, byte [esp + edx + 8]
movzx edx, byte [esp + ecx + 0x170]
jmp 0x10041b15
xor edx, edx
movzx ecx, bl
mov byte [eax*4 + 0x100e579a], dl
mov byte [eax*4 + 0x100e5b99], dl
mov byte [eax*4 + 0x100e5f98], dl
mov byte [eax*4 + 0x100e639b], dl
mov byte [ecx*4 + 0x100e479a], dl
mov byte [ecx*4 + 0x100e4b99], dl
mov byte [ecx*4 + 0x100e4f98], dl
mov byte [ecx*4 + 0x100e539b], dl
test bl, bl
je 0x10041b63
movzx edx, byte [esp + ecx + 8]
movzx edx, byte [esp + edx + 0x1cf]
jmp 0x10041b65
xor edx, edx
mov byte [eax*4 + 0x100e5798], dl
mov byte [eax*4 + 0x100e5b9b], dl
mov byte [eax*4 + 0x100e5f9a], dl
mov byte [eax*4 + 0x100e6399], dl
mov byte [ecx*4 + 0x100e4798], dl
mov byte [ecx*4 + 0x100e4b9b], dl
mov byte [ecx*4 + 0x100e4f9a], dl
mov byte [ecx*4 + 0x100e5399], dl
test bl, bl
je 0x10041bb0
movzx edx, byte [esp + ecx + 8]
movzx edx, byte [esp + edx + 0x1f6]
jmp 0x10041bb2
xor edx, edx
mov byte [eax*4 + 0x100e5799], dl
mov byte [eax*4 + 0x100e5b98], dl
mov byte [eax*4 + 0x100e5f9b], dl
mov byte [eax*4 + 0x100e639a], dl
mov byte [ecx*4 + 0x100e4799], dl
mov byte [ecx*4 + 0x100e4b98], dl
mov byte [ecx*4 + 0x100e4f9b], dl
mov byte [ecx*4 + 0x100e539a], dl
test bl, bl
je 0x10041bfd
movzx edx, byte [esp + ecx + 8]
movzx edx, byte [esp + edx + 0x1e7]
jmp 0x10041bff
xor edx, edx
mov byte [eax*4 + 0x100e579b], dl
mov byte [eax*4 + 0x100e5b9a], dl
mov byte [eax*4 + 0x100e5f99], dl
mov byte [eax*4 + 0x100e6398], dl
inc eax
cmp eax, 0x100
mov byte [ecx*4 + 0x100e479b], dl
mov byte [ecx*4 + 0x100e4b9a], dl
mov byte [ecx*4 + 0x100e4f99], dl
mov byte [ecx*4 + 0x100e5398], dl
jl 0x100419c7
mov ecx, dword [esp + 0x308]
pop esi
pop ebx
xor ecx, esp
call fcn.10062448
add esp, 0x304
ret