Function at 0x1004ca90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.101aa6d0
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
push esi
mov dword [esp + 0x44], 0
call sym.libcrypto_1_1.dll_BN_CTX_start
push esi
call sym.libcrypto_1_1.dll_BN_CTX_get
mov edi, eax
push esi
mov dword [esp + 0x2c], edi
call sym.libcrypto_1_1.dll_BN_CTX_get
push esi
mov dword [esp + 0x34], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
mov ebp, eax
push esi
mov dword [esp + 0x50], ebp
call sym.libcrypto_1_1.dll_BN_CTX_get
mov esi, eax
add esp, 0x14
mov dword [esp + 0x34], esi
test esi, esi
je 0x1004cf1c
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 0x1004cf1b
push ebp
call sym.libcrypto_1_1.dll_BN_is_zero
add esp, 4
test eax, eax
jne 0x1004cf1b
push ebx
push esi
call sym.libcrypto_1_1.dll_BN_copy
add esp, 8
test eax, eax
je 0x1004cf1b
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.100060af
add esp, 0x10
test eax, eax
je 0x1004cf1b
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x3c], esi
cmp eax, ebx
jge 0x1004cb70
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.100060af
add esp, 8
test eax, eax
je 0x1004cf1b
mov ebp, dword [edi]
mov dword [esp + 0x18], ebp
mov dword [ebp], 1
cmp ebx, 1
jle 0x1004cba5
lea edi, [ebp + 4]
lea ecx, [ebx - 1]
xor eax, eax
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.100060af
add esp, 8
test eax, eax
je 0x1004cf1b
mov edx, dword [esp + 0x20]
mov ebx, dword [ebx]
mov dword [esp + 0x10], ebx
test edx, edx
jle 0x1004cbd4
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
lea esp, [esp]
test ecx, ecx
je 0x1004ccc6
jmp 0x1004cc00
mov ebx, dword [esi]
test bl, 1
jne 0x1004ccbe
mov eax, dword [ebp]
mov ecx, dword [esp + 0x58]
mov ebp, eax
mov ecx, dword [ecx]
and ebp, 1
mov ecx, dword [ecx]
neg ebp
and ecx, ebp
xor eax, ecx
xor ecx, ecx
dec edx
mov dword [esp + 0x34], ecx
test edx, edx
jle 0x1004cc9c
mov ecx, dword [esp + 0x18]
mov edx, esi
sub edx, ecx
mov dword [esp + 0x30], 0xfffffffc
sub dword [esp + 0x30], ecx
lea edi, [ecx + 4]
mov dword [esp + 0x48], edx
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
mov ebx, dword [esp + 0x34]
shr eax, 1
mov dword [esi + ebx*4], ecx
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ecx]
mov ebx, edx
mov edx, dword [esp + 0x30]
add ecx, edi
add edi, 4
mov edx, dword [ecx + edx + 4]
and edx, ebp
xor edx, dword [edi - 4]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov dword [edi - 8], ecx
mov ecx, dword [esp + 0x34]
mov eax, edx
mov edx, dword [esp + 0x20]
inc ecx
dec edx
cmp ecx, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
jl 0x1004cc47
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 0x1004cc00
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ecx, 0x20
jg 0x1004ccde
mov eax, dword [esi]
test eax, eax
je 0x1004cf1b
cmp eax, 1
je 0x1004cef4
cmp ecx, dword [esp + 0x2c]
jge 0x1004cd2d
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov eax, ecx
mov ecx, dword [esp + 0x2c]
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 dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebp
mov esi, edi
mov ebp, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
jmp 0x1004cd31
mov eax, dword [esp + 0x10]
xor edi, edi
test edx, edx
jle 0x1004ce9d
cmp edx, 4
jb 0x1004ce5b
lea eax, [eax + edx*4]
lea ebx, [edx*4 - 4]
add eax, 0xfffffffc
add ebx, ebp
cmp ebp, eax
ja 0x1004cd63
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x1004ce5f
mov eax, dword [esp + 0x14]
lea ebx, [edx*4 - 4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
add ebx, ebp
cmp ebp, eax
ja 0x1004cd84
cmp ebx, dword [esp + 0x14]
jae 0x1004ce5b
lea eax, [edx - 1]
lea ebx, [edx*4 - 4]
lea eax, [esi + eax*4]
add ebx, ebp
cmp ebp, eax
ja 0x1004cd9f
cmp ebx, esi
jae 0x1004ce5b
mov eax, dword [esp + 0x10]
lea ebx, [edx - 1]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
lea ebx, [esi + ebx*4]
cmp esi, eax
ja 0x1004cdbf
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x1004ce5f
mov eax, dword [esp + 0x14]
lea ebx, [edx - 1]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
lea ebx, [esi + ebx*4]
cmp esi, eax
ja 0x1004cddd
cmp ebx, dword [esp + 0x14]
jae 0x1004ce5b
mov eax, edx
and eax, reloc.WS2_32.dll_closesocket
jns 0x1004cdeb
dec eax
or eax, 0xfffffffc
inc eax
mov ebp, dword [esp + 0x14]
sub ebp, esi
mov ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x10]
sub ebp, esi
sub ebx, eax
sub edx, esi
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
mov eax, esi
mov esi, dword [esp + 0x30]
jmp 0x1004ce20
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + ebp]
add edi, 4
pxor xmm1, xmm0
movdqu xmmword [eax], xmm1
movdqu xmm1, xmmword [edx + eax]
movdqu xmm0, xmmword [esi + eax]
lea eax, [eax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp edi, ebx
jl 0x1004ce20
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp edi, edx
jge 0x1004ce9d
mov ebx, dword [esp + 0x14]
sub eax, esi
sub ebp, esi
sub ebx, esi
lea ecx, [esi + edi*4]
sub edx, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], ebp
mov edi, eax
lea esp, [esp]
mov eax, dword [ebx + ecx]
xor dword [ecx], eax
mov eax, dword [edi + ecx]
xor dword [ecx + ebp], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1004ce80
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 0x1004cbf0
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 0x1004ced0
test edi, edi
je 0x1004ced0
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x1004cec3
push eax
call sym.libcrypto_1_1.dll_BN_num_bits_word
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
add esp, 4
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jmp 0x1004cbf0
mov esi, dword [esp + 0x24]
push esi
call fcn.10002167
push esi
push dword [esp + 0x58]
call sym.libcrypto_1_1.dll_BN_copy
xor ecx, ecx
add esp, 0xc
mov edx, 1
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x44], ecx
pop ebx
push dword [esp + 0x58]
call sym.libcrypto_1_1.dll_BN_CTX_end
mov eax, dword [esp + 0x44]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x3c
ret