Function at 0x1015f8e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
mov eax, esi
push edi
cdq
and edx, 0xf
xor ecx, ecx
add eax, edx
mov dword [esp + 0x3c], 0x12345678
mov edi, eax
mov dword [esp + 0x40], 0x56785678
sar edi, 4
and esi, 0x8000000f
mov dword [esp + 0x44], 0x9abc5678
mov dword [esp + 0x48], 0xdeff5678
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], edi
jns 0x1015f94b
dec esi
or esi, 0xfffffff0
inc esi
mov dword [esp + 0x18], esi
jne 0x1015fa04
cmp edi, ecx
jle 0x1015fc7d
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
sub esi, eax
mov ebp, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], edi
jmp 0x1015f977
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
add esi, ebp
mov edi, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [esi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x1015f984
add ecx, 4
add esi, 4
dec edi
jne 0x1015f982
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.1015d2d0
add esp, 0xc
mov edi, ebp
xor ebp, ebp
mov esi, dword [esp + ebp + 0x2c]
mov eax, dword [esp + ebp + 0x1c]
xor esi, eax
xor eax, eax
mov dword [esp + ebp + 0x3c], esi
mov ecx, 0x18
mov edx, esi
sub ecx, eax
add eax, 8
shr edx, cl
inc edi
cmp eax, 0x20
mov byte [edi - 1], dl
jl 0x1015f9cc
add ebp, 4
cmp ebp, 0x10
jl 0x1015f9bc
mov eax, dword [esp + 0x50]
mov ebp, edi
dec eax
mov dword [esp + 0x50], eax
jne 0x1015f973
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
cmp edi, ecx
jle 0x1015fab5
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
sub esi, eax
mov ebp, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jmp 0x1015fa26
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
add esi, ebp
mov edi, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [esi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x1015fa33
add ecx, 4
add esi, 4
dec edi
jne 0x1015fa31
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.1015d2d0
add esp, 0xc
mov edi, ebp
xor ebp, ebp
mov esi, dword [esp + ebp + 0x2c]
mov eax, dword [esp + ebp + 0x1c]
xor esi, eax
xor eax, eax
mov dword [esp + ebp + 0x3c], esi
mov ecx, 0x18
mov edx, esi
sub ecx, eax
add eax, 8
shr edx, cl
inc edi
cmp eax, 0x20
mov byte [edi - 1], dl
jl 0x1015fa7b
add ebp, 4
cmp ebp, 0x10
jl 0x1015fa6b
mov eax, dword [esp + 0x14]
mov ebp, edi
dec eax
mov dword [esp + 0x14], eax
jne 0x1015fa22
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
and esi, reloc.WS2_32.dll_closesocket
jns 0x1015facf
dec esi
or esi, 0xfffffffc
inc esi
mov dword [esp + 0x14], esi
jne 0x1015fb6f
cmp ebx, ecx
jle 0x1015fb11
mov eax, dword [esp + 0x50]
mov ecx, edi
shl ecx, 4
lea esi, [esp + 0x1c]
add ecx, eax
mov edi, ebx
xor eax, eax
mov ebp, dword [esi]
xor edx, edx
mov dl, byte [ecx + eax]
shl ebp, 8
xor edx, ebp
inc eax
cmp eax, 4
mov dword [esi], edx
jl 0x1015faf0
add esi, 4
add ecx, 4
dec edi
jne 0x1015faee
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.1015d2d0
add esp, 0xc
xor ebp, ebp
test ebx, ebx
jle 0x1015fc7d
mov eax, dword [esp + 0x58]
shl edi, 4
add edi, eax
mov esi, dword [esp + ebp*4 + 0x2c]
mov eax, dword [esp + ebp*4 + 0x1c]
xor esi, eax
xor eax, eax
mov dword [esp + ebp*4 + 0x3c], esi
mov ecx, 0x18
mov edx, esi
sub ecx, eax
add eax, 8
shr edx, cl
inc edi
cmp eax, 0x20
mov byte [edi - 1], dl
jl 0x1015fb4b
inc ebp
cmp ebp, ebx
jl 0x1015fb3b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
cmp ebx, ecx
jle 0x1015fbad
mov eax, dword [esp + 0x50]
mov ecx, edi
shl ecx, 4
lea esi, [esp + 0x1c]
add ecx, eax
mov edi, ebx
xor eax, eax
mov ebp, dword [esi]
xor edx, edx
mov dl, byte [ecx + eax]
shl ebp, 8
xor edx, ebp
inc eax
cmp eax, 4
mov dword [esi], edx
jl 0x1015fb86
add esi, 4
add ecx, 4
dec edi
jne 0x1015fb84
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
xor ecx, ecx
xor eax, eax
cmp esi, ecx
jle 0x1015fbd4
mov edx, dword [esp + 0x50]
lea ecx, [ebx + edi*4]
lea ebp, [edx + ecx*4]
mov edx, dword [esp + ebx*4 + 0x1c]
xor ecx, ecx
mov cl, byte [eax + ebp]
shl edx, 8
xor ecx, edx
inc eax
cmp eax, esi
mov dword [esp + ebx*4 + 0x1c], ecx
jl 0x1015fbbd
lea eax, [esi*8]
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + ebx*4 + 0x1c]
shl eax, cl
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + ebx*4 + 0x24], eax
lea eax, [esp + 0x44]
push eax
call fcn.1015d2d0
add esp, 0xc
xor ebp, ebp
test ebx, ebx
jle 0x1015fc3e
mov eax, dword [esp + 0x58]
shl edi, 4
add edi, eax
mov esi, dword [esp + ebp*4 + 0x2c]
mov eax, dword [esp + ebp*4 + 0x1c]
xor esi, eax
xor eax, eax
mov dword [esp + ebp*4 + 0x3c], esi
mov ecx, 0x18
mov edx, esi
sub ecx, eax
add eax, 8
shr edx, cl
inc edi
cmp eax, 0x20
mov byte [edi - 1], dl
jl 0x1015fc22
inc ebp
cmp ebp, ebx
jl 0x1015fc12
mov edi, dword [esp + ebx*4 + 0x2c]
mov edx, dword [esp + ebx*4 + 0x1c]
xor edi, edx
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + ebx*4 + 0x3c], edi
test edx, edx
jle 0x1015fc7d
mov ecx, dword [esp + 0x54]
xor esi, esi
lea ecx, [ebx + ecx*4]
mov ebx, dword [esp + 0x58]
lea ebp, [ebx + ecx*4]
mov ecx, 0x18
mov ebx, edi
sub ecx, esi
add esi, 8
shr ebx, cl
inc eax
cmp eax, edx
mov byte [eax + ebp - 1], bl
jl 0x1015fc66
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret