Function at 0x451910
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
call sym._bn_wexpand
test eax, eax
je 0x451a1a
movzx ecx, byte [esp + 0x64]
mov eax, 1
mov esi, eax
shl esi, cl
cmp dword [esp + 0x64], 3
jg 0x451a22
mov ebp, dword [esp + 0x30]
test ebp, ebp
jle 0x4519fb
lea eax, [esi*4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
nop
test esi, esi
jle 0x451b85
mov ecx, dword [esp + 0x2c]
xor edi, edi
xor eax, eax
mov ebx, dword [esp + 0x60]
add ecx, 4
mov ebp, dword [ecx - 4]
xor ebx, eax
add eax, 1
lea edx, [ebx - 1]
not ebx
and edx, ebx
sar edx, 0x1f
and edx, ebp
or edi, edx
cmp eax, esi
jne 0x451980
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 8]
add dword [esp + 8], 1
mov eax, dword [eax]
mov dword [eax + edx*4], edi
mov eax, dword [esp + 0xc]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x30]
jne 0x451970
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov eax, dword [eax]
mov edx, dword [eax + esi*4 - 4]
test edx, edx
jne 0x451b6d
mov edx, dword [esp + 0x30]
jmp 0x4519f0
mov ecx, dword [eax + edx*4 - 4]
test ecx, ecx
jne 0x451b69
sub edx, 1
test edx, edx
jg 0x4519e4
mov dword [esp + 0x30], edx
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
test esi, esi
mov dword [eax + 4], esi
jne 0x451b78
mov dword [eax + 0xc], 0
mov eax, 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x30]
lea ecx, [edx - 2]
shl eax, cl
mov ebx, eax
mov dword [esp + 0x10], eax
sub eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
and dword [esp + 0x14], eax
sar eax, cl
mov ecx, eax
mov edx, ecx
not edx
lea eax, [eax - 1]
and eax, edx
cdq
mov dword [esp + 0x18], edx
mov edx, ecx
xor edx, 1
lea eax, [edx - 1]
not edx
and eax, edx
cdq
mov eax, ecx
xor eax, 2
mov dword [esp + 0x1c], edx
lea edx, [eax - 1]
not eax
and edx, eax
sar edx, 0x1f
mov dword [esp + 0x20], edx
mov edx, ecx
xor edx, 3
lea eax, [edx - 1]
not edx
and eax, edx
cdq
test edi, edi
mov dword [esp + 0x24], edx
jle 0x4519fb
lea eax, [esi*4]
mov dword [esp + 0x3c], eax
mov eax, ebx
mov ebx, dword [esp + 0x10]
shl eax, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 0
test ebx, ebx
jle 0x451b5f
nop
lea esi, [esi]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edi, dword [esp + 0x28]
mov ebx, dword [edx]
mov ebp, dword [esp + 8]
xor ebp, dword [esp + 0x14]
lea ecx, [edx + edi]
add edx, 4
mov eax, dword [ecx]
add ecx, edi
mov esi, dword [ecx]
add ecx, edi
and eax, dword [esp + 0x1c]
and esi, dword [esp + 0x20]
and ebx, dword [esp + 0x18]
mov ecx, dword [ecx]
lea edi, [ebp - 1]
not ebp
and ecx, dword [esp + 0x24]
or eax, esi
and edi, ebp
or eax, ebx
sar edi, 0x1f
or eax, ecx
and edi, eax
mov eax, dword [esp + 0x10]
add dword [esp + 8], 1
or dword [esp + 0xc], edi
cmp dword [esp + 8], eax
jne 0x451ad4
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
add dword [esp + 0x34], 1
mov eax, dword [eax]
mov dword [eax + esi*4], edx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x30]
je 0x4519c5
mov ebx, dword [esp + 0x10]
test ebx, ebx
jg 0x451ac0
mov dword [esp + 0xc], 0
jmp 0x451b27
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
jmp 0x4519a1