Function at 0x10049dc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x101165b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x8f4], eax
mov dword [ebp - 0x900], ecx
mov dword [ebp - 0x910], edx
mov dword [ebp - 0x90c], edi
call sym.cis_cc_3.2.dll_MINT_GetBitLength
mov ebx, eax
lea eax, [edi + 0x20c]
push eax
call sym.cis_cc_3.2.dll_MINT_GetBitLength
add esp, 8
mov dword [ebp - 0x8ec], eax
test bl, 7
je 0x10049e1f
shr ebx, 3
inc ebx
jmp 0x10049e22
shr ebx, 3
mov dword [ebp - 0x8f8], ebx
test al, 7
je 0x10049e3a
mov ebx, eax
shr ebx, 3
inc ebx
mov dword [ebp - 0x904], ebx
jmp 0x10049e45
shr eax, 3
mov dword [ebp - 0x904], eax
mov ebx, eax
push ebx
call fcn.10085e5d
mov dword [ebp - 0x8f0], eax
mov eax, dword [ebp - 0x8f8]
push eax
call fcn.10085e5d
push ebx
mov dword [ebp - 0x908], eax
call fcn.10085e5d
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x8fc], eax
call sym.cis_cc_3.2.dll_RANDHASH_Initialize
mov edx, dword [ebp - 0x8ec]
mov eax, dword [ebp - 0x8f0]
push edx
push eax
call sym.cis_cc_3.2.dll_HASHDRBG_GetRandNum
add esp, 0x18
jmp 0x10049e96
mov ebx, dword [ebp - 0x904]
mov edx, dword [ebp - 0x8fc]
lea ecx, [ebp - 0x44]
push ecx
push ebx
push edx
call sym.cis_cc_3.2.dll_RANDHASH_GetRandomNum
add esp, 0xc
test ebx, ebx
jle 0x10049ed0
mov eax, dword [ebp - 0x8f0]
mov ecx, dword [ebp - 0x8fc]
sub ecx, eax
mov dword [ebp - 0x8ec], ebx
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp - 0x8ec]
jne 0x10049ec2
mov eax, dword [ebp - 0x8f0]
push ebx
push eax
lea ecx, [ebp - 0x250]
push ecx
call sym.cis_cc_3.2.dll_MINT_SetByByteArray
lea eax, [edi + 0x20c]
push eax
lea edx, [ebp - 0x250]
push edx
call sym.cis_cc_3.2.dll_MINT_Compare
add esp, 0x14
test eax, eax
jns 0x10049e96
push 4
push edi
lea eax, [ebp - 0x250]
push eax
lea ecx, [edi + 0x418]
push ecx
lea edx, [ebp - 0x8e8]
push edx
call sym.cis_cc_3.2.dll_MINT_ExpWin
mov ecx, dword [ebp - 0x8f8]
mov ebx, dword [ebp - 0x908]
lea eax, [ebp - 0x8e8]
push eax
push ecx
push ebx
call sym.cis_cc_3.2.dll_MINT_WriteLSNByteInByteArray
lea edx, [ebp - 0x6dc]
push esi
push edx
call sym.cis_cc_3.2.dll_HASH_Initialize
mov eax, dword [ebp - 0x8f8]
push eax
lea ecx, [ebp - 0x6dc]
push ebx
push ecx
call sym.cis_cc_3.2.dll_HASH_Update_clone
mov ebx, dword [ebp - 0x8f4]
lea edx, [ebp - 0x6dc]
push edx
lea eax, [ebp - 0x914]
push eax
push ebx
call sym.cis_cc_3.2.dll_HASH_Finalize
xor ecx, ecx
add esp, 0x40
cmp dword [esi], ecx
jle 0x10049f94
mov eax, dword [ebp - 0x900]
mov edi, ebx
sub edi, eax
mov dl, byte [edi + eax]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esi]
jl 0x10049f83
mov edi, dword [ebp - 0x90c]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x900]
push eax
push ecx
lea edx, [ebp - 0x45c]
push edx
call sym.cis_cc_3.2.dll_MINT_SetByByteArray
lea ebx, [edi + 0x20c]
lea eax, [ebp - 0x45c]
push ebx
push eax
call sym.cis_cc_3.2.dll_MINT_ModClassic
mov eax, dword [ebp - 0x8f4]
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x250]
push edx
add eax, 0x40
push eax
call sym.cis_cc_3.2.dll_MINT_Sub
add esp, 0x20
test eax, eax
je 0x10049e90
jns 0x10049ffb
mov eax, dword [ebp - 0x8f4]
add eax, 0x40
push eax
push ebx
push eax
call sym.cis_cc_3.2.dll_MINT_Sub
add esp, 0xc
mov esi, dword [ebp - 0x8f4]
mov ecx, dword [ebp - 0x910]
add esi, 0x40
push esi
push ecx
push esi
call sym.cis_cc_3.2.dll_MINT_Mult
push ebx
push esi
call sym.cis_cc_3.2.dll_MINT_ModClassic
mov edx, dword [ebp - 0x8f0]
push edx
call fcn.10085a2f
mov eax, dword [ebp - 0x908]
push eax
call fcn.10085a2f
mov ecx, dword [ebp - 0x8fc]
push ecx
call fcn.10085a2f
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1008600b
mov esp, ebp
pop ebp
ret