Function at 0x4a35cd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
and eax, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 4
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0xff01
push edi
mov edi, dword [esi + 4]
and eax, 1
sar ebx, 0x10
test edi, edi
mov byte [ebp - 1], 0xff
mov dword [ebp - 0x2c], eax
jg 0x4a3613
xor eax, eax
jmp 0x4a3bf1
mov eax, dword [esi]
push 0x28
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
call fcn.004465ac
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
mov ax, word [eax]
xor ax, bx
mov word [ecx], ax
mov eax, dword [esi]
mov ax, word [eax + 2]
xor ax, bx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x10]
mov word [ecx + 2], ax
mov eax, dword [esi]
mov ax, word [eax + 4]
mov ecx, dword [ebp - 0x10]
xor ax, bx
cmp edi, 2
mov byte [ebp + 0xb], 0
mov word [ecx + 4], ax
jl 0x4a3677
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x4a3677
cmp byte [eax + 1], 0
jne 0x4a368d
push 2
push 0x4cd47c
push dword [ebp - 0x10]
call fcn.0043ff15
add esp, 0xc
test eax, eax
jne 0x4a369b
push edi
push dword [esi]
call fcn.0044462f
pop ecx
pop ecx
mov byte [ebp + 0xb], 1
mov eax, dword [ebp - 8]
cmp byte [eax], 0
je 0x4a36ad
cmp byte [eax + 1], 0
jne 0x4a36ad
mov byte [ebp + 0xb], 1
push 2
push 0x4cd478
push dword [ebp - 0x10]
call fcn.0043ff15
add esp, 0xc
test eax, eax
jne 0x4a36ce
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x1c], 2
or dword [ebp - 0x28], 0xffffffff
mov eax, edi
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
cmp byte [ebp + 0xb], cl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], 0xff000000
jne 0x4a3723
push 3
push 0x4cd480
push dword [ebp - 0x10]
call fcn.0043ff15
add esp, 0xc
test eax, eax
jne 0x4a38a9
mov dword [ebp - 0x18], 0xfde9
mov dword [ebp - 0x1c], 3
xor ecx, ecx
sub edi, dword [ebp - 0x1c]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x1c], ecx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [ebp - 0xc], eax
jle 0x4a3754
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi]
mov edx, edi
sub edx, ecx
add edx, 6
push edx
add ecx, eax
push ecx
push eax
call fcn.004147ef
add esp, 0xc
cmp byte [ebp + 0xb], 0
mov eax, dword [esi]
mov byte [edi + eax], bl
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
jne 0x4a3797
mov eax, dword [ebp - 0x44]
mov ecx, dword [esi]
mov dword [esi], eax
lea eax, [edi + edi*2 + 3]
mov dword [ebp - 0x44], ecx
push eax
mov ecx, esi
call fcn.0040fab2
movzx eax, bx
push eax
lea eax, [edi + edi]
push eax
push dword [esi]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x18]
mov edx, edi
call fcn.004a332f
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0xc]
lea eax, [edi + 9]
push eax
mov ecx, esi
call fcn.0040fab2
push 8
lea eax, [edi + edi + 0xe]
pop ecx
mov edx, dword [esi]
mov word [eax + edx], bx
dec eax
dec eax
dec ecx
jne 0x4a37ac
mov eax, dword [esi]
and word [eax + edi*2 + 0x10], 0
cmp dword [ebp + 0xc], 0x10
jge 0x4a3b37
mov edi, dword [esi]
or dword [ebp - 0x20], 0xffffffff
mov eax, edi
mov dx, word [eax]
xor dx, bx
cmp dx, 0x40
mov dword [ebp + 8], eax
mov ecx, eax
jne 0x4a37e5
lea ecx, [eax + 2]
mov dx, word [ecx]
xor dx, bx
cmp dx, 0x3a
jne 0x4a3817
mov cx, word [ecx + 2]
xor cx, bx
cmp cx, dx
jne 0x4a3817
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a1545
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a157e
mov eax, dword [ebp + 8]
add esp, 0x10
mov dx, word [eax]
xor dx, bx
cmp dx, 0x40
mov ecx, eax
jne 0x4a3828
lea ecx, [eax + 2]
mov dx, word [ecx]
xor dx, bx
cmp dx, 0x23
jne 0x4a385b
mov cx, word [ecx + 2]
xor cx, bx
cmp cx, 0x21
jne 0x4a385b
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a1545
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a157e
mov eax, dword [ebp + 8]
add esp, 0x10
mov cx, word [eax]
xor cx, bx
cmp cx, 0x40
mov edx, eax
mov dword [ebp - 0x2c], edx
jne 0x4a3872
lea edx, [eax + 2]
mov dword [ebp - 0x2c], edx
mov ax, word [edx]
xor ax, bx
cmp ax, 0x23
jne 0x4a3b37
mov ecx, dword [ebp - 0xc]
mov eax, edx
sub eax, edi
sar eax, 1
sub ecx, eax
cmp ecx, 0x20
jle 0x4a3895
push 0x20
pop ecx
and dword [ebp + 8], 0
test ecx, ecx
mov edi, dword [ebp - 0x10]
jle 0x4a3ad1
jmp 0x4a3ab9
cmp dword [ebp - 0x2c], 0
je 0x4a39f4
mov ecx, dword [ebp - 8]
cmp byte [ecx], 0x40
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
jne 0x4a38c2
inc ecx
cmp byte [ecx], 0x3a
jne 0x4a38e7
cmp byte [ecx + 1], 0x3a
jne 0x4a38e7
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a14ef
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a1521
mov eax, dword [ebp + 8]
add esp, 0x10
mov cl, byte [eax]
xor cl, bl
cmp cl, 0x40
jne 0x4a38f4
inc eax
mov dword [ebp + 8], eax
movsx edx, byte [eax]
movzx ecx, bx
xor edx, ecx
cmp edx, 0x23
jne 0x4a3926
movsx edx, byte [eax + 1]
xor edx, ecx
cmp edx, 0x21
jne 0x4a3926
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a14ef
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004a1521
mov eax, dword [ebp + 8]
add esp, 0x10
mov dl, byte [eax]
mov ecx, dword [ebp - 8]
xor dl, bl
cmp dl, 0x40
jne 0x4a3936
inc eax
mov dword [ebp + 8], eax
mov dl, byte [eax]
xor dl, bl
cmp dl, 0x23
jne 0x4a39f7
mov edx, dword [ebp - 0x30]
sub edx, eax
cmp edx, 0x20
jle 0x4a3950
push 0x20
pop edx
test edx, edx
jle 0x4a3967
sub eax, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov dl, byte [eax + ecx]
xor dl, bl
mov byte [ecx], dl
inc ecx
dec dword [ebp - 0x1c]
jne 0x4a395a
push 6
push 0x4c78b0
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x4a39f4
mov ecx, dword [ebp + 8]
or dword [ebp - 0x1c], 0xffffffff
or byte [ebp + 0xd], 2
mov al, bl
xor al, 0x2d
mov byte [ecx + 1], al
mov eax, dword [ebp - 8]
push 0xffffffffffffffff
add eax, 6
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 1], 1
call fcn.00450621
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004429d6
mov eax, dword [ebp - 0x1c]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
jl 0x4a39c4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ax, word [eax]
or ax, 0x20
cmp ax, 0x74
jne 0x4a39e7
add dword [ebp + 8], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004429d6
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0043fe25
jmp 0x4a3764
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov edx, eax
sub edx, dword [ebp - 0x20]
add edi, edx
cmp edi, 4
jl 0x4a3a2e
cmp byte [ecx], 0
jne 0x4a3a1e
cmp byte [ecx + 1], 0
je 0x4a3a2e
push edi
push eax
call fcn.0044462f
pop ecx
pop ecx
jmp 0x4a3797
cmp byte [ecx + 1], 0
jne 0x4a3a2e
cmp byte [ecx + 2], 0
jne 0x4a3797
lea eax, [edi + edi*2 + 3]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040fab2
movzx eax, bx
or eax, 0x1000000
push eax
lea eax, [edi + edi*2]
push eax
push dword [ebp - 0x14]
mov eax, dword [esi]
push 0
mov edx, edi
call fcn.004a332f
add esp, 0x10
test eax, eax
mov dword [ebp - 0xc], eax
jg 0x4a3a9c
mov eax, dword [ebp - 0x34]
neg eax
sbb eax, eax
and eax, 0x40000
movzx ecx, bx
or eax, ecx
push eax
lea eax, [edi + edi*2]
push eax
push dword [ebp - 0x14]
mov eax, dword [esi]
push 0xfde9
mov edx, edi
call fcn.004a332f
add esp, 0x10
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x4a3764
mov dword [ebp - 0x18], 0xfde9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
and word [eax + ecx*2], 0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
mov dword [ebp - 0x14], eax
jmp 0x4a3797
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
add eax, eax
mov dx, word [eax + edx]
xor dx, bx
inc dword [ebp + 8]
cmp dword [ebp + 8], ecx
mov word [eax + edi], dx
jl 0x4a3ab6
mov eax, dword [ebp + 8]
and word [edi + eax*2], 0
push 6
push str.code
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4a3b37
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
add edi, 0xc
push eax
mov dword [ebp + 8], edi
call fcn.004429d6
mov eax, dword [ebp - 0x20]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
jl 0x4a3b0d
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax]
mov ecx, eax
or ecx, 0x20
cmp cx, 0x74
je 0x4a3b24
cmp ax, 0x2a
jne 0x4a3b37
add dword [ebp + 8], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004429d6
pop ecx
pop ecx
mov edi, 0x1000
cmp dword [ebp + 0xc], edi
jge 0x4a3b97
cmp dword [ebp - 0x24], 0
jle 0x4a3b97
movzx eax, word [0x4e6018]
cmp dword [ebp - 0x24], eax
jne 0x4a3b97
cmp dword [ebp - 0x28], eax
je 0x4a3b97
mov eax, dword [esi]
and dword [esi], 0
movzx ecx, bx
push ecx
xor ecx, ecx
cmp dword [ebp - 0x24], 0x3b6
mov dword [ebp + 8], eax
sete cl
push ecx
push esi
push eax
call fcn.00454d11
mov eax, dword [esi]
push ebx
push eax
call fcn.00412f88
or dword [ebp + 0xc], edi
add esp, 0x18
lea ecx, [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.0043fe25
jmp 0x4a3797
cmp byte [ebp - 1], 0
jl 0x4a3baa
movsx eax, byte [ebp - 1]
mov ecx, dword [esi]
xor ebx, 0x63
mov word [ecx + eax*2], bx
mov eax, dword [ebp - 0xc]
add eax, eax
cmp dword [ebp - 0x38], 0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
je 0x4a3bd6
push dword [ebp - 0x10]
call fcn.0043fdd1
push dword [ebp - 0x14]
call fcn.0043fdd1
push dword [ebp - 0x44]
call fcn.0043fdd1
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.0043fe25
lea ecx, [ebp - 0x14]
call fcn.0043fe25
lea ecx, [ebp - 0x10]
call fcn.0043fe25
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret