Function at 0x484760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xb0], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test edi, edi
je 0x484ac1
mov eax, dword [esi + 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.005c72b0
mov ecx, dword [ebp + 0xc]
sub esp, 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0xb4], eax
mov dword [esp], ecx
mov ecx, eax
call fcn.005bf7d0
mov eax, dword [ebp - 0x48]
mov ecx, dword [esi + 4]
sub esp, 4
mov dword [ebp - 0xa0], eax
mov eax, dword [ecx]
call dword [eax]
mov dword [esp], eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xb8], ecx
call fcn.005bf7d0
mov ebx, dword [ebp + 0xc]
sub esp, 4
test ebx, ebx
je 0x484a08
mov dword [ebp - 0xac], 1
nop
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call dword [eax + 0xc]
mov edi, dword [esi + 4]
sub esp, 8
mov ebx, 0xfffffff8
mov ecx, ebx
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x60]
and ecx, 0x18
shr eax, cl
mov ecx, edi
mov byte [ebp - 0x60], al
mov eax, dword [edi]
mov dword [esp + 4], 1
mov dword [esp], edx
call dword [eax + 0xc]
sub ebx, 8
sub esp, 8
cmp ebx, 0xffffffd8
jne 0x484824
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x10]
mov edi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov ebx, dword [ebp - 0xa0]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.005cdf30
cmp dword [ebp + 0x1c], 1
je 0x4849ec
mov dword [ebp - 0x8c], 1
lea eax, [edi - 8]
mov edx, edi
shr eax, 3
and edx, 7
lea eax, [eax*8 + 8]
mov dword [ebp - 0xa8], edx
add ebx, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x94], ebx
nop
mov ecx, dword [esi + 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 [esi + 4]
mov edx, dword [ebp - 0x30]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp], edx
call dword [eax + 0x10]
mov edx, dword [ebp - 0x30]
sub esp, 4
cmp dword [ebp - 0x9c], 7
mov eax, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x8c]
mov ecx, edx
jbe 0x484ab0
mov esi, esi
lea edi, [edi]
mov edi, dword [ecx]
add ecx, 8
xor dword [eax], edi
mov edi, dword [ecx - 4]
xor dword [eax + 4], edi
add eax, 8
cmp eax, dword [ebp - 0x94]
jne 0x484910
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], ebx
add edx, dword [ebp - 0xa4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x4849d6
lea edi, [eax + 4]
cmp edx, edi
lea edi, [edx + 4]
setae byte [ebp - 0x95]
cmp eax, edi
movzx ecx, byte [ebp - 0x95]
setae bl
mov edi, ebx
mov ebx, ecx
or edi, ebx
mov ebx, dword [ebp - 0x90]
mov ecx, edi
sub ebx, 1
cmp ebx, 2
seta byte [ebp - 0x95]
movzx ebx, byte [ebp - 0x95]
test bl, cl
je 0x484a41
mov edi, edx
or edi, eax
and edi, 3
jne 0x484a41
mov edi, dword [eax]
xor edi, dword [edx]
mov dword [eax], edi
mov edi, dword [ebp - 0x90]
cmp edi, 4
je 0x4849d6
movzx ebx, byte [edx + 4]
xor byte [eax + 4], bl
cmp edi, 5
je 0x4849d6
movzx ebx, byte [edx + 5]
xor byte [eax + 5], bl
cmp edi, 6
je 0x4849d6
movzx edx, byte [edx + 6]
xor byte [eax + 6], dl
add dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x8c]
cmp dword [ebp + 0x1c], eax
jne 0x4848c0
mov ecx, dword [ebp - 0x9c]
add dword [ebp - 0xac], 1
add dword [ebp - 0xa0], ecx
sub dword [ebp + 0xc], ecx
jne 0x4847f0
mov esi, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb0]
mov dword [esp], esi
call fcn.005be1b0
mov ecx, dword [ebp - 0xb8]
sub esp, 4
call fcn.005bedd0
mov ecx, esi
call fcn.005bedd0
mov eax, dword [ebp - 0xb0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov ecx, dword [ebp - 0x90]
movzx ebx, byte [edx]
xor byte [eax], bl
cmp ecx, 1
je 0x4849d6
movzx ebx, byte [edx + 1]
xor byte [eax + 1], bl
cmp ecx, 2
je 0x4849d6
movzx ebx, byte [edx + 2]
xor byte [eax + 2], bl
cmp ecx, 3
je 0x4849d6
movzx ebx, byte [edx + 3]
xor byte [eax + 3], bl
cmp ecx, 4
je 0x4849d6
movzx ebx, byte [edx + 4]
xor byte [eax + 4], bl
cmp ecx, 5
je 0x4849d6
movzx ebx, byte [edx + 5]
xor byte [eax + 5], bl
cmp ecx, 6
jne 0x4849cf
jmp 0x4849d6
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0x90], edi
jmp 0x484946
mov dword [esp], 8
call fcn.006844a0
mov dword [esp], str.PKCS5_PBKDF2:_Invalid_iteration_count
mov ecx, eax
mov ebx, eax
call fcn.0064cb30
push esi
mov dword [esp + 8], fcn.0064cbe0
mov dword [esp + 4], 0x715d54
mov dword [esp], ebx
call fcn.00684b90
mov ebx, eax
jmp 0x68dd16
mov ecx, dword [ebp - 0xb8]
call fcn.005bedd0
mov ecx, dword [ebp - 0xb4]
call fcn.005bedd0
mov dword [esp], ebx
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov dword [esp], ebx
call fcn.006847a0
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
sub edx, 1
mov dword [esp], eax
jne 0x68de64
call fcn.006847d0
lea ecx, [ebp - 0x80]
mov dword [esp], eax
call fcn.00634c00
mov dword [ebp - 0x80], 0x71f420
push eax
mov dword [esp], edi
call fcn.00684560
mov dword [esp], 8
call fcn.006844a0
mov edx, dword [ebx + 4]
xor ecx, ecx
mov edi, eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0xb4], eax
call fcn.00463f20
mov eax, dword [esi]
lea ecx, [ebp - 0x78]
mov dword [esp], esi
call dword [eax + 4]
push ebx
lea ecx, [ebp - 0x78]
mov dword [esp], str._cannot_accept_passphrases_of_length
call fcn.0065b6d0
push edx
lea ebx, [ebp - 0x60]
mov ecx, ebx
mov dword [esp], eax
call fcn.0065cd40
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0x30]
push ecx
mov dword [ebp - 0xb8], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0067ddb0
mov eax, dword [ebp - 0xb8]
mov ecx, edi
mov dword [esp], eax
call fcn.006456a0
push eax
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
cmp eax, edx
je 0x68ddfd
mov dword [esp], eax
call fcn.00684220
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
cmp eax, edx
je 0x68de0f
mov dword [esp], eax
call fcn.00684220
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x68de21
mov dword [esp], eax
call fcn.00684220
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x68de33
mov dword [esp], eax
call fcn.00684220
mov dword [esp + 8], fcn.00645760
mov dword [esp + 4], 0x715c28
mov dword [esp], edi
call fcn.00684b90
mov ebx, eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x71f420
call fcn.0064cbe0
call fcn.006846d0
mov dword [esp], ebx
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov ebx, eax
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
cmp eax, edx
je 0x68de7d
mov dword [esp], eax
call fcn.00684220
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
cmp eax, edx
je 0x68de8f
mov dword [esp], eax
call fcn.00684220
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x68dea1
mov dword [esp], eax
call fcn.00684220
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x68deb3
mov dword [esp], eax
call fcn.00684220
mov dword [esp], edi
call fcn.006847a0
jmp 0x68de4d