Function at 0x5be3c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a9770
mov eax, dword fs:[0]
push eax
sub esp, 0x378
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 edx, ecx
mov dword [ebp - 0x294], edx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x284], 0xb
mov dword [ebp - 0x280], 0xca00e4
mov dword [ebp - 0x27c], 0xda00df
mov dword [ebp - 0x278], 0xde00ce
mov dword [ebp - 0x274], 0x9100d6
mov dword [ebp - 0x270], 0xaf00a9
mov dword [ebp - 0x26c], 0xc300ab
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x280], ax
inc ecx
mov eax, dword [ebp - 0x284]
cmp ecx, eax
jb 0x5be450
xor ecx, ecx
mov word [ebp + eax*2 - 0x280], cx
lea ecx, [ebp - 0xcc]
mov eax, dword [edx + 0xb8]
add eax, 0x84
push eax
call fcn.00404120
mov dword [ebp - 0x24c], 1
lea eax, [ebp - 0x280]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00408060
add esp, 0xc
lea ecx, [ebp - 0xcc]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x198]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28c]
call fcn.00403b80
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 5
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0x24d], al
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call fcn.00404220
lea ecx, [ebp - 0x28c]
call fcn.00404490
cmp byte [ebp - 0x24d], 0
je 0x5bf07f
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x168]
call fcn.00404120
xor eax, eax
mov byte [ebp - 4], 6
push eax
push 0x7cd378
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
call fcn.004044f0
push edi
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 7
call fcn.00404120
xor eax, eax
mov byte [ebp - 4], 8
push eax
push 0x7cd378
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 7
mov word [ebp - 0x138], ax
call fcn.004044f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2d0]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
xor eax, eax
movq qword [ebp - 0x120], xmm0
push 0x7d5790
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 7
mov word [ebp - 0x2d0], ax
call fcn.004044f0
lea eax, [ebp - 0x2d0]
mov byte [ebp - 4], 0xa
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.00574db0
add esp, 4
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0xc
call fcn.00404490
mov ecx, dword [ebp - 0x11c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x120]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x5be6b1
lea eax, [ebp - 0x150]
cmp eax, esi
je 0x5be68c
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5be679
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x150]
call fcn.004044f0
mov esi, dword [ebp - 0x120]
add esi, 0x18
lea eax, [ebp - 0x138]
cmp eax, esi
je 0x5be6b1
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5be6a4
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x138]
call fcn.004044f0
mov eax, 6
mov dword [ebp - 0x260], 0xd800c1
mov dword [ebp - 0x264], eax
xor ecx, ecx
mov dword [ebp - 0x25c], 0xdf00d4
mov dword [ebp - 0x258], 0xc500d9
mov dword [ebp - 0x254], 0xbe
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x260], ax
inc ecx
mov eax, dword [ebp - 0x264]
cmp ecx, eax
jb 0x5be6f0
xor ecx, ecx
mov word [ebp + eax*2 - 0x260], cx
lea ecx, [ebp - 0x260]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5be720
sub ecx, edx
lea eax, [ebp - 0x138]
mov edx, dword [ebp - 0x128]
sar ecx, 1
cmp dword [ebp - 0x124], 8
cmovae eax, dword [ebp - 0x138]
cmp edx, ecx
jne 0x5beba2
push edx
lea ecx, [ebp - 0x260]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x5beba2
mov esi, 1
nop
push 0xa
push 0x32
lea eax, [ebp - 0x74]
mov edi, esi
push eax
inc esi
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
add esp, 0x10
mov dword [ebp - 0x29c], 0
xor eax, eax
mov dword [ebp - 0x298], 7
lea ecx, [ebp - 0x74]
mov word [ebp - 0x2ac], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5be7b0
sub ecx, edx
lea eax, [ebp - 0x74]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004044f0
mov byte [ebp - 4], 0xd
mov eax, 0xe
mov dword [ebp - 0x28c], eax
xor ecx, ecx
mov dword [ebp - 0x288], 0xdc00eb
mov dword [ebp - 0x284], 0xc900db
mov dword [ebp - 0x280], 0xd500df
mov dword [ebp - 0x27c], 0xfa009e
mov dword [ebp - 0x278], 0xa600ae
mov dword [ebp - 0x274], 0xad00ab
mov dword [ebp - 0x270], 0xe500a1
mov dword [ebp - 0x26c], 0xc6
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x288], ax
inc ecx
mov eax, dword [ebp - 0x28c]
cmp ecx, eax
jb 0x5be830
xor ecx, ecx
mov word [ebp + eax*2 - 0x288], cx
lea ecx, [ebp - 0x288]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5be860
sub ecx, edx
lea eax, [ebp - 0x288]
sar ecx, 1
push ecx
push eax
push 0
lea ecx, [ebp - 0x2ac]
call fcn.00413a90
or dword [ebp - 0x24c], 6
xor ecx, ecx
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xfc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xec], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xf
call fcn.00404490
mov ecx, 8
mov dword [ebp - 0x264], 0xf700ed
mov dword [ebp - 0x268], ecx
xor eax, eax
mov dword [ebp - 0x260], 0xea00f3
mov dword [ebp - 0x25c], 0xf800e9
mov dword [ebp - 0x258], 0xfb00f7
mov dword [ebp - 0x254], 0xc0
nop word [eax + eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x264], cx
inc eax
mov ecx, dword [ebp - 0x268]
cmp eax, ecx
jb 0x5be920
xor eax, eax
mov word [ebp + ecx*2 - 0x264], ax
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x270], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5be963
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.004044f0
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x168]
call fcn.00647cf0
lea ecx, [ebp - 0x280]
call fcn.00404490
mov edx, dword [ebp - 0x104]
lea ecx, [ebp - 0x114]
test edx, edx
je 0x5bea29
cmp dword [ebp - 0x13c], 8
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
cmp dword [ebp - 0x100], 8
cmovae ecx, dword [ebp - 0x114]
cmp edx, dword [ebp - 0x140]
jne 0x5be9fd
push edx
push eax
push ecx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x5bea23
lea ecx, [ebp - 0x114]
call fcn.00404490
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00404490
cmp edi, 0x64
jl 0x5be770
inc esi
jmp 0x5bea3d
lea ecx, [ebp - 0x114]
call fcn.00404490
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00404490
mov edx, esi
lea ecx, [ebp - 0x280]
call fcn.00574c50
mov esi, eax
mov byte [ebp - 4], 0x11
mov edx, 0xe
mov dword [ebp - 0x2b8], edx
xor ecx, ecx
mov dword [ebp - 0x2b4], 0xdc00eb
mov dword [ebp - 0x2b0], 0xc900db
mov dword [ebp - 0x2ac], 0xd500df
mov dword [ebp - 0x2a8], 0xfa009e
mov dword [ebp - 0x2a4], 0xa600ae
mov dword [ebp - 0x2a0], 0xad00ab
mov dword [ebp - 0x29c], 0xe500a1
mov dword [ebp - 0x298], 0xc6
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x2b4], ax
inc ecx
mov edx, dword [ebp - 0x2b8]
cmp ecx, edx
jb 0x5beab0
xor eax, eax
mov word [ebp + edx*2 - 0x2b4], ax
lea eax, [ebp - 0x2b4]
push esi
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00413810
add esp, 0xc
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0x13
call fcn.00404490
push 3
xor eax, eax
mov dword [ebp - 0xec], 0
push 0x7d8820
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], ax
call fcn.004044f0
cmp dword [ebp - 0x154], 8
lea esi, [ebp - 0x168]
lea edx, [ebp - 0x180]
cmovae esi, dword [ebp - 0x168]
lea ecx, [ebp - 0xfc]
cmp dword [ebp - 0x16c], 8
lea eax, [ebp - 0xcc]
push esi
cmovae edx, dword [ebp - 0x180]
cmp dword [ebp - 0xe8], 8
push edx
cmovae ecx, dword [ebp - 0xfc]
cmp dword [ebp - 0xb8], 8
push ecx
cmovae eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0xfc]
call fcn.00404490
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xc
call fcn.00404490
mov edi, dword [ebp - 0x290]
mov eax, 0xe
mov dword [ebp - 0xd4], 0xdc00fc
mov dword [ebp - 0xd8], eax
xor ecx, ecx
mov dword [ebp - 0xd0], 0xda00dc
mov dword [ebp - 0xcc], 0xd100c9
mov dword [ebp - 0xc8], 0x9f00ca
mov dword [ebp - 0xc4], 0xa40093
mov dword [ebp - 0xc0], 0xb100a3
mov dword [ebp - 0xbc], 0xad00a7
mov dword [ebp - 0xb8], 0xc6
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xd4], ax
inc ecx
mov eax, dword [ebp - 0xd8]
cmp ecx, eax
jb 0x5bec00
xor ecx, ecx
mov word [ebp + eax*2 - 0xd4], cx
xor eax, eax
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x100], 7
lea edx, [ecx + 2]
mov word [ebp - 0x114], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5bec45
sub ecx, edx
lea eax, [ebp - 0xd4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x114]
call fcn.004044f0
mov byte [ebp - 4], 0x14
xor ecx, ecx
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x260], 0xc900f7
mov dword [ebp - 0x25c], 0xd200ce
mov dword [ebp - 0x258], 0xd300d3
mov dword [ebp - 0x254], 0xbf00cd
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x260], ax
inc ecx
mov eax, dword [ebp - 0x264]
cmp ecx, eax
jb 0x5beca0
xor ecx, ecx
mov word [ebp + eax*2 - 0x260], cx
xor eax, eax
mov dword [ebp - 0xec], ecx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0xe8], 7
lea edx, [ecx + 2]
mov word [ebp - 0xfc], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5bece5
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xfc]
call fcn.004044f0
cmp dword [ebp - 0x154], 8
lea esi, [ebp - 0x168]
lea edx, [ebp - 0x150]
cmovae esi, dword [ebp - 0x168]
lea ecx, [ebp - 0x114]
cmp dword [ebp - 0x13c], 8
lea eax, [ebp - 0xfc]
push esi
cmovae edx, dword [ebp - 0x150]
cmp dword [ebp - 0x100], 8
push edx
cmovae ecx, dword [ebp - 0x114]
cmp dword [ebp - 0xe8], 8
push ecx
cmovae eax, dword [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0xfc]
call fcn.00404490
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xc
call fcn.00404490
push 0xb0
lea eax, [ebp - 0x248]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x248], 0x7d4f80
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x238], 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 - 0x230]
mov byte [ebp - 4], 0x15
or dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x248]
push eax
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], 0x16
mov eax, dword [ebp - 0x248]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x248]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x24c], eax
lea ecx, [ebp - 0x230]
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 - 0x230], 0x7c6164
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0x17
mov eax, dword [eax + 0xb8]
add eax, 0xc
push eax
call fcn.00404120
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x280]
cmp dword [ebp - 0x26c], 8
push dword [ebp - 0x270]
cmovae eax, dword [ebp - 0x280]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00404c80
add esp, 0xc
mov esi, eax
mov edx, 0x14
mov dword [ebp - 0xe0], 0xca0098
mov dword [ebp - 0xe4], edx
xor ecx, ecx
mov dword [ebp - 0xdc], 0xcf00df
mov dword [ebp - 0xd8], 0xce009c
mov dword [ebp - 0xd4], 0xde00db
mov dword [ebp - 0xd0], 0xa200b2
mov dword [ebp - 0xcc], 0xe300aa
mov dword [ebp - 0xc8], 0xbc00b7
mov dword [ebp - 0xc4], 0xb300b5
mov dword [ebp - 0xc0], 0xa400ad
mov dword [ebp - 0xbc], 0xeb00f0
mov dword [ebp - 0xb8], 0xcc
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xe0], ax
inc ecx
mov edx, dword [ebp - 0xe4]
cmp ecx, edx
jb 0x5bef00
xor eax, eax
mov word [ebp + edx*2 - 0xe0], ax
lea eax, [ebp - 0xe0]
push eax
push esi
call fcn.00404740
mov ecx, dword [edi + 0x10]
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x5bef3e
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x280]
call fcn.00404490
call fcn.00434600
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x384]
push eax
call fcn.005bf0b0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0x294], edi
test edx, edx
je 0x5bef93
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5bef82
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0xb4]
push eax
call fcn.005b9760
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea eax, [esi + 4]
mov dword [ebp - 0x24c], eax
test edx, edx
je 0x5befdd
mov edi, eax
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5befc0
mov edi, dword [ebp - 0x294]
mov eax, dword [ebp - 0x24c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x290]
push edi
push 0x21a
push eax
push 1
call fcn.00469240
mov eax, dword [ebp - 0x248]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x248]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x24c], eax
lea ecx, [ebp - 0x230]
call fcn.004073e0
lea ecx, [ebp - 0x228]
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 - 0x1e0]
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 - 0x120]
call fcn.00404220
lea ecx, [ebp - 0x138]
call fcn.00404490
lea ecx, [ebp - 0x150]
call fcn.00404490
lea ecx, [ebp - 0x180]
call fcn.00404490
lea ecx, [ebp - 0x168]
call fcn.00404490
lea ecx, [ebp - 0x198]
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 4