Function at 0x10076f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor esi, esi
cmp edi, esi
je 0x1007716
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007705
sub eax, edx
mov dword [esp + 0xc], eax
jmp 0x100771a
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x1007736
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007725
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x100773a
mov dword [esp + 0x14], esi
cmp edi, esi
je 0x1007771
mov edi, dword [esp + 0xc]
add edi, 8
push edi
call fcn.0100d7bd
add esp, 4
push edi
mov esi, eax
call fcn.0100d7bd
add esp, 4
cmp dword [esp + 0x24], 0
mov ebp, eax
je 0x1007773
push edi
call fcn.0100d7bd
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x100777b
xor ebp, ebp
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x10077a0
cmp dword [esp + 0x24], 0
je 0x10077a0
mov eax, dword [esp + 0xc]
add eax, 8
push eax
call fcn.0100d7bd
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x10077a8
mov dword [esp + 0xc], 0
test esi, esi
je 0x10077df
push edi
push 0x102bbc0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 2
push 0
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push ebx
push edx
call fcn.01004220
add esp, 0x38
test ebp, ebp
je 0x1007876
lea edi, [ebx*4]
push edi
call fcn.0100d7bd
mov esi, eax
add esp, 4
test esi, esi
je 0x100786d
mov eax, dword [esp + 0x20]
push eax
mov eax, ebx
mov ecx, esi
call fcn.010016e0
lea eax, [ebx - 1]
add esp, 4
test eax, eax
jl 0x1007833
jmp 0x1007820
movzx ecx, byte [eax + esi]
xor ecx, 0xc1c1c100
sub eax, 1
mov dword [esi + eax*4 + 4], ecx
jns 0x1007820
mov edx, dword [esp + 0x28]
push edx
push 0x102bbb4
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push 0x10003
push 0
push eax
push ebp
push 0
push 0
push 0
push 0
push 0
push edi
push ecx
mov eax, esi
call fcn.01004220
add esp, 0x38
jmp 0x1007876
push ebp
call fcn.0100d77e
add esp, 4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1007933
push ebx
call fcn.0100d7bd
mov esi, eax
add esp, 4
test esi, esi
je 0x100792a
mov edx, dword [esp + 0x20]
push edx
mov eax, ebx
mov ecx, esi
call fcn.010016e0
add esp, 4
xor eax, eax
test ebx, ebx
jle 0x10078c6
lea esp, [esp]
mov cl, byte [eax + esi]
xor cl, 0xc1
add cl, 1
xor cl, 0xc1
mov byte [eax + esi], cl
add eax, 1
cmp eax, ebx
jl 0x10078b0
mov edx, dword [esp + 0x28]
push edx
push 0x102bbc0
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
add eax, 0xc
push eax
call fcn.0100d7bd
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1007901
mov ecx, dword [esp + 0x2c]
push ecx
push 0x102bb98
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push 0x10007
push 0
push edi
push edx
push 0
push 0
push 0
push 0
push 0
push ebx
push eax
mov eax, esi
call fcn.01004220
add esp, 0x2c
jmp 0x1007933
push edi
call fcn.0100d77e
add esp, 4
mov edi, dword [esp + 0xc]
test edi, edi
je 0x10079ff
lea ebp, [ebx*4]
push ebp
call fcn.0100d7bd
mov esi, eax
add esp, 4
test esi, esi
je 0x10079f6
mov ecx, dword [esp + 0x20]
push ecx
mov eax, ebx
mov ecx, esi
call fcn.010016e0
lea eax, [ebx - 1]
add esp, 4
test eax, eax
jl 0x100798d
movzx edx, byte [eax + esi]
xor edx, 0xc1
add edx, 1
xor edx, 0xc1c1c1c1
sub eax, 1
mov dword [esi + eax*4 + 4], edx
jns 0x1007971
mov eax, dword [esp + 0x28]
push eax
push 0x102bbb4
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x20]
add ecx, 0xc
push ecx
call fcn.0100d7bd
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10079c8
mov edx, dword [esp + 0x2c]
push edx
push 0x102bb98
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push 0x10007
push 0
push edi
push eax
push 0
push 0
push 0
push 0
push 0
push ebp
push ecx
mov eax, esi
call fcn.01004220
add esp, 0x2c
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push edi
call fcn.0100d77e
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret