Function at 0x404457
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4161ac
call fcn.0040b2b4
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00405092
cmp dword [ebp - 0x3c], esi
je 0x404692
lea eax, [ebp - 0x4c]
call fcn.00405107
mov eax, dword [eax]
lea esi, [eax + 8]
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], eax
movsd dword es:[edi], dword [esi]
push 0x10
lea eax, [ebp - 0x38]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call fcn.00409ba0
mov esi, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [esi + 4], ebx
add esp, 0xc
lea eax, [esi + 0x18]
add ebx, 0x10
call fcn.00404d83
test eax, eax
jle 0x404633
jmp 0x404506
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
call fcn.004048b0
cmp byte [eax + 8], 0
je 0x40452b
mov esi, dword [ebp - 0x14]
call fcn.004048b0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
call fcn.00405092
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call fcn.004048b0
cmp byte [eax + 0x10], 0
je 0x404557
call fcn.004048b0
call fcn.00404ccb
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
call fcn.00405092
jmp 0x404592
call fcn.004048b0
call fcn.00404cd8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x88]
call fcn.00405092
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call fcn.004048b0
call fcn.00404cd8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
call fcn.00405092
and dword [ebp - 0x20], 0
mov esi, dword [ebp - 0x14]
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
call fcn.004048b0
movzx eax, byte [eax + 0x10]
mov ecx, dword [ebp - 0x1c]
shl eax, 0x1f
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x1c], eax
call fcn.004048b0
cmp byte [eax + 8], 0
je 0x4045ce
and word [ebp - 0x20], 0
jmp 0x4045e2
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call fcn.004048b0
call fcn.00404cbc
mov word [ebp - 0x20], ax
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call fcn.004048b0
xor ecx, ecx
cmp byte [eax + 8], cl
mov eax, dword [ebp - 0x20]
setne cl
and eax, 0x7fffffff
push 8
shl ecx, 0x1f
or ecx, eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], ecx
call fcn.00409ba0
add esp, 0xc
call fcn.004048b0
mov dword [eax + 4], ebx
add ebx, 8
inc dword [ebp - 0x10]
lea eax, [esi + 0x18]
call fcn.00404d83
cmp dword [ebp - 0x10], eax
jl 0x404503
lea eax, [ebp - 0x4c]
call fcn.0040506a
cmp dword [ebp - 0x3c], 0
jne 0x4044be
xor esi, esi
jmp 0x404692
lea eax, [ebp - 0x88]
call fcn.00405107
mov ecx, dword [eax]
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x18], ecx
call fcn.00409ba0
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
add esp, 0xc
lea eax, [ebp - 0x88]
add ebx, 0x10
call fcn.0040506a
cmp dword [ebp - 0x78], esi
jne 0x404649
cmp dword [ebp - 0x50], esi
je 0x404772
lea eax, [ebp - 0x60]
call fcn.00405107
mov esi, dword [eax]
mov eax, dword [esi + 4]
mov ecx, ebx
sub ecx, dword [ebp + 0xc]
xor ecx, dword [eax]
and ecx, 0x7fffffff
xor dword [eax], ecx
call fcn.00404c91
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx esi, ax
lea eax, [esi + esi + 2]
push eax
call fcn.00408c9a
pop ecx
push esi
push eax
push esi
push edi
push 0
push 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec eax
movzx esi, ax
mov word [ebx], ax
shl esi, 1
push esi
push dword [ebp - 0x14]
inc ebx
inc ebx
push ebx
call fcn.00409ba0
add ebx, esi
and word [ebx], 0
inc ebx
push edi
inc ebx
call fcn.004099b6
push dword [ebp - 0x14]
call fcn.004099b6
add esp, 0x14
lea eax, [ebp - 0x60]
call fcn.0040506a
cmp dword [ebp - 0x50], 0
jne 0x4046a0
xor esi, esi
jmp 0x404772
lea eax, [ebp - 0x74]
call fcn.00405107
mov edi, dword [eax]
push dword [edi + 8]
push dword [edi + 4]
push ebx
call fcn.00409ba0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
sub eax, dword [ebp + 0xc]
mov ecx, dword [edi]
add eax, ebx
mov dword [ecx], eax
mov eax, dword [edi + 8]
add esp, 0xc
test al, 7
je 0x404768
mov edi, eax
and eax, 7
sub edi, eax
add edi, 8
mov eax, edi
add ebx, eax
lea eax, [ebp - 0x74]
call fcn.0040506a
cmp dword [ebp - 0x64], esi
jne 0x40472d
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x1c]
call fcn.004047be
lea esi, [ebp - 0x60]
call fcn.0040511f
lea esi, [ebp - 0x74]
call fcn.0040511f
lea esi, [ebp - 0x88]
call fcn.0040511f
lea esi, [ebp - 0x4c]
call fcn.0040511f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8