Function at 0x1001dbdc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x34
pop eax
call fcn.1005ead0
and dword [ebp - 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x1001dc0e
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call sym.LIBEAY32.dll_BN_GF2m_mod_sqr_arr
add esp, 0x10
jmp 0x1001ddb5
push edi
push dword [ebp + 0x18]
call sym.LIBEAY32.dll_BN_CTX_start
push dword [ebp + 0x18]
call sym.LIBEAY32.dll_BN_CTX_get
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1001dda8
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 4]
lea esi, [eax + ecx + 4]
cmp esi, dword [edi + 8]
jg 0x1001dc3e
mov eax, edi
jmp 0x1001dc47
push esi
push edi
call sym.LIBEAY32.dll_bn_expand2
pop ecx
pop ecx
test eax, eax
je 0x1001dda8
xor eax, eax
test esi, esi
mov dword [edi + 4], esi
jle 0x1001dc63
mov ecx, dword [edi]
and dword [ecx + eax*4], 0
inc eax
cmp eax, esi
jl 0x1001dc58
mov ecx, dword [ebx + 4]
and dword [ebp - 8], 0
test ecx, ecx
jle 0x1001dd70
jmp 0x1001dc77
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov eax, dword [ebx]
mov edx, esi
shl edx, 2
add eax, edx
mov ebx, dword [eax]
inc esi
cmp esi, ecx
mov dword [ebp - 0x14], ebx
jne 0x1001dc93
and dword [ebp - 0xc], 0
jmp 0x1001dc99
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], ebx
jle 0x1001dd5d
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], ecx
jmp 0x1001dcbd
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
lea ecx, [ecx + ebx*4]
mov esi, dword [ecx]
inc ebx
cmp ebx, eax
jne 0x1001dcd0
xor ebx, ebx
jmp 0x1001dcd3
mov ebx, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.1001d59d
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.1001d59d
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
xor ecx, esi
push eax
call fcn.1001d59d
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0x18]
xor eax, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x24]
xor eax, dword [ebp - 0x30]
xor ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
xor ecx, eax
add esp, 0x18
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, dword [edi]
mov esi, dword [ebp + ecx*4 - 0x34]
add eax, edx
xor dword [eax], esi
inc ecx
add edx, 4
cmp ecx, 4
jl 0x1001dd33
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], 2
mov eax, dword [eax + 4]
add dword [ebp - 0x10], 8
cmp dword [ebp - 4], eax
jl 0x1001dcba
mov eax, dword [ebp + 0x10]
add dword [ebp - 8], 2
mov ecx, dword [eax + 4]
cmp dword [ebp - 8], ecx
jl 0x1001dc74
mov eax, dword [edi + 4]
test eax, eax
jle 0x1001dd8e
mov ecx, dword [edi]
lea eax, [ecx + eax*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x1001dd8e
dec dword [edi + 4]
cmp dword [edi + 4], ecx
jg 0x1001dd7d
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call sym.LIBEAY32.dll_BN_GF2m_mod_arr
add esp, 0xc
test eax, eax
je 0x1001dda8
mov dword [ebp - 0x1c], 1
push dword [ebp + 0x18]
call sym.LIBEAY32.dll_BN_CTX_end
mov eax, dword [ebp - 0x1c]
pop ecx
pop edi
pop esi
pop ebx
leave
ret