Function at 0x10475ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xa0], esi
movzx eax, byte [esi]
add eax, 0xffffffe0
cmp eax, 0x61
ja case.0x10475bd6.47
movzx eax, byte [eax + 0x104763bc]
jmp dword [eax*4 + 0x1047637c]
test ebx, ebx
je case.0x10475bd6.39
movzx ecx, byte [esi + 3]
lea edx, [ebx + 0x20]
movzx eax, byte [esi + 4]
xor edi, edi
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x9c], edx
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
mov dword [edx + 4], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl cx, 8
or cx, ax
mov word [edx + 8], cx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edx + 0xc], ecx
mov cl, byte [esi + 0xc]
movzx eax, byte [esi + 0xc]
dec cl
cmp cl, 0x33
cmova eax, edi
mov word [edx + 0x10], ax
movzx eax, byte [esi + 0xd]
cmp byte [esi + 0xc], 0xff
mov edx, eax
lea ecx, [eax + 0x7d0]
movzx eax, cx
cmovne edx, eax
lea eax, [ebx + 0x20]
mov word [eax + 0x12], dx
mov cl, byte [esi + 0xe]
test cl, cl
je 0x10475cde
movzx edi, cl
add eax, 0x14
xor edx, edx
mov dword [ebp - 0xa0], eax
lea ecx, [esi + 0xf]
test edi, edi
je 0x10475cde
mov ebx, eax
sub ebx, ecx
nop
mov al, byte [ecx]
mov byte [ebx + ecx], al
cmp byte [ecx], 0
je 0x10475cc4
inc edx
inc ecx
cmp edx, edi
jb 0x10475c90
movzx eax, byte [esi + 0xe]
xor edi, edi
mov ecx, dword [ebp - 0x9c]
mov byte [eax + ecx + 0x14], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
cmp edx, edi
jae 0x10475cde
mov eax, dword [ebp - 0xa0]
sub edi, edx
push edi
add eax, edx
push 0
push eax
call fcn.10425c00
add esp, 0xc
movzx eax, byte [esi + 0xe]
mov ecx, dword [ebp - 0x9c]
mov byte [eax + ecx + 0x14], 0
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
call fcn.10476420
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
call fcn.104766b0
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
call fcn.104768b0
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esi + 2]
mov eax, 0xaaaaaaab
mul ecx
mov byte [ebp - 0x92], 0
mov ecx, edx
shr ecx, 2
mov dword [ebp - 0x98], ecx
lea eax, [ecx - 1]
cmp eax, 0x11
ja case.0x10475bd6.47
test ebx, ebx
je 0x10475dcc
mov edi, dword [ebx + 0x164]
xor ah, ah
mov byte [ebp - 0x92], ah
mov byte [ebp - 0x91], ah
test edi, edi
je 0x10475dcc
xor ecx, ecx
imul edx, ecx, 0x70
mov al, ah
inc al
movzx ecx, al
movzx eax, ah
cmp byte [edx + ebx + 0x1a1], 0x22
cmovne ecx, eax
mov al, byte [ebp - 0x91]
inc al
mov ah, cl
movzx ecx, al
mov byte [ebp - 0x91], al
cmp ecx, edi
jb 0x10475d91
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 0x92], ah
mov byte [ebp - 0x91], 0
test ecx, ecx
je case.0x10475bd6.39
xor edi, edi
nop dword [eax]
push 0x70
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.10425c00
mov al, byte [ebp - 0x91]
lea edx, [ebp - 0x90]
add al, byte [ebp - 0x92]
add esp, 0xc
movzx eax, al
push eax
lea eax, [edi + edi*2]
lea ecx, [eax*2 + 3]
add ecx, esi
call fcn.104778c0
test eax, eax
jne 0x10475e59
test ebx, ebx
je 0x10475e61
mov eax, dword [ebx + 0x164]
cmp eax, 0x80
jae case.0x10475bd6.39
imul eax, eax, 0x70
lea edi, [ebx + 0x168]
mov ecx, 0x1c
lea esi, [ebp - 0x90]
add edi, eax
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x164]
mov esi, dword [ebp - 0xa0]
jmp 0x10475e61
test ebx, ebx
je case.0x10475bd6.47
mov al, byte [ebp - 0x91]
inc al
movzx edi, al
mov byte [ebp - 0x91], al
cmp edi, dword [ebp - 0x98]
jb 0x10475de0
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
call fcn.10476b60
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
xor edi, edi
cmp byte [esi + 2], 9
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
jne case.0x10475bd6.47
movzx ecx, byte [esi + 5]
movzx eax, byte [esi + 4]
movzx edx, byte [esi + 1]
shl ecx, 8
and edx, 7
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [esi + 3]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 8]
inc eax
shl ecx, 8
mov dword [ebp - 0x18], eax
movzx eax, byte [esi + 7]
or ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
or eax, ecx
mov ch, byte [esi + 9]
inc eax
mov byte [ebp - 0xc], ch
mov dword [ebp - 0x14], eax
cmp edx, 1
jne 0x10475f21
mov al, byte [esi + 0xb]
and al, 3
movzx edx, al
movzx eax, byte [esi + 0xa]
shl dx, 8
or dx, ax
jmp 0x10475f25
movzx edx, byte [esi + 0xa]
mov cl, byte [esi + 0xb]
mov al, byte [ebp - 6]
shr cl, 3
xor cl, al
mov word [ebp - 0xa], dx
and cl, 0x10
xor al, cl
mov byte [ebp - 6], al
test ebx, ebx
jne 0x10475f71
movzx eax, ch
cmp ax, dx
ja case.0x10475bd6.47
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
ja case.0x10475bd6.47
test ch, ch
je case.0x10475bd6.47
test dx, dx
jne 0x10475f5e
mov edi, 0x80000000
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
add ebx, 0x3968
lea ecx, [ebp - 5]
lea eax, [ebx + 0x17]
cmp ebx, ecx
ja 0x10475f84
lea ecx, [ebp - 0x1c]
movups xmm0, xmmword [ebp - 0x1c]
xor edi, edi
mov eax, edi
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x10], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
call fcn.10476df0
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
call fcn.10477120
mov edi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
cmp byte [esi + 2], 0x10
jne case.0x10475bd6.47
test ebx, ebx
je case.0x10475bd6.39
movzx eax, byte [esi + 1]
and eax, 7
mov dword [ebx + 0x3a18], eax
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x3a1c], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 8]
shl cx, 8
or cx, ax
mov word [ebx + 0x3a20], cx
movzx ecx, byte [esi + 9]
movzx eax, byte [esi + 0xa]
shl cx, 8
or cx, ax
mov word [ebx + 0x3a22], cx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xc]
shl cx, 8
or cx, ax
xor edi, edi
mov word [ebx + 0x3a24], cx
mov al, byte [esi + 0xd]
mov byte [ebx + 0x3a26], al
mov al, byte [esi + 0xe]
mov byte [ebx + 0x3a27], al
mov al, byte [esi + 0xf]
mov byte [ebx + 0x3a28], al
mov al, byte [esi + 0x10]
mov byte [ebx + 0x3a29], al
mov al, byte [esi + 0x11]
mov byte [ebx + 0x3a2a], al
mov al, byte [esi + 0x12]
mov byte [ebx + 0x3a2b], al
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
xor edi, edi
test byte [esi + 1], 0x70
jne 0x1047624c
movzx ecx, byte [esi + 2]
xor edx, edx
mov edi, 6
mov eax, ecx
div edi
mov eax, 0xaaaaaaab
neg edx
sbb edi, edi
mul ecx
and edi, 0x80000000
mov eax, edx
mov dword [ebp - 0xa4], edi
shr eax, 2
mov dword [ebp - 0x9c], eax
cmp eax, 1
jb case.0x10475bd6.47
test ebx, ebx
jne 0x1047614c
xor dl, dl
xor eax, eax
nop dword [eax]
lea eax, [eax + eax*2]
movzx ecx, byte [esi + eax*2 + 7]
mov bl, byte [esi + eax*2 + 5]
and ecx, 3
movzx eax, byte [esi + eax*2 + 6]
shl ecx, 8
or ecx, eax
movzx eax, bl
add ecx, 2
cmp eax, ecx
ja 0x10476127
test bl, bl
jne 0x1047612c
mov edi, 0x80000000
inc dl
movzx eax, dl
cmp eax, dword [ebp - 0x9c]
jb 0x10476100
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebx + 0x3a2c], eax
mov byte [ebp - 0x91], 0
mov edi, eax
mov dword [ebp - 0x98], edx
lea eax, [edx + edx*2]
mov cl, byte [esi + eax*2 + 3]
lea esi, [esi + eax*2]
xor cl, byte [ebx + edx*8 + 0x3a30]
and cl, 1
xor cl, byte [ebx + edx*8 + 0x3a30]
mov byte [ebx + edx*8 + 0x3a30], cl
mov al, byte [esi + 3]
xor al, cl
and al, 2
xor al, cl
mov byte [ebx + edx*8 + 0x3a30], al
mov cl, byte [esi + 3]
xor cl, al
and cl, 0xc
xor cl, al
mov eax, dword [ebp - 0x98]
mov byte [ebx + edx*8 + 0x3a30], cl
mov dl, byte [esi + 3]
xor dl, cl
and dl, 0x10
xor dl, cl
mov byte [ebx + eax*8 + 0x3a30], dl
mov al, byte [esi + 3]
xor al, dl
and al, 0x20
xor al, dl
mov edx, dword [ebp - 0x98]
mov byte [ebx + edx*8 + 0x3a30], al
mov al, byte [esi + 4]
mov byte [ebx + edx*8 + 0x3a31], al
mov al, byte [esi + 5]
mov byte [ebx + edx*8 + 0x3a32], al
mov al, byte [esi + 7]
and al, 3
movzx ecx, al
movzx eax, byte [esi + 6]
shl cx, 8
or cx, ax
inc cx
mov word [ebx + edx*8 + 0x3a34], cx
mov al, byte [esi + 8]
mov esi, dword [ebp - 0xa0]
mov byte [ebx + edx*8 + 0x3a36], al
mov al, byte [ebp - 0x91]
inc al
movzx edx, al
mov byte [ebp - 0x91], al
mov dword [ebp - 0x98], edx
cmp edx, edi
jb 0x10476163
mov edi, dword [ebp - 0xa4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
test ebx, ebx
jmp 0x10475f57
cmp byte [esi + 2], 6
jne case.0x10475bd6.47
test ebx, ebx
je case.0x10475bd6.39
movzx eax, byte [esi + 1]
and eax, 7
xor edi, edi
mov dword [ebx + 0x3a50], eax
movzx eax, word [esi + 3]
mov word [ebx + 0x3a54], ax
movzx eax, word [esi + 5]
mov word [ebx + 0x3a56], ax
movzx eax, word [esi + 7]
mov word [ebx + 0x3a58], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
xor edi, edi
test ebx, ebx
je case.0x10475bd6.39
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
cmp ecx, 0x3a0292
jne 0x10475f5e
cmp byte [esi + 2], 7
jne case.0x10475bd6.47
mov cl, byte [ebx + 0x3a9c]
xor cl, byte [esi + 9]
and cl, 7
xor cl, byte [ebx + 0x3a9c]
mov byte [ebx + 0x3a9c], cl
mov al, byte [esi + 9]
xor al, cl
and al, 0x7f
xor al, byte [esi + 9]
mov byte [ebx + 0x3a9c], al
mov cl, byte [esi + 0xa]
xor cl, byte [ebx + 0x3a9d]
and cl, 0xf
xor cl, byte [ebx + 0x3a9d]
mov byte [ebx + 0x3a9d], cl
mov al, byte [esi + 0xa]
xor al, cl
and al, 0x60
xor al, cl
mov byte [ebx + 0x3a9d], al
mov al, byte [esi + 0xb]
xor al, byte [ebx + 0x3a9e]
and al, 0x3f
xor byte [ebx + 0x3a9e], al
mov al, byte [esi + 0xc]
xor al, byte [ebx + 0x3a9f]
and al, 0xf
xor byte [ebx + 0x3a9f], al
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
call fcn.104772e0
mov ecx, dword [ebp - 4]
mov edi, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret