Function at 0x430410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x432d58]
mov byte [eax], 1
mov eax, 0x42da7c
call fcn.004090f0
xor eax, eax
push ebp
push 0x430740
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x432c8c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x432bfc]
mov byte [eax], 0
mov eax, dword [0x432a98]
mov byte [eax], 1
mov al, 1
call fcn.00403728
mov eax, dword [0x432c58]
movzx eax, word [eax]
mov edx, dword [0x432c28]
mov dword [edx], eax
xor eax, eax
call fcn.00417c9c
push 0
mov eax, dword [0x432b40]
mov ecx, 1
mov edx, dword [0x4177a0]
call fcn.004076f4
add esp, 4
push 0
mov eax, dword [0x432d74]
mov ecx, 1
mov edx, dword [0x4177d0]
call fcn.004076f4
add esp, 4
mov dl, 1
mov eax, dword [0x42d558]
call fcn.0042d780
mov ebx, eax
mov edx, 0x43075c
mov eax, ebx
call fcn.0042d7e8
test al, al
je 0x4304de
mov edx, 0x44bcb4
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
call fcn.00403b24
mov eax, ebx
call fcn.0042d7d4
mov eax, dword [0x432da0]
mov edx, dword [0x44bcc0]
mov dword [eax], edx
mov edx, 0x430770
mov eax, ebx
call fcn.0042d7e8
test al, al
je 0x430713
lea eax, [ebp - 0x14]
call fcn.004178a0
mov eax, dword [ebp - 0x14]
call fcn.00406b14
mov dword [0x44bcb0], eax
mov edx, 0x8000
mov eax, dword [0x44bcb0]
call fcn.0042721c
mov dword [0x44bcac], eax
mov eax, dword [0x44bcb0]
call fcn.0040685c
mov dword [0x44bca8], eax
mov eax, dword [0x432b40]
mov eax, dword [eax]
call fcn.004074d8
mov esi, eax
lea eax, [esi + 1]
push eax
mov eax, dword [0x432b40]
mov ecx, 1
mov edx, dword [0x4177a0]
call fcn.004076f4
add esp, 4
mov eax, dword [0x44bca8]
lea eax, [eax + eax*2]
call fcn.00403980
lea edi, [esi + esi*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov dword [edx + edi*8], eax
lea eax, [esi + esi*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov eax, dword [edx + eax*8]
mov edx, dword [0x44bcb0]
call fcn.004132e4
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov edx, dword [0x44bcac]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [0x44bcac]
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov dword [edx + edi*8 + 8], eax
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov edx, dword [ebx + 0x40]
mov dword [eax + edi*8 + 0xc], edx
lea eax, [esi + esi*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.00403980
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov dword [edx + edi*8 + 0x10], eax
lea eax, [esi + esi*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
mov edx, dword [edx + eax*8 + 0x10]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
call fcn.00403b24
mov eax, dword [0x432b40]
mov eax, dword [eax]
mov edx, dword [eax + edi*8 + 0x10]
mov eax, dword [ebx + 0x40]
dec eax
test eax, eax
jl 0x430621
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x43061a
lea eax, [esi + esi*2]
mov edx, dword [0x432b40]
mov edx, dword [edx]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
mov eax, ebx
call fcn.00404d44
call fcn.0042c100
mov edx, dword [0x432d28]
mov dword [edx], eax
mov eax, dword [0x432d28]
cmp dword [eax], 0
je 0x43071a
mov eax, dword [0x432d4c]
call fcn.00417678
test eax, eax
je 0x430680
mov eax, dword [0x432bf0]
cmp byte [eax], 0
je 0x430676
mov eax, dword [0x432bfc]
mov byte [eax], 1
jmp 0x430680
mov eax, 0xff
call fcn.0042d294
mov eax, dword [0x432bfc]
cmp byte [eax], 0
jne 0x43071a
mov ecx, dword [0x432b94]
mov ecx, dword [ecx]
mov edx, dword [0x432d28]
mov edx, dword [edx]
mov eax, 1
call fcn.00418484
mov edx, dword [0x432d7c]
mov dword [edx], eax
mov eax, dword [0x432d7c]
cmp dword [eax], 1
jne 0x4306c4
mov eax, 1
call fcn.0042d294
mov eax, dword [0x432d7c]
cmp dword [eax], 0xffffffff
jne 0x4306d5
xor eax, eax
call fcn.0042d294
mov edx, dword [0x432d7c]
mov edx, dword [edx]
xor eax, eax
call fcn.004241d0
mov edx, dword [0x432aa0]
mov word [edx], ax
call fcn.00427db0
mov eax, dword [0x432bf0]
cmp byte [eax], 0
jne 0x430709
mov eax, dword [0x432aa0]
movzx eax, word [eax]
call fcn.0042d294
mov eax, dword [0x432bf0]
mov byte [eax], 0
jmp 0x43071a
mov eax, ebx
call fcn.00404d44
xor eax, eax
call fcn.0042d294
mov eax, dword [0x432a0c]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430747
lea eax, [ebp - 0x14]
call fcn.00406414
ret