Function at 0x471a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1f0
mov edi, dword [ebp + 0xc]
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [esp + 0x1e8], eax
test edi, edi
je 0x471f79
call fcn.00477be0
mov ebx, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1a0], xmm0
movdqa xmmword [esp + 0x190], xmm0
lea eax, [esp + 0x60]
push 0x130
push 0xff
push eax
call fcn.0049e890
add esp, 0xc
push 1
call fcn.00479530
add esp, 4
test eax, eax
je 0x471fe9
mov esi, eax
add eax, 0x120
mov dword [esp + 0x10], eax
cmp dword [esi + 0x120], 0xfff
ja 0x4720a6
mov eax, 0xc0ffee
xor eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
jne 0x4720a6
cmp dword [esi + 0x128], ebx
jne 0x4720a6
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], edx
lea edx, [esi + 0xf4]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
lea edx, [esi + 0xfc]
mov dword [esp], edx
mov ebx, 0x20
mov dword [esp + 0x24], 0
jmp 0x471c8b
movq xmm0, qword [esp + 0x1b0]
mov eax, dword [esp + 0xc]
movq qword [eax], xmm0
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1b4]
push eax
mov edi, dword [esp + 8]
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1c4]
push eax
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1d4]
push eax
push edi
call ecx
add esp, 0xc
test byte [esp + 0x24], 1
jne 0x471bf4
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp ebx, eax
jne 0x471be0
push 1
call fcn.00471690
add esp, 4
test eax, 0x2000000
mov edi, dword [esp + 0x20]
je 0x472184
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403380
add esp, 0xc
mov ecx, section..text
mov eax, 0x401b90
mov edx, dword [esp + 8]
test edx, edx
je 0x471c37
mov dword [edx], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp]
movdqu xmmword [eax], xmm0
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
add ecx, 1
adc eax, 0
mov dword [esi + 0x110], ecx
mov dword [esi + 0x114], eax
mov edx, dword [esp + 0x10]
inc dword [edx]
mov esi, dword [esp + 0x28]
add dword [esp + 0x1c], esi
xor ebx, ebx
mov dl, 1
mov dword [esp + 0x24], edx
sub edi, esi
je 0x471f6b
cmp edi, 0x10000
mov edx, 0x10000
cmovb edx, edi
mov dword [esp + 0x28], edx
neg ecx
mov ecx, 0x10000
sbb ecx, eax
jb 0x47211d
test byte [esp + 0x24], 1
mov esi, dword [esp + 4]
mov dword [esp + 0x20], edi
jne 0x471ddf
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1b4]
push eax
mov edi, dword [esp + 8]
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1c4]
push eax
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1d4]
push eax
push edi
call ecx
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp ebx, eax
jne 0x471d70
push 1
call fcn.00471690
add esp, 4
test eax, 0x2000000
je 0x472148
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403380
add esp, 0xc
mov ecx, section..text
mov eax, 0x401b90
mov edx, dword [esp + 8]
test edx, edx
mov edi, dword [esp + 0x20]
je 0x471dc7
mov dword [edx], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp]
movdqu xmmword [eax], xmm0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
cmp edi, 0x10
jb 0x471e99
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
cmp eax, 0x2000
mov edi, 0x2000
cmovb edi, eax
mov ecx, edi
and ecx, 0x3ff0
cmp dword [esi + 0xf8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
je 0x471f94
cmp ecx, 0x10
jne 0x471eee
pxor xmm0, xmm0
movdqu xmmword [edx], xmm0
shr edi, 4
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push dword [esp]
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
push edi
call ecx
add esp, 0x14
mov eax, dword [esi + 0x108]
bswap eax
mov ecx, dword [esp + 0x14]
add eax, ecx
dec eax
bswap eax
mov dword [esi + 0x108], eax
mov edx, edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add edx, ecx
sub eax, ecx
cmp eax, 0xf
ja 0x471df8
mov ecx, dword [esi + 0xf4]
mov edi, eax
mov eax, dword [esi + 0x108]
test edi, edi
je 0x471b2d
mov dword [esp + 0xc], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [section..00cfg]
push esi
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 8]
call ecx
add esp, 0xc
cmp edi, 8
je 0x471b10
jmp 0x471f20
cmp ecx, 0x20
jne 0x471f01
pxor xmm0, xmm0
movdqu xmmword [edx + 0x10], xmm0
jmp 0x471e33
test ecx, ecx
je 0x471e37
push dword [esp + 0x18]
push 0
push dword [esp + 0x14]
call fcn.0049e890
add esp, 0xc
jmp 0x471e37
cmp edi, 4
mov edx, dword [esp + 0xc]
je 0x471f46
cmp edi, 7
jne 0x471f54
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x1b3]
mov dword [edx + 3], ecx
mov dword [edx], eax
jmp 0x471b21
mov eax, dword [esp + 0x1b0]
mov dword [edx], eax
jmp 0x471b21
push edi
lea eax, [esp + 0x1b4]
push eax
push edx
call fcn.0049e310
add esp, 0xc
jmp 0x471b21
lea eax, [esp + 0x60]
cmp dword [esp + 4], eax
je 0x4721d9
mov ecx, dword [esp + 0x1e8]
xor ecx, ebp
call fcn.0049b483
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
je 0x471e8c
xor edi, edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea eax, [edx + edi]
mov dword [esp + 0x14], eax
call dword [section..00cfg]
push esi
push dword [esp + 0x18]
push dword [esp + 8]
call ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
add esp, 0xc
add edi, 0x10
cmp edi, ecx
jae 0x471e8c
jmp 0x471f9e
mov dword [esp], ebx
push 0x130
call fcn.00475010
add esp, 4
test eax, eax
je 0x4721ec
mov esi, eax
push 0x43a770
push eax
push 1
call fcn.00441c60
add esp, 0xc
test eax, eax
je 0x4721ec
xor eax, eax
mov dword [esi + 0x124], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x1b0]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
pxor xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
push 0x30
push ebx
call fcn.00441d80
add esp, 8
xor eax, eax
push eax
push edi
push ebx
push esi
call fcn.00472530
add esp, 0x10
test eax, eax
je 0x47211d
lea eax, [esi + 0x120]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov ebx, dword [esp]
mov dword [esi + 0x128], ebx
mov edi, dword [ebp + 0xc]
jmp 0x471ac0
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x1b0]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov edi, 0x30
push edi
push eax
call fcn.00441d80
add esp, 8
mov ecx, esi
lea edx, [esp + 0x1b0]
push edi
call fcn.0043a5f0
add esp, 4
test eax, eax
je 0x47211d
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov dword [esi + 0x128], ebx
xor ecx, ecx
inc ecx
mov edi, dword [ebp + 0xc]
jmp 0x471ad8
call fcn.004ac89f
mov esi, dword [esp + 4]
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.004e4f20
add esp, 0xc
mov ecx, 0x4e4e30
mov eax, 0x4e56b0
jmp 0x472173
mov edi, dword [esp + 0x20]
bt eax, 9
jae 0x472122
mov esi, dword [esp + 4]
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
mov edx, dword [esp + 8]
test edx, edx
jne 0x471dc5
jmp 0x471dc7
bt eax, 9
jae 0x4721b0
mov esi, dword [esp + 4]
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403ea0
add esp, 0xc
xor eax, eax
mov ecx, 0x403f50
jmp 0x471c2d
mov esi, dword [esp + 4]
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.004e4f20
add esp, 0xc
mov ecx, 0x4e4e30
mov eax, 0x4e56b0
jmp 0x471c2d
push 0x118
push eax
call fcn.00475090
add esp, 8
jmp 0x471f79
lea esi, [esp + 0x60]
jmp 0x47201b