Function at 0x1007ccf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x34], 0
test eax, eax
jne 0x1007cd42
cmp dword [edi + 0x28], eax
jne 0x1007cd42
mov eax, dword [edi + 0x20]
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.10033f40
add esp, 8
test eax, eax
jne 0x1007cd46
push 0x108
mov eax, 0x6d
push str...crypto_bn_bn_ctx.c
push 3
lea ecx, [eax + 0x14]
call fcn.1002c650
add esp, 0xc
inc dword [edi + 0x24]
jmp 0x1007cd46
inc eax
mov dword [edi + 0x24], eax
mov esi, edi
call fcn.10033ef0
mov dword [esp + 0x18], eax
test eax, eax
je 0x1007d0d1
call fcn.10033ef0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1007d0d1
push ebx
call fcn.10033ef0
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x1007d0d0
push ebp
call fcn.10033ef0
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x1007d0cf
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
push edx
push ebx
mov ecx, esi
call fcn.1007c720
add esp, 8
test eax, eax
je 0x1007d0cf
cmp dword [ebx + 4], 0
je 0x1007d0cf
push esi
push ebp
call fcn.10024440
add esp, 8
test eax, eax
je 0x1007d0cf
mov edx, ebx
call fcn.100240f0
mov edx, ebp
mov dword [esp + 0x10], eax
call fcn.100240f0
mov esi, dword [esi + 4]
cmp esi, dword [ebx + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], esi
jle 0x1007cdf7
push esi
mov edi, ebx
call fcn.100243d0
add esp, 4
mov eax, dword [ebx + 4]
cmp eax, esi
mov ebp, dword [ebx]
mov dword [esp + 0x2c], ebp
jge 0x1007ce10
mov ecx, esi
lea edi, [ebp + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov dword [ebx + 4], esi
cmp esi, dword [edi + 8]
jle 0x1007ce25
push esi
call fcn.100243d0
add esp, 4
cmp esi, 1
mov edx, dword [esp + 0x20]
mov edi, dword [edx]
mov dword [esp + 0x14], edi
mov dword [edi], 1
jle 0x1007ce44
add edi, 4
lea ecx, [esi - 1]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov dword [edx + 4], esi
cmp esi, dword [edi + 8]
jle 0x1007ce59
push esi
call fcn.100243d0
add esp, 4
mov edx, dword [esp + 0x24]
mov edi, dword [edx]
mov dword [esp + 0x34], edi
test esi, esi
jle 0x1007ce6d
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], esi
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
lea ebx, [ebx]
cmp dword [esp + 0x10], 0
je 0x1007cf4e
jmp 0x1007ce90
mov eax, dword [ebp]
test al, 1
jne 0x1007cf4e
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov ebx, eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov esi, edx
and esi, 1
neg esi
and eax, esi
xor edx, eax
mov eax, dword [esp + 0x1c]
dec eax
xor edi, edi
test eax, eax
jle 0x1007cf2c
mov eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x40], ebp
mov ebp, 0xfffffffc
sub ebp, eax
lea ecx, [eax + 4]
mov dword [esp + 0x44], ebp
lea esp, [esp]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + ecx]
mov ebp, eax
shl ebp, 0x1f
shr ebx, 1
or ebp, ebx
mov ebx, dword [esp + 0x2c]
mov dword [ebx + edi*4], ebp
mov ebp, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
add eax, ecx
mov eax, dword [eax + ebp + 4]
and eax, esi
xor eax, dword [ecx]
shr edx, 1
mov ebp, eax
shl ebp, 0x1f
or ebp, edx
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [ecx - 4], ebp
inc edi
dec eax
add ecx, 4
cmp edi, eax
jl 0x1007cee0
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
shr ebx, 1
shr edx, 1
sub dword [esp + 0x10], 1
mov dword [ebp + edi*4], ebx
mov ebx, dword [esp + 0x18]
mov dword [ecx + edi*4], edx
jne 0x1007ce90
mov eax, dword [esp + 0x10]
cmp eax, 0x20
jg 0x1007cf61
cmp dword [ebp], 1
je 0x1007d08d
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jge 0x1007cfaf
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, ebx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], eax
test esi, esi
jle 0x1007cfe2
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
sub edx, ebp
sub edi, ebp
mov eax, ebp
sub ecx, ebp
mov ebx, dword [eax + edx]
xor dword [eax], ebx
mov ebx, dword [eax + edi]
xor dword [eax + ecx], ebx
add eax, 4
sub esi, 1
jne 0x1007cfc7
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x38]
jne 0x1007ce80
dec eax
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov ecx, dword [ebp + eax*4]
test ecx, ecx
jne 0x1007d00f
test eax, eax
je 0x1007d00f
mov ecx, dword [ebp + eax*4 - 4]
dec eax
test ecx, ecx
je 0x1007d002
test ecx, 0xffff0000
je 0x1007d055
test ecx, 0xff000000
je 0x1007d03a
shr ecx, 0x18
movzx ecx, byte [ecx + 0x100f7b20]
add ecx, 0x18
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x1007ce80
shr ecx, 0x10
movzx ecx, byte [ecx + 0x100f7b20]
add ecx, 0x10
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x1007ce80
test ecx, 0xff00
je 0x1007d078
shr ecx, 8
movzx ecx, byte [ecx + 0x100f7b20]
add ecx, 8
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x1007ce80
movzx ecx, byte [ecx + 0x100f7b20]
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x1007ce80
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
test eax, eax
jle 0x1007d0b1
mov ecx, dword [edx]
lea ecx, [ecx + eax*4 - 4]
mov edi, edi
mov esi, dword [ecx]
sub ecx, 4
test esi, esi
jne 0x1007d0ae
dec eax
test eax, eax
jg 0x1007d0a0
mov dword [edx + 4], eax
push edx
mov edx, dword [esp + 0x50]
push edx
call fcn.10024440
mov edi, dword [esp + 0x60]
add esp, 8
test eax, eax
je 0x1007d0cf
mov dword [esp + 0x3c], 1
pop ebp
pop ebx
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1007d0e6
dec eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x34]
pop edi
pop esi
add esp, 0x38
ret
dec dword [edi + 0x18]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + eax*4]
mov eax, dword [edi + 0x20]
cmp esi, eax
jae 0x1007d12d
mov ecx, dword [edi + 0xc]
sub eax, esi
mov edx, eax
lea eax, [ecx - 1]
sub ecx, edx
and eax, 0xf
mov dword [edi + 0xc], ecx
test edx, edx
je 0x1007d12d
nop
dec edx
test eax, eax
jne 0x1007d128
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x140]
mov eax, 0xf
mov dword [edi + 4], ecx
jmp 0x1007d129
dec eax
test edx, edx
jne 0x1007d110
mov eax, dword [esp + 0x34]
mov dword [edi + 0x20], esi
mov dword [edi + 0x28], 0
pop edi
pop esi
add esp, 0x38
ret