Function at 0x452650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x9c], ecx
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0x98], edi
test eax, eax
jne 0x4526c5
push str.e:ladik_appdir_stormlib_srclibtomcrypt_srcpkpkcs1pkcs_1_pss_encode.c
push 0x2c
push str.msghash___NULL
push str.LTC_ARGCHK__s_failure_on_line__d_of_file__s_n
push 2
call fcn.00486c0b
add esp, 4
push eax
call fcn.00405070
push 0x16
call fcn.00486e87
add esp, 0x18
cmp dword [ebp - 0x88], 0
jne 0x4526f9
push str.e:ladik_appdir_stormlib_srclibtomcrypt_srcpkpkcs1pkcs_1_pss_encode.c
push 0x2d
push str.out___NULL
push str.LTC_ARGCHK__s_failure_on_line__d_of_file__s_n
push 2
call fcn.00486c0b
add esp, 4
push eax
call fcn.00405070
push 0x16
call fcn.00486e87
add esp, 0x18
test edi, edi
jne 0x452728
push str.e:ladik_appdir_stormlib_srclibtomcrypt_srcpkpkcs1pkcs_1_pss_encode.c
push 0x2e
push str.outlen___NULL
push str.LTC_ARGCHK__s_failure_on_line__d_of_file__s_n
push 2
call fcn.00486c0b
add esp, 4
push eax
call fcn.00405070
push 0x16
call fcn.00486e87
add esp, 0x18
cmp ebx, 0x1f
ja 0x452b18
imul eax, ebx, 0x68
mov dword [ebp - 0x78], eax
cmp dword [eax + 0x4b2760], 0
je 0x452b18
cmp esi, 0x1f
ja 0x452b02
lea ecx, [esi + esi*4]
shl ecx, 3
mov dword [ebp - 0xa0], ecx
cmp dword [ecx + 0x4b3460], 0
je 0x452b02
mov edx, dword [eax + 0x4b2768]
mov ecx, 0
mov eax, dword [ebp + 0x20]
test al, 7
mov dword [ebp - 0x7c], edx
setne cl
shr eax, 3
lea esi, [ecx + eax]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], esi
cmp eax, esi
ja 0x452aec
add eax, 2
add eax, edx
cmp esi, eax
jb 0x452aec
push esi
call fcn.00486ccf
mov edi, eax
push esi
mov dword [ebp - 0x94], edi
call fcn.00486ccf
mov ebx, eax
push esi
mov dword [ebp - 0xa8], ebx
call fcn.00486ccf
push esi
mov dword [ebp - 0x80], eax
call fcn.00486ccf
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x8c], esi
test edi, edi
je 0x452aac
test ebx, ebx
je 0x452aa3
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x452aa3
test esi, esi
je 0x452aa3
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x452827
push dword [ebp - 0x9c]
push esi
push eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0x4b3474]
call eax
add esp, 0xc
cmp eax, esi
je 0x452827
mov esi, 9
jmp 0x452a6e
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x4b27b4]
call eax
mov esi, eax
add esp, 4
test esi, esi
jne 0x452a6e
push 8
push edi
call fcn.00456ac0
push 8
lea eax, [ebp - 0x74]
push edi
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x4b27b8]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x452a6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push dword [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x4b27b8]
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x452a6e
push dword [ebp + 0x10]
lea eax, [ebp - 0x74]
push dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x4b27b8]
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x452a6e
push dword [ebp - 0x8c]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0x4b27bc]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x452a6e
mov esi, dword [ebp - 0x84]
sub esi, dword [ebp - 0x7c]
mov eax, esi
sub eax, dword [ebp + 0x10]
sub eax, 2
push eax
push 0
push edi
call fcn.0047ee80
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x10]
sub eax, ecx
push ecx
push dword [ebp - 0x80]
mov byte [eax + edi - 2], 1
dec eax
add eax, edi
push eax
call fcn.0047efe0
dec esi
push esi
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], esi
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
call fcn.00451fc0
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x452a6e
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x4529f7
cmp edx, 0x40
jb 0x4529c7
lea eax, [edx - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, edi
cmp edi, eax
ja 0x45295a
cmp ecx, ebx
jae 0x4529c7
mov ecx, edx
mov eax, edi
mov edx, ebx
and ecx, 0xffffffc0
sub edx, edi
mov dword [ebp - 0x90], edx
mov edx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x90]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + esi + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + esi + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + esi + 0x30]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp esi, ecx
jb 0x452974
mov edi, dword [ebp - 0x94]
cmp esi, edx
jae 0x4529f7
mov dword [ebp - 0x94], ebx
lea ecx, [esi + edi]
sub ebx, edi
sub edx, esi
nop dword [eax + eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x4529e0
mov ebx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0x84]
cmp dword [eax], esi
jae 0x452a10
mov dword [eax], esi
mov esi, 6
jmp 0x452a6e
push edx
push edi
push dword [ebp - 0x88]
call fcn.0047efe0
mov ecx, dword [ebp - 0x7c]
mov eax, esi
mov esi, dword [ebp - 0x88]
sub eax, ecx
push ecx
push dword [ebp - 0x8c]
dec esi
add esi, eax
push esi
call fcn.0047efe0
mov edx, dword [ebp - 0x84]
add esp, 0x18
mov eax, dword [ebp - 0x7c]
lea ecx, [edx*8]
sub ecx, dword [ebp + 0x20]
mov byte [esi + eax], 0xbc
inc ecx
mov eax, 0xff
sar eax, cl
mov ecx, dword [ebp - 0x88]
and byte [ecx], al
xor esi, esi
mov eax, dword [ebp - 0x98]
mov dword [eax], edx
push dword [ebp - 0x8c]
call fcn.00486cb4
push dword [ebp - 0x80]
call fcn.00486cb4
push ebx
call fcn.00486cb4
push edi
call fcn.00486cb4
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
push edi
call fcn.00486cb4
add esp, 4
test ebx, ebx
je 0x452ab9
push ebx
call fcn.00486cb4
add esp, 4
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x452ac9
push eax
call fcn.00486cb4
add esp, 4
test esi, esi
je 0x452ad6
push esi
call fcn.00486cb4
add esp, 4
pop edi
pop esi
mov eax, 0xd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xb
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret