Function at 0x4c2580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x4db00c]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.004c24a0
movaps xmm0, xmmword [0x4d7a00]
xor ecx, ecx
movups xmmword [esp + 0x18], xmm0
movaps xmm0, xmmword [0x4d6ac0]
movups xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [0x4d72f0]
movups xmmword [esp + 0x38], xmm0
movaps xmm0, xmmword [str.TUZ_X23016745:_]
movups xmmword [esp + 0x48], xmm0
mov al, byte [esp + 0x18]
xor byte [esp + ecx + 0x19], al
inc ecx
cmp ecx, 0x3e
jb 0x4c25d7
xorps xmm0, xmm0
mov byte [esp + 0x57], 0
lea ecx, [esp + 0x19]
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xc0], 0
lea edx, [ecx + 1]
mov dword [esp + 0xc4], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2612
sub ecx, edx
lea eax, [esp + 0x19]
push ecx
push eax
lea ecx, [esp + 0xb8]
call fcn.004b8710
mov byte [esp + 8], 0x50
mov cl, 0x20
xor cl, byte [esp + 8]
mov al, 0x18
xor al, byte [esp + 8]
mov ch, 0x31
mov byte [esp + 9], al
mov dl, 0xa
mov byte [esp + 0xa], cl
mov dh, 0x23
mov cl, byte [esp + 8]
mov ah, 0x61
mov byte [esp + 0x16], 0x35
xor dl, cl
mov al, byte [esp + 0x16]
xor ch, cl
xor al, cl
mov byte [esp + 0x15], 0x15
mov byte [esp + 0xf], al
xor dh, cl
mov al, byte [esp + 0x15]
xor ah, cl
xor al, cl
mov byte [esp + 0x14], 0x1d
mov byte [esp + 0x10], al
xorps xmm0, xmm0
mov al, byte [esp + 0x14]
xor al, cl
mov byte [esp + 0xd], ch
lea ecx, [esp + 9]
mov byte [esp + 0x12], 0
mov byte [esp + 0xb], dl
mov byte [esp + 0xe], dh
lea edx, [ecx + 1]
mov byte [esp + 0xc], ah
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c26c6
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.004b8710
mov byte [esp + 8], 0x18
mov cl, 0x74
xor cl, byte [esp + 8]
mov al, 0x48
xor al, byte [esp + 8]
mov ch, 0x28
mov byte [esp + 9], al
mov dl, 0x2d
mov byte [esp + 0xa], cl
mov dh, 0x6a
mov cl, byte [esp + 8]
mov ah, 0x6e
mov byte [esp + 0x14], 0x5b
xor dl, cl
mov al, byte [esp + 0x14]
xor ch, cl
xor al, cl
mov byte [esp + 0x15], 0x51
xor dh, cl
mov byte [esp + 0xf], al
mov al, byte [esp + 0x15]
xor ah, cl
xor al, cl
mov byte [esp + 0xd], ch
xorps xmm0, xmm0
mov byte [esp + 0x11], 0
lea ecx, [esp + 9]
mov byte [esp + 0xb], dl
mov byte [esp + 0xe], dh
lea edx, [ecx + 1]
mov byte [esp + 0xc], ah
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2770
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x98]
call fcn.004b8710
mov byte [esp + 8], 0x2b
mov al, 0x67
xor al, byte [esp + 8]
mov dl, 0x1f
mov byte [esp + 9], al
mov ah, 0x51
mov al, byte [esp + 8]
mov ch, dl
xor ah, al
mov byte [esp + 0xf], 0
mov cl, 0x5d
mov byte [esp + 0xc], ah
mov dh, 0x12
mov byte [esp + 0xf], 0
xor cl, al
xor ch, al
xor dl, al
mov byte [esp + 0xa], cl
xor dh, al
mov byte [esp + 0xd], ch
lea eax, [esp + 9]
mov byte [esp + 0xb], dl
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x12], dh
call fcn.004b74c0
mov byte [esp + 8], 0x48
mov al, 0xc
xor al, byte [esp + 8]
mov cl, 4
mov byte [esp + 9], al
mov dl, 0x3c
mov al, byte [esp + 8]
mov ch, 0x11
mov dh, 0x3b
mov byte [esp + 0xf], 0
xor cl, al
mov byte [esp + 0xf], 0
xor dl, al
mov byte [esp + 0xa], cl
xor ch, al
mov byte [esp + 0xb], dl
xor dh, al
mov byte [esp + 0xd], ch
mov ah, 0x7e
mov byte [esp + 0xe], dh
xor ah, al
lea edx, [esp + 0x90]
lea ecx, [esp + 9]
mov byte [esp + 0xc], ah
call fcn.004b8410
test al, al
je 0x4c28ae
mov byte [esp + 8], 6
mov al, 0x4d
xor al, byte [esp + 8]
mov dl, 0x54
mov byte [esp + 9], al
mov cl, 0x7e
mov al, byte [esp + 8]
mov ch, 0x4f
mov dh, 0x53
mov byte [esp + 0x14], dl
xor cl, al
mov byte [esp + 0x10], 0
xor dl, al
mov byte [esp + 0xa], cl
xor ch, al
mov byte [esp + 0xb], dl
xor dh, al
mov byte [esp + 0xd], ch
mov ah, 0x55
mov byte [esp + 0xe], dh
xor ah, al
mov byte [esp + 0x10], 0
mov al, byte [esp + 0x14]
lea ecx, [esp + 9]
xor al, byte [esp + 8]
lea edx, [ecx + 1]
mov byte [esp + 0xc], ah
mov byte [esp + 0xf], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2896
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.004b7cc0
mov ecx, dword [esp + 0xa4]
cmp ecx, 0x10
jb 0x4c28e6
mov edx, dword [esp + 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c28dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c292f
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0xf
mov byte [esp + 0x90], 0
cmp ecx, 0x10
jb 0x4c293f
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2935
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c2935
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0x68]
xor edi, edi
test ecx, ecx
je 0x4c29cb
mov eax, dword [esp + 0xc0]
xor esi, esi
test eax, eax
je 0x4c29a9
mov byte [esp + 8], 0
nop
cmp dword [esp + 0xc4], 0x10
lea edx, [esp + 0xb0]
push edi
cmovae edx, dword [esp + 0xb4]
lea ecx, [esp + 0x5c]
call fcn.004b7460
mov ecx, dword [esp + 8]
movzx ecx, cl
mov al, byte [eax]
cmp al, byte [edx + esi]
mov eax, 1
cmove ecx, eax
mov eax, dword [esp + 0xc0]
inc esi
mov dword [esp + 8], ecx
cmp esi, eax
jb 0x4c2960
test cl, cl
jne 0x4c29c2
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
mov byte [eax + edi], 0x20
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x68]
inc edi
cmp edi, ecx
jb 0x4c2954
mov edi, dword [esp + 0x6c]
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x58]
lea esi, [esp + 0x58]
cmp edi, 0x10
push 0x20
cmovae eax, edx
add eax, ecx
cmp edi, 0x10
mov dword [esp + 0xc], eax
cmovae esi, edx
add esi, ecx
cmp edi, 0x10
lea ecx, [esp + 0x5c]
cmovae ecx, edx
mov edx, esi
call fcn.004c8740
add esp, 4
mov edi, eax
cmp eax, esi
je 0x4c2a1f
inc eax
cmp eax, esi
je 0x4c2a1f
mov cl, byte [eax]
cmp cl, 0x20
je 0x4c2a1a
mov byte [edi], cl
inc edi
inc eax
cmp eax, esi
jne 0x4c2a10
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
mov esi, edi
lea ecx, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
sub dword [esp + 8], edi
sub esi, eax
mov edi, dword [esp + 0x68]
mov eax, edi
mov edx, dword [esp + 8]
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 8], edx
cmovae ecx, dword [esp + 0x58]
sub edi, edx
add ecx, esi
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [0x4db7d0]
add esp, 0xc
mov dword [esp + 0x68], edi
cmp eax, 1
jne 0x4c2e2f
cmp dword [0x4db0a8], 0x10
jae 0x4c2ecd
mov byte [esp + 8], 0x3f
mov cl, 0x50
xor cl, byte [esp + 8]
mov al, 0x7d
xor al, byte [esp + 8]
mov ch, 0x5a
mov byte [esp + 9], al
mov dl, 0x6e
mov byte [esp + 0xa], cl
mov dh, 0x54
mov cl, byte [esp + 8]
mov ah, 0xb
mov byte [esp + 0x14], 0x68
xor dl, cl
mov al, byte [esp + 0x14]
xor ch, cl
xor al, cl
mov byte [esp + 0x15], 9
mov byte [esp + 0xf], al
xor dh, cl
mov al, byte [esp + 0x15]
xor ah, cl
xor al, cl
mov byte [esp + 0x16], 0x59
mov byte [esp + 0x10], al
xorps xmm0, xmm0
mov al, byte [esp + 0x16]
xor al, cl
mov byte [esp + 0xd], ch
lea ecx, [esp + 9]
mov byte [esp + 0x12], 0
mov byte [esp + 0xb], dl
mov byte [esp + 0xe], dh
lea edx, [ecx + 1]
mov byte [esp + 0xc], ah
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2b27
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.004b8710
mov byte [esp + 8], 0x35
mov cl, 0x6f
xor cl, byte [esp + 8]
mov al, 0x5c
xor al, byte [esp + 8]
mov dl, 0x41
mov byte [esp + 9], al
mov ch, 0x44
mov byte [esp + 0xa], cl
mov dh, 0x5f
mov cl, byte [esp + 8]
mov ah, 0x5a
mov byte [esp + 0x14], 0x53
xor ch, cl
mov al, byte [esp + 0x14]
xor dh, cl
xor al, cl
mov byte [esp + 0x15], dl
xor dl, cl
mov byte [esp + 0xf], al
mov al, byte [esp + 0x15]
xor ah, cl
xor al, cl
mov byte [esp + 0xd], ch
xorps xmm0, xmm0
mov byte [esp + 0x11], 0
lea ecx, [esp + 9]
mov byte [esp + 0xb], dl
mov byte [esp + 0xe], dh
lea edx, [ecx + 1]
mov byte [esp + 0xc], ah
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2bd0
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x98]
call fcn.004b8710
mov al, 0x32
mov byte [esp + 8], 0x5b
mov dl, al
mov byte [esp + 0x14], al
xor al, byte [esp + 8]
mov cl, 0x68
xor cl, byte [esp + 8]
mov ah, 0xa
mov byte [esp + 9], al
mov ch, 0x35
mov al, byte [esp + 0x14]
mov dh, 0xf
mov byte [esp + 0xa], cl
mov cl, byte [esp + 8]
xor al, cl
mov byte [esp + 0x15], 0x2a
mov byte [esp + 0xf], al
xor ah, cl
mov al, byte [esp + 0x15]
xor ch, cl
xor al, cl
mov byte [esp + 0x16], 0x69
mov byte [esp + 0x10], al
xor dl, cl
mov al, byte [esp + 0x16]
xor dh, cl
xor al, cl
mov byte [esp + 0x17], 0x30
mov byte [esp + 0x11], al
mov al, byte [esp + 0x17]
xor al, cl
mov byte [esp + 0xc], ah
mov byte [esp + 0x12], al
lea eax, [esp + 9]
mov byte [esp + 0xd], ch
lea ecx, [esp + 0x90]
mov byte [esp + 0x13], 0
push eax
mov byte [esp + 0xf], dl
mov byte [esp + 0x12], dh
mov byte [esp + 0x17], 0
call fcn.004b74c0
mov byte [esp + 8], 0x68
mov al, 0x31
xor al, byte [esp + 8]
mov cl, 7
mov byte [esp + 9], al
mov dl, 6
mov al, byte [esp + 8]
mov ch, 0x25
mov dh, 0x24
mov byte [esp + 0xf], 0
xor cl, al
mov byte [esp + 0xf], 0
xor dl, al
mov byte [esp + 0xa], cl
xor ch, al
mov byte [esp + 0xb], dl
xor dh, al
mov byte [esp + 0xd], ch
mov ah, 0xa
mov byte [esp + 0xe], dh
xor ah, al
lea edx, [esp + 0x90]
lea ecx, [esp + 9]
mov byte [esp + 0xc], ah
call fcn.004b8410
test al, al
je 0x4c2d4c
mov byte [esp + 8], 0x1d
mov al, 0x78
xor al, byte [esp + 8]
mov cl, 0x71
mov byte [esp + 9], al
mov dl, 0x68
mov al, byte [esp + 8]
mov ch, 0x72
mov dh, 0x24
mov byte [esp + 0x17], 0x77
xor cl, al
mov byte [esp + 0x10], 0
xor dl, al
mov byte [esp + 0xa], cl
xor ch, al
mov byte [esp + 0xb], dl
xor dh, al
mov byte [esp + 0xd], ch
mov ah, 0x5c
mov byte [esp + 0xe], dh
xor ah, al
mov byte [esp + 0x10], 0
mov al, byte [esp + 0x17]
lea ecx, [esp + 9]
xor al, byte [esp + 8]
lea edx, [ecx + 1]
mov byte [esp + 0xc], ah
mov byte [esp + 0xf], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c2d34
sub ecx, edx
lea eax, [esp + 9]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.004b7cc0
mov ecx, dword [esp + 0xa4]
cmp ecx, 0x10
jb 0x4c2d84
mov edx, dword [esp + 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2d7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2dcd
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0xf
mov byte [esp + 0x90], 0
cmp ecx, 0x10
jb 0x4c2ddd
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2dd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c2dd3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov ecx, 0x10
mov dword [esp + 0x80], 0
sub ecx, dword [0x4db0a8]
lea eax, [esp + 0x58]
cmp dword [esp + 0x68], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
cmovb ecx, dword [esp + 0x68]
cmp dword [esp + 0x6c], 0x10
push ecx
cmovae eax, dword [esp + 0x5c]
lea ecx, [esp + 0x74]
push eax
mov dword [esp + 0x8c], 0
call fcn.004b8710
mov ecx, 0x4db098
jmp 0x4c2e8e
cmp eax, 2
jne 0x4c2ecd
mov eax, dword [0x4db0d8]
cmp eax, 0x10
jae 0x4c2ecd
mov ecx, 0x10
mov dword [esp + 0x80], 0
sub ecx, eax
mov dword [esp + 0x84], 0
cmp edi, ecx
lea eax, [esp + 0x58]
xorps xmm0, xmm0
cmovb ecx, edi
movaps xmmword [esp + 0x70], xmm0
cmp dword [esp + 0x6c], 0x10
push ecx
cmovae eax, dword [esp + 0x5c]
lea ecx, [esp + 0x74]
push eax
call fcn.004b8710
mov ecx, 0x4db0c8
lea eax, [esp + 0x70]
push eax
call fcn.004b7530
mov ecx, dword [esp + 0x84]
cmp ecx, 0x10
jb 0x4c2ecd
mov edx, dword [esp + 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2ec3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2f37
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov eax, dword [esp + 0xc4]
cmp eax, 0x10
jb 0x4c2f0f
lea ecx, [eax + 1]
mov eax, dword [esp + 0xb0]
mov edx, eax
cmp ecx, 0x1000
jb 0x4c2f05
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [esp + 8], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4c2f37
mov eax, dword [esp + 8]
push ecx
push eax
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0x6c]
cmp ecx, 0x10
jb 0x4c2f47
mov edx, dword [esp + 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c2f3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c2f3d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cb06d
add esp, 8
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.004cadd9
mov esp, ebp
pop ebp
ret