Function at 0x40b6c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00474020
mov ecx, dword [esp + 0x24]
xor edx, edx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x170]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 4], eax
mov eax, ecx
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x40b980
jb 0x40b705
cmp eax, 0xffffffe0
ja 0x40b980
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
je 0x40b732
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0040c830
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [esi + 0x16c], 0
movzx eax, byte [esi + 0xd]
mov edx, dword [esi + 0x168]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, eax
mov dword [esp + 0x10], edx
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
push ebp
mov ebp, dword [esp + 0x2c]
or ebx, eax
push edi
mov edi, dword [esp + 0x2c]
test edx, edx
je 0x40b7b2
lea ebx, [ebx]
test ecx, ecx
je 0x40b79a
mov cl, byte [edi]
inc edi
mov al, byte [edx + esi + 0x10]
xor al, cl
mov byte [ebp], al
inc ebp
xor byte [edx + esi + 0x40], cl
inc edx
mov ecx, dword [esp + 0x34]
dec ecx
and edx, 0xf
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
jne 0x40b770
jmp 0x40b7a2
test edx, edx
jne 0x40b970
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0040c830
add esp, 8
mov ecx, dword [esp + 0x34]
cmp ecx, 0xc00
jb 0x40b863
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x20], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0040c5f0
add esp, 0x10
mov dword [esp + 0x1c], 0xc0
mov edi, edi
push dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
dec dword [esp + 0x1c]
jne 0x40b7f0
mov ecx, dword [esp + 0x34]
sub ecx, 0xc00
dec dword [esp + 0x20]
mov dword [esp + 0x34], ecx
jne 0x40b7d0
mov eax, ecx
and eax, 0xfffffff0
je 0x40b8f9
push eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0040c5f0
mov ecx, dword [esp + 0x44]
add esp, 0x10
cmp ecx, 0x10
jb 0x40b8f9
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [esp + 0x20], ecx
push dword [esp + 0x10]
push eax
push esi
call dword [esp + 0x20]
inc ebx
mov ecx, dword [esp + 0x40]
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
sub ecx, 0x10
mov byte [esi + 0xc], al
add esp, 0xc
mov eax, ebx
mov dword [esp + 0x34], ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
dec dword [esp + 0x20]
lea eax, [esi + 0x10]
jne 0x40b893
test ecx, ecx
je 0x40b96c
push dword [esp + 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x20]
mov edx, dword [esp + 0x24]
inc ebx
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
mov ebx, dword [esp + 0x34]
shr eax, 8
sub edi, ebp
mov byte [esi + 0xe], al
lea eax, [edx + ebp]
lea ebp, [esi + 0x40]
mov dword [esp + 0x20], eax
mov esi, eax
nop
mov cl, byte [edi + esi]
lea eax, [edx + ebp]
xor byte [eax], cl
lea esi, [esi + 1]
mov al, byte [edx + ebp - 0x30]
inc edx
xor al, cl
mov byte [esi - 1], al
dec ebx
jne 0x40b940
mov esi, dword [esp + 0x28]
xor eax, eax
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], edx
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
add esp, 0x14
ret
or eax, 0xffffffff
pop esi
add esp, 0x14
ret