Function at 0x497960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
test edx, edx
je 0x497c1c
test ebx, ebx
jne 0x4979ba
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_CFB_encryptor
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x80], 1
ja 0x4979e6
mov eax, dword [edi]
push esi
push dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
push edx
push ebx
push ecx
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14
mov eax, edx
xor edx, edx
div dword [edi + 0x80]
mov dword [ebp - 0x50], eax
test edx, edx
je 0x497a18
mov eax, dword [esi]
mov ecx, esi
push str.CFB_input_not_a_multiple_of_the_cipher_block_size.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
je 0x4979a5
mov al, byte [0x58ee62]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 0x45], al
call fcn.0040d5b0
mov dword [ebp - 0x18], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0040d230
test al, al
jne 0x497a66
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_CFB_encrypt_output_buffer.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
call fcn.0040d560
cmp byte [ebp - 0x45], 0
mov esi, eax
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0x18], esi
je 0x497b2d
mov eax, dword [ebp - 0x54]
add eax, 8
test ecx, ecx
je 0x497aa0
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a8910
add esp, 0xc
nop
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [edi + 0x80]
xor eax, eax
test ecx, ecx
je 0x497af2
lea ecx, [ebp - 0x34]
mov dword [ebp - 8], ebx
sub ebx, ecx
lea edx, [ebp - 0x34]
mov ecx, esi
sub ecx, edx
mov dword [ebp - 8], ecx
mov esi, ecx
nop
lea ecx, [ebp - 0x34]
add ecx, eax
mov dl, byte [ebx + ecx]
xor dl, byte [ecx]
mov byte [esi + ecx], dl
mov ecx, dword [edi + 0x80]
mov byte [ebp + eax - 0x44], dl
inc eax
cmp eax, ecx
jb 0x497ad0
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x5c]
add ebx, ecx
add esi, ecx
sub dword [ebp - 0x50], 1
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], esi
jne 0x497aa0
sub esi, ecx
xor edx, edx
test ecx, ecx
je 0x497c11
mov ecx, dword [ebp - 0x54]
add ecx, 8
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [edi + 0x80]
jb 0x497b16
jmp 0x497c11
cmp ecx, 0x10
jne 0x497bb7
mov ecx, dword [ebp - 0x54]
sub ebx, esi
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [ebx + esi]
lea esi, [esi + 0x10]
mov eax, dword [ebx + esi - 0xc]
xor ecx, dword [ebp - 0x24]
xor eax, dword [ebp - 0x20]
mov dword [esi - 0x10], ecx
mov dword [esi - 0xc], eax
mov ecx, dword [ebx + esi - 8]
mov eax, dword [ebx + esi - 4]
xor ecx, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x18]
sub dword [ebp - 0x50], 1
mov dword [esi - 8], ecx
mov dword [esi - 4], eax
movups xmm0, xmmword [esi - 0x10]
movups xmmword [ebp - 0x14], xmm0
jne 0x497b53
mov ecx, dword [ebp - 0x54]
mov eax, dword [esi - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [esi - 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi - 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi - 4]
mov dword [ecx + 0x14], eax
jmp 0x497c11
cmp ecx, 8
jne 0x497c1c
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [ebx]
lea ebx, [ebx + 8]
mov eax, dword [ebx - 4]
lea esi, [esi + 8]
xor ecx, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x18]
sub dword [ebp - 0x50], 1
mov dword [esi - 8], ecx
mov dword [esi - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x497bd0
mov ecx, dword [ebp - 0x54]
mov eax, dword [esi - 8]
mov dword [ecx + 8], eax
mov eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
call fcn.0040ddd0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14