Function at 0x4c9fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [ebx + 0x24]
push edi
xor edi, edi
mov esi, edx
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x4ca02f
cmp dword [ebx + 0x28], edi
jne 0x4ca02f
mov edx, dword [ebx + 0x20]
lea ecx, [ebx + 0x14]
call fcn.004563d0
test eax, eax
jne 0x4ca033
push 0x106
push str.crypto_bn_bn_ctx.c
push 0x6d
mov edx, 0x81
lea ecx, [edi + 3]
call fcn.004144f0
add esp, 0xc
inc dword [ebx + 0x24]
jmp 0x4ca033
inc eax
mov dword [ebx + 0x24], eax
mov ecx, ebx
call fcn.00456350
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4ca49e
mov ecx, ebx
call fcn.00456350
mov edx, eax
mov dword [ebp - 0x20], edx
test edx, edx
je 0x4ca49e
mov ecx, ebx
call fcn.00456350
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4ca49e
mov ecx, ebx
call fcn.00456350
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ca49e
mov edi, dword [ebp + 8]
mov edx, esi
mov esi, dword [ebp - 0x24]
push edi
mov ecx, esi
call fcn.004c98e0
add esp, 4
test eax, eax
je 0x4ca49c
cmp dword [esi + 4], 0
je 0x4ca49c
mov ecx, dword [ebp - 0x14]
mov edx, edi
call fcn.0041ded0
test eax, eax
je 0x4ca49c
mov ecx, esi
call fcn.0041daf0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0041daf0
mov edi, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edi
cmp edi, dword [esi + 8]
jg 0x4ca0d8
mov eax, esi
jmp 0x4ca0e1
mov edx, edi
mov ecx, esi
call fcn.0041de20
test eax, eax
je 0x4ca49c
mov edx, dword [ebp - 0x24]
mov esi, dword [esi]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], esi
cmp eax, edi
jge 0x4ca107
mov ecx, dword [ebp - 4]
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 4], edi
cmp edi, dword [ecx + 8]
jg 0x4ca116
mov eax, ecx
jmp 0x4ca120
mov edx, edi
call fcn.0041de20
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x4ca49c
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [edx], 1
cmp edi, 1
jle 0x4ca149
mov ecx, dword [ebp - 4]
dec ecx
lea edi, [edx + 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], edi
mov ecx, dword [ebp - 0x20]
cmp edi, dword [ecx + 8]
jg 0x4ca158
mov eax, ecx
jmp 0x4ca165
mov edx, edi
call fcn.0041de20
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
test eax, eax
je 0x4ca49c
mov ebx, dword [ecx]
mov dword [ebp - 8], ebx
test edi, edi
jle 0x4ca184
mov ecx, edi
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], edi
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4ca250
lea ebx, [ebx]
mov ebx, dword [esi]
test bl, 1
jne 0x4ca24d
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, eax
mov ecx, dword [ecx]
and edx, 1
mov ecx, dword [ecx]
neg edx
and ecx, edx
mov dword [ebp - 0x38], edx
xor eax, ecx
xor ecx, ecx
lea edx, [edi - 1]
mov dword [ebp - 0x34], ecx
test edx, edx
jle 0x4ca233
mov ecx, dword [ebp - 0x10]
mov edx, esi
sub edx, ecx
mov dword [ebp - 0x30], 0xfffffffc
sub dword [ebp - 0x30], ecx
lea edi, [ecx + 4]
mov dword [ebp - 0x3c], edx
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
mov ebx, dword [ebp - 0x34]
shr eax, 1
mov dword [esi + ebx*4], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x30]
mov ebx, edx
lea edi, [edi + 4]
mov edx, dword [ecx + edi]
and edx, dword [ebp - 0x38]
xor edx, dword [edi - 4]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov dword [edi - 8], ecx
mov ecx, dword [ebp - 0x34]
mov eax, edx
mov edx, dword [ebp - 4]
inc ecx
dec edx
cmp ecx, edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
jl 0x4ca1e5
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
shr ebx, 1
mov dword [esi + ecx*4], ebx
shr eax, 1
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x18]
dec ecx
mov dword [ebp - 0x18], ecx
jne 0x4ca1a0
mov ebx, dword [ebp - 8]
cmp ecx, 0x20
jg 0x4ca268
mov eax, dword [esi]
test eax, eax
je 0x4ca499
cmp eax, 1
je 0x4ca449
cmp ecx, dword [ebp - 0x2c]
jge 0x4ca2a8
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0xc], edx
mov edx, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
xor ebx, ebx
test edi, edi
jle 0x4ca3fd
cmp edi, 4
jb 0x4ca3b9
mov eax, dword [ebp - 8]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp edx, eax
ja 0x4ca2d7
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp eax, dword [ebp - 8]
jae 0x4ca3b9
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp edx, eax
ja 0x4ca2f3
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp eax, dword [ebp - 0xc]
jae 0x4ca3b9
lea eax, [edi - 1]
lea eax, [esi + eax*4]
cmp edx, eax
ja 0x4ca30b
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp eax, esi
jae 0x4ca3b9
mov eax, dword [ebp - 8]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x4ca327
lea eax, [edi - 1]
lea eax, [esi + eax*4]
cmp eax, dword [ebp - 8]
jae 0x4ca3b9
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x4ca33f
lea eax, [edi - 1]
lea eax, [esi + eax*4]
cmp eax, dword [ebp - 0xc]
jae 0x4ca3b9
mov eax, edi
and eax, reloc.WS2_32.dll_closesocket
jns 0x4ca34d
dec eax
or eax, 0xfffffffc
inc eax
mov edx, dword [ebp - 0xc]
sub edx, esi
mov dword [ebp - 0x34], edi
sub dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 8]
sub edx, esi
sub edi, esi
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x38]
mov eax, esi
mov esi, dword [ebp - 0x30]
jmp 0x4ca380
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [edx + eax]
add ebx, 4
pxor xmm1, xmm0
movdqu xmmword [eax], xmm1
movdqu xmm1, xmmword [edi + eax]
movdqu xmm0, xmmword [esi + eax]
lea eax, [eax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp ebx, dword [ebp - 0x34]
jl 0x4ca380
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
cmp ebx, edi
jge 0x4ca3fd
mov eax, dword [ebp - 0xc]
sub eax, esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
sub eax, esi
sub edx, esi
lea ecx, [esi + ebx*4]
mov esi, dword [ebp - 0x3c]
sub edi, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ebx, eax
lea esp, [esp]
mov eax, dword [ecx + esi]
xor dword [ecx], eax
mov eax, dword [ecx + ebx]
xor dword [ecx + edx], eax
lea ecx, [ecx + 4]
dec edi
jne 0x4ca3e0
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x2c]
jne 0x4ca192
lea eax, [ecx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov ecx, dword [esi + edi*4]
test ecx, ecx
jne 0x4ca42d
lea ecx, [ecx]
test edi, edi
je 0x4ca42d
mov ecx, dword [esi + edi*4 - 4]
dec edi
test ecx, ecx
je 0x4ca420
call fcn.0041da60
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
jmp 0x4ca192
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 4]
test ecx, ecx
jle 0x4ca471
mov eax, dword [ebx]
lea edx, [ecx - 1]
lea edx, [eax + edx*4]
jmp 0x4ca460
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x4ca46e
dec ecx
test ecx, ecx
jg 0x4ca460
mov dword [ebx + 4], ecx
cmp dword [ebx + 4], 0
jne 0x4ca47e
mov dword [ebx + 0xc], 0
mov ecx, dword [ebp - 0x40]
mov edx, ebx
call fcn.0041ded0
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov ecx, 1
test eax, eax
cmovne edi, ecx
jmp 0x4ca49e
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x4ca4b2
mov eax, edi
pop edi
dec ecx
pop esi
mov dword [ebx + 0x24], ecx
pop ebx
mov esp, ebp
pop ebp
ret
dec dword [ebx + 0x18]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x20]
mov esi, dword [eax + ecx*4]
cmp esi, edx
jae 0x4ca4fd
mov eax, dword [ebx + 0xc]
sub edx, esi
lea ecx, [eax - 1]
sub eax, edx
and ecx, 0xf
mov dword [ebx + 0xc], eax
test edx, edx
je 0x4ca4fd
lea esp, [esp]
dec edx
test ecx, ecx
jne 0x4ca4f8
mov eax, dword [ebx + 4]
mov ecx, 0xf
mov eax, dword [eax + 0x140]
mov dword [ebx + 4], eax
jmp 0x4ca4f9
dec ecx
test edx, edx
jne 0x4ca4e0
mov eax, edi
pop edi
mov dword [ebx + 0x20], esi
pop esi
mov dword [ebx + 0x28], 0
pop ebx
mov esp, ebp
pop ebp
ret