Function at 0x634bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b48da
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
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 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 0x634e4f
push 0xb0
push eax
lea eax, [ebp - 0x12c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x7d4f80
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x11c], 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 - 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 - method..7.virtual_0], vtable..7.0
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], 0x7c6164
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], 0xcb00e8
mov dword [ebp - 0x34], 0xd800d5
mov dword [ebp - 0x30], 0xce00d9
mov dword [ebp - 0x2c], 0xf300cd
mov dword [ebp - 0x28], 0xb200a9
mov dword [ebp - 0x24], 0xe300b6
mov dword [ebp - 0x20], 0xe500f9
mov dword [ebp - 0x1c], 0x920088
mov dword [ebp - 0x18], 0x850084
mov dword [ebp - 0x14], 0xca
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x38], ax
inc ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jb 0x634d20
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.00434600
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00635700
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0x130], edi
test edx, edx
je 0x634d91
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x634d80
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x2e0]
push eax
call fcn.006341f0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea eax, [esi + 4]
mov dword [ebp - 0x134], eax
test edx, edx
je 0x634ddd
mov edi, eax
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x634dc0
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.00469240
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
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 0x6356e4
cmp dword [edi + 4], 0xc
je 0x6356e2
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.0061ed80
mov dword [ebp - 4], 4
mov esi, dword [edi + 0xa0]
mov eax, dword [edi + 0xa4]
cmp esi, eax
je 0x634f1c
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.00622010
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 0x634ec0
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 0x634ff5
cmp esi, dword [ebp - 0x134]
je 0x634ff5
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 0x634fa8
cmp dword [ebp - 0x18], 0
jne 0x634fa2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00621e00
test al, al
jne 0x634fa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
push 0
call fcn.005a0320
cmp dword [ebp - 0x30], 0
jne 0x634fd2
cmp dword [ebp - 0x18], 0
je 0x634fd2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
call fcn.00621ed0
test al, al
jne 0x634fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
push 0
call fcn.005a0320
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 0x634f55
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 0x635280
cmp ecx, edx
je 0x635280
mov esi, dword [ecx + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
test esi, esi
je 0x63503a
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 0x635238
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 0x7cd374
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 0x7d55cc
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 0x635194
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.005a0320
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 0x635261
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x635261
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x635261
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 0x635024
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 0x635471
cmp ecx, edx
je 0x635471
mov esi, dword [ebp - 0x140]
mov edi, dword [ecx + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
test edi, edi
je 0x6352cb
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.00622010
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 0x635423
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 0x7cd374
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.005a0320
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 0x63544c
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x63544c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x63544c
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 0x6352b5
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 0x635517
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.00622210
xor esi, esi
nop
mov edx, dword [edi + 0x8c]
lea ecx, [ebp - 0x34]
call fcn.005780c0
test eax, eax
je 0x6354e8
inc esi
cmp esi, 5
jl 0x6354d0
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 0x635491
mov eax, dword [edi + 0xd4]
mov esi, dword [edi + 0xd0]
mov dword [ebp - 0x15c], eax
cmp esi, eax
je 0x6356c2
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.00622010
mov edx, dword [edi + 0x8c]
lea ecx, [ebp - 0x7c]
call fcn.005781c0
lea eax, [ebp - 0x7c]
push eax
call fcn.00638c80
test al, al
je 0x63569f
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], 0xdc00d6
mov dword [ebp - 0x150], 0x9b00ce
mov dword [ebp - 0x14c], 0xc900cf
mov dword [ebp - 0x148], 0xcf00d1
mov dword [ebp - 0x144], 0xc100e0
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x154], ax
inc ecx
mov eax, dword [ebp - 0x158]
cmp ecx, eax
jb 0x6355e0
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 0x635610
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 0x635531
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.00451ac0
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x48], eax
call fcn.004513e0
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.0076d59e
mov esp, ebp
pop ebp
ret