Function at 0x10041600
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x304
mov eax, dword [0x100d1040]
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 0x10041620
xor ecx, ecx
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov byte [ecx + 0x100da550], al
and edx, 0x11b
add eax, eax
inc ecx
xor eax, edx
cmp ecx, 0x1e
jb 0x10041653
xor eax, eax
test al, al
je 0x10041691
movzx ecx, al
movzx edx, byte [esp + ecx + 8]
lea ecx, [esp + 0x207]
sub ecx, edx
movzx edx, byte [ecx]
jmp 0x10041693
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 + 0x100da670], cl
mov byte [eax*4 + 0x100d9551], cl
mov byte [eax*4 + 0x100d9550], cl
mov byte [eax*4 + 0x100d9953], cl
mov byte [eax*4 + 0x100d9950], cl
mov byte [eax*4 + 0x100d9d53], cl
mov byte [eax*4 + 0x100d9d52], cl
mov byte [eax*4 + 0x100da152], cl
mov byte [eax*4 + 0x100da151], cl
je 0x10041700
movzx edx, cl
movzx edx, byte [esp + edx + 8]
movzx edx, byte [esp + edx + 0x121]
jmp 0x10041702
xor edx, edx
mov byte [eax*4 + 0x100d9553], dl
mov byte [eax*4 + 0x100d9952], dl
mov byte [eax*4 + 0x100d9d51], dl
mov byte [eax*4 + 0x100da150], dl
test cl, cl
je 0x10041734
movzx ecx, cl
movzx edx, byte [esp + ecx + 8]
movzx ecx, byte [esp + edx + 0x109]
jmp 0x10041736
xor ecx, ecx
mov byte [eax*4 + 0x100d9552], cl
mov byte [eax*4 + 0x100d9951], cl
mov byte [eax*4 + 0x100d9d50], cl
mov byte [eax*4 + 0x100da153], 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 0x100417a5
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 0x100417a7
xor bl, bl
mov byte [eax + 0x100da570], bl
test bl, bl
je 0x100417c3
movzx edx, bl
movzx ecx, byte [esp + edx + 8]
movzx edx, byte [esp + ecx + 0x170]
jmp 0x100417c5
xor edx, edx
movzx ecx, bl
mov byte [eax*4 + 0x100d8552], dl
mov byte [eax*4 + 0x100d8951], dl
mov byte [eax*4 + 0x100d8d50], dl
mov byte [eax*4 + 0x100d9153], dl
mov byte [ecx*4 + 0x100d7552], dl
mov byte [ecx*4 + 0x100d7951], dl
mov byte [ecx*4 + 0x100d7d50], dl
mov byte [ecx*4 + 0x100d8153], dl
test bl, bl
je 0x10041813
movzx edx, byte [esp + ecx + 8]
movzx edx, byte [esp + edx + 0x1cf]
jmp 0x10041815
xor edx, edx
mov byte [eax*4 + 0x100d8550], dl
mov byte [eax*4 + 0x100d8953], dl
mov byte [eax*4 + 0x100d8d52], dl
mov byte [eax*4 + 0x100d9151], dl
mov byte [ecx*4 + 0x100d7550], dl
mov byte [ecx*4 + 0x100d7953], dl
mov byte [ecx*4 + 0x100d7d52], dl
mov byte [ecx*4 + 0x100d8151], dl
test bl, bl
je 0x10041860
movzx edx, byte [esp + ecx + 8]
movzx edx, byte [esp + edx + 0x1f6]
jmp 0x10041862
xor edx, edx
mov byte [eax*4 + 0x100d8551], dl
mov byte [eax*4 + 0x100d8950], dl
mov byte [eax*4 + 0x100d8d53], dl
mov byte [eax*4 + 0x100d9152], dl
mov byte [ecx*4 + 0x100d7551], dl
mov byte [ecx*4 + 0x100d7950], dl
mov byte [ecx*4 + 0x100d7d53], dl
mov byte [ecx*4 + 0x100d8152], dl
test bl, bl
je 0x100418ad
movzx edx, byte [esp + ecx + 8]
movzx edx, byte [esp + edx + 0x1e7]
jmp 0x100418af
xor edx, edx
mov byte [eax*4 + 0x100d8553], dl
mov byte [eax*4 + 0x100d8952], dl
mov byte [eax*4 + 0x100d8d51], dl
mov byte [eax*4 + 0x100d9150], dl
inc eax
cmp eax, 0x100
mov byte [ecx*4 + 0x100d7553], dl
mov byte [ecx*4 + 0x100d7952], dl
mov byte [ecx*4 + 0x100d7d51], dl
mov byte [ecx*4 + 0x100d8150], dl
jl 0x10041677
mov ecx, dword [esp + 0x308]
pop esi
pop ebx
xor ecx, esp
call fcn.1005710f
add esp, 0x304
ret