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], 0xcb00e8
xor ecx, ecx
mov dword [esp + 0x48], 0xd800d5
mov dword [esp + 0x4c], 0xd400d0
mov dword [esp + 0x50], 0xcb00cd
mov dword [esp + 0x54], 0xc1009b
nop word [eax + eax]
lea eax, [ecx + 0xb8]
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], 0x9100e5
mov esi, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], 0xb100b7
xor ecx, ecx
mov dword [esp + 0x3c], 0xbc
nop
lea eax, [ecx + 0xb8]
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], 0xfe
mov dword [esp + 0x14], 0x86
nop dword [eax + eax]
test esi, esi
je 0x410eb9
mov ecx, 2
mov dword [esp + 0x34], 0xb300b5
mov dword [esp + 0x30], ecx
xor eax, eax
mov dword [esp + 0x38], 0xba
nop
lea ecx, [eax + 0xb8]
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], 0xf000e8
mov dword [esp + 0x4c], 0xbc
nop word [eax + eax]
lea eax, [ecx + 0xb8]
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], 0xf2fc9983
xor ecx, ecx
mov dword [esp + 0x20], 0xbf84f8f0
lea eax, [ecx - 0x48]
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], 0xf6f99983
mov ebx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0xbe87f8
xor ecx, ecx
lea eax, [ecx - 0x48]
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], 0xb40091
mov dword [esp + 0x38], 0xbb00b0
lea eax, [ecx + 0xb8]
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