Function at 0x472a56
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
and eax, 2
sar ebx, 0x10
test edi, edi
mov byte [ebp - 1], 0xff
mov dword [ebp - 0x34], eax
mov dword [ebp + 8], ebx
jg 0x472a8a
xor eax, eax
jmp 0x47302e
mov eax, dword [esi]
push 0x28
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
call fcn.00433c42
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
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 - 0x18], ecx
mov ecx, dword [ebp - 0xc]
mov word [ecx + 2], ax
mov eax, dword [esi]
mov ax, word [eax + 4]
mov ecx, dword [ebp - 0xc]
push 2
xor ax, bx
mov word [ecx + 4], ax
push 0x4940a8
push dword [ebp - 0xc]
call fcn.0042ebfe
mov ebx, eax
push 2
neg ebx
push 0x4940ac
push dword [ebp - 0xc]
sbb bl, bl
inc bl
call fcn.0042ebfe
add esp, 0x18
test eax, eax
jne 0x472b0c
push edi
push dword [esi]
call fcn.004324de
pop ecx
pop ecx
mov bl, 1
or dword [ebp - 0x28], 0xffffffff
mov eax, edi
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
test bl, bl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], 0xff000000
je 0x472b3a
push 2
jmp 0x472b5d
push 3
push 0x4940b0
push dword [ebp - 0xc]
call fcn.0042ebfe
add esp, 0xc
test eax, eax
jne 0x472ce0
mov dword [ebp - 0x1c], 0xfde9
push 3
pop ecx
sub edi, ecx
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov eax, dword [esi]
lea edx, [edi + 6]
push edx
add ecx, eax
push ecx
push eax
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.0047b870
mov eax, dword [esi]
mov cl, byte [ebp + 8]
mov byte [edi + eax], cl
mov eax, dword [esi]
add esp, 0xc
test bl, bl
mov dword [ebp - 0x20], eax
jne 0x472bc6
mov eax, dword [ebp - 0x40]
mov ecx, dword [esi]
mov dword [esi], eax
lea eax, [edi + edi*2 + 3]
mov dword [ebp - 0x40], ecx
push eax
mov ecx, esi
call fcn.00433c6b
movzx eax, word [ebp + 8]
push eax
lea eax, [edi + edi]
push eax
push dword [esi]
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0046ffe7
add esp, 0x18
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 9
push eax
mov ecx, esi
call fcn.00433c6b
mov ecx, dword [ebp - 8]
push 8
lea eax, [ecx + ecx + 0xe]
pop edx
mov edi, dword [esi]
mov bx, word [ebp + 8]
mov word [eax + edi], bx
dec eax
dec eax
dec edx
jne 0x472bde
mov eax, dword [esi]
and word [eax + ecx*2 + 0x10], 0
cmp dword [ebp + 0xc], 0x10
mov ebx, dword [ebp + 8]
jge 0x472f74
mov edi, dword [esi]
or dword [ebp - 0x2c], 0xffffffff
mov eax, edi
mov dx, word [eax]
xor dx, bx
cmp dx, 0x40
mov dword [ebp - 0x18], eax
mov ecx, eax
jne 0x472c1e
lea ecx, [eax + 2]
mov dx, word [ecx]
xor dx, bx
cmp dx, 0x3a
jne 0x472c50
mov cx, word [ecx + 2]
xor cx, bx
cmp cx, dx
jne 0x472c50
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00470e3f
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00470e78
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov dx, word [eax]
xor dx, bx
cmp dx, 0x40
mov ecx, eax
jne 0x472c61
lea ecx, [eax + 2]
mov dx, word [ecx]
xor dx, bx
cmp dx, 0x23
jne 0x472c94
mov cx, word [ecx + 2]
xor cx, bx
cmp cx, 0x21
jne 0x472c94
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00470e3f
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00470e78
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov cx, word [eax]
xor cx, bx
cmp cx, 0x40
mov edx, eax
mov dword [ebp - 0x30], edx
jne 0x472cab
lea edx, [eax + 2]
mov dword [ebp - 0x30], edx
mov ax, word [edx]
xor ax, bx
cmp ax, 0x23
jne 0x472f74
mov eax, dword [ebp - 8]
mov ecx, edx
sub ecx, edi
sar ecx, 1
sub eax, ecx
cmp eax, 0x20
jle 0x472cce
push 0x20
pop eax
mov edi, dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
jle 0x472f11
jmp 0x472efd
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x18]
je 0x472e4d
cmp byte [eax], 0x40
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov ecx, eax
jne 0x472cfd
lea ecx, [eax + 1]
cmp byte [ecx], 0x3a
jne 0x472d29
cmp byte [ecx + 1], 0x3a
jne 0x472d29
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00470de9
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00470e1b
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov cl, byte [ebx]
xor cl, byte [ebp + 8]
cmp cl, 0x40
jne 0x472d37
inc ebx
mov dword [ebp - 0x14], ebx
movzx ecx, word [ebp + 8]
movsx edx, byte [ebx]
xor edx, ecx
cmp edx, 0x23
jne 0x472d71
movsx edx, byte [ebx + 1]
xor edx, ecx
cmp edx, 0x21
jne 0x472d71
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00470de9
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00470e1b
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov cl, byte [ebx]
xor cl, byte [ebp + 8]
cmp cl, 0x40
jne 0x472d7c
inc ebx
mov cl, byte [ebx]
xor cl, byte [ebp + 8]
cmp cl, 0x23
jne 0x472e4d
mov ecx, dword [ebp - 0x30]
sub ecx, ebx
cmp ecx, 0x20
mov dword [ebp - 0x2c], ecx
jle 0x472d9d
push 0x20
pop ecx
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jle 0x472dc1
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax]
xor cl, byte [ebp + 8]
mov byte [eax], cl
inc eax
dec dword [ebp - 0x2c]
jne 0x472dad
mov eax, dword [ebp - 0x18]
push 6
push 0x4906ac
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x472e4a
mov al, byte [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
or byte [ebp + 0xd], 2
xor al, 0x2d
mov byte [ebx + 1], al
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
add eax, 6
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 1], 1
call fcn.0043ddff
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004369c5
mov eax, dword [ebp - 0x2c]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
jl 0x472e1a
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov ax, word [eax]
or ax, 0x20
cmp ax, 0x74
jne 0x472e3d
add dword [ebp - 0x14], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004369c5
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0042eb98
jmp 0x472b93
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
mov edx, ecx
sub edx, dword [ebp - 0x20]
add edi, edx
cmp edi, 4
jl 0x472e84
cmp byte [eax], 0
jne 0x472e74
cmp byte [eax + 1], 0
je 0x472e84
push edi
push ecx
call fcn.004324de
pop ecx
pop ecx
jmp 0x472bc6
cmp byte [eax + 1], 0
jne 0x472e84
cmp byte [eax + 2], 0
jne 0x472bc6
lea eax, [edi + edi*2 + 3]
push eax
lea ecx, [ebp - 0x10]
call fcn.00433c6b
movzx ebx, word [ebp + 8]
mov ecx, ebx
or ecx, 0x1000000
push ecx
lea eax, [edi + edi]
push eax
push dword [ebp - 0x10]
push edi
push dword [esi]
push 0
call fcn.0046ffe7
add esp, 0x18
test eax, eax
mov dword [ebp - 8], eax
jg 0x472ee0
push ebx
lea eax, [edi + edi]
push eax
push dword [ebp - 0x10]
mov ebx, 0xfde9
push edi
push dword [esi]
push ebx
call fcn.0046ffe7
add esp, 0x18
test eax, eax
mov dword [ebp - 8], eax
jle 0x472b93
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
and word [eax + ecx*2], 0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
mov dword [esi], ecx
mov dword [ebp - 0x10], eax
jmp 0x472bc6
mov edx, dword [ebp - 0x30]
mov dx, word [edx + ecx*2]
xor dx, word [ebp + 8]
mov word [edi + ecx*2], dx
inc ecx
cmp ecx, eax
jl 0x472efa
mov ebx, dword [ebp + 8]
and word [edi + ecx*2], 0
push 6
push str.code
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x472f74
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
add edi, 0xc
push eax
mov dword [ebp - 0x20], edi
call fcn.004369c5
mov eax, dword [ebp - 0x2c]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
jl 0x472f4a
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov ecx, eax
or ecx, 0x20
cmp cx, 0x74
je 0x472f61
cmp ax, 0x2a
jne 0x472f74
add dword [ebp - 0x20], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004369c5
pop ecx
pop ecx
mov edi, 0x1000
cmp dword [ebp + 0xc], edi
jge 0x472fd4
cmp dword [ebp - 0x24], 0
jle 0x472fd4
movzx eax, word [0x4aa010]
cmp dword [ebp - 0x24], eax
jne 0x472fd4
cmp dword [ebp - 0x28], eax
je 0x472fd4
mov eax, dword [esi]
and dword [esi], 0
movzx ecx, bx
push ecx
xor ecx, ecx
cmp dword [ebp - 0x24], 0x3b6
mov dword [ebp - 0x30], eax
sete cl
push ecx
push esi
push eax
call fcn.00437b6f
mov eax, dword [esi]
push ebx
push eax
call fcn.0040e34f
or dword [ebp + 0xc], edi
add esp, 0x18
lea ecx, [ebp - 0x30]
mov dword [ebp - 8], eax
call fcn.0042eb98
jmp 0x472bc6
cmp byte [ebp - 1], 0
jl 0x472fe7
movsx eax, byte [ebp - 1]
mov ecx, dword [esi]
xor ebx, 0x63
mov word [ecx + eax*2], bx
mov eax, dword [ebp - 8]
add eax, eax
cmp dword [ebp - 0x34], 0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
je 0x473013
push dword [ebp - 0xc]
call fcn.0042eb6a
push dword [ebp - 0x10]
call fcn.0042eb6a
push dword [ebp - 0x40]
call fcn.0042eb6a
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0042eb98
lea ecx, [ebp - 0x10]
call fcn.0042eb98
lea ecx, [ebp - 0xc]
call fcn.0042eb98
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret