Function at 0x401035
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp 0x408750
mov eax, 0x4145d4
call fcn.00412cd0
sub esp, 0x50
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0x48
mov esi, ecx
je 0x408884
push 0x40
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
push 7
pop edi
je 0x40880b
mov eax, 0x43a520
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [sym.imp.pk77.dll_Ordinal_8102]
push 3
pop ebx
push 0x1c
mov esi, str.F12928EC99F57512AEE8DEF50CC77BF1
push esi
push dword [eax + 4]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call sub.pk77.dll_Ordinal_9960
mov dword [ebp + 8], eax
mov eax, dword [sym.imp.pk77.dll_Ordinal_8102]
push 0x1c
push esi
push dword [eax + 8]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
call sub.pk77.dll_Ordinal_9960
add esp, 0x20
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 0xf
call sub.pk77.dll_Ordinal_3148
mov ebx, eax
test byte [ebp - 0x10], 8
mov dword [ebp - 4], edi
je 0x408820
and dword [ebp - 0x10], 0xfffffff7
lea ecx, [ebp - 0x38]
call fcn.00401000
test byte [ebp - 0x10], 4
mov dword [ebp - 4], 6
je 0x408839
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x44]
call fcn.00401000
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 5
je 0x408852
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.00401000
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
je 0x408864
lea ecx, [ebp - 0x2c]
call fcn.00401000
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
call sub.pk77.dll_Ordinal_4779
push ebx
mov dword [ebp - 4], 9
call sub.pk77.dll_Ordinal_9433
mov dword [ebp + 8], ebx
jmp 0x4089c2
mov eax, dword [sym.imp.pk77.dll_Ordinal_3955]
cmp byte [eax], bl
jne 0x408892
call sub.pk77.dll_Ordinal_1919
mov eax, dword [sym.imp.pk77.dll_Ordinal_1740]
cmp byte [eax], bl
je 0x4089d2
mov eax, dword [sym.imp.pk77.dll_Ordinal_3748]
test byte [eax + 2], 0x80
jne 0x4089d2
push 0x40
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x40894a
mov eax, 0x43a520
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [sym.imp.pk77.dll_Ordinal_8102]
push 0x23
mov esi, str.F12928EC99F57512AEE8DEF50CC77BF1
push esi
push dword [eax + 4]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x10], 0x30
call sub.pk77.dll_Ordinal_9960
mov edi, eax
mov eax, dword [sym.imp.pk77.dll_Ordinal_8102]
push 0x23
push esi
push dword [eax + 8]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x10], 0x70
call sub.pk77.dll_Ordinal_9960
add esp, 0x20
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x10], 0xf0
call sub.pk77.dll_Ordinal_3148
mov esi, eax
jmp 0x40894c
xor esi, esi
test byte [ebp - 0x10], 0x80
mov dword [ebp - 4], 0x11
je 0x408965
and byte [ebp - 0x10], 0x7f
lea ecx, [ebp - 0x44]
call fcn.00401000
test byte [ebp - 0x10], 0x40
push 0x10
pop ebx
mov dword [ebp - 4], ebx
je 0x40897d
and dword [ebp - 0x10], 0xffffffbf
lea ecx, [ebp - 0x38]
call fcn.00401000
test byte [ebp - 0x10], 0x20
mov dword [ebp - 4], 0xf
je 0x408996
and dword [ebp - 0x10], 0xffffffdf
lea ecx, [ebp - 0x2c]
call fcn.00401000
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], bl
je 0x4089a7
lea ecx, [ebp - 0x20]
call fcn.00401000
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call sub.pk77.dll_Ordinal_4779
push esi
mov dword [ebp - 4], 0x13
call sub.pk77.dll_Ordinal_9433
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
mov dword [esp], 0x43b440
push eax
call sub.MSVCR71.dll__CxxThrowException
push edi
lea ecx, [esi + 0x2a1]
mov byte [esi + 0x257], 1
call fcn.004086e9
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.00408735
lea edi, [esi + 0x2c9]
cmp edi, eax
mov dword [ebp - 4], 0x14
je 0x408a17
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x408a0f
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
jmp 0x408a17
push eax
mov ecx, edi
call sub.pk77.dll_Ordinal_4396
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call sub.pk77.dll_Ordinal_8615
cmp dword [edi + 4], ebx
je 0x408a2f
mov eax, dword [edi]
add eax, 4
jmp 0x408a31
xor eax, eax
add eax, 0x40
cmp byte [esi + 0x257], bl
mov dword [esi + 0x258], eax
je 0x408a69
mov dword [ebp + 8], 0x33
sub dword [ebp + 8], esi
push 8
lea ebx, [esi + 5]
pop esi
mov eax, dword [ebp + 8]
add eax, ebx
push eax
mov ecx, edi
call fcn.00408411
mov al, byte [eax]
xor al, 8
mov byte [ebx], al
inc ebx
dec esi
jne 0x408a52
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4