Function at 0x10013140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f338
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, 0x100f2480
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x4bb4c5e0
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, 0x100fb640
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x776b19e
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, 0x1010b680
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x66342964
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, 0x100effb0
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x8656e568
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, 0x100f3a40
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x47d68cf6
mov eax, 0x7600
jmp 0x10013350
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0x6c54
call fcn.10009760
push dword [edi]
mov edx, 0x6c54
mov ecx, 0x1010d680
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x2188049c
mov eax, 0x6c54
mov ecx, 0xd800
jmp 0x1001334d
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0xee14
call fcn.10009760
push dword [edi]
mov edx, 0xee14
mov ecx, 0x100fc860
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x5e79c773
mov eax, 0xee14
mov ecx, 0x1b600
jmp 0x1001334d
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push 0xf590
call fcn.10009760
push dword [edi]
mov edx, 0xf590
mov ecx, 0x100e0a20
push 0x100
push 0x10118570
call fcn.10007600
mov ebx, 0x2d12d394
mov eax, 0xf590
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.1002cd70
lea eax, [ebp - 0x428]
mov edx, 0x400
push eax
push 4
push 0x100469a0
mov ecx, 0x100469a4
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.10030687
mov dword [eax], 0x16
call fcn.1003026c
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.1002b41a
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.1002b41a
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.1003027c
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 [0x10117870]
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.1002cd70
add esp, 0xc
lea eax, [esp + 0x3b0]
mov edx, 0x100
mov ecx, 0x100f3594
push eax
push 4
push 0x100f3590
call fcn.10007600
add esp, 0xc
lea eax, [esp + 0x70]
push 0x100
push 0
push eax
call fcn.1002cd70
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 + 0x10118570], 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.1002cd70
add esp, 0xc
lea eax, [esp + 0x4b0]
mov edx, 0x100
mov ecx, 0x100f2374
push eax
push 4
push 0x100f2370
call fcn.10007600
add esp, 0xc
lea eax, [esp + 0x170]
push 0x100
push 0
push eax
call fcn.1002cd70
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 + 0x10118570], 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.1002cd70
add esp, 0xc
lea eax, [esp + 0x5b0]
mov edx, 0x100
mov ecx, 0x100f37d4
push eax
push 4
push 0x100f37d0
call fcn.10007600
add esp, 0xc
lea eax, [esp + 0x270]
push 0x100
push 0
push eax
call fcn.1002cd70
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 + 0x10118570], 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