Function at 0x10120e70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x32c
push ebx
push ebp
mov ebp, ecx
xorps xmm0, xmm0
push esi
push edi
mov dword [esp + 0x1c], ebp
xor edi, edi
mov ecx, dword [ebp + 0x49280]
movlpd qword [esp + 0x24], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ebx, dword [esp + 0x344]
mov esi, edi
add ebx, 3
mov dword [esp + 0x18], eax
and ebx, 0xfffffffc
mov dword [esp + 0x20], ebx
jle 0x10120edf
mov ecx, dword [ebp + 0x49280]
mov eax, dword [ecx]
call dword [eax + 0x18]
movzx ecx, al
mov eax, ecx
and eax, 0xf
mov byte [esp + esi + 0x3c], al
cmp al, 0xc
ja 0x10120f22
shr ecx, 4
mov byte [esp + esi + 0x3d], cl
cmp cl, 0xc
ja 0x10120f22
add esi, 2
cmp esi, ebx
jl 0x10120eb1
mov eax, ebx
and al, 7
cmp al, 4
jne 0x10121037
mov ecx, dword [ebp + 0x49280]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esp + 0x1c]
shl eax, 8
cdq
mov ebx, eax
mov ebp, edx
mov ecx, dword [ecx + 0x49280]
mov esi, dword [ecx]
call dword [esi + 0x18]
cdq
mov edi, 0x10
add ebx, eax
adc ebp, edx
mov dword [esp + 0x10], ebp
mov edx, ebp
jmp 0x10121043
mov ecx, dword [ebp + 0x49280]
mov eax, dword [esp + 0x18]
push 0
cdq
mov esi, dword [ecx]
push edx
push eax
call dword [esi + 0xc]
mov esi, dword [esp + 0x340]
lea eax, [ebx - 1]
add esi, 4
shr eax, 3
inc eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov edi, 0xffffff00
push 6
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.10117bc0
mov ebx, dword [esp + 0x2c]
mov cx, bx
mov ebp, dword [esp + 0x30]
and ebx, 0xfff
mov edx, dword [esp + 0x2e]
mov ax, bp
shr ax, 8
and ebp, 0xfff
shr cx, 4
and ax, 0xfff0
and cx, di
or cx, ax
mov ax, word [esp + 0x34]
shr ax, 0xc
or cx, ax
mov word [esi - 4], cx
mov cx, dx
mov esi, dword [esp + 0x32]
and edx, 0xfff
shr cx, 4
mov ax, si
shr ax, 8
and cx, di
mov edi, dword [esp + 0x36]
and ax, 0xfff0
or cx, ax
and esi, 0xfff
mov ax, di
and edi, 0xfff
shr ax, 0xc
or cx, ax
mov eax, dword [esp + 0x14]
mov word [eax - 2], cx
mov ecx, eax
mov eax, dword [esp + 0x34]
and eax, 0xfff
mov word [ecx + 4], bp
mov ebp, dword [esp + 0x1c]
mov word [ecx + 6], si
mov word [ecx + 0xa], di
mov edi, 0xffffff00
mov word [ecx], bx
mov word [ecx + 2], dx
mov word [ecx + 8], ax
add ecx, 0x10
sub dword [esp + 0x10], 1
mov esi, ecx
mov dword [esp + 0x14], ecx
jne 0x10120f54
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x32c
ret 8
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x20], ebx
jle 0x10121122
nop word [eax + eax]
movzx ebp, byte [esp + ebx + 0x3c]
mov dword [esp + 0x24], ebp
cmp edi, ebp
jge 0x101210bf
mov ebp, dword [esp + 0x14]
xor esi, esi
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x49280]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, esi
cdq
xor ecx, 8
add ecx, edi
call fcn.101dd800
add ebp, eax
adc ebx, edx
add esi, 8
cmp esi, 0x20
jl 0x10121080
mov dword [esp + 0x10], ebx
add edi, 0x20
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, 0x10
sub ecx, ebp
mov esi, 0xffff
sar esi, cl
mov ecx, ebp
and esi, eax
call fcn.101dd2e0
mov dword [esp + 0x14], eax
lea ecx, [ebp - 1]
mov eax, 1
mov dword [esp + 0x10], edx
shl eax, cl
sub edi, ebp
test esi, eax
jne 0x10121104
mov edx, 1
mov ecx, ebp
shl edx, cl
mov eax, 1
sub eax, edx
add esi, eax
mov eax, dword [esp + 0x340]
mov edx, dword [esp + 0x10]
mov word [eax + ebx*2], si
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x20]
jl 0x10121060
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x32c
ret 8