Function at 0x4a7430
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4ecbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, dword [esi + 4]
mov ecx, eax
mov ebx, eax
and ecx, 2
and eax, 1
sar ebx, 0x10
test ebp, ebp
mov byte [esp + 0xf], 0xff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x58], eax
jg 0x4a7488
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
push edi
mov edi, dword [esi]
push 0x28
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], edi
call fcn.004494b0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov dx, word [eax]
xor dx, bx
mov word [ecx], dx
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov cx, word [eax + 2]
xor cx, bx
mov word [edx + 2], cx
mov eax, dword [esi]
mov cx, word [eax + 4]
mov edx, dword [esp + 0x14]
xor cx, bx
push 2
mov word [edx + 4], cx
mov eax, dword [esp + 0x18]
push 0x4f7ae0
push eax
mov dword [esp + 0x5c], 0
call fcn.004438e0
mov ecx, dword [esp + 0x20]
neg eax
push 2
sbb al, al
inc al
push 0x4f7ae4
push ecx
mov byte [esp + 0x70], al
call fcn.004438e0
add esp, 0x18
test eax, eax
jne 0x4a7524
mov edx, dword [esi]
push ebp
push edx
call fcn.00447900
add esp, 8
mov byte [esp + 0x58], 1
mov eax, ebp
cdq
sub eax, edx
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], 0
sar edi, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov al, byte [esp + 0x58]
test al, al
mov byte [esp + 0x50], 2
mov dword [esp + 0x28], 0xff000000
mov dword [esp + 0x2c], 0xffffffff
je 0x4a756b
mov ecx, 2
jmp 0x4a7594
mov eax, dword [esp + 0x14]
push 3
push 0x4f7ae8
push eax
call fcn.004438e0
add esp, 0xc
test eax, eax
jne 0x4a7746
mov dword [esp + 0x20], 0xfde9
mov ecx, 3
sub ebp, ecx
mov eax, ebp
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esi]
lea edx, [ebp + 6]
push edx
add ecx, eax
push ecx
push eax
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
sar edi, 1
call fcn.004b3b10
mov edx, dword [esi]
mov byte [edx + ebp], bl
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x64]
add esp, 0xc
test al, al
jne 0x4a7603
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
mov dword [esi], eax
lea eax, [ebp + ebp*2 + 3]
push eax
mov ecx, esi
mov dword [esp + 0x40], edx
call fcn.004494e0
mov eax, dword [esi]
movzx ecx, bx
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [ebp + ebp]
push edx
mov edx, dword [esp + 0x28]
push eax
push ebp
push ecx
push edx
call fcn.004a36e0
add esp, 0x18
mov edi, eax
lea eax, [edi + 9]
push eax
mov ecx, esi
call fcn.004494e0
mov ecx, dword [esi]
mov word [ecx + edi*2 + 0xe], bx
mov edx, dword [esi]
mov word [edx + edi*2 + 0xc], bx
mov eax, dword [esi]
mov word [eax + edi*2 + 0xa], bx
mov ecx, dword [esi]
mov word [ecx + edi*2 + 8], bx
mov edx, dword [esi]
mov word [edx + edi*2 + 6], bx
mov eax, dword [esi]
mov word [eax + edi*2 + 4], bx
mov ecx, dword [esi]
mov word [ecx + edi*2 + 2], bx
mov edx, dword [esi]
mov word [edx + edi*2], bx
mov eax, dword [esi]
mov word [eax + edi*2 + 0x10], 0
cmp dword [esp + 0x5c], 0x10
jge 0x4a7a3a
mov ebp, dword [esi]
mov eax, ebp
mov dword [esp + 0x34], 0xffffffff
mov dx, word [eax]
xor dx, bx
cmp dx, 0x40
mov dword [esp + 0x58], eax
mov ecx, eax
jne 0x4a767a
lea ecx, [eax + 2]
mov dx, word [ecx]
xor dx, bx
cmp dx, 0x3a
jne 0x4a76af
mov cx, word [ecx + 2]
xor cx, bx
cmp cx, dx
jne 0x4a76af
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.004a4990
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.004a49d0
mov eax, dword [esp + 0x68]
add esp, 0x10
mov dx, word [eax]
xor dx, bx
cmp dx, 0x40
mov ecx, eax
jne 0x4a76c0
lea ecx, [eax + 2]
mov dx, word [ecx]
xor dx, bx
cmp dx, 0x23
jne 0x4a76f6
mov cx, word [ecx + 2]
xor cx, bx
cmp cx, 0x21
jne 0x4a76f6
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.004a4990
lea eax, [esp + 0x60]
push ebx
push eax
call fcn.004a49d0
mov eax, dword [esp + 0x68]
add esp, 0x10
mov cx, word [eax]
xor cx, bx
cmp cx, 0x40
mov edx, eax
mov dword [esp + 0x58], edx
jne 0x4a770f
lea edx, [eax + 2]
mov dword [esp + 0x58], edx
mov ax, word [edx]
xor ax, bx
cmp ax, 0x23
jne 0x4a7a3a
mov eax, edx
sub eax, ebp
sar eax, 1
mov ecx, edi
sub ecx, eax
cmp ecx, 0x20
jle 0x4a7733
mov ecx, 0x20
mov ebp, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x4a79c1
jmp 0x4a79b0
mov eax, dword [esp + 0x5c]
test eax, eax
mov eax, dword [esp + 0x18]
je 0x4a78e6
cmp byte [eax], 0x40
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
jne 0x4a7764
inc eax
cmp byte [eax], 0x3a
jne 0x4a778c
cmp byte [eax + 1], 0x3a
jne 0x4a778c
lea ecx, [esp + 0x58]
push ebx
push ecx
call fcn.004a4910
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.004a4960
mov ecx, dword [esp + 0x68]
add esp, 0x10
mov al, byte [ecx]
xor al, bl
cmp al, 0x40
jne 0x4a7799
inc ecx
mov dword [esp + 0x58], ecx
movsx edx, byte [ecx]
movzx eax, bx
xor edx, eax
cmp edx, 0x23
jne 0x4a77ce
movsx edx, byte [ecx + 1]
xor edx, eax
cmp edx, 0x21
jne 0x4a77ce
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.004a4910
lea ecx, [esp + 0x60]
push ebx
push ecx
call fcn.004a4960
mov ecx, dword [esp + 0x68]
add esp, 0x10
mov dl, byte [ecx]
mov eax, dword [esp + 0x18]
xor dl, bl
cmp dl, 0x40
jne 0x4a77e0
inc ecx
mov dword [esp + 0x58], ecx
mov dl, byte [ecx]
xor dl, bl
cmp dl, 0x23
jne 0x4a78e6
mov edx, dword [esp + 0x34]
sub edx, ecx
cmp edx, 0x20
jle 0x4a77fd
mov edx, 0x20
test edx, edx
jle 0x4a7827
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x30], edx
lea esp, [esp]
mov dl, byte [ecx + eax]
xor dl, bl
mov byte [eax], dl
mov edx, dword [esp + 0x30]
inc eax
dec edx
mov dword [esp + 0x30], edx
jne 0x4a7810
mov eax, dword [esp + 0x18]
push 6
push 0x4f43f0
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x4a78e2
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov al, bl
xor al, 0x2d
mov dword [esp + 0x30], 0xffffffff
push 0xffffffffffffffff
add edx, 6
mov byte [ecx + 1], al
or edi, 0x200
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], edi
mov byte [esp + 0x1b], 1
call fcn.004565c0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x58], 3
mov dword [esp + 0x60], eax
call fcn.0044ce90
mov eax, dword [esp + 0x38]
add esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
jl 0x4a78a5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov cx, word [eax]
or cx, 0x20
cmp cx, 0x74
jne 0x4a78cf
add eax, 2
lea edx, [esp + 0x28]
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0044ce90
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 2
call fcn.00443880
jmp 0x4a75ca
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov edx, ecx
sub edx, dword [esp + 0x24]
add ebp, edx
cmp ebp, 4
jl 0x4a7922
cmp byte [eax], 0
jne 0x4a7910
mov dl, byte [eax + 1]
test dl, dl
je 0x4a7922
push ebp
push ecx
call fcn.00447900
add esp, 8
jmp 0x4a7603
mov cl, byte [eax + 1]
test cl, cl
jne 0x4a7922
mov cl, byte [eax + 2]
test cl, cl
jne 0x4a7603
lea eax, [ebp + ebp*2 + 3]
push eax
lea ecx, [esp + 0x20]
call fcn.004494e0
mov edx, dword [esi]
movzx eax, bx
or eax, 0x1000000
push eax
lea ecx, [ebp + ebp]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push ebp
push edx
push 0
call fcn.004a36e0
mov edi, eax
add esp, 0x18
test edi, edi
jg 0x4a7988
mov ecx, dword [esi]
movzx eax, bx
push eax
lea eax, [ebp + ebp]
push eax
mov eax, dword [esp + 0x24]
push eax
push ebp
push ecx
push 0xfde9
call fcn.004a36e0
mov edi, eax
add esp, 0x18
test edi, edi
jle 0x4a75ca
mov dword [esp + 0x20], 0xfde9
mov edx, dword [esp + 0x1c]
mov word [edx + edi*2], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [esp + 0x1c], eax
jmp 0x4a7603
mov edx, dword [esp + 0x58]
jmp 0x4a79b0
mov dx, word [edx + eax*2]
xor dx, bx
mov word [ebp + eax*2], dx
inc eax
cmp eax, ecx
jl 0x4a79a3
push 6
push str.code
push ebp
mov word [ebp + eax*2], 0
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4a7a3a
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
add ebp, 0xc
push ecx
mov dword [esp + 0x60], ebp
call fcn.0044ce90
mov eax, dword [esp + 0x3c]
add esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
jl 0x4a7a03
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x58]
xor eax, eax
mov ax, word [edx]
mov ecx, eax
or ecx, 0x20
cmp cx, 0x74
je 0x4a7a1d
cmp ax, 0x2a
jne 0x4a7a3a
mov eax, dword [esp + 0x58]
add eax, 2
lea edx, [esp + 0x28]
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0044ce90
add esp, 8
cmp dword [esp + 0x5c], 0x1000
jge 0x4a7ab3
mov ebp, dword [esp + 0x28]
test ebp, ebp
jle 0x4a7ab3
movzx eax, word [0x522010]
cmp ebp, eax
jne 0x4a7ab3
cmp dword [esp + 0x2c], eax
je 0x4a7ab3
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esi], 0
xor edx, edx
cmp ebp, 0x3b6
sete dl
movzx ecx, bx
push ecx
mov byte [esp + 0x54], 4
push edx
push esi
push eax
call fcn.0044e590
mov eax, dword [esi]
push ebx
push eax
call fcn.004217de
mov edi, eax
mov eax, dword [esp + 0x74]
or eax, 0x1000
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x50], 2
call fcn.00443880
jmp 0x4a7603
mov al, byte [esp + 0x13]
test al, al
jl 0x4a7ac7
mov ecx, dword [esi]
movsx eax, al
xor ebx, 0x63
mov word [ecx + eax*2], bx
mov eax, dword [esp + 0x38]
add edi, edi
test eax, eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
pop edi
je 0x4a7af9
mov edx, dword [esp + 0x10]
push edx
call fcn.00443810
mov eax, dword [esp + 0x1c]
push eax
call fcn.00443810
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00443810
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 1
call fcn.00443880
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0
call fcn.00443880
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00443880
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret