Function at 0x41ab40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1010
call fcn.00467220
push ebx
mov ebx, dword [esp + 0x1018]
push ebp
mov ebp, dword [esp + 0x1024]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov cl, byte [ebp + 0x3030]
push 4
push 0xffffffffffffffff
mov byte [esp + 0x1a], cl
test eax, eax
lea edi, [esi + 0x10]
push edi
mov ecx, ebx
mov dword [esp + 0x28], eax
seta byte [esp + 0x1f]
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41abb1
mov eax, dword [edi]
movzx ecx, byte [esi + 0x13]
mov edx, eax
mov dword [esp + 0x14], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [edi], edx
mov eax, dword [edi]
mov cl, byte [esp + 0x13]
test eax, eax
seta byte [esp + 0x27]
test eax, eax
je 0x41abe0
test cl, cl
je 0x41abdc
cmp eax, dword [esp + 0x1c]
je 0x41abdc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1010
ret 0xc
test eax, eax
jne 0x41abf0
test cl, cl
je 0x41abec
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
jmp 0x41abfa
test eax, eax
je 0x41abfa
test cl, cl
jne 0x41abfa
mov dword [edi], 0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x2e]
push eax
mov ecx, ebx
call fcn.00415aa0
mov al, byte [esp + 0x26]
cmp al, 0x59
jne 0x41ac18
mov byte [esi + 0x20], 1
jmp 0x41ac20
cmp al, 0x4e
jne 0x41ac20
mov byte [esi + 0x20], 0
push 4
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41ac58
mov eax, dword [esi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 3]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [esi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 4]
push edi
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41ac93
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 8]
push edi
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41acce
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
cmp byte [esi + 0x20], 0
je 0x41ad0f
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x14]
push edi
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41ad0f
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0x17]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x18]
push edi
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41ad4a
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0x1b]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
cmp byte [esi + 0x20], 0
je 0x41adac
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x24], eax
call fcn.00415aa0
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x28], eax
call fcn.00415aa0
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x2c], eax
call fcn.00415aa0
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x30], eax
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41aeb6
xor eax, eax
cmp dword [esi], eax
jbe 0x41aeb6
lea ecx, [ecx]
cmp byte [esi + 0x20], 0
je 0x41ae69
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + eax*4]
lea edi, [edx + eax*4]
mov edx, ecx
shl edx, 0x10
mov dword [esp + 0x14], ecx
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [edi + 3]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
add edx, ecx
mov dword [edi], edx
mov edx, dword [esi + 0x28]
movzx cx, byte [edx + eax*2 + 1]
lea edi, [edx + eax*2]
xor edx, edx
mov dh, byte [edi]
xor cx, dx
mov word [edi], cx
mov ecx, dword [esi + 0x2c]
lea edi, [ecx + eax*4]
mov ecx, dword [edi]
mov edx, ecx
shl edx, 0x10
mov dword [esp + 0x14], ecx
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [edi + 3]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
add edx, ecx
mov dword [edi], edx
mov edx, dword [esi + 0x30]
movzx cx, byte [edx + eax*2 + 1]
lea edi, [edx + eax*2]
xor edx, edx
mov dh, byte [edi]
add eax, 1
xor cx, dx
mov word [edi], cx
cmp eax, dword [esi]
jb 0x41ae20
cmp byte [esi + 0x20], 0
je 0x41aed9
mov eax, dword [esi + 0x14]
push eax
call fcn.004217e2
mov ecx, dword [esi + 0x14]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x3c], eax
call fcn.00415aa0
mov edx, dword [esi + 0x18]
push edx
call fcn.004217e2
mov ecx, dword [esi + 0x18]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x40], eax
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41af2f
mov edi, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x41af2f
jmp 0x41af10
movzx dx, byte [edi + eax*2 + 1]
xor ecx, ecx
mov ch, byte [edi + eax*2]
add eax, 1
xor dx, cx
mov word [edi + eax*2 - 2], dx
mov edx, dword [esi + 0x18]
shr edx, 1
cmp eax, edx
jb 0x41af10
cmp byte [esi + 0x20], 0
je 0x41b21b
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [esi + 8]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x54], eax
call fcn.00415aa0
mov edx, dword [esi + 8]
add edx, edx
add edx, edx
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41afd9
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x41afd9
lea esp, [esp]
mov ecx, dword [esi + 0x54]
movzx dx, byte [ecx + eax*2 + 1]
lea edi, [ecx + eax*2]
xor ecx, ecx
mov ch, byte [edi]
add eax, 1
xor dx, cx
mov word [edi], dx
mov ecx, dword [esp + eax*4 + 0x28]
mov edx, ecx
mov dword [esp + 0x14], ecx
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [esp + eax*4 + 0x2b]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
add edx, ecx
cmp eax, dword [esi + 8]
mov dword [esp + eax*4 + 0x28], edx
jb 0x41af90
cmp byte [esi + 0x20], 0
je 0x41b21b
xor edi, edi
cmp dword [esi + 8], edi
mov dword [esp + 0x14], edi
jbe 0x41b21b
lea edx, [esp + 0x2c]
mov dword [esp + 0x1c], edx
lea ebx, [ebx]
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
lea ecx, [eax + eax*2]
mov edx, dword [ebp + ecx*4 + 0x40]
mov ebx, dword [ebp + ecx*4 + 0x3c]
lea eax, [ebp + ecx*4 + 0x38]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x28], edx
xor ecx, ecx
add eax, ebx
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x18], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
add esp, 4
cmp byte [esp + 0x13], 0
lea edx, [ecx + ecx*2]
mov dword [ebp + edx*4 + 0x40], eax
je 0x41b08c
xor eax, eax
test ebx, ebx
jbe 0x41b07f
lea ebx, [ebx]
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov edx, dword [esp + 0x28]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, ebx
jb 0x41b060
mov eax, dword [esp + 0x28]
push eax
call fcn.004217e7
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + edi]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4 + 0x3c]
mov edx, dword [ecx]
add dword [eax], edx
cmp dword [ecx], 0
mov dword [esp + 0x28], 0
jbe 0x41b1f8
add ebx, ebx
add ebx, ebx
jmp 0x41b0c0
mov ecx, dword [esp + 0x1024]
push 4
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41b105
mov ecx, dword [esp + 0x20]
mov eax, ecx
shl eax, 0x10
mov edx, ecx
and edx, 0xff00
add eax, edx
xor edx, edx
mov dh, byte [esp + 0x22]
shl eax, 8
shr ecx, 0x18
add eax, edx
add eax, ecx
mov dword [esp + 0x20], eax
jmp 0x41b109
mov eax, dword [esp + 0x20]
cmp byte [esp + 0x27], 0
je 0x41b132
cmp byte [esp + 0x13], 0
je 0x41b139
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x54]
add ecx, eax
movzx eax, word [edx + edi]
lea eax, [eax + eax*2]
mov edx, dword [ebp + eax*4 + 0x40]
mov dword [ebx + edx], ecx
jmp 0x41b1de
cmp byte [esp + 0x13], 0
jne 0x41b14f
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov dword [ebx + ecx], eax
jmp 0x41b1de
mov edx, dword [esi + 0x30]
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x28]
push ecx
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x24]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x54]
push ecx
movzx ecx, word [edx + edi]
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp + ecx*4 + 0x40]
mov ecx, dword [esp + 0x28]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.00419a80
test al, al
je 0x41b1c6
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x20]
mov word [edx + eax*2], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x20]
mov word [ecx + edx*2], 0
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
lea ecx, [eax + eax*2]
add dword [ebp + ecx*4 + 0x3c], 0xffffffff
add dword [esi + 4], 0xffffffff
lea eax, [ebp + ecx*4 + 0x3c]
jmp 0x41b1e1
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
mov edx, dword [esi + 0x10]
add edx, dword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + ecx*4 + 0x40]
mov dword [ebx + eax], edx
add ebx, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [ecx]
mov dword [esp + 0x28], eax
jb 0x41b0c0
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 4
add eax, 1
add edi, 2
cmp eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jb 0x41b000
mov ebx, dword [esp + 0x1024]
push 4
push 0xffffffffffffffff
lea edi, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41b256
mov eax, dword [edi]
movzx ecx, byte [esi + 0xf]
mov edx, eax
mov dword [esp + 0x18], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [edi], edx
cmp dword [edi], 0
je 0x41b40e
push 4
push 0xffffffffffffffff
lea ebp, [esi + 0x1c]
push ebp
mov ecx, ebx
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41b29c
mov eax, dword [ebp]
movzx ecx, byte [esi + 0x1f]
mov edx, eax
mov dword [esp + 0x18], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [ebp], edx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.00415aa0
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x34], eax
call fcn.00415aa0
mov eax, dword [edi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov ecx, dword [edi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x38], eax
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41b3bd
xor eax, eax
cmp dword [edi], eax
jbe 0x41b3bd
lea esp, [esp]
mov edx, dword [esi + 0x38]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov bh, byte [ecx]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x34]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov ebp, ecx
mov dword [esp + 0x18], ecx
shl ebp, 0x10
and ecx, 0xff00
add ebp, ecx
movzx ecx, byte [edx + 3]
shl ebp, 8
add ebp, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
mov ebx, dword [esp + 0x14]
add ebp, ecx
mov dword [edx], ebp
mov edx, dword [esi + 0x58]
mov ecx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ebp, ecx
mov dword [esp + 0x18], ecx
shl ebp, 0x10
and ecx, 0xff00
add ebp, ecx
movzx ecx, byte [edx + 3]
shl ebp, 8
add ebp, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
add eax, 1
add ebp, ecx
mov dword [edx], ebp
cmp eax, dword [edi]
jb 0x41b340
mov edx, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push edx
call fcn.004217e2
mov ecx, dword [edi]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x44], eax
call fcn.00415aa0
cmp byte [esp + 0x12], 0
je 0x41b40e
mov esi, dword [esi + 0x44]
xor eax, eax
test dword [edi], 0xfffffffe
jbe 0x41b40e
movzx dx, byte [esi + eax*2 + 1]
xor ecx, ecx
mov ch, byte [esi + eax*2]
add eax, 1
xor dx, cx
mov word [esi + eax*2 - 2], dx
mov edx, dword [edi]
shr edx, 1
cmp eax, edx
jb 0x41b3f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1010
ret 0xc