Function at 0x42941319
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x44]
cmp eax, 0x20
jae 0x4294133a
push dword [ebp + 8]
call sym.cryptopp.dll_public_virtual:_class_CryptoPP::PolynomialMod2_const____thiscall_CryptoPP::QuotientRing_class_CryptoPP::EuclideanDomainOf_class_CryptoPP::PolynomialMod2__::MultiplicativeInverse_class_CryptoPP::PolynomialMod2_const__const
jmp 0x429416df
mov eax, dword [esi + 0x34]
push ebx
push edi
shl eax, 2
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
call sym.cryptopp.dll_public:_unsigned_int____thiscall_CryptoPP::AllocatorWithCleanup_unsigned_int_::allocate_unsigned_int__void_const__
and dword [ebp - 8], 0
mov ebx, eax
mov eax, dword [esi + 0x34]
lea ecx, [ebx + eax*4]
mov dword [ebp - 0xc], ecx
lea ecx, [ebx + eax*8]
mov dword [ebp - 0x18], ecx
mov ecx, eax
imul ecx, ecx, 0xc
mov dword [ebp - 0x10], eax
imul eax, eax, 3
add ecx, ebx
test eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
jbe 0x4294138b
mov ecx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov dword [ebx], 1
push dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, edi
call fcn.4293fe8d
push dword [esi + 0x38]
mov edx, dword [esi + 0x34]
mov eax, dword [ebp - 0x14]
call fcn.4293fe8d
pop ecx
pop ecx
mov eax, dword [edi]
test eax, eax
jne 0x429413fd
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4 - 4]
mov dword [ebp + 8], eax
push 1
push dword [ebp - 0x10]
mov ecx, edi
call fcn.4296b556
mov eax, dword [ebp + 8]
cmp dword [eax], 0
pop ecx
pop ecx
je 0x429413e4
inc dword [ebp - 4]
add dword [ebp + 8], 4
mov eax, dword [ebp - 0xc]
push 1
push dword [ebp - 4]
call fcn.4293ff4e
mov eax, dword [edi]
add dword [ebp - 8], 0x20
test eax, eax
pop ecx
pop ecx
je 0x429413c7
and dword [ebp + 8], 0
jmp 0x42941408
shr eax, 1
inc dword [ebp + 8]
test al, 1
je 0x42941403
mov ecx, dword [ebp + 8]
add dword [ebp - 8], ecx
cmp eax, 1
mov ecx, dword [ebp - 0x10]
jne 0x4294143a
test ecx, ecx
mov edx, ecx
je 0x42941431
lea eax, [edi + ecx*4 - 4]
cmp dword [eax], 0
jne 0x42941431
dec edx
sub eax, 4
test edx, edx
jne 0x42941424
cmp edx, 1
je 0x429414f2
cmp dword [ebp + 8], 1
mov edx, edi
jne 0x4294144d
push 1
call fcn.4296b556
push 1
jmp 0x42941458
push dword [ebp + 8]
call fcn.4296b556
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.4296b556
add esp, 0x10
test eax, eax
je 0x42941476
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 4]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x10]
cmp dword [edi + eax*4 - 4], 0
mov ecx, dword [ebp - 0x14]
jne 0x4294148e
cmp dword [ecx + eax*4 - 4], 0
jne 0x4294148e
dec eax
mov dword [ebp - 0x10], eax
shl eax, 2
mov edx, dword [eax + edi - 4]
cmp edx, dword [eax + ecx - 4]
jae 0x429414ae
mov dword [ebp - 0x14], edi
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
test edx, edx
jbe 0x429414c9
mov eax, edi
sub ecx, edi
mov dword [ebp + 8], edx
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
dec dword [ebp + 8]
jne 0x429414bc
cmp dword [ebp - 4], 0
jbe 0x429413b4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
sub ecx, ebx
mov dword [ebp + 8], edx
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
dec dword [ebp + 8]
jne 0x429414e0
jmp 0x429413b4
mov eax, dword [ebp - 8]
push 0x20
pop ecx
cmp eax, ecx
jb 0x429415f5
shr eax, 5
mov dword [ebp - 0x14], eax
mov edx, dword [esi + 0x3c]
mov eax, dword [ebx]
add edx, 0x1f
and edx, 0xffffffe0
cmp edx, ecx
jbe 0x42941538
mov dword [ebp + 8], 1
mov ecx, ebx
inc dword [ebp + 8]
lea edx, [ecx + 4]
mov edi, dword [edx]
mov dword [ecx], edi
mov ecx, edx
mov edx, dword [esi + 0x3c]
add edx, 0x1f
shr edx, 5
cmp dword [ebp + 8], edx
jb 0x4294151e
mov ecx, dword [esi + 0x3c]
add ecx, 0x1f
shr ecx, 5
xor edx, edx
mov dword [ebx + ecx*4 - 4], edx
mov ecx, dword [esi + 0x44]
cmp ecx, 0x20
jae 0x42941579
mov dword [ebp + 8], 0x20
sub dword [ebp + 8], ecx
je 0x4294158b
mov dword [ebp - 0x18], ecx
mov ecx, edx
mov edi, eax
shr edi, cl
mov ecx, dword [ebp - 0x18]
and edi, 1
shl edi, cl
xor eax, edi
inc edx
inc dword [ebp - 0x18]
cmp edx, dword [ebp + 8]
jb 0x4294155e
jmp 0x4294158b
mov edx, ecx
and ecx, 0x1f
mov edi, eax
shr edx, 5
shl edi, cl
lea edx, [ebx + edx*4 - 4]
xor dword [edx], edi
test byte [esi + 0x44], 0x1f
je 0x429415aa
mov edx, dword [esi + 0x44]
mov ecx, edx
shr ecx, 5
lea edi, [ebx + ecx*4]
and edx, 0x1f
push 0x20
pop ecx
sub ecx, edx
mov edx, eax
shr edx, cl
xor dword [edi], edx
mov ecx, dword [esi + 0x40]
test cl, 0x1f
je 0x429415dd
mov edx, ecx
and ecx, 0x1f
mov edi, eax
shl edi, cl
shr edx, 5
lea edx, [ebx + edx*4 - 4]
push 0x20
xor dword [edx], edi
mov edx, dword [esi + 0x40]
mov ecx, edx
shr ecx, 5
lea edi, [ebx + ecx*4]
and edx, 0x1f
pop ecx
sub ecx, edx
shr eax, cl
xor dword [edi], eax
jmp 0x429415e6
shr ecx, 5
lea ecx, [ebx + ecx*4 - 4]
xor dword [ecx], eax
push 0x20
pop ecx
sub dword [ebp - 8], ecx
dec dword [ebp - 0x14]
jne 0x42941506
cmp dword [ebp - 8], 0
je 0x429416bf
sub ecx, dword [ebp - 8]
mov edi, dword [ebx]
push dword [ebp - 8]
shl edi, cl
mov ecx, dword [esi + 0x3c]
add ecx, 0x1f
shr ecx, 5
mov edx, ebx
call fcn.4296b556
mov eax, dword [esi + 0x44]
cmp eax, 0x20
pop ecx
jae 0x4294164e
mov dword [ebp + 8], 0x20
xor edx, edx
sub dword [ebp + 8], eax
je 0x42941660
mov dword [ebp - 0x18], eax
mov ecx, edx
mov eax, edi
shr eax, cl
mov ecx, dword [ebp - 0x18]
and eax, 1
shl eax, cl
xor edi, eax
inc edx
inc dword [ebp - 0x18]
cmp edx, dword [ebp + 8]
jb 0x42941633
jmp 0x42941660
mov ecx, eax
and ecx, 0x1f
mov edx, edi
shr eax, 5
shl edx, cl
lea eax, [ebx + eax*4 - 4]
xor dword [eax], edx
test byte [esi + 0x44], 0x1f
je 0x4294167f
mov eax, dword [esi + 0x44]
mov ecx, eax
shr ecx, 5
lea edx, [ebx + ecx*4]
and eax, 0x1f
push 0x20
pop ecx
sub ecx, eax
mov eax, edi
shr eax, cl
xor dword [edx], eax
test byte [esi + 0x40], 0x1f
je 0x429416b3
mov ecx, dword [esi + 0x40]
mov eax, ecx
and ecx, 0x1f
mov edx, edi
shl edx, cl
shr eax, 5
lea eax, [ebx + eax*4 - 4]
push 0x20
xor dword [eax], edx
mov eax, dword [esi + 0x40]
mov ecx, eax
shr ecx, 5
lea edx, [ebx + ecx*4]
and eax, 0x1f
pop ecx
sub ecx, eax
shr edi, cl
xor dword [edx], edi
jmp 0x429416bf
mov eax, dword [esi + 0x40]
shr eax, 5
lea eax, [ebx + eax*4 - 4]
xor dword [eax], edi
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x50]
push ebx
call fcn.4293fe8d
pop ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x20]
call sym.cryptopp.dll_public:_void___thiscall_CryptoPP::AllocatorWithCleanup_unsigned_int_::deallocate_void___unsigned_int_
pop edi
lea eax, [esi + 0x48]
pop ebx
pop esi
leave
ret 4