Function at 0x4521a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0xa0], eax
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0xa4], esi
test eax, eax
jne 0x452205
push str.e:ladik_appdir_stormlib_srclibtomcrypt_srcpkpkcs1pkcs_1_pss_decode.c
push 0x2a
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
test esi, esi
jne 0x452234
push str.e:ladik_appdir_stormlib_srclibtomcrypt_srcpkpkcs1pkcs_1_pss_decode.c
push 0x2b
push str.res___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
mov dword [esi], 0
cmp ebx, 0x1f
ja 0x452637
imul ecx, ebx, 0x68
mov dword [ebp - 0x98], ecx
cmp dword [ecx + 0x4b2760], 0
je 0x452637
mov eax, dword [ebp + 0x20]
mov ebx, 0
test al, 7
push edi
setne bl
shr eax, 3
add ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x8c], ebx
cmp eax, ebx
ja 0x452621
mov edi, dword [ecx + 0x4b2768]
add eax, 2
add eax, edi
cmp ebx, eax
jb 0x452621
cmp dword [ebp + 0x14], ebx
jne 0x452621
push ebx
call fcn.00486ccf
mov esi, eax
push ebx
mov dword [ebp - 0x84], esi
call fcn.00486ccf
push ebx
mov dword [ebp - 0x7c], eax
call fcn.00486ccf
push ebx
mov dword [ebp - 0x88], eax
call fcn.00486ccf
add esp, 0x10
mov dword [ebp - 0x78], eax
test esi, esi
je 0x4525d8
cmp dword [ebp - 0x7c], 0
je 0x4525cf
cmp dword [ebp - 0x88], 0
je 0x4525cf
test eax, eax
je 0x4525cf
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x80]
cmp byte [edx + ecx - 1], 0xbc
je 0x452306
mov esi, 7
jmp 0x452595
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x94], eax
lea ebx, [eax - 1]
push ebx
push edx
push esi
call fcn.0047efe0
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x8c]
sub eax, edi
dec eax
push edi
add eax, esi
push eax
push dword [ebp - 0x78]
call fcn.0047efe0
lea ecx, [esi*8]
mov eax, 0xff
sub ecx, dword [ebp + 0x20]
add esp, 0x18
inc ecx
sar eax, cl
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x9c], eax
not eax
test byte [ecx], al
je 0x452361
mov esi, 7
jmp 0x452592
push ebx
push dword [ebp - 0x7c]
push edi
push dword [ebp - 0x78]
push dword [ebp - 0x90]
call fcn.00451fc0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x452592
xor ecx, ecx
mov dword [ebp - 0x80], ecx
test ebx, ebx
je 0x45244e
mov edx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x7c]
cmp ebx, 0x40
jb 0x45242f
lea eax, [esi - 1]
mov dword [ebp - 0x80], ecx
add eax, ebx
cmp edx, eax
ja 0x4523b5
lea eax, [edx - 1]
add eax, ebx
cmp eax, esi
jae 0x45242f
mov eax, ebx
mov ecx, esi
and eax, 0xffffffc0
sub ecx, edx
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov eax, edx
mov edx, dword [ebp - 0x90]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi + ecx + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi + ecx + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + ecx + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, dword [ebp - 0x8c]
jb 0x4523d5
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x80], ecx
cmp ecx, ebx
jae 0x45244e
add ecx, edx
sub esi, edx
sub ebx, dword [ebp - 0x80]
nop word [eax + eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub ebx, 1
jne 0x452440
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x94]
sub edx, dword [ebp + 0x18]
and byte [ecx], al
xor eax, eax
add edx, 0xfffffffe
je 0x45247f
nop dword [eax]
cmp byte [eax + ecx], 0
jne 0x452357
inc eax
cmp eax, edx
jb 0x452470
add eax, ecx
mov dword [ebp - 0x94], eax
cmp byte [eax], 1
jne 0x452357
mov ebx, dword [ebp - 0x98]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebx + 0x4b27b4]
call eax
mov esi, eax
add esp, 4
test esi, esi
jne 0x452592
mov esi, dword [ebp - 0x7c]
push 8
push esi
call fcn.00456ac0
push 8
lea eax, [ebp - 0x74]
push esi
push eax
mov eax, dword [ebx + 0x4b27b8]
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x452592
push dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push dword [ebp - 0xa0]
push eax
mov eax, dword [ebx + 0x4b27b8]
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x452592
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x94]
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebx + 0x4b27b8]
call eax
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x452592
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push ebx
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x4b27bc]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x452592
mov edx, dword [ebp - 0x78]
mov ecx, ebx
sub edi, 4
jb 0x452552
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x452557
add ecx, 4
add edx, 4
sub edi, 4
jae 0x452541
cmp edi, 0xfffffffc
je 0x452584
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x452590
cmp edi, 0xfffffffd
je 0x452584
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x452590
cmp edi, 0xfffffffe
je 0x452584
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x452590
cmp edi, 0xffffffff
je 0x452584
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x452590
mov eax, dword [ebp - 0xa4]
mov dword [eax], 1
xor esi, esi
mov eax, dword [ebp - 0x78]
push eax
call fcn.00486cb4
push dword [ebp - 0x88]
call fcn.00486cb4
push dword [ebp - 0x7c]
call fcn.00486cb4
push dword [ebp - 0x84]
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 esi
call fcn.00486cb4
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4525e8
push eax
call fcn.00486cb4
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4525fb
push eax
call fcn.00486cb4
add esp, 4
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x45260b
push eax
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
mov ecx, dword [ebp - 4]
mov eax, 0xb
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret