Function at 0x6358e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b600a
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
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 - 0x140], edi
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x138], eax
cmp dword [edi + 0x8c], eax
jne 0x635b6f
push 0xb0
push eax
lea eax, [ebp - 0x12c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x7d6f90
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x11c], 0x7d7228
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 - 0x114]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x130], 1
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], 1
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x12c], 0x7c81a4
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x130], eax
lea ecx, [ebp - 0x114]
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 - 0x114], 0x7c8164
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 4], 2
mov eax, 0x12
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov dword [ebp - 0x38], 0xd800f9
mov dword [ebp - 0x34], 0xcf00c4
mov dword [ebp - 0x30], 0xdd00c8
mov dword [ebp - 0x2c], 0xfc00dc
mov dword [ebp - 0x28], 0xc100d8
mov dword [ebp - 0x24], 0x9400c7
mov dword [ebp - 0x20], 0x960088
mov dword [ebp - 0x1c], 0xed00f9
mov dword [ebp - 0x18], 0xf600f5
mov dword [ebp - 0x14], 0xbb
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x38], ax
inc ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jb 0x635a40
xor ecx, ecx
mov word [ebp + eax*2 - 0x38], cx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00404740
add esp, 8
call fcn.004345f0
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00636420
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0x130], edi
test edx, edx
je 0x635ab1
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x635aa0
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x2e0]
push eax
call fcn.00634ef0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea eax, [esi + 4]
mov dword [ebp - 0x134], eax
test edx, edx
je 0x635afd
mov edi, eax
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x635ae0
mov edi, dword [ebp - 0x130]
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp - 0x140]
push edi
push 0x231
push eax
push 0
call fcn.00469f50
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x12c], 0x7c81a4
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x130], eax
lea ecx, [ebp - 0x114]
call fcn.004073e0
lea ecx, [ebp - 0x10c]
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 - 0xc4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
xor al, al
jmp 0x636404
cmp dword [edi + 4], 0xc
je 0x636402
mov edx, dword [edi + 0x80]
push ecx
mov ecx, dword [edi + 0x7c]
call fcn.00413a10
mov eax, dword [edi + 0x7c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [edi + 0x80], eax
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 3
call fcn.0061fe10
mov dword [ebp - 4], 4
mov esi, dword [edi + 0xa0]
mov eax, dword [edi + 0xa4]
cmp esi, eax
je 0x635c3c
mov edi, eax
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00404120
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403f00
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x50]
call fcn.006230a0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
add esi, 0x24
cmp esi, edi
jne 0x635be0
mov edi, dword [ebp - 0x140]
mov eax, dword [edi + 0x164]
mov ecx, eax
mov esi, dword [edi + 0x160]
sub ecx, esi
mov dword [ebp - 0x134], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x635d15
cmp esi, dword [ebp - 0x134]
je 0x635d15
push esi
lea ecx, [ebp - 0x40]
call fcn.00404120
lea eax, [esi + 0x18]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
call fcn.00404120
mov byte [ebp - 4], 8
cmp dword [ebp - 0x30], 0
je 0x635cc8
cmp dword [ebp - 0x18], 0
jne 0x635cc2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00622e90
test al, al
jne 0x635cc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
push 0
call fcn.005a1320
cmp dword [ebp - 0x30], 0
jne 0x635cf2
cmp dword [ebp - 0x18], 0
je 0x635cf2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
call fcn.00622f60
test al, al
jne 0x635cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
push 0
call fcn.005a1320
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404490
lea ecx, [ebp - 0x40]
call fcn.00404490
add esi, 0x30
cmp esi, dword [ebp - 0x134]
jne 0x635c75
mov edx, dword [edi + 0x104]
mov eax, edx
mov ecx, dword [edi + 0x100]
sub eax, ecx
sar eax, 3
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x130], ecx
test eax, eax
je 0x635fa0
cmp ecx, edx
je 0x635fa0
mov esi, dword [ecx + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
test esi, esi
je 0x635d5a
lock inc dword [esi + 4]
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 9
push dword [eax]
mov ecx, dword [edi + 0x8c]
call fcn.004123d0
xor ecx, ecx
test al, al
mov eax, 2
cmove ecx, eax
cmp ecx, eax
jne 0x635f58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x1a4]
push 1
xor eax, eax
mov dword [ebp - 0x194], 0
push 0x7cf384
mov dword [ebp - 0x190], 7
mov word [ebp - 0x1a4], ax
call fcn.004044f0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1a4]
mov edx, dword [ebp - 0x134]
lea ecx, [ebp - 0x158]
push eax
lea edx, [edx + 0x20]
call fcn.00405fb0
or dword [ebp - 0x138], 2
lea ecx, [ebp - 0x1a4]
add esp, 4
call fcn.00404490
movups xmm0, xmmword [ebp - 0x158]
xor eax, eax
mov word [ebp - 0x158], ax
movups xmmword [ebp - 0x18c], xmm0
movq xmm0, qword [ebp - 0x148]
movq qword [ebp - 0x17c], xmm0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00426c50
push 1
push 0x7d75dc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.00407c50
mov dword [ebp - 0x164], 0
xor ecx, ecx
mov dword [ebp - 0x160], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x174], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x164], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x134]
add eax, 0x2c
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x635eb4
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x174]
call fcn.00407c50
or dword [ebp - 0x138], 0x1c
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1bc], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x1ac], xmm0
mov word [eax], cx
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x70]
call fcn.00404120
push dword [ebp - 0x15c]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x10
push eax
push 1
mov ecx, edi
call fcn.005a1320
lea ecx, [ebp - 0x70]
call fcn.00404490
lea ecx, [ebp - 0x1bc]
call fcn.00404490
lea ecx, [ebp - 0x174]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0x18c]
call fcn.00404490
lea ecx, [ebp - 0x158]
call fcn.00404490
mov byte [ebp - 4], 0x11
test esi, esi
je 0x635f81
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x635f81
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x635f81
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x130]
add ecx, 8
mov dword [ebp - 0x130], ecx
cmp ecx, dword [ebp - 0x13c]
jne 0x635d44
mov edx, dword [edi + 0xec]
mov eax, edx
mov ecx, dword [edi + 0xe8]
sub eax, ecx
sar eax, 3
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
test eax, eax
je 0x636191
cmp ecx, edx
je 0x636191
mov esi, dword [ebp - 0x140]
mov edi, dword [ecx + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
test edi, edi
je 0x635feb
lock inc dword [edi + 4]
mov edi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edi
add eax, 8
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x50]
call fcn.006230a0
mov eax, dword [ebp - 0x130]
mov ecx, dword [esi + 0x8c]
push dword [eax]
call fcn.004123d0
xor ecx, ecx
test al, al
mov eax, 2
cmove ecx, eax
cmp ecx, eax
jne 0x636143
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x164], 0
push 1
xor eax, eax
mov dword [ebp - 0x160], 7
push 0x7cf384
lea ecx, [ebp - 0x174]
mov word [ebp - 0x174], ax
call fcn.004044f0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x174]
mov edx, dword [ebp - 0x130]
lea ecx, [ebp - 0x158]
push eax
lea edx, [edx + 0x20]
call fcn.00405fb0
or dword [ebp - 0x138], 0x20
lea ecx, [ebp - 0x174]
add esp, 4
call fcn.00404490
movups xmm0, xmmword [ebp - 0x158]
xor eax, eax
mov word [ebp - 0x158], ax
movups xmmword [ebp - 0x18c], xmm0
movq xmm0, qword [ebp - 0x148]
movq qword [ebp - 0x17c], xmm0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00426c50
or dword [ebp - 0x138], 0x40
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x28]
call fcn.00404120
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x28]
push esi
push eax
push 1
mov byte [ebp - 4], 0x17
call fcn.005a1320
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0x70]
call fcn.00404490
lea ecx, [ebp - 0x18c]
call fcn.00404490
lea ecx, [ebp - 0x158]
call fcn.00404490
mov esi, dword [ebp - 0x140]
mov byte [ebp - 4], 0x18
test edi, edi
je 0x63616c
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x63616c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x63616c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x134]
add ecx, 8
mov dword [ebp - 0x134], ecx
cmp ecx, dword [ebp - 0x13c]
jne 0x635fd5
mov edi, dword [ebp - 0x140]
mov esi, dword [edi + 0xc4]
mov eax, dword [edi + 0xc8]
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x13c], eax
cmp esi, eax
je 0x636237
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00404120
lea eax, [esi + 0x18]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403f00
push ecx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x50]
call fcn.006232a0
xor esi, esi
nop
mov edx, dword [edi + 0x8c]
lea ecx, [ebp - 0x34]
call fcn.00579240
test eax, eax
je 0x636208
inc esi
cmp esi, 5
jl 0x6361f0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov esi, dword [ebp - 0x130]
add esi, 0x24
mov dword [ebp - 0x130], esi
cmp esi, dword [ebp - 0x13c]
jne 0x6361b1
mov eax, dword [edi + 0xd4]
mov esi, dword [edi + 0xd0]
mov dword [ebp - 0x15c], eax
cmp esi, eax
je 0x6363e2
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
push esi
lea ecx, [ebp - 0x7c]
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x6c], xmm0
call fcn.00404120
lea eax, [esi + 0x18]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0x64]
call fcn.00403f00
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x50]
call fcn.006230a0
mov edx, dword [edi + 0x8c]
lea ecx, [ebp - 0x7c]
call fcn.00579340
lea eax, [ebp - 0x7c]
push eax
call fcn.006399a0
test al, al
je 0x6363bf
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00403540
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0x1d
xor ecx, ecx
mov dword [ebp - 0x158], 9
mov dword [ebp - 0x154], 0xcf00c7
mov dword [ebp - 0x150], 0x8c00df
mov dword [ebp - 0x14c], 0xda00de
mov dword [ebp - 0x148], 0xc000c0
mov dword [ebp - 0x144], 0xb20091
nop
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x154], ax
inc ecx
mov eax, dword [ebp - 0x158]
cmp ecx, eax
jb 0x636300
xor ecx, ecx
mov word [ebp + eax*2 - 0x154], cx
lea ecx, [ebp - 0x154]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x636330
sub ecx, edx
lea eax, [ebp - 0x154]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x13c]
push eax
push 0
call fcn.00413a90
or dword [ebp - 0x138], 0x80
xor ecx, ecx
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
movups xmm0, xmmword [eax]
push ecx
push ecx
movups xmmword [ebp - 0x174], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x164], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x174]
call fcn.004130e0
add esp, 8
lea ecx, [ebp - 0x174]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.00404220
lea ecx, [ebp - 0x7c]
call fcn.00404490
add esi, 0x24
cmp esi, dword [ebp - 0x15c]
jne 0x636251
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.00452610
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x48], eax
call fcn.00451eb0
mov al, 1
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