Function at 0x585d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4c04
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
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, ecx
mov dword [ebp - 0x250], edi
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp eax, dword [edx + 4]
je 0x586688
mov dword [ebp - 0x214], 0x13
xor ecx, ecx
mov dword [ebp - 0x210], 0xf900f5
mov dword [ebp - 0x20c], 0xcf00ce
mov dword [ebp - 0x208], 0xdc00d8
mov dword [ebp - 0x204], 0x9000ca
mov dword [ebp - 0x200], 0xc000e1
mov dword [ebp - 0x1fc], 0xd200d6
mov dword [ebp - 0x1f8], 0xc400d0
mov dword [ebp - 0x1f4], 0xd600d2
mov dword [ebp - 0x1f0], 0xdf00da
mov dword [ebp - 0x1ec], 0xbc00c8
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x210], ax
inc ecx
mov eax, dword [ebp - 0x214]
cmp ecx, eax
jb 0x585df0
xor ecx, ecx
mov word [ebp + eax*2 - 0x210], cx
lea ecx, [ebp - 0x68]
mov eax, dword [edi + 0xc]
add eax, 0x84
push eax
call fcn.00404120
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00408060
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 7
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x20c]
call fcn.00403b80
lea eax, [ebp - 0x20c]
mov byte [ebp - 4], 5
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0x1e5], al
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 2
call fcn.00404220
lea ecx, [ebp - 0x20c]
call fcn.00404490
cmp byte [ebp - 0x1e5], 0
je 0x58667d
xor eax, eax
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 7
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x20c]
call fcn.00403b80
lea eax, [ebp - 0x20c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00418020
add esp, 8
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 0xa
call fcn.00404220
lea ecx, [ebp - 0x20c]
call fcn.00404490
xorps xmm0, xmm0
lea ecx, [ebp - 0x88]
push 0
movups xmmword [ebp - 0x88], xmm0
movq qword [ebp - 0x78], xmm0
call fcn.007725c0
push 0x74
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 0xb
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x134]
call fcn.00774c70
push 1
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x134]
call fcn.007763c0
test al, al
je 0x58665f
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x1c], 0xc9dfd2cc
mov dword [ebp - 0x18], 0xdfc6ddc3
mov dword [ebp - 0x14], 0xb3c1df
call fcn.004131e0
push eax
lea ecx, [ebp - 0x88]
call fcn.00772ae0
mov esi, eax
mov ecx, esi
call fcn.007740b0
test al, al
je 0x58665f
xor eax, eax
mov dword [ebp - 0x238], 8
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x234], 0xd8dfcfda
mov dword [ebp - 0x230], 0xc3c8c0c4
mov byte [ebp - 0x22c], 0xb1
mov word [ebp - 0x22b], ax
mov byte [ebp - 0x229], al
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov ecx, eax
mov dword [ebp - 0x260], eax
call fcn.007740b0
test al, al
je 0x58665f
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x26c], ecx
cmp eax, ecx
je 0x586548
mov esi, dword [eax + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x586085
lock inc dword [esi + 4]
mov esi, dword [eax + 4]
mov dword [ebp - 0x21c], esi
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], esi
add eax, 0x4c
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x254], eax
call fcn.00404120
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00405710
add esp, 8
mov ecx, dword [ebp - 0x260]
push eax
mov byte [ebp - 4], 0xf
call fcn.00772970
mov edi, eax
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x264], edi
call fcn.00407a10
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 0xd
call fcn.00404490
mov ecx, edi
call fcn.007740b0
test al, al
jne 0x586106
mov byte [ebp - 4], 0x10
jmp 0x586504
xor eax, eax
mov dword [ebp - 0x248], 8
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x244], 0xc5c5cbc4
mov dword [ebp - 0x240], 0xc4dccbcb
mov byte [ebp - 0x23c], 0xb1
mov word [ebp - 0x23b], ax
mov byte [ebp - 0x239], al
call fcn.004131e0
push eax
mov ecx, edi
call fcn.00772ae0
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x24c], edi
call fcn.007740b0
test al, al
jne 0x586169
mov byte [ebp - 4], 0x11
jmp 0x586504
xorps xmm0, xmm0
mov dword [ebp - 0x228], 7
lea ecx, [ebp - 0x228]
movq qword [ebp - 0x58], xmm0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x224], 0xdfd9cfdf
mov dword [ebp - 0x220], 0xb0c1c1c4
call fcn.004131e0
push eax
mov ecx, edi
call fcn.00772ae0
lea ecx, [ebp - 0x29c]
push ecx
mov ecx, eax
call fcn.007737d0
mov edi, eax
push dword [ebp - 0x254]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x12
call fcn.00404120
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], 0xc
mov dword [ebp - 0x204], 0xef00f5
mov dword [ebp - 0x200], 0xd800d3
mov dword [ebp - 0x1fc], 0xc000c8
mov dword [ebp - 0x1f8], 0xd900dc
mov dword [ebp - 0x1f4], 0xdc00de
mov dword [ebp - 0x1f0], 0xe800c0
mov dword [ebp - 0x1ec], 0xb5
call fcn.00403e20
mov esi, eax
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 0xc]
add ecx, 0x84
push ecx
lea ecx, [ebp - 0x38]
call fcn.00404120
push esi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.00408060
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x15
push ecx
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.00413490
add esp, 0x18
push edi
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x16
push eax
call fcn.00586ad0
lea ecx, [ebp - 0x2fc]
call fcn.00404490
lea ecx, [ebp - 0x2b4]
call fcn.00404490
lea ecx, [ebp - 0x38]
call fcn.00404490
lea ecx, [ebp - 0x284]
call fcn.00404490
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0x1c
call fcn.00404490
lea ecx, [ebp - 0x68]
call fcn.007740b0
test al, al
jne 0x5862d8
lea ecx, [ebp - 0x68]
call fcn.007727c0
mov byte [ebp - 4], 0x1d
jmp 0x5864fe
mov ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00773ce0
mov byte [ebp - 4], 0x1e
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x268], eax
cmp esi, eax
je 0x5864ea
push esi
lea ecx, [ebp - 0x38]
call fcn.00406bb0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x280]
movaps xmm0, xmmword [0x7e5680]
mov dword [ebp - 0x280], 0xe
movups xmmword [ebp - 0x27c], xmm0
call fcn.004131e0
mov edi, eax
mov ecx, edi
lea eax, [ecx + 1]
nop dword [eax + eax]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x586350
sub ecx, eax
cmp dword [ebp - 0x24], 0x10
push ecx
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.0040ffd0
add esp, 0x10
test al, al
jne 0x5864c9
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x68]
call fcn.00773fe0
test al, al
jne 0x5864c9
mov ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00774690
lea ecx, [ebp - 0x29c]
call fcn.007727c0
mov ecx, dword [ebp - 0x264]
call fcn.0063cfd0
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x264]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x2b4]
push eax
call fcn.00774be0
mov esi, eax
push dword [ebp - 0x254]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0x20
call fcn.00404120
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], 0x14
mov dword [ebp - 0x214], 0xd200cc
mov dword [ebp - 0x210], 0xc900df
mov dword [ebp - 0x20c], 0xdd00c3
mov dword [ebp - 0x208], 0xdf00c6
mov dword [ebp - 0x204], 0xc100df
mov dword [ebp - 0x200], 0xc7009d
mov dword [ebp - 0x1fc], 0xc200d0
mov dword [ebp - 0x1f8], 0xd100c3
mov dword [ebp - 0x1f4], 0xdd00d7
mov dword [ebp - 0x1f0], 0x9200c8
mov dword [ebp - 0x1ec], 0xbd
call fcn.00403e20
lea ecx, [ebp - 0x284]
push ecx
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00413810
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x22
lea ecx, [edi + 0x240]
push eax
call fcn.0063c120
lea ecx, [ebp - 0x29c]
call fcn.00404490
lea ecx, [ebp - 0x284]
call fcn.00404490
lea ecx, [ebp - 0x2b4]
call fcn.00407a10
mov esi, dword [ebp - 0x258]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1e
call fcn.00407a10
add esi, 0x18
mov dword [ebp - 0x258], esi
cmp esi, dword [ebp - 0x268]
jne 0x586314
lea ecx, [ebp - 0x1c]
call fcn.0056f100
lea ecx, [ebp - 0x68]
call fcn.007727c0
mov byte [ebp - 4], 0x23
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x586529
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x586529
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x586529
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x25c]
add eax, 8
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x25c], eax
cmp eax, dword [ebp - 0x26c]
jne 0x586063
lea ecx, [ebp - 0xc0]
call fcn.0076f7c0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00770250
mov esi, eax
lea eax, [ebp - 0x50]
cmp eax, esi
je 0x5865a2
mov ecx, eax
call fcn.00407a10
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x29c]
call fcn.00407a10
push 0xb0
lea eax, [ebp - 0x1e4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.00587130
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x1e4]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x1d8]
shr eax, 2
test al, 1
jne 0x586634
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.004527e0
add esp, 0xc
lea ecx, [ebp - 0x1e0]
call fcn.0041b620
test eax, eax
jne 0x586634
push eax
mov eax, dword [ebp - 0x1e4]
lea ecx, [ebp - 0x1e4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x1e4]
call fcn.005866b0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc0], vtable.rR.0
call fcn.00407a10
lea ecx, [ebp - 0xc0]
call fcn.0076f850
lea ecx, [ebp - 0x134]
call fcn.00430850
lea ecx, [ebp - 0x88]
call fcn.007727c0
lea ecx, [ebp - 0x50]
call fcn.00407a10
lea ecx, [ebp - 0xa0]
call fcn.00404490
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