Function at 0x46bc5d
Capabilities:
Encode data using xor

Disassembly:
push 0xc4
mov eax, 0x49dc2d
call fcn.00487961
lea eax, [ebp - 0xac]
push eax
call fcn.0046bb2d
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x94], 8
mov eax, dword [ebp - 0xa8]
jae 0x46bc92
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 0x46bcdf
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 0x46bd1d
jmp 0x46bd18
movzx ecx, word [eax]
cmp cx, 0x41
jb 0x46bd16
cmp cx, 0x5a
ja 0x46bd16
add ecx, 0x20
mov word [eax], cx
inc eax
inc eax
cmp word [eax], bx
jne 0x46bd01
mov ecx, dword [ebp - 0x7c]
xor eax, eax
cmp ecx, ebx
mov dword [ebp - 0x14], ecx
jbe 0x46bd3f
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 0x46bd29
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 0x46bd6b
push edi
lea eax, [ebp - 0x28]
push esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x46bda9
shr edi, 3
cmp ebx, 7
jne 0x46bd8e
mov ecx, dword [ebp - 0xb0]
mov eax, edi
imul eax, eax, 7
sub ecx, eax
push ecx
add eax, esi
call fcn.0046bc03
mov word [ebp - 0x1a], ax
jmp 0x46bda0
mov eax, ebx
imul eax, edi
push edi
add eax, esi
call fcn.0046bc03
mov word [ebp + ebx*2 - 0x28], ax
inc ebx
cmp ebx, 8
pop ecx
jb 0x46bd6e
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.0046bbae
add esp, 0x10
lea eax, [ebp - 0x74]
mov ebx, 0x4e1234
push eax
mov ecx, ebx
call dword [0x4a9398]
cmp dword [ebp - 0x14], 3
jb 0x46be1f
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 [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__]
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.004879e4
ret