Function at 0x10131040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x10331c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x103420c8]
push ebx
push esi
push edi
test al, 1
jne 0x10131206
or eax, 1
mov ecx, 0x103315f8
mov dword [0x103420c8], eax
lea eax, [ebp - 0x34]
push eax
call fcn.10055b70
cmp dword [ebp - 0x20], 0xf
lea edi, [ebp - 0x34]
cmova edi, dword [ebp - 0x34]
cmp byte [0x103315b8], 0
je 0x101310f0
cmp byte [0x103315b9], 0
jne 0x1013113d
mov byte [0x103315b9], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x103315f4]
xor ebx, dword [0x103315f0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x103315ba]
xor al, bl
mov byte [esi + 0x103315ba], al
inc esi
cmp esi, 0x30
jb 0x101310a3
jmp 0x1013113d
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x103315f4]
xor ebx, dword [0x103315f0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x103315ba]
xor al, bl
mov byte [esi + 0x103315ba], al
inc esi
cmp esi, 0x30
jb 0x101310f2
lea eax, [ebp - 0xc5]
push eax
push 0x103315e9
push 0x103315ba
lea ecx, [ebp - 0x1c]
call fcn.10054040
mov ecx, dword [0x10332cac]
lea edx, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
push 0
cmova edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 8]
mov dword [0x103420c4], eax
cmp ecx, 0xf
jbe 0x101311ac
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101311a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101311e4
push ecx
push edx
call fcn.1015539a
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp ecx, 0xf
jbe 0x101311f4
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101311ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101311ea
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015539a
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov eax, dword [0x103420d0]
test al, 1
jne 0x101313b6
or eax, 1
mov ecx, 0x10331650
mov dword [0x103420d0], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10055b70
cmp dword [ebp - 0x50], 0xf
lea edi, [ebp - 0x64]
cmova edi, dword [ebp - 0x64]
cmp byte [0x10331618], 0
je 0x101312a0
cmp byte [0x10331619], 0
jne 0x101312ed
mov byte [0x10331619], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1033164c]
xor ebx, dword [0x10331648]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1033161a]
xor al, bl
mov byte [esi + 0x1033161a], al
inc esi
cmp esi, 0x29
jb 0x10131253
jmp 0x101312ed
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x1033164c]
xor ebx, dword [0x10331648]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1033161a]
xor al, bl
mov byte [esi + 0x1033161a], al
inc esi
cmp esi, 0x29
jb 0x101312a2
lea eax, [ebp - 0xc5]
push eax
push 0x10331642
push 0x1033161a
lea ecx, [ebp - 0x4c]
call fcn.10054040
mov ecx, dword [0x10332cac]
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
push 0
cmova edx, dword [ebp - 0x4c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 0x38]
mov dword [0x103420cc], eax
cmp ecx, 0xf
jbe 0x1013135c
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10131352
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10131394
push ecx
push edx
call fcn.1015539a
add esp, 8
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x101313a4
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013139a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013139a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015539a
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov eax, dword [0x103420d8]
test al, 1
jne 0x10131577
or eax, 1
mov ecx, 0x103316b0
mov dword [0x103420d8], eax
lea eax, [ebp - 0x94]
push eax
call fcn.10055b70
cmp dword [ebp - 0x80], 0xf
lea edi, [ebp - 0x94]
cmova edi, dword [ebp - 0x94]
cmp byte [0x10331670], 0
je 0x10131457
cmp byte [0x10331671], 0
jne 0x101314a5
mov byte [0x10331671], 1
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x103316ac]
xor ebx, dword [0x103316a8]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x10331672], al
inc esi
cmp esi, 0x34
jb 0x10131410
jmp 0x101314a5
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x103316ac]
xor ebx, dword [0x103316a8]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x10331672], al
inc esi
cmp esi, 0x34
jb 0x10131460
lea eax, [ebp - 0xc5]
push eax
push 0x103316a5
push 0x10331672
lea ecx, [ebp - 0x7c]
call fcn.10054040
mov ecx, dword [0x10332cac]
lea edx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0xf
push 0
cmova edx, dword [ebp - 0x7c]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 0x68]
mov dword [0x103420d4], eax
cmp ecx, 0xf
jbe 0x10131514
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1013150a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1013154f
push ecx
push edx
call fcn.1015539a
add esp, 8
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0xf
jbe 0x1013155f
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10131555
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10131555
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015539a
add esp, 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov eax, dword [0x103420e0]
test al, 1
jne 0x1013175e
or eax, 1
mov ecx, 0x10331708
mov dword [0x103420e0], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10055b70
cmp dword [ebp - 0xb0], 0xf
lea edi, [ebp - 0xc4]
cmova edi, dword [ebp - 0xc4]
cmp byte [0x103316d0], 0
je 0x1013161d
cmp byte [0x103316d1], 0
jne 0x1013166b
mov byte [0x103316d1], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10331704]
xor ebx, dword [0x10331700]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x103316d2]
xor al, bl
mov byte [esi + 0x103316d2], al
inc esi
cmp esi, 0x28
jb 0x101315d0
jmp 0x1013166b
xor esi, esi
nop
xor edx, edx
mov ebx, esi
xor edx, dword [0x10331704]
xor ebx, dword [0x10331700]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0xcc], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x103316d2]
xor al, bl
mov byte [esi + 0x103316d2], al
inc esi
cmp esi, 0x28
jb 0x10131620
lea eax, [ebp - 0xc5]
push eax
push 0x103316f9
push 0x103316d2
lea ecx, [ebp - 0xac]
call fcn.10054040
mov ecx, dword [0x10332cac]
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x98], 0xf
push 0
cmova edx, dword [ebp - 0xac]
mov eax, dword [ecx]
push 1
push edi
push edx
mov eax, dword [eax + 0x150]
call eax
mov ecx, dword [ebp - 0x98]
mov dword [0x103420dc], eax
cmp ecx, 0xf
jbe 0x101316ec
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101316e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10131733
push ecx
push edx
call fcn.1015539a
add esp, 8
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
cmp ecx, 0xf
jbe 0x10131743
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10131739
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10131739
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1015539a
add esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
mov eax, dword [0x103266a4]
mov ecx, dword [0x103420c4]
shr eax, 3
and al, 1
mov byte [ebp - 0xcc], al
mov eax, dword [ecx]
mov esi, dword [ebp - 0xcc]
push esi
push 4
call dword [eax + 0x74]
mov ecx, dword [0x103420cc]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x103420d4]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ecx, dword [0x103420dc]
push esi
push 4
mov eax, dword [ecx]
call dword [eax + 0x74]
test byte [0x103266a4], 8
je 0x101317c0
mov eax, dword [0x10333634]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101556c2
mov esp, ebp
pop ebp
ret