Function at 0x10012510
Capabilities:
Encode data using xor

Disassembly:
push 0xa0
mov eax, 0x1003a6dc
call fcn.10039131
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
xor eax, eax
inc eax
cmp dword [0x100500a0], 0
je 0x100129cb
push 0xa
lea eax, [ebx + 0x10]
pop ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov edx, dword [eax]
test edx, edx
je 0x10012565
mov ecx, dword [eax]
xor dl, dl
call fcn.1000b043
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
add eax, 4
sub ecx, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
jne 0x10012550
mov ecx, dword [ebx]
call dword [0x100461c4]
mov ax, word [esi]
cmp ax, word [edi]
jb 0x100126d5
mov ax, word [esi + 2]
cmp ax, word [edi + 2]
jb 0x100126d5
mov ax, word [esi + 4]
cmp ax, word [edi + 4]
jb 0x100126d5
mov ax, word [esi + 6]
cmp ax, word [edi + 6]
jb 0x100126d5
mov ecx, dword [ebx + 0x10]
call fcn.1000af5f
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000af5f
mov ecx, dword [ebx + 0x10]
mov esi, eax
call fcn.1000afd4
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000affa
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
pop ecx
cmovae eax, dword [ebp + 0x14]
mov dl, 0x58
push eax
mov dword [ebp - 0x30], 0x2b7d58
xor ecx, ecx
xor dl, byte [ebp + ecx - 0x2f]
mov byte [ebp + ecx - 0x2f], dl
inc ecx
cmp ecx, 2
jae 0x10012605
mov dl, byte [ebp - 0x30]
jmp 0x100125f2
sub esp, 0x18
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x90]
push eax
call fcn.10003b83
add esp, 0x20
xor ecx, ecx
mov edx, eax
inc ecx
mov byte [ebp - 4], cl
mov ecx, dword [ebx + 4]
call fcn.1000b8a4
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0x90]
push eax
call fcn.10003f4a
movaps xmm0, xmmword [0x10048110]
xor edx, edx
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0x535a465b
mov dword [ebp - 0x7c], 0x175342
mov cl, byte [ebp - 0x90]
xor byte [ebp + edx - 0x8f], cl
inc edx
cmp edx, 0x16
jb 0x10012669
sub esp, 0x18
mov byte [ebp - 0x79], 0
lea eax, [ebp - 0x8f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0xac]
push eax
call fcn.10003b83
add esp, 0x1c
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [ebx + 0x38]
call fcn.1000b8a4
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0xac]
push eax
call fcn.10003f4a
mov ecx, dword [ebx + 0x10]
xor eax, eax
lea edx, [eax + 1]
call fcn.1000b043
jmp 0x100129bc
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
mov cl, 0x4a
mov dword [ebp - 0x30], 0x396f4a
cmovae eax, dword [ebp + 0x14]
xor edx, edx
push eax
xor cl, byte [ebp + edx - 0x2f]
mov byte [ebp + edx - 0x2f], cl
inc edx
cmp edx, 2
jae 0x100126ff
mov cl, byte [ebp - 0x30]
jmp 0x100126ec
sub esp, 0x18
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0xac]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [ebx + 4]
call fcn.1000b8a4
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0xac]
push eax
call fcn.10003f4a
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + 0x10]
sub edi, eax
mov dword [ebp - 0x6c], 4
sub esi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x94], esi
movzx edx, word [eax]
test dx, dx
je 0x100129a6
mov ecx, edx
call fcn.10006655
mov dword [ebp - 0x34], eax
mov cl, 0x74
mov dword [ebp - 0x4c], 0x1f1a2174
xor edx, edx
mov dword [ebp - 0x48], 0x1a031b1a
mov byte [ebp - 0x44], 0
xor cl, byte [ebp + edx - 0x4b]
mov byte [ebp + edx - 0x4b], cl
inc edx
cmp edx, 7
jae 0x1001279c
mov cl, byte [ebp - 0x4c]
jmp 0x10012789
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x44], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000409e
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 4
test eax, eax
je 0x100127d4
add eax, 4
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x100128ba
push 0xffffffffffffffff
push 0
push eax
call fcn.10003d29
jmp 0x100128ba
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
cmp word [eax], cx
jne 0x100128bd
cmp byte [0x100500bb], 0
mov eax, dword [0x100500a0]
mov dword [ebp - 0x34], eax
je 0x1001283c
mov ecx, 0x10b8134
call fcn.1000b9e3
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10012839
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10012839
mov eax, dword [ebp - 0x74]
add eax, 0x6dc
push 4
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10012839
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x34]
mov al, byte [eax]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x1001283c
mov eax, dword [ebp - 0x34]
mov al, byte [eax + 0x38]
xor edx, edx
cmp al, 1
jne 0x10012877
mov cl, 0x62
mov dword [ebp - 0x5c], 0x420e2762
mov dword [ebp - 0x58], 0x3100d2f
mov word [ebp - 0x54], 6
xor cl, byte [ebp + edx - 0x5b]
mov byte [ebp + edx - 0x5b], cl
inc edx
cmp edx, 8
jae 0x1001286e
mov cl, byte [ebp - 0x5c]
jmp 0x1001285b
mov byte [ebp - 0x53], 0
lea eax, [ebp - 0x5b]
jmp 0x100128a4
mov cl, 0x38
mov dword [ebp - 0x40], 0x4a597338
mov word [ebp - 0x3c], 0x4b4d
mov byte [ebp - 0x3a], 0
xor cl, byte [ebp + edx - 0x3f]
mov byte [ebp + edx - 0x3f], cl
inc edx
cmp edx, 5
jae 0x1001289d
mov cl, byte [ebp - 0x40]
jmp 0x1001288a
mov byte [ebp - 0x3a], 0
lea eax, [ebp - 0x3f]
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.10004086
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.10004017
mov eax, dword [ebp - 0x38]
movzx eax, word [edi + eax]
mov cl, 3
cmp dword [ebp - 0x18], 0x10
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], 0x23702603
mov dword [ebp - 0x64], 0x262c6726
mov word [ebp - 0x60], 0x67
movzx eax, word [esi + eax]
push eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
push eax
xor cl, byte [ebp + edx - 0x67]
mov byte [ebp + edx - 0x67], cl
inc edx
cmp edx, 8
jae 0x10012901
mov cl, byte [ebp - 0x68]
jmp 0x100128ee
sub esp, 0x18
mov byte [ebp - 0x5f], 0
lea eax, [ebp - 0x67]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x90]
push eax
call fcn.10003b83
add esp, 0x28
mov esi, dword [ebp - 0x50]
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x28]
call fcn.1000b8a4
xor eax, eax
mov byte [ebp - 4], 4
push 0
inc eax
lea ecx, [ebp - 0x90]
push eax
call fcn.10003f4a
mov ecx, dword [esi]
call fcn.1000af5f
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000af5f
mov esi, eax
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call fcn.1000afd4
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000affa
xor eax, eax
pop ecx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call fcn.1000b043
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0x2c]
push eax
call fcn.10003f4a
mov esi, dword [ebp - 0x94]
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x50]
add ecx, 4
add eax, 2
sub dword [ebp - 0x6c], 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], eax
jne 0x1001275d
mov ecx, dword [ebx]
xor eax, eax
inc eax
push eax
call dword [0x100461c8]
xor eax, eax
inc eax
push 0
push eax
lea ecx, [ebp + 0x14]
call fcn.10003f4a
call fcn.100390db
ret 0x24