Function at 0x410d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x3c], 9
push edi
mov edi, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x44], 0xd800f9
xor ecx, ecx
mov dword [esp + 0x48], 0xcf00c4
mov dword [esp + 0x4c], 0xc700c1
mov dword [esp + 0x50], 0xc400dc
mov dword [esp + 0x54], 0xb200ea
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [esp + ecx*2 + 0x44], ax
inc ecx
mov eax, dword [esp + 0x40]
cmp ecx, eax
jb 0x410dc0
xor ecx, ecx
mov word [esp + eax*2 + 0x44], cx
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.00404740
mov ecx, dword [edi + 4]
add esp, 8
sub ecx, dword [edi]
sar ecx, 3
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_int_]
mov edx, 4
mov dword [esp + 0x34], 0x8200f4
mov esi, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], 0xa600a6
xor ecx, ecx
mov dword [esp + 0x3c], 0xad
nop
lea eax, [ecx + 0xa9]
xor word [esp + ecx*2 + 0x34], ax
inc ecx
mov edx, dword [esp + 0x30]
cmp ecx, edx
jb 0x410e20
xor eax, eax
mov word [esp + edx*2 + 0x34], ax
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00404740
mov eax, dword [edi + 4]
add esp, 8
sub eax, dword [edi]
xor esi, esi
sar eax, 3
test eax, eax
je 0x410fe9
mov dword [esp + 0x10], 0xef
mov dword [esp + 0x14], 0x91
nop dword [eax + eax]
test esi, esi
je 0x410eb9
mov ecx, 2
mov dword [esp + 0x34], 0xa000a4
mov dword [esp + 0x30], ecx
xor eax, eax
mov dword [esp + 0x38], 0xab
nop
lea ecx, [eax + 0xa9]
xor word [esp + eax*2 + 0x34], cx
inc eax
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jb 0x410e90
xor eax, eax
mov word [esp + ecx*2 + 0x34], ax
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00404740
add esp, 8
mov ecx, dword [esp + 0x10]
mov eax, 4
mov word [esp + 0x48], cx
mov ecx, dword [esp + 0x14]
mov word [esp + 0x4a], cx
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0xe300f9
mov dword [esp + 0x4c], 0xad
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [esp + ecx*2 + 0x44], ax
inc ecx
mov eax, dword [esp + 0x40]
cmp ecx, eax
jb 0x410ef0
xor ecx, ecx
mov word [esp + eax*2 + 0x44], cx
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.00404740
mov ecx, dword [edi]
add esp, 8
mov ecx, dword [ecx + esi*8]
push dword [ecx]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov edx, eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x1c], 0xe5ed8a92
xor ecx, ecx
mov dword [esp + 0x20], 0xb095ebe1
lea eax, [ecx - 0x57]
xor byte [esp + ecx + 0x1c], al
inc ecx
mov eax, dword [esp + 0x18]
cmp ecx, eax
jb 0x410f44
mov byte [esp + eax + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00413580
mov ecx, dword [edi]
add esp, 8
mov edx, dword [ecx + esi*8]
mov ecx, eax
lea edx, [edx + 8]
call fcn.00402db0
mov edx, 6
mov dword [esp + 0x28], 0xe1e88a92
mov ebx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0xaf94e9
xor ecx, ecx
lea eax, [ecx - 0x57]
xor byte [esp + ecx + 0x28], al
inc ecx
mov edx, dword [esp + 0x24]
cmp ecx, edx
jb 0x410f93
lea eax, [esp + 0x28]
mov byte [esp + edx + 0x28], 0
push eax
push ebx
call fcn.00413580
mov ecx, dword [edi]
add esp, 8
mov ecx, dword [ecx + esi*8]
add ecx, 0x2c
cmp dword [ecx + 0x14], 8
mov edx, dword [ecx + 0x10]
jb 0x410fc9
mov ecx, dword [ecx]
push edx
push ecx
push eax
call fcn.00404c80
mov eax, dword [edi + 4]
inc esi
sub eax, dword [edi]
add esp, 0xc
mov ebx, dword [esp + 0xc]
sar eax, 3
cmp esi, eax
jb 0x410e70
mov dword [esp + 0x30], 3
xor ecx, ecx
mov dword [esp + 0x34], 0xa70080
mov dword [esp + 0x38], 0xac00a1
lea eax, [ecx + 0xa9]
xor word [esp + ecx*2 + 0x34], ax
inc ecx
mov eax, dword [esp + 0x30]
cmp ecx, eax
jb 0x411003
xor ecx, ecx
mov word [esp + eax*2 + 0x34], cx
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00404740
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret