Function at 0x407f55
Capabilities:
Encode data using xor

Disassembly:
push 0xc4
mov eax, 0x434763
call fcn.0042bf4b
lea eax, [ebp - 0xac]
push eax
call fcn.00407e1f
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x94], 8
mov eax, dword [ebp - 0xa8]
jae 0x407f8a
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 7
pop ecx
mov byte [ebp - 4], 1
push str.NtQuerySystemInformation
xor eax, eax
mov dword [ebp - 0xd0], ebx
lea edi, [ebp - 0xcc]
push str.ntdll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x407fd7
push ebx
push 0x20
lea ecx, [ebp - 0xd0]
push ecx
push 3
call eax
push ebx
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
push ebx
lea ecx, [ebp - 0x90]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp eax, ebx
je 0x408015
jmp 0x408010
movzx ecx, word [eax]
cmp cx, 0x41
jb 0x40800e
cmp cx, 0x5a
ja 0x40800e
add ecx, 0x20
mov word [eax], cx
inc eax
inc eax
cmp word [eax], bx
jne 0x407ff9
mov ecx, dword [ebp - 0x7c]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x14], ecx
jbe 0x408037
mov edx, eax
and edx, 3
mov dx, word [ebp + edx*2 - 0xd0]
xor word [esi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x408021
xor eax, eax
mov word [ebp - 0x28], bx
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [ecx + ecx]
cmp edi, 0x10
mov dword [ebp - 0xb0], edi
jae 0x408063
push edi
lea eax, [ebp - 0x28]
push esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x4080a1
shr edi, 3
cmp ebx, 7
jne 0x408086
mov ecx, dword [ebp - 0xb0]
mov eax, edi
imul eax, eax, 7
sub ecx, eax
push ecx
add eax, esi
call fcn.00407efb
mov word [ebp - 0x1a], ax
jmp 0x408098
mov eax, ebx
imul eax, edi
push edi
add eax, esi
call fcn.00407efb
mov word [ebp + ebx*2 - 0x28], ax
inc ebx
cmp ebx, 8
pop ecx
jb 0x408066
xor ebx, ebx
push 0x48
lea eax, [ebp - 0x72]
push ebx
push eax
mov word [ebp - 0x74], bx
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x28]
call fcn.00407ea6
add esp, 0x10
lea eax, [ebp - 0x74]
mov ebx, 0x449bdc
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x14], 3
jb 0x408117
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [esi]
cdq
push 0x1a
pop ecx
idiv ecx
movzx eax, word [esi + 2]
add edx, 0x61
mov word [ebp - 0x18], dx
cdq
idiv ecx
movzx eax, word [esi + 4]
add edx, 0x61
mov word [ebp - 0x16], dx
cdq
idiv ecx
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
add edx, 0x61
mov word [ebp - 0x14], dx
call dword [0x4371a4]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
inc eax
call fcn.0042bfce
ret