Function at 0x582200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4418
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
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 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 0x7cf388
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 0x5826af
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x48], edi
jb 0x58229a
mov eax, dword [edi]
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x5826af
xor edi, edi
mov edx, eax
cmp word [eax], 0x5c
je 0x5822bf
nop dword [eax]
cmp ecx, 1
je 0x5822c1
add edx, 2
dec ecx
cmp word [edx], 0x5c
jne 0x5822b0
mov edi, edx
test edi, edi
je 0x5826af
sub edi, dword [ebp - 0x48]
sar edi, 1
cmp edi, 0xffffffff
je 0x5826af
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], 0xe100e1
mov dword [ebp - 0x68], 0xf500ee
mov dword [ebp - 0x64], 0xed00f2
mov dword [ebp - 0x60], 0xf100e3
mov dword [ebp - 0x5c], 0xe100e2
mov dword [ebp - 0x58], 0xe700f6
mov dword [ebp - 0x54], 0xe400ea
mov dword [ebp - 0x50], 0xf700f8
mov dword [ebp - 0x4c], 0xba00ed
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x6c], ax
inc ecx
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jb 0x582332
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 0x582352
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 0x582385
push eax
lea eax, [ebp - 0x6c]
push eax
push edx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x5823f2
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0xc200d2
mov dword [ebp - 0x54], 0xcf00c0
mov dword [ebp - 0x50], 0xd300df
mov dword [ebp - 0x4c], 0xaf
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 0x5823c0
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 0x582448
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x582448
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 0x582664
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 0x582664
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0x12
mov dword [ebp - 0x70], 0xe100e1
mov dword [ebp - 0x6c], 0xf500ee
mov dword [ebp - 0x68], 0xe200f2
mov dword [ebp - 0x64], 0xf300e0
mov dword [ebp - 0x60], 0xfe00f0
mov dword [ebp - 0x5c], 0xf900ec
mov dword [ebp - 0x58], 0xf500f4
mov dword [ebp - 0x54], 0xf100ff
mov dword [ebp - 0x50], 0xff00f7
mov dword [ebp - 0x4c], 0xbb
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 0x5824a5
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 0x5824d7
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x582542
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0xc200d2
mov dword [ebp - 0x54], 0xc000c0
mov dword [ebp - 0x50], 0xd300c0
mov dword [ebp - 0x4c], 0xaf
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 0x582510
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 0x58254e
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x58254e
mov dword [ebp - 0x44], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x582649
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x11
mov dword [ebp - 0x6c], 0xe100e1
mov dword [ebp - 0x68], 0xf500ee
mov dword [ebp - 0x64], 0xed00f2
mov dword [ebp - 0x60], 0xe200fa
mov dword [ebp - 0x5c], 0xf700e3
mov dword [ebp - 0x58], 0xe000fd
mov dword [ebp - 0x54], 0xe300ea
mov dword [ebp - 0x50], 0xfd00e4
mov dword [ebp - 0x4c], 0xba00eb
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 0x5825a4
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 0x5825d6
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x582642
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0xc200d2
mov dword [ebp - 0x54], 0xcf00c0
mov dword [ebp - 0x50], 0xd300d8
mov dword [ebp - 0x4c], 0xaf
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 0x582610
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 0x58266c
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x58266c
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 0x5826e4
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.0076eb7e
mov esp, ebp
pop ebp
ret