Function at 0x605d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], ecx
mov esi, dword [esp + 0x74]
call sym._bn_wexpand
test eax, eax
je 0x605f21
cmp esi, 3
jg 0x605dd3
test edi, edi
jle 0x605dbb
mov ecx, esi
mov eax, 4
mov ebp, 1
shl eax, cl
shl ebp, cl
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
lea eax, [eax + edi*4]
mov dword [esp + 0x18], eax
lea esi, [esi]
mov esi, dword [esp + 0x38]
xor edi, edi
xor ebx, ebx
nop
lea esi, [esi]
mov edx, dword [esp + 0x70]
mov ecx, dword [esi]
add esi, 4
xor edx, ebx
add ebx, 1
lea eax, [edx - 1]
not edx
and edx, eax
sar edx, 0x1f
and ecx, edx
or edi, ecx
cmp ebp, ebx
jg 0x605d80
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add dword [esp + 0x38], ebx
mov dword [eax], edi
add eax, 4
cmp dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
jne 0x605d70
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov dword [eax + 4], edi
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esi - 2]
mov eax, 1
mov edi, dword [esp + 0x48]
mov ecx, ebx
shl eax, cl
mov dword [esp + 0x14], eax
sub eax, 1
and eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
sar eax, cl
lea ecx, [eax - 1]
mov edx, eax
not edx
and edx, ecx
mov ecx, eax
sar edx, 0x1f
xor ecx, 0xfffffffe
mov dword [esp + 0x1c], edx
mov edx, eax
xor edx, 1
sub edx, 1
and edx, ecx
mov ecx, eax
sar edx, 0x1f
xor ecx, 0xfffffffd
mov dword [esp + 0x20], edx
mov edx, eax
xor edx, 2
sub edx, 1
and edx, ecx
sar edx, 0x1f
mov dword [esp + 0x24], edx
mov edx, eax
xor eax, 0xfffffffc
xor edx, 3
sub edx, 1
and eax, edx
cdq
test edi, edi
mov dword [esp + 0x28], edx
jle 0x605dbb
mov ecx, esi
mov eax, 4
mov esi, dword [esp + 0x4c]
mov edx, eax
shl edx, cl
mov ecx, ebx
mov esi, dword [esi]
shl eax, cl
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
mov eax, 8
shl eax, cl
lea edi, [esi + edi*4]
mov dword [esp + 0x30], eax
mov eax, 0xc
shl eax, cl
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], eax
lea esi, [esi]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], 0
xor ebp, ebp
nop
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov eax, dword [edi]
and eax, dword [esp + 0x1c]
lea edx, [esi + edi]
mov esi, dword [edx]
lea edx, [ebx + edi]
mov ebx, dword [esp + 0x2c]
and esi, dword [esp + 0x20]
mov edx, dword [edx]
and edx, dword [esp + 0x24]
lea ecx, [ebx + edi]
add edi, 4
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x18]
or edx, esi
and ebx, dword [esp + 0x28]
or eax, edx
xor ecx, ebp
add ebp, 1
mov edx, ecx
sub ecx, 1
not edx
or eax, ebx
and ecx, edx
sar ecx, 0x1f
mov edx, ecx
and edx, eax
or dword [esp + 0x10], edx
cmp dword [esp + 0x14], ebp
jne 0x605ea0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x40]
add dword [esp + 0x38], ebx
mov dword [eax], edi
add eax, 4
cmp dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
jne 0x605e90
jmp 0x605dbb
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret