Function at 0x5875c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x154
push ebx
push esi
push edi
mov eax, dword [0x831184]
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 0x7da20c
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 0x587650
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 0x5879f0
mov dword [ebp - 0x28], 7
xor ecx, ecx
mov dword [ebp - 0x24], 0xc700ca
mov dword [ebp - 0x20], 0x8200cf
mov dword [ebp - 0x1c], 0xd600c8
mov dword [ebp - 0x18], 0xb000ca
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x24], ax
inc ecx
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jb 0x587690
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 0x5876d0
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 0x58771c
mov ecx, dword [esi]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x5879f0
mov dword [ebp - 0x64], 0x1b
xor ecx, ecx
mov dword [ebp - 0x60], 0x9000ea
mov dword [ebp - 0x5c], 0xfb00f7
mov dword [ebp - 0x58], 0xc000c4
mov dword [ebp - 0x54], 0xdf00cb
mov dword [ebp - 0x50], 0xc100c6
mov dword [ebp - 0x4c], 0xe700ef
mov dword [ebp - 0x48], 0xc500cc
mov dword [ebp - 0x44], 0xdd00c3
mov dword [ebp - 0x40], 0x8900d4
mov dword [ebp - 0x3c], 0xe00089
mov dword [ebp - 0x38], 0xd300de
mov dword [ebp - 0x34], 0xee00db
mov dword [ebp - 0x30], 0xba00a4
mov dword [ebp - 0x2c], 0xc400a6
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x60], ax
inc ecx
mov eax, dword [ebp - 0x64]
cmp ecx, eax
jb 0x5877a0
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 0x5877e0
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 0x58782c
mov ecx, dword [esi]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x5879f0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 8
mov dword [ebp - 0x78], 0xd200cc
mov dword [ebp - 0x74], 0xc000db
mov dword [ebp - 0x70], 0xdc00c2
mov dword [ebp - 0x6c], 0xc200ca
mov dword [ebp - 0x68], 0xb1
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 0x5878a6
mov eax, dword [esi]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x5879f0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0xc
mov dword [ebp - 0x98], 0xd200cc
mov dword [ebp - 0x94], 0xc000db
mov dword [ebp - 0x90], 0xdc00c2
mov dword [ebp - 0x8c], 0xc200ca
mov dword [ebp - 0x88], 0xd7009f
mov dword [ebp - 0x84], 0xd100cb
mov dword [ebp - 0x80], 0xb5
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 0x5879f0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x17
mov dword [ebp - 0xcc], 0x9000ea
mov dword [ebp - 0xc8], 0xfb00f7
mov dword [ebp - 0xc4], 0xc000c4
mov dword [ebp - 0xc0], 0xdf00cb
mov dword [ebp - 0xbc], 0xc100c6
mov dword [ebp - 0xb8], 0xd100ef
mov dword [ebp - 0xb4], 0xc600cd
mov dword [ebp - 0xb0], 0xd700db
mov dword [ebp - 0xac], 0xdf00cb
mov dword [ebp - 0xa8], 0x9200c9
mov dword [ebp - 0xa4], 0xc600d8
mov dword [ebp - 0xa0], 0xc000da
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 0x5879f4
mov byte [ebp - 0xd], 1
test bl, 0x20
je 0x587a07
lea ecx, [ebp - 0x148]
and ebx, 0xffffffdf
call fcn.00404490
test bl, 0x10
je 0x587a1a
lea ecx, [ebp - 0x160]
and ebx, 0xffffffef
call fcn.00404490
test bl, 8
je 0x587a2d
lea ecx, [ebp - 0x130]
and ebx, 0xfffffff7
call fcn.00404490
test bl, 4
je 0x587a40
lea ecx, [ebp - 0xe8]
and ebx, 0xfffffffb
call fcn.00404490
test bl, 2
je 0x587a50
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