Function at 0x1003d310
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x198
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x1a8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1ac]
push 0x7f
lea ecx, [esp + 0x25]
push 0
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], 0
call fcn.1008e320
add esp, 0xc
test edi, edi
je 0x1003d711
cmp dword [edi + 8], 0
je 0x1003d711
cmp dword [edi + 0xc], 0
je 0x1003d711
cmp dword [edi + 0x18], 0
je 0x1003d711
cmp dword [edi + 0x10], 0
je 0x1003d711
mov eax, dword [edi]
test eax, eax
je 0x1003d711
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push ecx
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Final_DIGEST
add esp, 0xc
test eax, eax
je 0x1003d3ab
mov eax, 0x100c0018
jmp 0x1003d716
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Start_BIGINT_Pool
add esp, 4
test eax, eax
jne 0x1003d401
mov eax, dword [edi + 0xc]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Bits_Length
mov ebp, dword [esp + 0x14]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add esp, 4
cmp ebp, eax
jle 0x1003d40f
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, ecx
push eax
call fcn.1003d730
add esp, 0x10
test eax, eax
je 0x1003d40b
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c0059
jmp 0x1003d716
mov ebp, dword [esp + 0x10]
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Pool
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x1003d6fe
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Pool
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x1003d6fe
mov ecx, dword [esp + 0x1bc]
mov edx, dword [ecx]
mov eax, dword [esp + 0x1c]
push esi
push edx
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Binary_To_BIGINT
add esp, 0xc
test eax, eax
jne 0x1003d475
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c0005
jmp 0x1003d716
cmp dword [esi + 4], 0
jne 0x1003d491
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c0037
jmp 0x1003d716
mov eax, dword [edi + 0xc]
push eax
push esi
call sym.inicrypto_v5.4.1.dll_ISC_Cmp_BIGINT
add esp, 8
test eax, eax
jle 0x1003d4b8
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c000b
jmp 0x1003d716
xor ecx, ecx
test ebp, ebp
jle 0x1003d4de
mov esi, dword [esp + 0x1b0]
lea edx, [esp + 0x20]
sub esi, edx
jmp 0x1003d4d0
lea eax, [esp + ecx + 0x20]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, ebp
jl 0x1003d4d0
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Binary_To_BIGINT
add esp, 0xc
test eax, eax
je 0x1003d45f
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Pool
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1003d6eb
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Get_BIGINT_Pool
mov esi, eax
add esp, 4
test esi, esi
je 0x1003d6eb
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
push ecx
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_Mod_Exp_Mont_BIGINT
add esp, 0x14
test eax, eax
je 0x1003d555
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c0040
jmp 0x1003d716
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edi + 0x10]
push ecx
push edx
push eax
push esi
call sym.inicrypto_v5.4.1.dll_ISC_Mod_Exp_Mont_BIGINT
add esp, 0x14
test eax, eax
je 0x1003d589
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c0040
jmp 0x1003d716
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 8]
push edx
push eax
push esi
push ebx
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_Mod_Mtp_BIGINT
add esp, 0x14
test eax, eax
je 0x1003d5b6
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c003f
jmp 0x1003d716
lea edx, [esp + 0xa0]
push edx
push ebx
call sym.inicrypto_v5.4.1.dll_ISC_BIGINT_To_Binary_Unsigned
mov esi, eax
mov eax, dword [edi]
mov ecx, dword [eax]
push ecx
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Init_DIGEST
add esp, 0x10
test eax, eax
je 0x1003d5e2
mov eax, 0x100c0022
jmp 0x1003d716
mov eax, dword [edi]
push esi
lea edx, [esp + 0xa4]
push edx
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Update_DIGEST
add esp, 0xc
test eax, eax
je 0x1003d604
mov eax, 0x100c005b
jmp 0x1003d716
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Final_DIGEST
add esp, 0xc
test eax, eax
jne 0x1003d3a1
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 + 0x14]
sar edx, 3
add esp, 4
cmp eax, edx
jle 0x1003d675
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edx, eax
push edx
call fcn.1003d730
add esp, 0x10
test eax, eax
je 0x1003d671
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c0059
jmp 0x1003d716
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1b4]
cmp eax, dword [ecx]
jne 0x1003d6d8
mov esi, dword [esp + 0x1b0]
lea ecx, [esp + 0x20]
cmp eax, 4
jb 0x1003d6a4
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x1003d6d8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x1003d690
test eax, eax
je 0x1003d6c8
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x1003d6d8
cmp eax, 1
jbe 0x1003d6c8
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x1003d6d8
cmp eax, 2
jbe 0x1003d6c8
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x1003d6d8
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 0x1003d716
mov edx, dword [edi + 0x34]
push edx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c005e
jmp 0x1003d716
mov eax, dword [edi + 0x34]
push eax
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c001b
jmp 0x1003d716
mov ecx, dword [edi + 0x34]
push ecx
call sym.inicrypto_v5.4.1.dll_ISC_Finish_BIGINT_Pool
add esp, 4
mov eax, 0x100c001b
jmp 0x1003d716
mov eax, 0x100c0049
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10087a66
add esp, 0x198
ret