Function at 0x415d30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
mov al, byte [0x498ae8]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 8
mov esi, 0x495878
lea edi, [esp + 0xfc]
mov byte [esp + 0xbc], al
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xbd]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0xf10], ebp
mov dword [ebx + 0x256a8], ebp
mov dword [esp + 0x14], 1
mov dword [ebx + 0xf14], ebp
lea ecx, [ebx + 0xed0]
lea eax, [ebx + 0xe90]
mov edx, 6
mov esi, dword [eax]
mov edi, dword [ebx + 0xe92]
xor esi, edi
add eax, 2
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x415d9b
lea ecx, [esp + 0x15c]
push ecx
push 8
call fcn.0040fd60
add esp, 8
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x256a8]
test eax, eax
jl 0x416143
cmp ebp, 2
jne 0x415e16
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x1e]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x74]
push 0x495860
push eax
call fcn.0043c57a
add esp, 0x14
push ebp
lea ecx, [esp + 0x120]
push 0x49584c
push ecx
call fcn.0043c57a
mov edx, dword [ebx + 0x256a8]
add esp, 0xc
xor eax, eax
mov ecx, 0x324
lea esi, [edx + edx*4]
push eax
push 0x8000000
push 3
lea esi, [esi + esi*4]
push eax
push 3
push 0xc0000000
lea edx, [edx + esi*8]
shl edx, 4
lea edi, [edx + ebx + 0x256ac]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebx + 0x256a8]
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*8]
shl ecx, 4
cmp ebp, 6
mov dword [ecx + ebx + 0x256ac], eax
jne 0x415f57
lea edx, [esp + 0x28]
push 0x10
lea eax, [esp + 0x6c]
push edx
push eax
lea ecx, [ebx + 0xe88]
call fcn.00406a80
xor ebp, ebp
lea ecx, [esp + 0x15c]
push 0x495498
push ecx
call fcn.0043c57a
lea edi, [esp + 0x164]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xbc]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebp, 0xf
rep movsb byte es:[edi], byte [esi]
je 0x415f23
mov edi, 0x49489c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xbc]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc ebp
cmp ebp, 0x10
jl 0x415ea7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea eax, [ebx + 0x32058]
mov ebp, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x415ff3
cmp ebp, 7
jne 0x415fd1
lea eax, [esp + 0x7c]
lea esi, [ebx + 0x3206c]
push 0x10
push eax
push esi
lea ecx, [ebx + 0xe88]
call fcn.00406bc0
lea ecx, [esp + 0x7c]
push ecx
call fcn.0043d1e9
lea edx, [esp + 0x83]
mov edi, eax
push edx
call fcn.0043d1e9
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8a]
push eax
call fcn.0043d1e9
add esp, 0xc
cmp eax, 0x7d2
jne 0x415ff3
mov ecx, dword [esp + 0x10]
add ecx, edi
cmp ecx, 0x25
jne 0x415ff3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x415ff3
cmp ebp, 0xa
jne 0x415ff3
mov eax, dword [ebx + 0xf14]
test eax, eax
jl 0x415ff3
jg 0x415feb
cmp dword [ebx + 0xf10], 0xf
jbe 0x415ff3
mov dword [esp + 0x14], 0xffffff9c
mov eax, dword [ebx + 0x256a8]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
shl edx, 4
lea eax, [edx + ebx + 0x256ac]
push eax
call fcn.0040f650
add esp, 4
test al, al
je 0x4160f8
mov eax, dword [ebx + 0x256a8]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
shl edx, 4
mov dword [edx + ebx + 0x256b0], ebp
mov eax, dword [ebx + 0x256a8]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, 0xc73e005
shl edx, 4
mov ecx, dword [edx + ebx + 0x256fc]
lea esi, [edx + ebx]
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
cmp ecx, 0x3e8
jbe 0x41608b
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add esi, 0x256b8
push edx
push esi
lea eax, [esp + 0x1c8]
push 0x495840
push eax
jmp 0x4160a0
add esi, 0x256b8
push ecx
push esi
lea ecx, [esp + 0x1c8]
push 0x495834
push ecx
call fcn.0043c57a
mov eax, dword [ebx + 0xcdc]
add esp, 0x10
lea edx, [esp + 0x1c0]
push edx
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x256a8]
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
shl edx, 4
lea eax, [edx + ebx + 0x256ac]
push eax
call fcn.004121f0
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x256a8]
add esp, 4
add eax, ecx
mov dword [ebx + 0x256a8], eax
cmp ebp, 5
jne 0x416114
lea edx, [esp + 0xfc]
push 0x1f
push edx
lea ecx, [ebx + 0xe88]
call fcn.00406930
jmp 0x416143
cmp ebp, 0xc
jne 0x416143
mov eax, dword [ebx + 0xd68]
lea ecx, [ebx + 0xd68]
mov edx, 0xf
mov ecx, 0
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebx + 0xf10], ecx
mov dword [ebx + 0xf14], edx
inc ebp
cmp ebp, 0x10
mov dword [esp + 0x10], ebp
jl 0x415dc6
mov eax, dword [ebx + 0x256a8]
test eax, eax
jl 0x416170
mov eax, dword [ebx + 0xf14]
test eax, eax
jg 0x416184
jl 0x416170
cmp dword [ebx + 0xf10], 1
jae 0x416184
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
mov dword [ebx + 0x256a8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret