Function at 0x5b4120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a8583
mov eax, dword fs:[0]
push eax
sub esp, 0x324
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 dword [ebp - 0x1c4], ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
push edi
mov dword [ebp - 0x19c], 0
call fcn.00404120
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x7cd378
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.004044f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b4]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movq qword [ebp - 0x1c], xmm0
push 0x7d5790
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 7
mov word [ebp - 0x1b4], ax
call fcn.004044f0
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x1c]
call fcn.00574db0
add esp, 4
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.00404490
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x5b4258
lea eax, [ebp - 0x4c]
cmp eax, esi
je 0x5b4239
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5b422c
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.004044f0
mov esi, dword [ebp - 0x1c]
add esi, 0x18
lea eax, [ebp - 0x34]
cmp eax, esi
je 0x5b4258
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5b424e
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.004044f0
mov eax, 6
mov dword [ebp - 0x190], 0xd800c1
mov dword [ebp - 0x194], eax
xor ecx, ecx
mov dword [ebp - 0x18c], 0xdf00d4
mov dword [ebp - 0x188], 0xc500d9
mov dword [ebp - 0x184], 0xbe
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x190], ax
inc ecx
mov eax, dword [ebp - 0x194]
cmp ecx, eax
jb 0x5b4290
xor ecx, ecx
mov word [ebp + eax*2 - 0x190], cx
lea ecx, [ebp - 0x190]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b42c0
sub ecx, edx
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
sar ecx, 1
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
cmp edx, ecx
jne 0x5b42fa
push edx
lea ecx, [ebp - 0x190]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x5b4a22
mov esi, dword [ebp - 0x1c4]
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.005b5880
mov dword [ebp - 0x198], 9
xor ecx, ecx
mov dword [ebp - 0x194], 0xc900e4
mov dword [ebp - 0x190], 0xde00c8
mov dword [ebp - 0x18c], 0xce00da
mov dword [ebp - 0x188], 0xd50090
mov dword [ebp - 0x184], 0xc100b3
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x194], ax
inc ecx
mov eax, dword [ebp - 0x198]
cmp ecx, eax
jb 0x5b4350
xor ecx, ecx
mov word [ebp + eax*2 - 0x194], cx
lea ecx, [ebp - 0x150]
mov eax, dword [esi + 0xb8]
add eax, 0x84
push eax
call fcn.00404120
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00408060
add esp, 0xc
lea ecx, [ebp - 0x150]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 7
mov word [ebp - 0x1c0], ax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00403b80
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 0xa
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0x135], al
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 7
call fcn.00404220
lea ecx, [ebp - 0x1c0]
call fcn.00404490
cmp byte [ebp - 0x135], 0
je 0x5b4a17
xorps xmm0, xmm0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x6c]
movups xmmword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x5c], xmm0
call fcn.00404120
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.00649d20
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call fcn.006480b0
mov byte [ebp - 4], 0xd
mov eax, 0x20
mov dword [ebp - 0x180], eax
xor ecx, ecx
mov dword [ebp - 0x17c], 0xcb00da
mov dword [ebp - 0x178], 0xcc00d5
mov dword [ebp - 0x174], 0xd800cf
mov dword [ebp - 0x170], 0x9100cc
mov dword [ebp - 0x16c], 0xa400b3
mov dword [ebp - 0x168], 0xb100a3
mov dword [ebp - 0x164], 0xad00a7
mov dword [ebp - 0x160], 0xa300e8
mov dword [ebp - 0x15c], 0xaf00ad
mov dword [ebp - 0x158], 0xbe00ab
mov dword [ebp - 0x154], 0xb900a0
mov dword [ebp - 0x150], 0xa100ab
mov dword [ebp - 0x14c], 0xb800b7
mov dword [ebp - 0x148], 0xb600bc
mov dword [ebp - 0x144], 0xb400ba
mov dword [ebp - 0x140], 0xb200bb
mov dword [ebp - 0x13c], 0xd8
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x17c], ax
inc ecx
mov eax, dword [ebp - 0x180]
cmp ecx, eax
jb 0x5b4540
xor ecx, ecx
mov word [ebp + eax*2 - 0x17c], cx
xor eax, eax
mov dword [ebp - 0x1a4], ecx
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x1a0], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1b4], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b4585
sub ecx, edx
lea eax, [ebp - 0x17c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1b4]
call fcn.004044f0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00648f40
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xd
call fcn.00404490
mov dword [ebp - 0x178], 0x1d
xor ecx, ecx
mov dword [ebp - 0x174], 0xcb00da
mov dword [ebp - 0x170], 0xcc00d5
mov dword [ebp - 0x16c], 0xd800cf
mov dword [ebp - 0x168], 0x9100cc
mov dword [ebp - 0x164], 0xa400b3
mov dword [ebp - 0x160], 0xb100a3
mov dword [ebp - 0x15c], 0xad00a7
mov dword [ebp - 0x158], 0xb400e8
mov dword [ebp - 0x154], 0xa500ad
mov dword [ebp - 0x150], 0xa800af
mov dword [ebp - 0x14c], 0xa800b8
mov dword [ebp - 0x148], 0x8a00aa
mov dword [ebp - 0x144], 0xb600be
mov dword [ebp - 0x140], 0xbd00bb
mov dword [ebp - 0x13c], 0xd500b1
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x174], ax
inc ecx
mov eax, dword [ebp - 0x178]
cmp ecx, eax
jb 0x5b4670
xor ecx, ecx
mov word [ebp + eax*2 - 0x174], cx
xor eax, eax
mov dword [ebp - 0x1a4], ecx
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x1a0], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1b4], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b46b5
sub ecx, edx
lea eax, [ebp - 0x174]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1b4]
call fcn.004044f0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00648f40
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xd
call fcn.00404490
lea ecx, [ebp - 0x6c]
call fcn.00649030
xor eax, eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 7
mov word [ebp - 0x1b4], ax
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.005b05a0
lea ecx, [ebp - 0x1b4]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 7
mov word [ebp - 0x1b4], ax
push ecx
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
push eax
mov ecx, esi
call fcn.005b0b90
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xd
call fcn.00404490
push 0xb0
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x7d4f80
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x124], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x19c], 3
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 0x13
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x138], eax
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0x11c], 0x7c6164
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1b4]
mov eax, dword [esi + 0xb8]
add eax, 0xc
push eax
call fcn.00404120
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x1b4]
cmp dword [ebp - 0x1a0], 8
push dword [ebp - 0x1a4]
cmovae eax, dword [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00404c80
mov edx, 0x14
mov dword [ebp - 0x164], 0xca0098
add esp, 0xc
mov dword [ebp - 0x168], edx
mov esi, eax
mov dword [ebp - 0x160], 0xcf00df
mov dword [ebp - 0x15c], 0xce009c
xor ecx, ecx
mov dword [ebp - 0x158], 0xde00db
mov dword [ebp - 0x154], 0xa200b2
mov dword [ebp - 0x150], 0xe300aa
mov dword [ebp - 0x14c], 0xbc00b7
mov dword [ebp - 0x148], 0xb300b5
mov dword [ebp - 0x144], 0xa400ad
mov dword [ebp - 0x140], 0xeb00f0
mov dword [ebp - 0x13c], 0xcc
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x164], ax
inc ecx
mov edx, dword [ebp - 0x168]
cmp ecx, edx
jb 0x5b4900
xor eax, eax
mov word [ebp + edx*2 - 0x164], ax
lea eax, [ebp - 0x164]
push eax
push esi
call fcn.00404740
mov ecx, dword [edi + 0x10]
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x5b493e
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1b4]
call fcn.00404490
call fcn.00434600
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x330]
push eax
call fcn.005b4a60
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x5b4991
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5b4980
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x270]
push eax
call fcn.005a3fd0
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x19c]
push edi
push 0x5b9
push eax
push 1
call fcn.00469240
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x138], eax
lea ecx, [ebp - 0x11c]
call fcn.004073e0
lea ecx, [ebp - 0x114]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xcc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x6c]
call fcn.00648030
lea ecx, [ebp - 0x84]
call fcn.00404490
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x4c]
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.0076d59e
mov esp, ebp
pop ebp
ret 8