Function at 0x473b4d
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018b48
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10023014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x68], esi
xorps xmm0, xmm0
lea ecx, [ebp - 0x54]
push 0x1002d968
movups xmmword [esi], xmm0
call fcn.004740ed
add esp, 4
push 0
push 0x80
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
push 1
cmovae eax, dword [ebp - 0x54]
push 0x80000000
push eax
call dword [0x10019020]
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp edi, 0xffffffff
je 0x473d4d
push 0
push 0
push 0
push edi
call dword [0x1001900c]
push 0
lea eax, [ebp - 0x34]
push eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push edi
call dword [0x10019008]
test eax, eax
je 0x473d46
cmp dword [ebp - 0x34], 0x1c
jne 0x473d46
mov eax, 0x4856
cmp word [ebp - 0x30], ax
jne 0x473d46
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor eax, ecx
movzx eax, al
xor eax, ecx
mov dword [ebp - 0x34], eax
test esi, esi
je 0x473d46
xorps xmm0, xmm0
push 0x10
movups xmmword [esi], xmm0
call fcn.00476cb5
add esp, 4
mov esi, eax
mov dword [ebp - 0x64], esi
push 0
test esi, esi
je 0x473d3e
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
push 0x10
push esi
push edi
movups xmmword [esi], xmm0
call dword [0x10019008]
test eax, eax
je 0x473d3d
cmp dword [ebp - 0x3c], 0x10
jne 0x473d3d
mov eax, dword [ebp - 0x34]
lea edx, [esi + 2]
mov dword [ebp - 0x38], eax
mov edi, 0xfffffffe
or eax, 0xffffffff
mov dword [ebp - 0x34], 2
sub eax, esi
mov ch, 0x10
mov dword [ebp - 0x5c], eax
mov eax, 1
sub eax, esi
sub edi, esi
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
nop
mov cl, byte [edx - 2]
lea eax, [edi + edx]
and eax, 3
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov cl, byte [edx - 1]
mov byte [edx - 2], al
lea eax, [esi + edx]
and eax, 3
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov cl, byte [edx]
mov byte [edx - 1], al
mov eax, dword [ebp - 0x34]
and eax, 3
add dword [ebp - 0x34], 4
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov cl, byte [edx + 1]
mov byte [edx], al
mov eax, dword [ebp - 0x60]
add eax, edx
and eax, 3
movzx eax, byte [ebp + eax - 0x38]
xor al, cl
xor al, ch
add ch, cl
mov byte [edx + 1], al
add edx, 4
lea eax, [edi + edx]
cmp eax, 0x10
jb 0x473cad
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
push esi
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
call fcn.00476cb0
mov edi, dword [ebp - 0x6c]
add esp, 4
push edi
call dword [0x10019024]
mov byte [ebp - 0x55], 1
jmp 0x473d51
push esi
call fcn.00476cb0
add esp, 4
push edi
call dword [0x10019024]
mov byte [ebp - 0x55], 0
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x473d81
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x473d77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473da2
push edx
push ecx
call fcn.00476c7f
add esp, 8
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476c3e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047a9a5
int3