Function at 0x416714
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, 0x48e2a0
mov dword [esp + 0x10], edx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov edx, 0x48e2cc
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov edx, 0x48e2f8
xor eax, eax
mov dword [edx], eax
mov word [edx + 4], ax
mov edx, 0x48e300
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov word [edx + 0x10], ax
mov byte [edx + 0x12], al
mov edx, 0x48e82c
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov word [edx + 0x18], ax
mov byte [edx + 0x1a], al
call fcn.0040876c
mov dword [esp + 0x14], eax
call fcn.0040876c
mov dword [esp + 0x18], eax
call fcn.0040876c
mov dword [esp + 0x1c], eax
call fcn.0040876c
mov dword [esp + 0x20], eax
push dword [esi]
push eax
call fcn.004087c4
push 0x4e5e30
push dword [esp + 0x28]
call fcn.004087c4
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x2c]
call fcn.004087c4
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.00408204
push 0x21
push 0x48e7ec
push dword [esp + 0x44]
call fcn.004087ac
lea eax, [esp + 0x48]
push eax
call fcn.00408728
lea eax, [esp + 0x50]
push eax
call fcn.00408728
lea eax, [esp + 0x58]
push eax
call fcn.00408728
lea eax, [esp + 0x60]
push eax
call fcn.00408728
add esp, 0x44
mov ecx, 0x48e7ec
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x416891
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x41687a
add eax, 0xffffffff
mov edi, eax
mov eax, 0x66666666
mov edx, 0x48e80c
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov word [edx + 0x1c], ax
push edi
push 0x48e7ec
push 0x48e80c
call fcn.0041d7d0
add esp, 0xc
mov dword [esp + 0x10], esi
mov ecx, 0x48e82a
mov edx, ecx
mov esi, edi
and esi, 0xf
shr edi, 4
mov eax, esi
shl eax, 0x18
cmp esi, 9
jbe 0x4168f4
add eax, 0x57000000
shr eax, 0x18
mov byte [ecx], al
add ecx, 1
jmp 0x416901
add eax, 0x30000000
shr eax, 0x18
mov byte [ecx], al
add ecx, 1
test edi, edi
jne 0x4168d3
mov esi, dword [esp + 0x10]
mov byte [ecx], 0
add ecx, 0xffffffff
mov edi, edx
movzx eax, byte [ecx]
movzx edx, byte [edi]
mov byte [ecx], dl
mov byte [edi], al
add ecx, 0xffffffff
add edi, 1
cmp edi, ecx
jb 0x416911
mov eax, 0x48e82c
mov byte [eax], 0
push 0x20
mov ecx, 0x48e837
mov edx, 0x48e80c
call fcn.0041b4c8
movzx eax, byte [ebp]
mov edx, 0x48e82d
mov byte [edx], al
mov ecx, 0x48e834
lea edx, [ebp + 7]
movzx eax, byte [edx]
mov byte [ecx], al
mov ecx, 0x48e835
lea eax, [ebp + 8]
movzx edx, word [eax]
mov word [ecx], dx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, 0x48e7d4
mov dword [edx], ecx
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [esi + 0x10]
add edx, 0x10
xor ecx, ecx
movzx eax, byte [edx]
xor byte [ecx + 0x48e7d4], al
add edx, 1
add ecx, 1
cmp ecx, 0x10
jb 0x41698a
xor ecx, ecx
add edx, 1
movzx eax, byte [edx - 1]
xor byte [ecx + 0x48e7d4], al
add ecx, 1
cmp ecx, 0x10
jb 0x4169a0
push 0x13
push 0x48e300
push 0x48e834
push 0x48e7d4
call fcn.0041c314
add esp, 0x10
mov edi, 0x48e834
mov esi, 0x48e300
mov eax, dword [esi]
mov dword [edi], eax
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
movzx eax, word [esi + 0x10]
mov word [edi + 0x10], ax
movzx eax, byte [esi + 0x12]
mov byte [edi + 0x12], al
mov edx, 0x48e82e
add ebp, 1
mov eax, dword [ebp]
mov dword [edx], eax
movzx ebp, word [ebp + 4]
mov word [edx + 4], bp
push 0x19
push 0x48e82e
push 0x48e300
call fcn.0040eae4
mov esi, 0x48e82e
mov ebp, 0x48e300
mov edi, dword [ebp]
mov dword [esi], edi
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov edx, dword [ebp + 8]
mov dword [esi + 8], edx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [ebp + 0x18]
mov byte [esi + 0x18], al
push 0x1a
push 0x48e82d
call fcn.0041bf04
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push 1
push 0x48e82c
push 4
push eax
call fcn.0041be78
add esp, 0x24
movzx eax, byte [0x48e82c]
movzx edx, byte [0x42b76c]
mov byte [ebx + 8], al
test edx, edx
je 0x416acb
push 0
call fcn.0041b488
push eax
mov dword [ebx], eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
mov eax, 0x51eb851f
imul esi
mov ecx, esi
sar ecx, 0x1f
sar edx, 5
sub edx, ecx
imul ebp, edx, 0x64
sub esi, ebp
mov dword [0x43a900], esi
jmp 0x416adf
mov ecx, 0x43a900
mov eax, 0x48e87c
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [ebx], 0xffffffff
mov eax, dword [0x43a900]
lea edx, [esp]
push edx
mov dword [ebx + 4], eax
call fcn.0041c25c
mov edx, 0x48e300
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov word [edx + 0x10], ax
mov byte [edx + 0x12], al
lea eax, [esp + 4]
push 0x1b
push 0x48e300
push 0x48e82c
push eax
call fcn.0041c314
add esp, 0x14
mov esi, 0x48e82c
mov ebp, 0x48e300
mov edi, dword [ebp]
mov dword [esi], edi
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov edx, dword [ebp + 8]
mov dword [esi + 8], edx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
movzx eax, word [ebp + 0x18]
mov word [esi + 0x18], ax
movzx eax, byte [ebp + 0x1a]
mov byte [esi + 0x1a], al
mov edx, 0x48e2a0
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
push 0x2c
push 0x48e2a0
push 0x1b
push 0x48e82c
call fcn.0041bf70
push 0x2c
push 0x48e2cc
push 0x48e2a0
call fcn.0041c0a8
push 5
push 0x2c
mov eax, dword [esp + 0x48]
push eax
push 0x48e2cc
call fcn.0041c20c
mov eax, 1
add esp, 0x54
pop ebx
pop ebp
pop esi
pop edi
ret