Function at 0x461e38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff2c
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0xc], 0
mov eax, 0x4620d0
call fcn.00411bd4
mov dword [esp + 0x10], eax
mov ecx, dword [0x669714]
lea edi, [esp + 0x38]
xor edx, edx
xor eax, eax
xor dl, byte [ecx + eax]
inc eax
cmp eax, 5
jne 0x461e6e
mov byte [edi], dl
inc ecx
inc edi
test dl, dl
jne 0x461e6a
lea eax, [esp + 0x38]
call fcn.00411b80
mov esi, eax
test esi, esi
je 0x4620bd
mov ecx, dword [0x669718]
lea edi, [esp + 0x38]
xor edx, edx
xor eax, eax
xor dl, byte [ecx + eax]
inc eax
cmp eax, 5
jne 0x461ea0
mov byte [edi], dl
inc ecx
inc edi
test dl, dl
jne 0x461e9c
lea eax, [esp + 0x38]
push eax
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x14], eax
mov ecx, dword [0x66971c]
lea edi, [esp + 0x38]
xor edx, edx
xor eax, eax
xor dl, byte [ecx + eax]
inc eax
cmp eax, 5
jne 0x461ece
mov byte [edi], dl
inc ecx
inc edi
test dl, dl
jne 0x461eca
lea eax, [esp + 0x38]
push eax
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x18], eax
mov ecx, dword [0x669720]
lea edi, [esp + 0x38]
xor edx, edx
xor eax, eax
xor dl, byte [ecx + eax]
inc eax
cmp eax, 5
jne 0x461efc
mov byte [edi], dl
inc ecx
inc edi
test dl, dl
jne 0x461ef8
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x1c], eax
mov ecx, dword [0x669724]
lea edi, [esp + 0x38]
xor edx, edx
xor eax, eax
xor dl, byte [ecx + eax]
inc eax
cmp eax, 5
jne 0x461f2e
mov byte [edi], dl
inc ecx
inc edi
test dl, dl
jne 0x461f2a
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
xor ecx, ecx
mov edx, 0x80
call fcn.004032f4
cmp dword [esp + 0x14], 0
je 0x461f70
cmp dword [esp + 0x1c], 0
jne 0x461f7b
push esi
call sub.kernel32.dll_FreeLibrary_1
jmp 0x4620bd
mov ecx, dword [0x669728]
lea edi, [esp + 0x38]
inc edi
and edi, 0xfffffffe
xor edx, edx
xor eax, eax
xor dl, byte [ecx + eax]
inc eax
cmp eax, 5
jne 0x461f8d
movzx eax, dl
mov word [edi], ax
inc ecx
add edi, 2
test dl, dl
jne 0x461f89
lea edi, [esp + 0x38]
inc edi
and edi, 0xfffffffe
mov edx, 0x3f
mov ebx, edi
mov eax, ebx
call fcn.0040d9e4
lea edx, [esp + 0x24]
inc edx
and edx, 0xfffffffe
mov dword [esp + 0x30], edx
mov edx, eax
mov ecx, edx
add ecx, ecx
mov ebp, dword [esp + 0x30]
mov word [ebp], cx
inc edx
mov eax, edx
add eax, eax
mov edx, dword [esp + 0x30]
mov word [edx + 2], ax
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ebx
lea eax, [esp + 0xb8]
xor ecx, ecx
mov edx, 0x1c
call fcn.004032f4
lea ebx, [esp + 0xb8]
add ebx, 3
and ebx, 0xfffffffc
mov dword [ebx], 0x18
xor eax, eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0x40
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [esp + 0x34], eax
push ebx
push 4
lea eax, [esp + 0x3c]
push eax
call dword [esp + 0x20]
lea eax, [esp + 0x38]
xor ecx, ecx
mov edx, 0x80
call fcn.004032f4
cmp dword [esp + 0x34], 0
jne 0x46205c
push esi
call sub.kernel32.dll_FreeLibrary_1
jmp 0x4620bd
mov edi, dword [esp + 4]
and edi, 0xfff
mov eax, dword [esp + 8]
add eax, edi
push eax
mov eax, dword [esp + 8]
sub eax, edi
push eax
push 0
push 4
mov eax, dword [esp + 0x44]
push eax
call dword [esp + 0x30]
mov ebx, eax
test ebx, ebx
je 0x4620a7
lea eax, [ebx + edi]
mov edx, dword [esp]
mov ecx, dword [esp + 8]
call fcn.00402da0
mov byte [esp + 0xc], 1
cmp dword [esp + 0x20], 0
je 0x4620a7
push ebx
call dword [esp + 0x24]
cmp dword [esp + 0x18], 0
je 0x4620b7
mov eax, dword [esp + 0x34]
push eax
call dword [esp + 0x1c]
push esi
call sub.kernel32.dll_FreeLibrary_1
movzx eax, byte [esp + 0xc]
add esp, 0xd4
pop ebp
pop edi
pop esi
pop ebx
ret