Function at 0x5f1c00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
mov eax, esi
push edi
cdq
and edx, 0xf
mov dword [esp + 0x2c], 0x12345678
add eax, edx
mov dword [esp + 0x30], 0x56785678
mov ebp, eax
mov dword [esp + 0x34], 0x9abc5678
sar ebp, 4
and esi, reloc.WS2_32.dll_ntohs
mov dword [esp + 0x38], 0xdeff5678
mov dword [esp + 0x64], ebp
jns 0x5f1c49
dec esi
or esi, 0xfffffff0
inc esi
mov dword [esp + 0x18], esi
jne 0x5f1d02
test ebp, ebp
jle 0x5f1f85
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
sub edi, eax
mov esi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x60], ebp
jmp 0x5f1c75
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
add edi, esi
mov ebp, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [edi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x5f1c82
add ecx, 4
add edi, 4
dec ebp
jne 0x5f1c80
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.005ef410
add esp, 0xc
xor edi, edi
mov eax, dword [esp + edi + 0x3c]
mov ebp, dword [esp + edi + 0x1c]
xor ebp, eax
mov dword [esp + edi + 0x2c], eax
mov dword [esp + edi + 0x4c], ebp
xor eax, eax
mov ecx, 0x18
mov edx, ebp
sub ecx, eax
add eax, 8
shr edx, cl
inc esi
cmp eax, 0x20
mov byte [esi - 1], dl
jl 0x5f1ccc
add edi, 4
cmp edi, 0x10
jl 0x5f1cb8
mov eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x60], eax
jne 0x5f1c71
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
test ebp, ebp
jle 0x5f1db1
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
sub edi, eax
mov esi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
jmp 0x5f1d24
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
add edi, esi
mov ebp, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [edi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x5f1d31
add ecx, 4
add edi, 4
dec ebp
jne 0x5f1d2f
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.005ef410
add esp, 0xc
xor edi, edi
mov eax, dword [esp + edi + 0x3c]
mov ebp, dword [esp + edi + 0x1c]
xor ebp, eax
mov dword [esp + edi + 0x2c], eax
mov dword [esp + edi + 0x4c], ebp
xor eax, eax
mov ecx, 0x18
mov edx, ebp
sub ecx, eax
add eax, 8
shr edx, cl
inc esi
cmp eax, 0x20
mov byte [esi - 1], dl
jl 0x5f1d7b
add edi, 4
cmp edi, 0x10
jl 0x5f1d67
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x5f1d20
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x18]
mov eax, esi
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
and esi, reloc.WS2_32.dll_closesocket
jns 0x5f1dcb
dec esi
or esi, 0xfffffffc
inc esi
mov dword [esp + 0x10], esi
jne 0x5f1e6f
test ebx, ebx
jle 0x5f1e09
mov eax, dword [esp + 0x60]
mov ecx, ebp
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 0x5f1dec
add esi, 4
add ecx, 4
dec edi
jne 0x5f1dea
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.005ef410
add esp, 0xc
xor ebp, ebp
test ebx, ebx
jle 0x5f1f85
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
shl esi, 4
add esi, eax
mov eax, dword [esp + ebp*4 + 0x3c]
mov edi, dword [esp + ebp*4 + 0x1c]
xor edi, eax
mov dword [esp + ebp*4 + 0x2c], eax
mov dword [esp + ebp*4 + 0x4c], edi
xor eax, eax
mov ecx, 0x18
mov edx, edi
sub ecx, eax
add eax, 8
shr edx, cl
inc esi
cmp eax, 0x20
mov byte [esi - 1], dl
jl 0x5f1e4b
inc ebp
cmp ebp, ebx
jl 0x5f1e37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
test ebx, ebx
jle 0x5f1eab
mov eax, dword [esp + 0x60]
mov ecx, ebp
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 0x5f1e86
add esi, 4
add ecx, 4
dec edi
jne 0x5f1e84
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
jle 0x5f1ed2
mov edx, dword [esp + 0x60]
lea ecx, [ebx + ebp*4]
lea edi, [edx + ecx*4]
mov edx, dword [esp + ebx*4 + 0x1c]
xor ecx, ecx
mov cl, byte [edi + eax]
shl edx, 8
xor ecx, edx
inc eax
cmp eax, esi
mov dword [esp + ebx*4 + 0x1c], ecx
jl 0x5f1ebb
mov edx, dword [esp + ebx*4 + 0x1c]
lea eax, [esi*8]
mov ecx, 0x20
sub ecx, eax
lea eax, [esp + 0x2c]
shl edx, cl
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + ebx*4 + 0x20], edx
lea edx, [esp + 0x40]
push edx
push eax
call fcn.005ef410
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x5f1f4a
mov eax, dword [esp + 0x68]
mov esi, ebp
shl esi, 4
add esi, eax
mov eax, dword [esp + edi*4 + 0x3c]
mov ebp, dword [esp + edi*4 + 0x1c]
xor ebp, eax
mov dword [esp + edi*4 + 0x2c], eax
mov dword [esp + edi*4 + 0x4c], ebp
xor eax, eax
mov ecx, 0x18
mov edx, ebp
sub ecx, eax
add eax, 8
shr edx, cl
inc esi
cmp eax, 0x20
mov byte [esi - 1], dl
jl 0x5f1f26
inc edi
cmp edi, ebx
jl 0x5f1f12
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + ebx*4 + 0x3c]
mov edx, dword [esp + ebx*4 + 0x1c]
xor edi, edx
xor eax, eax
test esi, esi
mov dword [esp + ebx*4 + 0x4c], edi
jle 0x5f1f85
mov edx, dword [esp + 0x68]
lea ecx, [ebx + ebp*4]
xor esi, esi
lea ebp, [edx + ecx*4]
mov ecx, 0x18
mov edx, edi
sub ecx, esi
add esi, 8
shr edx, cl
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov byte [eax + ebp - 1], dl
jl 0x5f1f6a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret