Function at 0x1007a170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x100a4040]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [ebp + 0x34], 0xf
lea eax, [ebp + 8]
push ebx
push esi
push edi
lea esi, [ebp + 0x20]
cmova esi, dword [ebp + 0x20]
xor edi, edi
cmp dword [ebp + 0x1c], 0xf
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
lea eax, [esp + 0x30]
push 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x20]
add eax, ebx
mov dword [esp + 0x2c], eax
cmp ebx, eax
mov eax, dword [ebp + 0x34]
jae 0x1007a2a2
mov edx, 0x3f3f
nop word [eax + eax]
mov cl, byte [esi]
mov eax, edi
mov dword [esp + 0x28], eax
test cl, cl
je 0x1007a3c2
cmp cl, 0x3f
je 0x1007a26c
mov al, cl
and al, 0xdf
sub al, 0x41
cmp al, 5
ja 0x1007a20a
movsx ecx, cl
and ecx, 0xffffffdf
sub ecx, 0x37
jmp 0x1007a21b
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1007a219
movsx ecx, cl
sub ecx, 0x30
jmp 0x1007a21b
xor ecx, ecx
mov dl, byte [esi + 1]
mov al, dl
and al, 0xdf
sub al, 0x41
cmp al, 5
ja 0x1007a233
movsx eax, dl
and eax, 0xffffffdf
sub eax, 0x37
jmp 0x1007a244
lea eax, [edx - 0x30]
cmp al, 9
ja 0x1007a242
movsx eax, dl
sub eax, 0x30
jmp 0x1007a244
xor eax, eax
shl ecx, 4
mov edx, 0x3f3f
or ecx, eax
movzx eax, byte [ebx]
cmp eax, ecx
je 0x1007a268
mov eax, dword [ebp + 0x34]
lea esi, [ebp + 0x20]
mov ecx, dword [ebp + 0x20]
cmp eax, 0xf
cmova esi, ecx
xor edi, edi
jmp 0x1007a297
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, ebx
cmovne edi, eax
cmp byte [esi + 2], 0
je 0x1007a37e
movzx eax, word [esi]
cmp ax, dx
je 0x1007a28e
cmp al, 0x3f
jne 0x1007a28e
add esi, 2
jmp 0x1007a291
add esi, 3
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x34]
inc ebx
cmp ebx, dword [esp + 0x2c]
jb 0x1007a1e0
movaps xmm0, xmmword [0x1009a650]
lea edx, [ebp + 0x20]
cmp eax, 0xf
mov dword [esp + 0x1c], 0x415a4049
lea esi, [ebp + 8]
mov dword [esp + 0x20], 0xa0f0e4b
cmova edx, ecx
mov word [esp + 0x24], 0x255c
cmp dword [ebp + 0x1c], 0xf
movups xmmword [esp + 0xc], xmm0
cmova esi, dword [ebp + 8]
xor ecx, ecx
mov byte [esp + 0x26], 0
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x19
jb 0x1007a2e0
push edx
lea eax, [esp + 0x11]
mov byte [esp + 0x2a], 0
push esi
push eax
call fcn.10002690
add esp, 0xc
xor edi, edi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1007a334
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007a32a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007a378
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x1007a428
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007a41e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007a41e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebp + 0x34], 0xf
lea edx, [ebp + 0x20]
movaps xmm0, xmmword [0x1009b0a0]
lea esi, [ebp + 8]
cmova edx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0xf
movups xmmword [esp + 0xc], xmm0
cmova esi, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x1c], 0x2f7b6e2f
mov dword [esp + 0x20], 0x5772a
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x16
jb 0x1007a3b2
jmp 0x1007a404
cmp dword [ebp + 0x34], 0xf
lea edx, [ebp + 0x20]
movaps xmm0, xmmword [0x1009acf0]
lea esi, [ebp + 8]
cmova edx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0xf
movups xmmword [esp + 0xc], xmm0
cmova esi, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x1c], 0x15415415
mov dword [esp + 0x20], 0x3f4d10
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x16
jb 0x1007a3f6
push edi
push edx
lea eax, [esp + 0x15]
mov byte [esp + 0x2b], 0
push esi
push eax
call fcn.10002690
add esp, 0x10
jmp 0x1007a304
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008a073
mov esp, ebp
pop ebp
ret