Function at 0x481620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa8], ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x481893
mov eax, dword [edi + 4]
lea ecx, [eax + 4]
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00586db0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x48]
sub esp, 8
mov ecx, eax
mov dword [ebp - 0xac], eax
mov dword [esp], esi
call fcn.0057f2d0
mov eax, dword [ebp - 0x48]
mov ecx, dword [edi + 4]
sub esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ecx]
call dword [eax]
lea esi, [ebp - 0x30]
mov dword [esp], eax
mov ecx, esi
mov dword [ebp - 0xb0], esi
call fcn.0057f2d0
mov eax, dword [ebp + 0xc]
sub esp, 4
test eax, eax
je 0x481840
mov dword [ebp - 0xa4], 1
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax]
cmp eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cmova eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x94], eax
mov eax, dword [ecx]
mov dword [esp + 4], esi
mov esi, dword [ebp + 0x14]
mov dword [esp], esi
call dword [eax + 0xc]
mov esi, dword [edi + 4]
sub esp, 8
mov ebx, 0xfffffff8
mov eax, dword [ebp - 0xa4]
mov ecx, ebx
lea edx, [ebp - 0x60]
and ecx, 0x18
shr eax, cl
mov ecx, esi
mov byte [ebp - 0x60], al
mov eax, dword [esi]
mov dword [esp + 4], 1
mov dword [esp], edx
call dword [eax + 0xc]
sub ebx, 8
sub esp, 8
cmp ebx, 0xffffffd8
jne 0x4816e5
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x10]
mov esi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov ebx, dword [ebp - 0x98]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0058d640
cmp dword [ebp + 0x1c], 1
je 0x481824
lea eax, [esi - 8]
mov edx, esi
mov esi, 1
and edx, 7
shr eax, 3
mov dword [ebp - 0xa0], edx
lea eax, [eax*8 + 8]
mov dword [ebp - 0x9c], eax
add ebx, eax
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
call dword [eax + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x30]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x10]
sub esp, 4
cmp dword [ebp - 0x94], 7
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x98]
mov edx, ecx
jbe 0x481880
mov dword [ebp - 0x8c], ecx
nop
lea esi, [esi]
mov ecx, dword [edx]
xor dword [eax], ecx
add edx, 8
mov ecx, dword [edx - 4]
xor dword [eax + 4], ecx
add eax, 8
cmp ebx, eax
jne 0x4817c0
mov edx, ebx
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xa0]
add ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x481818
xor eax, eax
mov dword [ebp - 0x90], ebx
movzx ebx, byte [ecx + eax]
xor byte [edx + eax], bl
add eax, 1
cmp eax, dword [ebp - 0x8c]
jne 0x481800
mov ebx, dword [ebp - 0x90]
add esi, 1
cmp dword [ebp + 0x1c], esi
jne 0x481774
mov esi, dword [ebp - 0x94]
add dword [ebp - 0xa4], 1
add dword [ebp - 0x98], esi
sub dword [ebp + 0xc], esi
jne 0x4816b1
mov edi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
mov dword [esp], edi
call fcn.0057dea0
mov ecx, dword [ebp - 0xb0]
sub esp, 4
call fcn.0057ea00
mov ecx, edi
call fcn.0057ea00
mov eax, dword [ebp - 0xa8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov edx, eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
jmp 0x4817ee
mov dword [esp], 8
call fcn.0063e390
mov dword [esp], str.PKCS5_PBKDF2:_Invalid_iteration_count
mov ecx, eax
mov ebx, eax
call fcn.00601ac0
push eax
mov dword [esp + 8], fcn.00601b70
mov dword [esp + 4], 0x6d7aa4
mov dword [esp], ebx
call fcn.0063eb20
mov ecx, dword [ebp - 0xb0]
mov ebx, eax
call fcn.0057ea00
mov ecx, dword [ebp - 0xac]
call fcn.0057ea00
mov dword [esp], ebx
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov esi, eax
mov dword [esp], ebx
call fcn.0063e700
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov ebx, eax
jmp 0x4818d5