Function at 0x483520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x5f7fc0]
test ecx, 0x2000000
jne 0x483575
test ecx, 0x200
jne 0x4835b2
push 0x481f20
push esi
push edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00483a30
add esp, 0x30
jmp 0x483a21
mov edi, dword [esi]
test eax, eax
je 0x4835ff
test edi, edi
je 0x4835ff
mov ebx, dword [ebp + 0xc]
nop word [eax + eax]
movzx ecx, byte [edx + edi]
mov esi, dword [ebp - 0x10]
xor cl, byte [esi]
inc esi
mov dword [ebp - 0x10], esi
mov byte [ebx], cl
inc ebx
lea esi, [eax - 1]
inc edi
and edi, 0xf
je 0x483604
cmp eax, 1
mov eax, esi
jne 0x483590
jmp 0x483604
mov esi, dword [esi]
test eax, eax
je 0x483801
test esi, esi
je 0x483801
nop word cs:[eax + eax]
movzx ecx, byte [edx + esi]
mov edi, dword [ebp - 0x10]
xor cl, byte [edi]
inc edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
mov byte [edi], cl
inc edi
mov dword [ebp - 0x14], edi
lea ecx, [eax - 1]
inc esi
and esi, 0xf
je 0x483803
cmp eax, 1
mov eax, ecx
jne 0x4835d0
jmp 0x483803
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0xc]
bswap eax
mov dword [ebp - 0x14], eax
cmp esi, 0x10
mov dword [ebp - 0x18], edi
mov edi, ebx
jb 0x483716
mov ecx, dword [ebp - 0x10]
jmp 0x48364a
shl esi, 4
mov eax, dword [ebp - 0x1c]
sub eax, esi
add edi, esi
mov ecx, dword [ebp - 0x10]
add ecx, esi
cmp eax, 0xf
mov esi, eax
jbe 0x483719
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], esi
mov eax, esi
shr eax, 4
mov ebx, dword [ebp - 0x14]
mov esi, ebx
neg esi
add ebx, eax
mov edx, edi
mov edi, 0
cmovb ebx, edi
mov edi, edx
cmovae esi, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edx
push ecx
call fcn.00401d10
mov edx, dword [ebp + 0x18]
add esp, 0x14
mov eax, ebx
bswap eax
mov dword [edx + 0xc], eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x483630
movzx eax, byte [edx + 0xb]
inc eax
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
jmp 0x483630
mov ecx, dword [ebp - 0x10]
test esi, esi
je 0x4837f4
mov ebx, edi
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
movups xmmword [eax], xmm0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push eax
push eax
call fcn.00401d10
mov edx, dword [ebp + 0x18]
add esp, 0x14
mov eax, dword [ebp - 0x14]
inc eax
bswap eax
mov dword [edx + 0xc], eax
jne 0x4837d5
movzx eax, byte [edx + 0xb]
inc eax
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
nop
movzx eax, byte [edx + edi]
xor al, byte [ecx + edi]
mov byte [ebx + edi], al
lea eax, [edi + 1]
mov edi, eax
dec esi
jne 0x4837e0
jmp 0x4837f7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
jmp 0x483a1e
mov ecx, eax
cmp ecx, 0x10
jb 0x483923
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x18]
nop word cs:[eax + eax]
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x14]
push edx
push edi
call fcn.004040d0
mov edx, dword [ebp + 0x1c]
add esp, 0xc
movzx eax, byte [edi + 0xf]
inc eax
mov byte [edi + 0xf], al
shr eax, 8
movzx ecx, byte [edi + 0xe]
add ecx, eax
mov byte [edi + 0xe], cl
shr ecx, 8
movzx eax, byte [edi + 0xd]
add eax, ecx
mov byte [edi + 0xd], al
shr eax, 8
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov byte [edi + 0xc], cl
shr ecx, 8
movzx eax, byte [edi + 0xb]
add eax, ecx
mov byte [edi + 0xb], al
shr eax, 8
movzx ecx, byte [edi + 0xa]
add ecx, eax
mov byte [edi + 0xa], cl
shr ecx, 8
movzx eax, byte [edi + 9]
add eax, ecx
mov byte [edi + 9], al
shr eax, 8
movzx ecx, byte [edi + 8]
add ecx, eax
mov byte [edi + 8], cl
shr ecx, 8
movzx eax, byte [edi + 7]
add eax, ecx
mov byte [edi + 7], al
shr eax, 8
movzx ecx, byte [edi + 6]
add ecx, eax
mov byte [edi + 6], cl
shr ecx, 8
movzx eax, byte [edi + 5]
add eax, ecx
mov byte [edi + 5], al
shr eax, 8
movzx ecx, byte [edi + 4]
add ecx, eax
mov byte [edi + 4], cl
shr ecx, 8
movzx eax, byte [edi + 3]
add eax, ecx
mov byte [edi + 3], al
shr eax, 8
movzx ecx, byte [edi + 2]
add ecx, eax
mov byte [edi + 2], cl
shr ecx, 8
movzx eax, byte [edi + 1]
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov byte [edi + 1], al
add byte [edi], ah
mov eax, dword [edx]
xor eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [edx + 4]
xor eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edx + 8]
xor eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
add ecx, 0xfffffff0
add ebx, 0x10
add esi, 0x10
cmp ecx, 0xf
ja 0x483820
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
xor esi, esi
test ecx, ecx
je 0x483a17
push dword [ebp + 0x14]
push edx
mov edi, dword [ebp + 0x18]
push edi
mov ebx, ecx
call fcn.004040d0
add esp, 0xc
movzx eax, byte [edi + 0xf]
inc eax
mov byte [edi + 0xf], al
shr eax, 8
movzx ecx, byte [edi + 0xe]
add ecx, eax
mov byte [edi + 0xe], cl
shr ecx, 8
movzx eax, byte [edi + 0xd]
add eax, ecx
mov byte [edi + 0xd], al
shr eax, 8
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov byte [edi + 0xc], cl
shr ecx, 8
movzx eax, byte [edi + 0xb]
add eax, ecx
mov byte [edi + 0xb], al
shr eax, 8
movzx ecx, byte [edi + 0xa]
add ecx, eax
mov byte [edi + 0xa], cl
shr ecx, 8
movzx eax, byte [edi + 9]
add eax, ecx
mov byte [edi + 9], al
shr eax, 8
movzx ecx, byte [edi + 8]
add ecx, eax
mov byte [edi + 8], cl
shr ecx, 8
movzx eax, byte [edi + 7]
add eax, ecx
mov byte [edi + 7], al
shr eax, 8
movzx ecx, byte [edi + 6]
add ecx, eax
mov byte [edi + 6], cl
shr ecx, 8
movzx eax, byte [edi + 5]
add eax, ecx
mov byte [edi + 5], al
shr eax, 8
movzx ecx, byte [edi + 4]
add ecx, eax
mov byte [edi + 4], cl
shr ecx, 8
movzx eax, byte [edi + 3]
add eax, ecx
mov byte [edi + 3], al
shr eax, 8
movzx ecx, byte [edi + 2]
add ecx, eax
mov byte [edi + 2], cl
shr ecx, 8
movzx eax, byte [edi + 1]
add eax, ecx
mov byte [edi + 1], al
add byte [edi], ah
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x20]
nop dword [eax + eax]
mov eax, dword [ebp + 0x1c]
movzx eax, byte [eax + esi]
xor al, byte [ecx + esi]
mov byte [edx + esi], al
lea eax, [esi + 1]
mov esi, eax
dec ebx
jne 0x483a00
jmp 0x483a1c
mov eax, esi
mov edi, dword [ebp + 0x20]
mov dword [edi], eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret