Function at 0x582710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4450
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], edx
mov esi, ecx
mov dword [ebp - 0x5c], esi
xor eax, eax
mov dword [ebp - 0x5c], esi
push eax
push 0x7cf388
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004044f0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 0
mov eax, dword [eax]
cmp eax, 0x80000000
jne 0x582819
cmp byte [ebp + 8], 0
je 0x582790
push 3
push 0x7da17c
jmp 0x5829f1
mov dword [ebp - 0x50], 0x11
xor ecx, ecx
mov dword [ebp - 0x4c], 0xe100e1
mov dword [ebp - 0x48], 0xf500ee
mov dword [ebp - 0x44], 0xed00f2
mov dword [ebp - 0x40], 0xf100e3
mov dword [ebp - 0x3c], 0xe100e2
mov dword [ebp - 0x38], 0xe700f6
mov dword [ebp - 0x34], 0xe400ea
mov dword [ebp - 0x30], 0xf700f8
mov dword [ebp - 0x2c], 0xba00ed
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x4c], ax
inc ecx
mov eax, dword [ebp - 0x50]
cmp ecx, eax
jb 0x5827e0
xor ecx, ecx
mov word [ebp + eax*2 - 0x4c], cx
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582800
sub ecx, edx
lea eax, [ebp - 0x4c]
sar ecx, 1
push ecx
push eax
jmp 0x5829f1
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x5828d1
cmp byte [ebp + 8], 0
je 0x582865
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 0xe100e1
mov dword [ebp - 0x30], 0xe100e7
mov dword [ebp - 0x2c], 0xad
call fcn.00403e20
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582855
jmp 0x5829eb
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x12
mov dword [ebp - 0x50], 0xe100e1
mov dword [ebp - 0x4c], 0xf500ee
mov dword [ebp - 0x48], 0xe200f2
mov dword [ebp - 0x44], 0xf300e0
mov dword [ebp - 0x40], 0xfe00f0
mov dword [ebp - 0x3c], 0xf900ec
mov dword [ebp - 0x38], 0xf500f4
mov dword [ebp - 0x34], 0xf100ff
mov dword [ebp - 0x30], 0xff00f7
mov dword [ebp - 0x2c], 0xbb
call fcn.00403e20
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5828c1
jmp 0x5829eb
cmp eax, 0x80000001
jne 0x582982
cmp byte [ebp + 8], 0
je 0x582920
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 0xe100e1
mov dword [ebp - 0x30], 0xf900e8
mov dword [ebp - 0x2c], 0xad
call fcn.00403e20
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582910
jmp 0x5829eb
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x11
mov dword [ebp - 0x4c], 0xe100e1
mov dword [ebp - 0x48], 0xf500ee
mov dword [ebp - 0x44], 0xed00f2
mov dword [ebp - 0x40], 0xe200fa
mov dword [ebp - 0x3c], 0xf700e3
mov dword [ebp - 0x38], 0xe000fd
mov dword [ebp - 0x34], 0xe300ea
mov dword [ebp - 0x30], 0xfd00e4
mov dword [ebp - 0x2c], 0xba00eb
call fcn.00403e20
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582975
jmp 0x5829eb
cmp eax, reloc.WS2_32.dll_closesocket
jne 0x5829f9
cmp byte [ebp + 8], 0
je 0x582998
push 3
push 0x7da174
jmp 0x5829f1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0xa
mov dword [ebp - 0x40], 0xe100e1
mov dword [ebp - 0x3c], 0xf500ee
mov dword [ebp - 0x38], 0xfb00f2
mov dword [ebp - 0x34], 0xf500fc
mov dword [ebp - 0x30], 0xe100e3
mov dword [ebp - 0x2c], 0xb3
call fcn.00403e20
mov edx, eax
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5829e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004044f0
mov edi, dword [ebp - 0x58]
add edi, 4
cmp dword [edi + 0x10], 0
jne 0x582a3a
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
jmp 0x582a65
push 0x7cf384
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00421b40
push edi
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00413520
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret