Function at 0x1000580d
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x100748db
call fcn.1004e918
sub esp, 0x210
push ebx
push esi
push edi
call fcn.10027a9b
mov ecx, dword [ebp + 0x60]
test al, al
jne 0x10005849
mov eax, ecx
shl eax, 4
mov eax, dword [eax + 0x101ab300]
test eax, eax
je 0x10005849
cmp byte [eax + 8], 0
jne 0x10005c4f
cmp ecx, 0x65
jne 0x100058c9
cmp dword [0x101ac878], 0
je 0x100058b5
mov ecx, dword [ebp + 0x64]
lea eax, [ebp + 0x57]
push 1
push 8
push eax
call fcn.1000175b
movzx eax, byte [ebp + 0x57]
mov ecx, dword [ebp + 0x64]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1000170d
movzx eax, byte [ebp + 0x57]
xor ebx, ebx
mov byte [ebp + eax - 0x21c], bl
cmp dword [0x10190104], ebx
je 0x100058b5
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [0x101ac878]
movzx eax, word [eax]
push eax
call fcn.1003ed14
pop ecx
push eax
push str._s:__s
push ebx
call fcn.1004cee6
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x58
leave
ret
cmp ecx, 0x67
jne 0x10005956
mov eax, dword [0x10150b3c]
test eax, eax
je 0x100058b5
xor ebx, ebx
cmp dword [eax + 0x8a], ebx
je 0x100058b5
mov edi, dword [ebp + 0x64]
lea eax, [ebp + 0x44]
push 1
push 8
push eax
mov ecx, edi
mov byte [ebp + 0x44], bl
call fcn.1000175b
cmp byte [ebp + 0x44], 2
jne 0x100058b5
push 1
push 0x20
lea eax, [ebp + 0x48]
mov dword [ebp + 0x48], ebx
push eax
mov ecx, edi
mov byte [ebp + 0x4d], bl
call fcn.1000175b
push 1
push 8
lea eax, [ebp + 0x4d]
mov ecx, edi
push eax
call fcn.1000175b
mov esi, dword [ebp + 0x48]
mov ecx, edi
push ebx
and esi, 0xff33ffff
call fcn.10001820
push dword [ebp + 0x44]
mov ecx, edi
call fcn.10002a85
push esi
mov ecx, edi
call fcn.10002a96
push dword [ebp + 0x4d]
mov ecx, edi
call fcn.10002a85
jmp 0x100058b5
cmp ecx, 0x19
jne 0x100058b5
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
xor ebx, ebx
mov dword [ebp + 0x14], 0xf
lea ecx, [ebp - 0x118]
mov dword [ebp], ebx
mov dword [ebp + 0x10], ebx
lea edx, [ecx + 1]
mov byte [ebp], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005987
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp]
call fcn.10002678
lea eax, [ebp - 0x118]
mov dword [ebp - 4], ebx
push eax
push 0x10077470
call fcn.1004cd68
pop ecx
pop ecx
push 0xa
pop ecx
mov esi, 0x10077cec
lea edi, [ebp + 0x1a]
rep movsd dword es:[edi], dword [esi]
push 0x35
mov ecx, ebx
movsw word es:[edi], word [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx + 0x1a], dl
inc ecx
cmp ecx, 0x2a
jl 0x100059ca
lea eax, [ebp + 0x1a]
push eax
call fcn.1003e992
pop ecx
push 0xb
pop ecx
mov esi, 0x10077d18
lea edi, [ebp - 0x6a]
rep movsd dword es:[edi], dword [esi]
push 0x35
mov ecx, ebx
movsw word es:[edi], word [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx - 0x6a], dl
inc ecx
cmp ecx, 0x2e
jl 0x100059fb
lea eax, [ebp - 0x6a]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1000693e
pop ecx
pop ecx
mov eax, dword [0x10150b3c]
mov ecx, ebx
mov byte [ebp - 4], 1
mov byte [eax + 0x89], bl
mov eax, dword [0x10077d48]
mov dword [ebp + 0x4c], eax
mov al, byte [0x10077d4c]
mov byte [ebp + 0x50], al
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx + 0x4c], dl
inc ecx
cmp ecx, 5
jl 0x10005a3e
push ebx
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10006a36
push 9
pop ecx
push 0x35
cmp eax, 0xffffffff
je 0x10005bd4
mov esi, 0x10077d50
lea edi, [ebp + 0x1f]
rep movsd dword es:[edi], dword [esi]
pop ecx
movsb byte es:[edi], byte [esi]
mov esi, ebx
xor edx, edx
mov eax, esi
div ecx
add dl, 0x37
xor byte [ebp + esi + 0x1f], dl
inc esi
cmp esi, 0x25
jl 0x10005a7a
lea eax, [ebp + 0x1f]
push eax
call fcn.1003e992
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xb
pop ecx
mov esi, str.TMKVe
lea edi, [ebp - 0x9d]
rep movsd dword es:[edi], dword [esi]
push 0x35
mov ecx, ebx
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx - 0x9d], dl
inc ecx
cmp ecx, 0x2d
jl 0x10005ab9
lea eax, [ebp - 0x9d]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000693e
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.10006a36
cmp eax, 0xffffffff
je 0x10005b87
mov eax, dword [0x10150b3c]
lea edi, [ebp - 0x70]
push 0xd
pop ecx
mov esi, 0x10077da8
rep movsd dword es:[edi], dword [esi]
push 0x35
mov byte [eax + 0x89], 1
pop ecx
xor edx, edx
mov eax, ebx
div ecx
add dl, 0x37
xor byte [ebp + ebx - 0x70], dl
inc ebx
cmp ebx, 0x34
jl 0x10005b1a
lea eax, [ebp - 0x70]
push eax
call fcn.1003e992
pop ecx
lea ecx, [ebp - 0x24]
call fcn.100025cf
lea ecx, [ebp - 0x3c]
call fcn.100025cf
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
jb 0x100058b5
mov ecx, dword [ebp]
inc eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x48], ecx
cmp eax, 0x1000
jb 0x10005b79
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.10002423
mov eax, dword [ebp + 0x4c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x48]
push eax
push ecx
call fcn.1004e90a
pop ecx
pop ecx
jmp 0x100058b5
push 8
pop ecx
mov esi, 0x10077ddc
lea edi, [ebp + 0x22]
rep movsd dword es:[edi], dword [esi]
push 0x35
mov ecx, ebx
movsw word es:[edi], word [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx + 0x22], dl
inc ecx
cmp ecx, 0x22
jl 0x10005b9b
lea eax, [ebp + 0x22]
push eax
call fcn.1003e992
mov eax, dword [0x10150b3c]
push ebx
mov byte [eax + 0x89], bl
call fcn.1003ec33
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.100025cf
jmp 0x10005c10
mov esi, str.LzxxzCda
lea edi, [ebp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x37
xor byte [ebp + ecx + 0x20], dl
inc ecx
cmp ecx, 0x24
jl 0x10005be1
lea eax, [ebp + 0x20]
push eax
call fcn.1003e992
mov eax, dword [0x10150b3c]
push ebx
mov byte [eax + 0x89], bl
call fcn.1003ec33
pop ecx
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.100025cf
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
jb 0x10005c4f
mov ecx, dword [ebp]
inc eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x48], ecx
cmp eax, 0x1000
jb 0x10005c46
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.10002423
mov eax, dword [ebp + 0x4c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x48]
push eax
push ecx
call fcn.1004e90a
pop ecx
pop ecx
xor al, al
jmp 0x100058b7