Function at 0x10005399
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1009c230
mov eax, 0x3c
call fcn.101704b0
push edi
mov edi, dword [esp + 0x50]
push edi
mov dword [esp + 0x3c], 0
call sym.libcrypto_1_1.dll_BN_CTX_start
push edi
call sym.libcrypto_1_1.dll_BN_CTX_get
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x1009c6e1
push esi
mov esi, dword [esp + 0x54]
push esi
call sym.libcrypto_1_1.dll_BN_CTX_get
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x1009c6e0
push ebp
push esi
call sym.libcrypto_1_1.dll_BN_CTX_get
mov ebp, eax
add esp, 4
mov dword [esp + 0x3c], ebp
test ebp, ebp
je 0x1009c6df
push esi
call sym.libcrypto_1_1.dll_BN_CTX_get
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
je 0x1009c6df
push ebx
mov ebx, dword [esp + 0x58]
push ebx
push dword [esp + 0x58]
push ebp
call sym.libcrypto_1_1.dll_BN_GF2m_mod
add esp, 0xc
test eax, eax
je 0x1009c6de
push ebp
call sym.libcrypto_1_1.dll_BN_is_zero
add esp, 4
test eax, eax
jne 0x1009c6de
push ebx
push esi
call sym.libcrypto_1_1.dll_BN_copy
add esp, 8
test eax, eax
je 0x1009c6de
push ebp
call sym.libcrypto_1_1.dll_BN_num_bits
push esi
mov dword [esp + 0x24], eax
call sym.libcrypto_1_1.dll_BN_num_bits
mov ebx, dword [ebx + 4]
push ebx
push ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ebx
call fcn.1000351c
add esp, 0x10
test eax, eax
je 0x1009c6de
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x3c], esi
cmp eax, ebx
jge 0x1009c335
mov ecx, ebx
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
push ebx
push edi
mov dword [ebp + 4], ebx
call fcn.1000351c
add esp, 8
test eax, eax
je 0x1009c6de
mov ebp, dword [edi]
mov dword [esp + 0x18], ebp
mov dword [ebp], 1
cmp ebx, 1
jle 0x1009c36a
lea ecx, [ebx - 1]
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov dword [edi + 4], ebx
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.1000351c
add esp, 8
test eax, eax
je 0x1009c6de
mov edx, dword [esp + 0x20]
mov ebx, dword [ebx]
mov dword [esp + 0x10], ebx
test edx, edx
jle 0x1009c399
mov ecx, edx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x38]
mov edi, dword [eax]
mov dword [esp + 0x14], edi
mov edi, edi
test ecx, ecx
je 0x1009c485
jmp 0x1009c3c0
mov ebx, dword [esi]
test bl, 1
jne 0x1009c47d
mov ecx, dword [esp + 0x58]
dec edx
mov eax, dword [ebp]
mov ebp, eax
and ebp, 1
neg ebp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, ebp
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
test edx, edx
jle 0x1009c45b
mov ecx, dword [esp + 0x18]
mov edx, esi
sub edx, ecx
mov dword [esp + 0x30], 0xfffffffc
sub dword [esp + 0x30], ecx
mov dword [esp + 0x48], edx
lea edi, [ecx + 4]
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [esp + 0x34]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ecx]
add ecx, edi
mov edx, dword [ecx + edx + 4]
and edx, ebp
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [esp + 0x20]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [esp + 0x34]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x48]
jl 0x1009c407
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
shr ebx, 1
mov dword [esi + ecx*4], ebx
shr eax, 1
mov dword [ebp + ecx*4], eax
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x1009c3c0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ecx, 0x20
jg 0x1009c49d
mov eax, dword [esi]
test eax, eax
je 0x1009c6de
cmp eax, 1
je 0x1009c6b7
cmp ecx, dword [esp + 0x2c]
jge 0x1009c4ec
mov ebp, dword [esp + 0x40]
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], ebp
mov ebp, dword [ebp]
mov dword [esp + 0x24], esi
mov esi, edi
mov dword [esp + 0x14], ebp
mov ebp, ebx
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
jmp 0x1009c4f0
mov eax, dword [esp + 0x10]
xor edi, edi
test edx, edx
jle 0x1009c660
cmp edx, 4
jb 0x1009c61f
lea eax, [eax + edx*4]
lea ebx, [edx*4 - 4]
add eax, 0xfffffffc
add ebx, ebp
cmp ebp, eax
ja 0x1009c522
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x1009c623
lea eax, [edx - 1]
lea ebx, [edx*4 - 4]
lea eax, [esi + eax*4]
add ebx, ebp
cmp ebp, eax
ja 0x1009c53d
cmp ebx, esi
jae 0x1009c61f
mov eax, dword [esp + 0x14]
lea ebx, [edx*4 - 4]
add ebx, ebp
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp ebp, eax
ja 0x1009c55e
cmp ebx, dword [esp + 0x14]
jae 0x1009c61f
mov eax, dword [esp + 0x10]
lea ebx, [edx - 1]
lea ebx, [esi + ebx*4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x1009c57e
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x1009c623
mov eax, dword [esp + 0x14]
lea ebx, [edx - 1]
lea ebx, [esi + ebx*4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x1009c59c
cmp ebx, dword [esp + 0x14]
jae 0x1009c61f
mov eax, edx
and eax, reloc.WS2_32.dll_closesocket
jns 0x1009c5aa
dec eax
or eax, 0xfffffffc
inc eax
mov ebp, dword [esp + 0x14]
mov ebx, edx
mov edx, dword [esp + 0x18]
sub ebp, esi
mov dword [esp + 0x48], ebp
sub ebx, eax
mov ebp, dword [esp + 0x10]
mov eax, esi
sub ebp, esi
sub edx, esi
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
lea ebx, [ebx]
movdqu xmm0, xmmword [eax]
add edi, 4
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [eax + ebp - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
movdqu xmm1, xmmword [edx + eax - 0x10]
movdqu xmm0, xmmword [esi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp edi, ebx
jl 0x1009c5e0
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp edi, edx
jge 0x1009c660
mov ebx, dword [esp + 0x14]
lea ecx, [esi + edi*4]
sub eax, esi
sub ebp, esi
sub ebx, esi
mov dword [esp + 0x48], eax
sub edx, edi
mov dword [esp + 0x34], ebp
mov edi, eax
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [edi + ecx - 4]
xor dword [ecx + ebp - 4], eax
dec edx
jne 0x1009c640
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jne 0x1009c3b0
lea eax, [ecx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x1009c693
test edi, edi
je 0x1009c693
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x1009c686
push eax
call sym.libcrypto_1_1.dll_BN_num_bits_word
mov edx, dword [esp + 0x24]
add esp, 4
mov ebx, dword [esp + 0x10]
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jmp 0x1009c3b0
mov esi, dword [esp + 0x24]
push esi
call fcn.100021cb
push esi
push dword [esp + 0x58]
call sym.libcrypto_1_1.dll_BN_copy
xor ecx, ecx
add esp, 0xc
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [esp + 0x44], ecx
pop ebx
pop ebp
pop esi
push dword [esp + 0x50]
call sym.libcrypto_1_1.dll_BN_CTX_end
mov eax, dword [esp + 0x3c]
add esp, 4
pop edi
add esp, 0x3c
ret