Function at 0x10004786
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203b8
call fcn.1004eb60
mov eax, dword [0x1006900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x100046fc
jmp 0x1000470e
mov ecx, dword [0x10354f3c]
test ecx, ecx
je 0x10004a33
mov eax, dword [ebp + 0x10]
lea edi, [ebp + 0x14]
xor ebx, ebx
mov al, byte [eax]
test al, al
je 0x10004816
nop
movsx eax, al
add eax, 0xffffffaf
cmp eax, 0x17
ja case.0x10004746.82
movzx eax, byte [eax + 0x10004a60]
jmp dword [eax*4 + 0x10004a44]
mov al, byte [edi]
add edi, 4
mov byte [ebp + ebx - 0x203a4], al
inc ebx
jmp 0x100047ff
mov ax, word [edi]
add edi, 4
mov word [ebp + ebx - 0x203a4], ax
add ebx, 2
jmp 0x100047ff
mov eax, dword [edi]
add edi, 4
mov dword [ebp + ebx - 0x203a4], eax
add ebx, 4
jmp 0x100047ff
mov eax, dword [edi]
add edi, 8
mov dword [ebp + ebx - 0x203a4], eax
mov eax, dword [edi - 4]
mov dword [ebp + ebx - 0x203a0], eax
add ebx, 8
jmp 0x100047ff
mov esi, dword [edi]
add edi, 8
push esi
push dword [edi - 4]
lea eax, [ebp - 0x203a4]
add eax, ebx
push eax
call fcn.1002f080
add esp, 0xc
add ebx, esi
jmp 0x100047ff
mov edx, dword [edi]
add edi, 4
test edx, edx
jne 0x100047db
xor eax, eax
mov esi, 2
mov word [ebp + ebx - 0x203a4], ax
add ebx, esi
jmp 0x100047ff
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100047e0
sub eax, esi
sar eax, 1
lea esi, [eax*2 + 2]
push esi
push edx
jmp 0x100047aa
call fcn.10003460
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x10], eax
mov al, byte [eax]
test al, al
jne 0x10004730
mov ecx, dword [0x10354f3c]
test ecx, ecx
je 0x10004a33
push 0x19
call fcn.100177d8
mov edi, eax
add esp, 4
xor eax, eax
lea ecx, [edi + 0x17]
cmp edi, 0x1006162f
ja 0x1000483f
cmp ecx, str._GMalloc__3PAVFMalloc__A
jae 0x10004859
movups xmm0, xmmword [str._GMalloc__3PAVFMalloc__A]
mov eax, 0x10
movaps xmm1, xmmword [0x10061b50]
pxor xmm1, xmm0
movups xmmword [edi], xmm1
mov esi, str._GMalloc__3PAVFMalloc__A
lea ecx, [eax + edi]
mov edx, 0x18
sub esi, edi
sub edx, eax
nop word [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0xa1
mov byte [ecx - 1], al
sub edx, 1
jne 0x10004870
mov esi, edi
mov byte [edi + 0x18], dl
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10004888
sub esi, ecx
mov dword [ebp - 0x203b4], esi
lea eax, [esi + 1]
push eax
call fcn.100177d8
add esp, 4
mov edx, eax
xor ecx, ecx
mov dword [ebp - 0x203ac], edx
test esi, esi
je 0x1000497c
cmp esi, 0x40
jb 0x10004947
lea eax, [edi - 1]
add eax, esi
cmp edx, eax
ja 0x100048d0
lea eax, [edx - 1]
add eax, esi
cmp eax, edi
jae 0x10004947
movaps xmm1, xmmword [0x10061b50]
mov eax, esi
and eax, 0xffffffc0
mov esi, edi
sub esi, edx
mov dword [ebp - 0x203b0], eax
mov dword [ebp - 0x203b8], esi
mov eax, edx
mov esi, dword [ebp - 0x203b4]
mov edx, dword [ebp - 0x203b8]
nop word [eax + eax]
movups xmm0, xmmword [eax + edx]
lea eax, [eax + 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [edi + ecx + 0x10]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edi + ecx + 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [edi + ecx + 0x30]
add ecx, 0x40
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp ecx, dword [ebp - 0x203b0]
jb 0x10004900
mov edx, dword [ebp - 0x203ac]
cmp ecx, esi
jae 0x1000497c
sub edi, dword [ebp - 0x203ac]
add edx, ecx
mov dword [ebp - 0x203b0], esi
sub esi, ecx
nop dword [eax + eax]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, 0xa1
mov byte [edx - 1], al
sub esi, 1
jne 0x10004960
mov esi, dword [ebp - 0x203b4]
mov edx, dword [ebp - 0x203ac]
push edx
push dword [0x10354f40]
mov byte [edx + esi], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100049dc
mov esi, dword [0x10355098]
mov eax, esi
mov ecx, dword [0x10355094]
sub eax, ecx
push eax
push 0x25
push ecx
call fcn.1002fb80
add esp, 0xc
mov ecx, esi
test eax, eax
cmovne ecx, eax
cmp ecx, esi
jne 0x10004a33
lea eax, [ebp - 0x203a5]
mov byte [ebp - 0x203a5], 0x25
push eax
call fcn.10008ab0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017199
mov esp, ebp
pop ebp
ret
mov esi, dword [eax]
mov ecx, esi
push 0
push 0xc
mov eax, dword [esi]
call dword [eax]
mov edx, dword [esi]
mov ecx, esi
push 0
push ebx
mov edi, eax
call dword [edx]
push ebx
lea ecx, [ebp - 0x203a4]
mov dword [edi + 8], eax
push ecx
push eax
call fcn.1002f080
mov al, byte [ebp + 8]
add esp, 0xc
mov ecx, dword [0x10354f3c]
xor edx, edx
mov byte [edi], al
mov al, byte [ebp + 0xc]
mov byte [edi + 2], al
xor eax, eax
push edi
mov byte [edi + 1], 0
mov word [edi + 6], ax
mov byte [edi + 3], 0xff
mov word [edi + 4], bx
call dword [0x10354f4c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017199
mov esp, ebp
pop ebp
ret