Function at 0x10013140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100423c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push esi
xor esi, esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], esi
cmp ecx, 7
ja case.default.0x10013172
push ebx
push edi
jmp dword [ecx*4 + 0x100134f0]
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0x1000
call fcn.10009760
push dword [edi]
mov edx, 0x1000
mov ecx, 0x101087b0
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0xa07d98d1
mov eax, 0x1000
jmp 0x10013350
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0x1000
call fcn.10009760
push dword [edi]
mov edx, 0x1000
mov ecx, 0x10111970
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0xa64af6eb
mov eax, 0x1000
jmp 0x10013350
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0x2000
call fcn.10009760
push dword [edi]
mov edx, 0x2000
mov ecx, 0x10121a40
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0xad722cd0
mov eax, 0x2000
jmp 0x10013350
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0x2000
call fcn.10009760
push dword [edi]
mov edx, 0x2000
mov ecx, 0x101062e0
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0xab173067
mov eax, 0x2000
jmp 0x10013350
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0x7600
call fcn.10009760
push dword [edi]
mov edx, 0x7600
mov ecx, 0x10109d70
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0x535ca2af
mov eax, 0x7600
jmp 0x10013350
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0x6c58
call fcn.10009760
push dword [edi]
mov edx, 0x6c58
mov ecx, 0x10123a40
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0x83eaf9f8
mov eax, 0x6c58
mov ecx, 0xd800
jmp 0x1001334d
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0xeea4
call fcn.10009760
push dword [edi]
mov edx, 0xeea4
mov ecx, 0x10112b90
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0x637e73ee
mov eax, 0xeea4
mov ecx, 0x1b600
jmp 0x1001334d
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0xf594
call fcn.10009760
push dword [edi]
mov edx, 0xf594
mov ecx, 0x100f6d40
push 0x100
push 0x1012e570
call fcn.10007600
mov ebx, 0x7c5b9600
mov eax, 0xf594
mov ecx, 0x1ee00
mov dword [ebp - 0x10], ecx
mov edx, dword [edi]
add esp, 0xc
mov ecx, dword [edi + 4]
sub ecx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
cmp ecx, eax
jb 0x10013442
push 0x400
lea eax, [ebp - 0x428]
or esi, 0xffffffff
push 0
push eax
call fcn.1002fe10
lea eax, [ebp - 0x428]
mov edx, 0x400
push eax
push 4
push 0x100499a0
mov ecx, 0x100499a4
call fcn.10007600
mov edx, dword [ebp - 0x20]
add esp, 0x18
xor ecx, ecx
test edx, edx
je 0x100133cb
mov edi, dword [ebp - 0x24]
lea ebx, [ebx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x428]
cmp ecx, edx
jb 0x100133b0
mov edi, dword [ebp + 0xc]
not esi
cmp esi, ebx
jne 0x10013440
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100134d0
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov eax, dword [edi]
test eax, eax
je 0x100133f6
mov esi, dword [eax]
jmp 0x1001340e
xor esi, esi
call fcn.10033727
mov dword [eax], 0x16
call fcn.1003330c
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp esi, ebx
je 0x10013455
test ecx, ecx
je 0x10013440
sub edx, ecx
mov eax, ecx
cmp edx, 0x1000
jb 0x10013436
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134e8
push edx
push ecx
call fcn.1002e4ba
add esp, 8
xor esi, esi
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push ebx
mov ecx, eax
call fcn.10009760
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov esi, dword [ebp - 0x28]
sub edx, eax
push ebx
push dword [ebp - 0x1c]
lea ecx, [eax + 4]
mov esi, dword [esi + 0xc]
lea eax, [edx - 4]
push eax
push ecx
call esi
test eax, eax
jne 0x1001348c
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10013440
mov edx, dword [ebp - 0x14]
jmp 0x10013416
lea eax, [ebp - 0x1c]
cmp edi, eax
je 0x100134a0
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.100101b0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100134d0
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100134c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100134e8
push edx
push ecx
call fcn.1002e4ba
add esp, 8
mov ecx, dword [ebp - 0xc]
mov esi, 1
pop edi
pop ebx
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1003331c
lea ecx, [ecx]
jns 0x10013523
add dword [eax], edx
mov bl, 0x31
add dword [eax], edx
in eax, dx
xor dword [ecx], eax
adc byte [edi], ah
xor al, byte [ecx]
adc byte [ecx + 0x32], ah
add dword [eax], edx
wait
xor al, byte [ecx]
adc bh, dl
xor al, byte [ecx]
adc byte [ebx], dl
xor eax, dword [ecx]
adc byte [ebp - 0x75], dl
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6a0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
inc esp
and al, 0x14
add byte [eax], al
add byte [eax], al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], 0
call fcn.1000ab60
mov eax, dword [0x1012d870]
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x10]
sub eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x1c]
sub eax, ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x28]
sub eax, ecx
mov dword [esp + 0x38], 0
push 0x100
mov dword [esp + 0x68], eax
lea eax, [esp + 0x3b4]
push 0
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], ecx
call fcn.1002fe10
add esp, 0xc
lea eax, [esp + 0x3b0]
mov edx, 0x100
mov ecx, 0x101098c4
push eax
push 4
push 0x101098c0
call fcn.10007600
add esp, 0xc
lea eax, [esp + 0x70]
push 0x100
push 0
push eax
call fcn.1002fe10
add esp, 0xc
xor esi, esi
xor eax, eax
mov byte [esp + eax + 0x70], al
inc eax
cmp eax, 0x100
jb 0x10013613
xor ebx, ebx
mov dl, byte [esp + ebx + 0x70]
movzx eax, bl
movzx ecx, dl
movzx eax, byte [esp + eax + 0x3b0]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [esp + esi + 0x70]
mov byte [esp + ebx + 0x70], al
inc ebx
mov byte [esp + esi + 0x70], dl
cmp ebx, 0x100
jb 0x10013621
xor ebx, ebx
xor ebp, ebp
xor esi, esi
lea eax, [ebx + 1]
movzx ebx, al
mov cl, byte [esp + ebx + 0x70]
movzx edx, cl
lea eax, [edx + ebp]
movzx ebp, al
movzx eax, byte [esp + ebp + 0x70]
mov byte [esp + ebx + 0x70], al
mov byte [esp + ebp + 0x70], cl
movzx eax, byte [esp + ebx + 0x70]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x70]
xor byte [esi + 0x1012e570], al
inc esi
cmp esi, 0x100
jb 0x10013655
cmp dword [esp + 0x18], 0x8664
jne 0x100136ad
mov eax, dword [edi + 0x54]
mov ebp, dword [edi + 0x58]
sub ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
push 0x100
lea eax, [esp + 0x4b4]
push 0
push eax
call fcn.1002fe10
add esp, 0xc
lea eax, [esp + 0x4b0]
mov edx, 0x100
mov ecx, 0x101086a4
push eax
push 4
push 0x101086a0
call fcn.10007600
add esp, 0xc
lea eax, [esp + 0x170]
push 0x100
push 0
push eax
call fcn.1002fe10
add esp, 0xc
xor esi, esi
xor eax, eax
mov byte [esp + eax + 0x170], al
inc eax
cmp eax, 0x100
jb 0x10013700
xor ebx, ebx
mov dl, byte [esp + ebx + 0x170]
movzx eax, bl
movzx ecx, dl
movzx eax, byte [esp + eax + 0x4b0]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [esp + esi + 0x170]
mov byte [esp + ebx + 0x170], al
inc ebx
mov byte [esp + esi + 0x170], dl
cmp ebx, 0x100
jb 0x10013711
xor ebx, ebx
xor ebp, ebp
xor esi, esi
lea eax, [ebx + 1]
movzx ebx, al
mov cl, byte [esp + ebx + 0x170]
movzx edx, cl
lea eax, [edx + ebp]
movzx ebp, al
movzx eax, byte [esp + ebp + 0x170]
mov byte [esp + ebx + 0x170], al
mov byte [esp + ebp + 0x170], cl
movzx eax, byte [esp + ebx + 0x170]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x170]
xor byte [esi + 0x1012e570], al
inc esi
cmp esi, 0x100
jb 0x10013751
cmp dword [esp + 0x18], 0x14c
jne 0x100137bb
mov eax, dword [edi + 0x48]
mov ebp, dword [edi + 0x4c]
sub ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
push 0x100
lea eax, [esp + 0x5b4]
push 0
push eax
call fcn.1002fe10
add esp, 0xc
lea eax, [esp + 0x5b0]
mov edx, 0x100
mov ecx, 0x10109b04
push eax
push 4
push 0x10109b00
call fcn.10007600
add esp, 0xc
lea eax, [esp + 0x270]
push 0x100
push 0
push eax
call fcn.1002fe10
add esp, 0xc
xor esi, esi
xor eax, eax
mov edi, edi
mov byte [esp + eax + 0x270], al
inc eax
cmp eax, 0x100
jb 0x10013810
xor ebx, ebx
mov dl, byte [esp + ebx + 0x270]
movzx eax, bl
movzx ecx, dl
movzx eax, byte [esp + eax + 0x5b0]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [esp + esi + 0x270]
mov byte [esp + ebx + 0x270], al
inc ebx
mov byte [esp + esi + 0x270], dl
cmp ebx, 0x100
jb 0x10013821
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x270]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x270]
mov byte [esp + edi + 0x270], al
mov byte [esp + ebx + 0x270], cl
movzx eax, byte [esp + edi + 0x270]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x270]
xor byte [esi + 0x1012e570], al
inc esi
cmp esi, 0x100
jb 0x10013861
call fcn.10013990
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov edi, edi
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x30]
sub esp, 0x40
mov ecx, 0x10
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
call fcn.10014060
add esp, 0x44
test eax, eax
jne 0x10013975
push 0x3e8
call ebp
inc ebx
cmp ebx, 0xa
jb 0x100138c0
mov edx, dword [esp + 0x1c]
lea esi, [esp + 0x30]
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
sub esp, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
lea edi, [esp + 0x378]
mov ebx, dword [edx + 0x48]
mov ecx, 0x10
mov edx, dword [edx + 0x4c]
mov eax, dword fs:[0x18]
sub edx, ebx
push edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x2c]
push ebx
push 0x14c
lea ecx, [esp + 0x384]
mov dword [esp + 0x3c], eax
xor esi, esi
call fcn.10008720
add esp, 0x14
test eax, eax
je 0x1001396b
mov ecx, dword [esp + 0x24]
call fcn.10006050
test eax, eax
jne 0x1001396b
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret