Function at 0x404cde
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], esi
je 0x4053ba
cmp dword [ebp + 0xc], esi
je 0x4053ba
cmp dword [ebp + 0x10], esi
je 0x4053ba
cmp dword [ebp + 0x14], esi
je 0x4053ba
push esi
push 0x104
mov dword [ebp - 0x40], esi
call fcn.00404a5a
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 8], ebx
jne 0x404d3e
mov dword [ebp - 0x40], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x405024
lea edx, [ebx + 0x34]
lea eax, [edx + 0x58]
mov dword [ebp - 0xc], eax
add eax, 0x3c
mov dword [ebp - 0x24], eax
add eax, 0x14
mov dword [ebp - 0x14], eax
add eax, 0x14
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 8]
mov esi, 0x5ea0b0
mov ecx, 0x34
mov eax, edi
cld
or ecx, ecx
je 0x404d6f
rep movsb byte es:[edi], byte [esi]
mov dword [ebx], edx
mov eax, dword [0x5ea0b0]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ecx, 0x58
mov eax, edi
cld
or ecx, ecx
je 0x404d90
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
add eax, 0x30
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ecx, 4
mov eax, edi
cld
or ecx, ecx
je 0x404db2
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x5ea0b0]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ecx, 0x3c
mov eax, edi
cld
or ecx, ecx
je 0x404dd9
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
add eax, 0x20
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ecx, 4
mov eax, edi
cld
or ecx, ecx
je 0x404dfe
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
and dword [ebp - 0xc0], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5ea0b0]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0xbc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x110], 0x123174bb
mov dword [ebp - 0x10c], 0x86521ff8
mov dword [ebp - 0x108], 0x98d2438b
mov dword [ebp - 0x104], 0x7966ce12
mov dword [ebp - 0x100], 0xc5d92014
mov dword [ebp - 8], 0x14
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, edi
cld
or ecx, ecx
je 0x404e7e
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor edx, edx
push 5
mov eax, ecx
pop esi
div esi
mov eax, dword [ebp + edx*4 - 0x110]
xor dword [ebp + ecx*4 - 0xc0], eax
inc ecx
cmp ecx, esi
jb 0x404e80
push 0x14
pop edx
lea eax, [ebp - 0xc0]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, edi
cld
or ecx, ecx
je 0x404ebd
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
and dword [ebp - 0xac], 0
mov dword [ebx + 4], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5ea0b4]
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0xa8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xd4], 0x123174bb
mov dword [ebp - 0xd0], 0x86521ff8
mov dword [ebp - 0xcc], 0x98d2438b
mov dword [ebp - 0xc8], 0x7966ce12
mov dword [ebp - 0xc4], 0xc5d92014
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, edi
cld
or ecx, ecx
je 0x404f31
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor edx, edx
push 5
mov eax, ecx
pop esi
div esi
mov eax, dword [ebp + edx*4 - 0xd4]
xor dword [ebp + ecx*4 - 0xac], eax
inc ecx
cmp ecx, esi
jb 0x404f33
push 0x14
pop edx
lea eax, [ebp - 0xac]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, edi
cld
or ecx, ecx
je 0x404f70
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x84], 0
mov dword [ebx + 8], eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x5ea0b8]
mov dword [ebp - 8], eax
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0xfc], 0x123174bb
mov dword [ebp - 0xf8], 0x86521ff8
mov dword [ebp - 0xf4], 0x98d2438b
mov dword [ebp - 0xf0], 0x7966ce12
mov dword [ebp - 0xec], 0xc5d92014
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, edi
cld
or ecx, ecx
je 0x404fe1
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor edx, edx
push 5
mov eax, ecx
pop esi
div esi
mov eax, dword [ebp + edx*4 - 0xfc]
xor dword [ebp + ecx*4 - 0x84], eax
inc ecx
cmp ecx, esi
jb 0x404fe3
lea eax, [ebp - 0x84]
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, edi
cld
or ecx, ecx
je 0x405021
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x40]
test eax, eax
mov dword [ebp - 0x1c], eax
jl 0x4053c1
and dword [ebp - 0x98], 0
xor eax, eax
lea edi, [ebp - 0x94]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0xe8], 0x123174bb
mov dword [ebp - 0xe4], 0x86521ff8
mov dword [ebp - 0xe0], 0x98d2438b
mov dword [ebp - 0xdc], 0x7966ce12
mov dword [ebp - 0xd8], 0xc5d92014
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x44], eax
mov edi, dword [ebp - 0x44]
mov esi, 0x5e9670
mov ecx, dword [ebp - 0x14]
mov eax, edi
cld
or ecx, ecx
je 0x40509b
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor edx, edx
push 5
mov eax, ecx
pop esi
div esi
mov eax, dword [ebp + edx*4 - 0xe8]
xor dword [ebp + ecx*4 - 0x98], eax
inc ecx
cmp ecx, esi
jb 0x40509d
lea eax, [ebp - 0x98]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
mov eax, edi
cld
or ecx, ecx
je 0x4050e1
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 8]
and dword [ebx], 0
push ebx
lea eax, [ebx + 0xc]
push 0xdc
mov dword [ebx + 4], 0x157c
mov dword [ebx + 8], eax
mov dword [ebp - 0x44], ebx
call fcn.00404a5a
test eax, eax
mov dword [ebp - 0x48], eax
jne 0x405115
mov dword [ebp - 0x1c], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4053c1
add eax, 0x14
mov dword [ebp - 8], eax
add eax, 0x28
mov dword [ebp - 0x40], eax
add eax, 0x28
mov dword [ebp + 8], eax
add eax, 0x50
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x70]
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x405151
mov dword [ebp - 0x14], 0x28
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, edi
cld
or ecx, ecx
je 0x405151
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
push ebx
push 0x14
pop edi
push edi
mov dword [ebp - 0x18], eax
call fcn.00404a5a
test eax, eax
mov dword [ebp - 4], eax
je 0x4051b5
lea eax, [ebp - 0x70]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, edi
cld
or ecx, ecx
je 0x405188
rep movsb byte es:[edi], byte [esi]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push 5
push dword [ebp - 4]
call fcn.0040cc7c
mov eax, dword [ebp - 4]
push 0x14
pop ecx
mov byte [eax], 0
inc eax
dec ecx
jne 0x40519f
push ebx
push dword [ebp - 4]
call fcn.00404a75
mov esi, dword [ebp - 0x24]
push 0x14
pop edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x5c]
push edi
mov dword [ebp - 0x28], eax
call fcn.00404a5a
test eax, eax
mov dword [ebp - 4], eax
je 0x405214
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov eax, edi
cld
or ecx, ecx
je 0x4051e6
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x20]
push ebx
push dword [ebp - 0x14]
add eax, 0x14
push eax
push 5
push dword [ebp - 4]
call fcn.0040cc7c
mov eax, dword [ebp - 4]
push 0x14
pop ecx
mov byte [eax], 0
inc eax
dec ecx
jne 0x405201
push ebx
push dword [ebp - 4]
call fcn.00404a75
mov esi, dword [ebp - 0x24]
push ebx
push 0
push 0
push esi
push dword [ebp - 0x20]
call fcn.00409dbd
test eax, eax
jne 0x405232
mov dword [ebp - 0x1c], 0x800480d5
jmp 0x4053c1
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0x10]
je 0x405256
mov dword [ebp - 0x18], 0x10
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, edi
cld
or ecx, ecx
je 0x405253
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
push ebx
push esi
add edi, 0x28
push edi
push edx
call fcn.00404a96
test eax, eax
je 0x405226
push ebx
push 0
push 5
push dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040d20e
push ebx
push esi
push dword [ebp - 8]
push 5
push dword [ebp - 0x48]
push 0x3c
push 4
push 0x5e96ec
call fcn.0040c245
test eax, eax
je 0x405226
push ebx
push 0
push 0
push esi
push dword [ebp - 0x20]
call fcn.00409dbd
test eax, eax
je 0x405226
push ebx
push esi
push dword [ebp + 8]
push 5
push dword [ebp - 0x48]
push 0
push 4
push dword [ebp - 0x20]
call fcn.0040c245
test eax, eax
je 0x405226
push ebx
push 0
push esi
push 1
push dword [ebp - 0x40]
push edi
push dword [ebp + 8]
call fcn.00409fe1
test eax, eax
je 0x405226
mov eax, dword [esi]
push ebx
push dword [eax + 0x30]
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0040cda5
mov dword [ebp - 0x18], 0x14
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov eax, edi
cld
or ecx, ecx
je 0x40530e
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push ebx
push dword [eax + 0x30]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
add eax, 0x14
push eax
call fcn.0040cda5
mov eax, dword [ebp + 0x14]
add eax, 0x14
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x14
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov eax, edi
cld
or ecx, ecx
je 0x405348
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push ebx
push dword [eax + 0x30]
push dword [ebp + 8]
push dword [ebp - 0x40]
call fcn.0040cda5
mov eax, dword [ebp + 0x14]
add eax, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x14
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov eax, edi
cld
or ecx, ecx
je 0x40537e
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push ebx
push dword [eax + 0x30]
mov eax, dword [ebp - 0x40]
push dword [ebp + 8]
add eax, 0x14
push eax
call fcn.0040cda5
mov eax, dword [ebp + 0x14]
add eax, 0x3c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x14
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov eax, edi
cld
or ecx, ecx
je 0x4053b8
rep movsb byte es:[edi], byte [esi]
jmp 0x4053c1
mov dword [ebp - 0x1c], 0x80070057
mov edx, dword [ebp - 0x24]
test edx, edx
pop edi
pop esi
pop ebx
je 0x405400
mov eax, dword [edx]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
push 0x14
pop ecx
mov byte [eax], 0
inc eax
dec ecx
jne 0x4053d6
mov eax, dword [edx + 4]
push 0x14
pop ecx
mov byte [eax], 0
inc eax
dec ecx
jne 0x4053e3
mov eax, dword [edx + 8]
push 0x14
pop ecx
mov byte [eax], 0
inc eax
dec ecx
jne 0x4053f0
push dword [ebp - 0x44]
push edx
call fcn.00404a75
push 0x14
pop ecx
lea eax, [ebp - 0x3c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x405406
cmp dword [ebp - 0x48], 0
je 0x405422
mov eax, dword [ebp - 0x48]
mov ecx, 0xdc
mov byte [eax], 0
inc eax
dec ecx
jne 0x40541b
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.00404a75
mov eax, dword [ebp - 0x1c]
leave
ret