Function at 0x418cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x54
call fcn.004a01c0
mov eax, dword [0x560094]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
push edi
test esi, esi
je 0x4191e6
cmp dword [0x5692ec], 0
je 0x418dd3
mov eax, dword [0x569298]
test eax, eax
je 0x418d42
lea ecx, [esp + 0x2c]
push ecx
call eax
add esp, 4
jmp 0x418d69
mov eax, dword [0x5692a8]
test eax, eax
je 0x418d4f
call eax
jmp 0x418d55
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0
mov edi, dword [0x569294]
test edi, edi
je 0x418d8c
push 0xdf
push 0x53823a
push 0x13
push 5
call edi
mov edi, dword [0x569294]
add esp, 0x10
mov eax, dword [0x569328]
lea ecx, [esp + 0x2c]
cmp eax, dword [ecx]
jne 0x418daa
mov eax, dword [0x56932c]
cmp eax, dword [ecx + 4]
jne 0x418daa
mov ebx, 1
jmp 0x418dac
xor ebx, ebx
mov dword [esp + 0x10], ebx
test edi, edi
je 0x418dcd
push 0xe1
push 0x53823a
push 0x13
push 6
call edi
mov edi, dword [0x569294]
add esp, 0x10
test ebx, ebx
jne 0x418dfe
jmp 0x418de1
mov edi, dword [0x569294]
mov dword [esp + 0x10], 0
test edi, edi
je 0x418dfe
push 0xe6
push 0x53823a
push 0x12
push 9
call edi
mov edi, dword [0x569294]
add esp, 0x10
mov eax, dword [0x5692dc]
mov ebx, dword [0x5692e8]
mov dword [esp + 0x40], eax
mov eax, dword [0x5692e0]
mov dword [esp + 0x44], eax
mov eax, dword [0x569330]
lea ecx, [esi + ebx]
mov dword [esp + 0x48], eax
mov eax, dword [0x569334]
mov dword [esp + 0x4c], eax
mov eax, dword [0x569338]
mov dword [esp + 0x50], eax
mov eax, dword [0x56933c]
mov dword [esp + 0x54], eax
mov eax, dword [0x569340]
mov dword [esp + 0x58], eax
mov dword [0x5692e8], ecx
cmp ecx, 0x3ff
jb 0x418e80
mov eax, 0x401005
mov dword [0x5692d8], 0x3ff
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3ff
sub ecx, eax
mov dword [0x5692e8], ecx
jmp 0x418e96
mov eax, dword [0x5692d8]
cmp eax, 0x3ff
jae 0x418e96
cmp ecx, eax
jbe 0x418e96
mov dword [0x5692d8], ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0x66666667
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + esi*4]
shl eax, 2
sub ecx, eax
xor eax, eax
test ecx, ecx
setg al
add eax, esi
add dword [0x5692e0], eax
cmp dword [esp + 0x10], 0
jne 0x418ee5
test edi, edi
je 0x418ee5
push 0x106
push 0x53823a
push 0x12
push 0xa
call edi
mov edi, dword [0x569294]
add esp, 0x10
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x419044
mov dword [esp + 0x3c], eax
mov esi, eax
cmp eax, 0x14
jle 0x418f1e
mov esi, 0x14
push 0
mov edx, 0x547528
lea ecx, [esp + 0x18]
call fcn.00420360
add esp, 4
test eax, eax
je 0x4190ee
push 0x14
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4190ee
lea edi, [ebx - 0x3ff]
add edi, esi
lea ecx, [ebx + 0x569350]
test edi, edi
jle 0x418f88
mov eax, esi
sub eax, edi
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4190ee
push edi
push 0x569350
jmp 0x418f8a
push esi
push ecx
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4190ee
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x14]
push esi
push edi
push eax
call dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4190ee
push 8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4190ee
push 0
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x18]
call fcn.00420540
add esp, 4
test eax, eax
je 0x4190ee
inc dword [esp + 0x44]
add edi, esi
xor ecx, ecx
mov dword [esp + 0x34], edi
test esi, esi
jle 0x41901f
lea ecx, [ecx]
mov al, byte [esp + ecx + 0x48]
xor byte [ebx + 0x569350], al
lea eax, [ebx + 1]
xor ebx, ebx
cmp eax, 0x3ff
setge bl
inc ecx
dec ebx
and ebx, eax
cmp ecx, esi
jl 0x419000
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ecx, 0x14
sub eax, 0x14
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
cmp ecx, dword [ebp + 0xc]
jl 0x418f12
mov edi, dword [0x569294]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x41906d
test edi, edi
je 0x41906d
push 0x13b
push 0x53823a
push 0x12
push 9
call edi
mov edi, dword [0x569294]
add esp, 0x10
mov edx, dword [esp + 0x10]
xor ecx, ecx
nop
movzx eax, byte [esp + ecx + 0x48]
xor byte [ecx + 0x569330], al
movzx eax, byte [esp + ecx + 0x49]
xor byte [ecx + 0x569331], al
movzx eax, byte [esp + ecx + 0x4a]
xor byte [ecx + 0x569332], al
movzx eax, byte [esp + ecx + 0x4b]
xor byte [ecx + 0x569333], al
movzx eax, byte [esp + ecx + 0x4c]
xor byte [ecx + 0x569334], al
add ecx, 5
cmp ecx, 0x14
jl 0x419070
fld qword [0x547f00]
fld qword [0x5692d0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4190d1
fadd qword [ebp + 0x10]
fstp qword [0x5692d0]
jmp 0x4190d3
fstp st(0)
test edx, edx
jne 0x4190ee
test edi, edi
je 0x4190ee
push 0x148
push 0x53823a
push 0x12
push 0xa
call edi
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41916e
mov eax, dword [eax + 0x20]
test eax, eax
je 0x419112
test byte [esp + 0x1c], 2
jne 0x419112
lea ecx, [esp + 0x14]
push ecx
call eax
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41916e
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x41916e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41916e
test byte [esp + 0x1c], 4
jne 0x41916e
push ecx
push 0
push eax
mov eax, dword [fcn.004c1860]
call eax
mov eax, dword [0x569288]
add esp, 0xc
mov esi, dword [esp + 0x20]
test eax, eax
je 0x419153
push 0
push esi
call eax
add esp, 8
push esi
call fcn.004c4deb
mov eax, dword [0x569288]
add esp, 4
test eax, eax
je 0x41916e
push 1
push 0
call eax
add esp, 8
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4191d9
mov eax, dword [esi]
test eax, eax
je 0x419189
mov eax, dword [eax + 0x10]
test eax, eax
je 0x419189
push esi
call eax
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x419195
call fcn.00412d50
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4191a1
call fcn.00412d50
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4191ad
call fcn.0040cd60
mov eax, dword [0x569288]
test eax, eax
je 0x4191be
push 0
push esi
call eax
add esp, 8
push esi
call fcn.004c4deb
mov eax, dword [0x569288]
add esp, 4
test eax, eax
je 0x4191d9
push 1
push 0
call eax
add esp, 8
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4191e6
call fcn.0040cd60
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a01a0
mov esp, ebp
pop ebp
ret