Function at 0x581080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a2c48
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x78], edi
mov esi, ecx
mov dword [ebp - 0x48], esi
xor eax, eax
mov dword [ebp - 0x48], esi
push eax
push 0x7cd378
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004044f0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], 0
call fcn.00404120
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00404490
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x58152f
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x48], edi
jb 0x58111a
mov eax, dword [edi]
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x58152f
xor edi, edi
mov edx, eax
cmp word [eax], 0x5c
je 0x58113f
nop dword [eax]
cmp ecx, 1
je 0x581141
add edx, 2
dec ecx
cmp word [edx], 0x5c
jne 0x581130
mov edi, edx
test edi, edi
je 0x58152f
sub edi, dword [ebp - 0x48]
sar edi, 1
cmp edi, 0xffffffff
je 0x58152f
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x28]
push edi
push 0
push eax
call fcn.00403fb0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x70], 0x11
mov dword [ebp - 0x6c], 0xf200f0
mov dword [ebp - 0x68], 0xe200ff
mov dword [ebp - 0x64], 0xfe00e3
mov dword [ebp - 0x60], 0xfe00f2
mov dword [ebp - 0x5c], 0x920093
mov dword [ebp - 0x58], 0x900087
mov dword [ebp - 0x54], 0x97009b
mov dword [ebp - 0x50], 0x880089
mov dword [ebp - 0x4c], 0xc9009c
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x6c], ax
inc ecx
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jb 0x5811b2
xor ecx, ecx
mov word [ebp + eax*2 - 0x6c], cx
lea ecx, [ebp - 0x6c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5811d2
mov eax, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
cmp eax, ecx
jne 0x581205
push eax
lea eax, [ebp - 0x6c]
push eax
push edx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x581272
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0xd100c3
mov dword [ebp - 0x54], 0xd800d1
mov dword [ebp - 0x50], 0xc000ce
mov dword [ebp - 0x4c], 0xbe
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x48], eax
lea eax, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x581240
sub edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
sar edx, 1
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp eax, edx
jne 0x5812c8
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x5812c8
mov ecx, dword [ebp - 0x78]
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x44], SysStringLen
push eax
call fcn.00403fb0
mov edi, eax
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x5814e4
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movq qword [ebp - 0x30], xmm0
mov word [edi], ax
jmp 0x5814e4
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0x12
mov dword [ebp - 0x70], 0xf200f0
mov dword [ebp - 0x6c], 0xe200ff
mov dword [ebp - 0x68], 0xf100e3
mov dword [ebp - 0x64], 0xfc00f1
mov dword [ebp - 0x60], 0x8d0081
mov dword [ebp - 0x5c], 0x8e009d
mov dword [ebp - 0x58], 0x860085
mov dword [ebp - 0x54], 0x8e008e
mov dword [ebp - 0x50], 0x8c0086
mov dword [ebp - 0x4c], 0xca
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x48], eax
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x581325
sub edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
sar edx, 1
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp eax, edx
jne 0x581357
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x5813c2
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0xd100c3
mov dword [ebp - 0x54], 0xd700d1
mov dword [ebp - 0x50], 0xc000d1
mov dword [ebp - 0x4c], 0xbe
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x48], eax
lea eax, [edx + 2]
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x581390
sub edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
sar edx, 1
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp eax, edx
jne 0x5813ce
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x5813ce
mov dword [ebp - 0x44], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x5814c9
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x11
mov dword [ebp - 0x6c], 0xf200f0
mov dword [ebp - 0x68], 0xe200ff
mov dword [ebp - 0x64], 0xfe00e3
mov dword [ebp - 0x60], 0xed00eb
mov dword [ebp - 0x5c], 0x840092
mov dword [ebp - 0x58], 0x97008c
mov dword [ebp - 0x54], 0x90009b
mov dword [ebp - 0x50], 0x820095
mov dword [ebp - 0x4c], 0xc9009a
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x48], eax
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x581424
sub edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
sar edx, 1
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp eax, edx
jne 0x581456
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x5814c2
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0xd100c3
mov dword [ebp - 0x54], 0xd800d1
mov dword [ebp - 0x50], 0xc000c9
mov dword [ebp - 0x4c], 0xbe
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x48], eax
lea eax, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x581490
sub edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
sar edx, 1
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp eax, edx
jne 0x5814ec
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x5814ec
mov dword [ebp - 0x44], SysStringLen
mov ecx, dword [ebp - 0x78]
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403fb0
push eax
lea ecx, [ebp - 0x40]
call fcn.00404030
lea ecx, [ebp - 0x60]
call fcn.00404490
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 4], xmm0
mov word [ebp - 0x40], ax
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x14], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.00404490
jmp 0x581564
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 4], xmm0
mov word [ebp - 0x40], ax
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x14], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
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.0076d59e
mov esp, ebp
pop ebp
ret