Function at 0x586600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a371c
mov eax, dword fs:[0]
push eax
sub esp, 0x154
push ebx
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x118]
push 3
xor eax, eax
mov dword [ebp - 0x108], 0
push 0x7d81c0
mov dword [ebp - 0x104], 7
mov word [ebp - 0x118], ax
call fcn.004044f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x104], 8
mov ebx, 1
mov dword [ebp - 0x14], ebx
mov ecx, esi
cmovae eax, dword [ebp - 0x118]
cmp dword [esi + 0x14], 8
jb 0x586690
mov ecx, dword [esi]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x586a30
mov dword [ebp - 0x28], 7
xor ecx, ecx
mov dword [ebp - 0x24], 0xd400db
mov dword [ebp - 0x20], 0x9500de
mov dword [ebp - 0x1c], 0xc500d9
mov dword [ebp - 0x18], 0xbf00db
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x24], ax
inc ecx
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jb 0x5866d0
xor ecx, ecx
mov word [ebp + eax*2 - 0x24], cx
xor eax, eax
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xec], 7
lea edx, [ecx + 2]
mov word [ebp - 0x100], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x586710
sub ecx, edx
lea eax, [ebp - 0x24]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.004044f0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x100]
cmp dword [ebp - 0xec], 8
mov ebx, 3
mov dword [ebp - 0x14], ebx
mov ecx, esi
cmovae eax, dword [ebp - 0x100]
cmp dword [esi + 0x14], 8
jb 0x58675c
mov ecx, dword [esi]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x586a30
mov dword [ebp - 0x64], 0x1b
xor ecx, ecx
mov dword [ebp - 0x60], 0x8300fb
mov dword [ebp - 0x5c], 0xec00e6
mov dword [ebp - 0x58], 0xd300d5
mov dword [ebp - 0x54], 0xd000da
mov dword [ebp - 0x50], 0xb200b7
mov dword [ebp - 0x4c], 0x90009e
mov dword [ebp - 0x48], 0xb600bd
mov dword [ebp - 0x44], 0xa200b2
mov dword [ebp - 0x40], 0xfa00a5
mov dword [ebp - 0x3c], 0x9700f8
mov dword [ebp - 0x38], 0xa000af
mov dword [ebp - 0x34], 0xe100aa
mov dword [ebp - 0x30], 0xa900b5
mov dword [ebp - 0x2c], 0xd300b7
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x60], ax
inc ecx
mov eax, dword [ebp - 0x64]
cmp ecx, eax
jb 0x5867e0
xor ecx, ecx
mov word [ebp + eax*2 - 0x60], cx
xor eax, eax
mov dword [ebp - 0xd8], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xd4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xe8], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x586820
sub ecx, edx
lea eax, [ebp - 0x60]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.004044f0
mov dword [ebp - 4], 2
lea eax, [ebp - 0xe8]
cmp dword [ebp - 0xd4], 8
mov ebx, 7
mov dword [ebp - 0x14], ebx
mov ecx, esi
cmovae eax, dword [ebp - 0xe8]
cmp dword [esi + 0x14], 8
jb 0x58686c
mov ecx, dword [esi]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x586a30
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 8
mov dword [ebp - 0x78], 0xc100dd
mov dword [ebp - 0x74], 0xd700ca
mov dword [ebp - 0x70], 0xcf00d3
mov dword [ebp - 0x6c], 0xcd00db
mov dword [ebp - 0x68], 0xc0
call fcn.00403e20
push eax
lea ecx, [ebp - 0x130]
call fcn.004040b0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x130]
cmp dword [ebp - 0x11c], 8
mov ebx, 0xf
mov dword [ebp - 0x14], ebx
mov eax, esi
cmovae ecx, dword [ebp - 0x130]
cmp dword [esi + 0x14], 8
jb 0x5868e6
mov eax, dword [esi]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x586a30
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0xc
mov dword [ebp - 0x98], 0xc100dd
mov dword [ebp - 0x94], 0xd700ca
mov dword [ebp - 0x90], 0xcf00d3
mov dword [ebp - 0x8c], 0xcd00db
mov dword [ebp - 0x88], 0xa400ee
mov dword [ebp - 0x84], 0xa600ba
mov dword [ebp - 0x80], 0xc4
call fcn.00403e20
push eax
lea ecx, [ebp - 0x160]
call fcn.004040b0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x160]
mov ebx, 0x1f
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.004059e0
test al, al
jne 0x586a30
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x17
mov dword [ebp - 0xcc], 0x8300fb
mov dword [ebp - 0xc8], 0xec00e6
mov dword [ebp - 0xc4], 0xd300d5
mov dword [ebp - 0xc0], 0xd000da
mov dword [ebp - 0xbc], 0xb200b7
mov dword [ebp - 0xb8], 0xa6009e
mov dword [ebp - 0xb4], 0xb500bc
mov dword [ebp - 0xb0], 0xa800aa
mov dword [ebp - 0xac], 0xac00ba
mov dword [ebp - 0xa8], 0xe500b8
mov dword [ebp - 0xa4], 0xb500a9
mov dword [ebp - 0xa0], 0xcf00ab
call fcn.00403e20
push eax
lea ecx, [ebp - 0x148]
call fcn.004040b0
lea edx, [ebp - 0x148]
mov ecx, esi
mov ebx, 0x3f
call fcn.004059e0
mov byte [ebp - 0xd], 0
test al, al
je 0x586a34
mov byte [ebp - 0xd], 1
test bl, 0x20
je 0x586a47
lea ecx, [ebp - 0x148]
and ebx, 0xffffffdf
call fcn.00404490
test bl, 0x10
je 0x586a5a
lea ecx, [ebp - 0x160]
and ebx, 0xffffffef
call fcn.00404490
test bl, 8
je 0x586a6d
lea ecx, [ebp - 0x130]
and ebx, 0xfffffff7
call fcn.00404490
test bl, 4
je 0x586a80
lea ecx, [ebp - 0xe8]
and ebx, 0xfffffffb
call fcn.00404490
test bl, 2
je 0x586a90
lea ecx, [ebp - 0x100]
call fcn.00404490
lea ecx, [ebp - 0x118]
call fcn.00404490
cmp byte [ebp - 0xd], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret