Function at 0x1003ceb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1a8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1a4], eax
mov ecx, dword [esp + 0x1b4]
mov eax, dword [esp + 0x1b0]
mov edx, dword [esp + 0x1b8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1bc]
push 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1d0]
lea ecx, [esp + 0xb5]
push 0
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
mov byte [esp + 0xbc], 0
call fcn.1008e320
add esp, 0xc
push 0x7f
lea edx, [esp + 0x35]
push 0
push edx
mov byte [esp + 0x3c], 0
call fcn.1008e320
add esp, 0xc
test edi, edi
je 0x1003d2e7
cmp dword [edi + 8], 0
je 0x1003d2e7
cmp dword [edi + 0xc], 0
je 0x1003d2e7
cmp dword [edi + 0x14], 0
je 0x1003d2e7
cmp dword [edi + 0x10], 0
je 0x1003d2e7
mov eax, dword [edi]
test eax, eax
je 0x1003d2e7
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Final_DIGEST
add esp, 0xc
test eax, eax
je 0x1003cf8b
mov eax, 0x100b0018
jmp 0x1003d2ec
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Start_BIGINT_Pool
add esp, 4
test eax, eax
jne 0x1003d2ec
mov ecx, dword [edi + 0xc]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Bits_Length
add eax, 7
cdq
and edx, 7
add edx, eax
mov eax, dword [esp + 0x18]
sar edx, 3
add esp, 4
cmp eax, edx
jle 0x1003cfef
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, eax
push edx
call fcn.1003d730
add esp, 0x10
test eax, eax
je 0x1003cfef
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b0059
jmp 0x1003d2ec
mov ecx, dword [edi + 0xc]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Bits_Length
add eax, 7
cdq
and edx, 7
add eax, edx
mov edx, dword [edi + 0x34]
add esp, 4
mov ebp, eax
push edx
sar ebp, 3
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Pool
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1003d2d4
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Pool
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
je 0x1003d2d4
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Pool
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x1003d2d4
mov edx, dword [edi + 0xc]
mov eax, dword [edi]
mov ecx, dword [eax]
push edx
push ebx
push ecx
mov eax, edi
call fcn.1003b260
add esp, 0xc
test eax, eax
jne 0x1003d09e
cmp dword [ebx + 4], eax
je 0x1003d051
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x10]
push eax
push ecx
push ebx
push edx
push esi
call sym.inicrypto_v5.4.1.dll_ISC_Mod_Exp_Mont_BIGINT
add esp, 0x14
test eax, eax
je 0x1003d0b4
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b0040
jmp 0x1003d2ec
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b001d
jmp 0x1003d2ec
lea ecx, [esp + 0xb0]
push ecx
push esi
call sym.inicrypto_v5.4.1.dll_ISC_BIGINT_To_Binary_Unsigned
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax]
push edx
push eax
mov dword [esp + 0x30], esi
call sym.inicrypto_v5.4.1.dll_ISC_Init_DIGEST
add esp, 0x10
test eax, eax
je 0x1003d0e4
mov eax, 0x100b0022
jmp 0x1003d2ec
mov ecx, dword [edi]
push esi
lea eax, [esp + 0xb4]
push eax
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Update_DIGEST
add esp, 0xc
test eax, eax
je 0x1003d106
mov eax, 0x100b005b
jmp 0x1003d2ec
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Final_DIGEST
add esp, 0xc
test eax, eax
jne 0x1003cf81
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [edx], esi
mov eax, dword [edi + 0xc]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Bits_Length
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add esp, 4
cmp esi, eax
jle 0x1003d177
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push esi
push eax
push ecx
push eax
call fcn.1003d730
add esp, 0x10
test eax, eax
je 0x1003d177
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b0059
jmp 0x1003d2ec
test esi, esi
jle 0x1003d195
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
sub eax, ecx
dec esi
lea edx, [eax + esi]
mov cl, byte [esp + edx + 0x30]
xor byte [esp + esi + 0x30], cl
test esi, esi
jg 0x1003d185
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push esi
push edx
lea eax, [esp + 0x38]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Binary_To_BIGINT
add esp, 0xc
test eax, eax
je 0x1003d2c1
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0xc]
push ecx
push edx
push esi
push esi
push 0
call sym.inicrypto_v5.4.1.dll_ISC_Div_BIGINT
add esp, 0x14
test eax, eax
jne 0x1003d2c1
push esi
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_Cmp_BIGINT
add esp, 8
test eax, eax
jge 0x1003d1f8
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push ebx
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_Add_BIGINT
add esp, 0x10
test eax, eax
jne 0x1003d161
mov eax, dword [edi + 0x34]
push eax
push esi
push ebx
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_Sub_BIGINT
add esp, 0x10
test eax, eax
je 0x1003d221
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b0058
jmp 0x1003d2ec
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x14]
push edx
push eax
push ecx
push ebx
mov ebx, dword [esp + 0x34]
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_Mod_Mtp_BIGINT
add esp, 0x14
test eax, eax
je 0x1003d255
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b0042
jmp 0x1003d2ec
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Bits_Length
add eax, 7
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x1c]
sar esi, 3
sub eax, esi
add esp, 4
add eax, ebp
push eax
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_BIGINT_To_Binary_Unsigned
sub ebp, eax
mov eax, ebp
add esp, 8
test eax, eax
jle 0x1003d296
mov ecx, dword [esp + 0x18]
push eax
push 0
push ecx
call fcn.1008e320
add esp, 0xc
mov edx, esi
and edx, 0x80000001
jns 0x1003d2a5
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x1003d2ab
inc esi
mov eax, dword [esp + 0x28]
mov dword [eax], esi
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
xor eax, eax
jmp 0x1003d2ec
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b0005
jmp 0x1003d2ec
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100b001b
jmp 0x1003d2ec
mov eax, 0x100b0049
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10087a66
add esp, 0x1a8
ret