Function at 0x4717d0
Capabilities:
Encode data using xor
Move file

Disassembly:
sub esp, 0x344
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call fcn.00472320
mov ebp, eax
push ebx
mov dword [esp + 0x50], ebp
call fcn.00472310
mov eax, dword [esp + 0x35c]
push ebx
push eax
mov dword [esp + 0x2c], ebx
call fcn.00462840
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x47190a
push ebx
push esi
call fcn.0046f050
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4718fb
mov ecx, dword [0x4a6a64]
push ebx
add ecx, edi
push ecx
push esi
call fcn.00462970
mov edx, dword [0x4a6a64]
add esp, 0xc
add edx, edi
cmp eax, edx
jne 0x4718fb
lea eax, [esp + 0x30]
push 0x16
push eax
push esi
call fcn.00462890
add esp, 0xc
cmp eax, 0x16
jne 0x4718fb
mov eax, dword [esp + 0x30]
xor edi, edi
cmp eax, 0x605444f
mov eax, dword [esp + 0x34]
jne 0x4718a3
cmp ax, bx
je 0x4718a3
mov dword [esp + 0x20], 1
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov bl, byte [esp + ecx + 0x30]
sub al, 0x5b
xor bl, al
mov byte [esp + ecx + 0x30], bl
inc ecx
cmp ecx, 0x16
jb 0x471885
mov edi, dword [esp + 0x34]
jmp 0x4718bb
mov cx, word [esp + 0x3a]
cmp cx, word [esp + 0x38]
jne 0x4718fb
cmp word [esp + 0x36], bx
jne 0x4718fb
cmp ax, bx
jne 0x4718fb
call fcn.00472360
mov ecx, dword [0x4a6a64]
mov edx, dword [esp + 0x3c]
mov ebx, eax
mov eax, dword [esp + 0x40]
push edi
push ebx
add ecx, eax
push edx
push ecx
push esi
mov dword [esp + 0x38], ebx
call fcn.0046f240
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [esp + 0x10], edi
je 0x4718f2
cmp edi, 0xffffffff
jne 0x471917
push ebx
call fcn.004723f0
add esp, 4
push esi
call fcn.004628f0
push ebp
call fcn.00472310
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret
push 1
push ebx
call fcn.00471f20
push esi
call fcn.004628f0
lea edx, [esp + 0x160]
push edx
push 0x49de68
push ebx
call fcn.00472520
add esp, 0x18
test eax, eax
je 0x471d68
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4719b5
mov ebp, dword [eax + 8]
lea eax, [esp + 0x154]
push eax
push ebx
call fcn.00472630
mov esi, eax
add esp, 8
test esi, esi
je 0x471996
test byte [esp + 0x20], 1
jne 0x47198c
mov ecx, dword [esi + 0x14]
push ecx
push ebx
call fcn.00472090
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
lea ebp, [ecx + ebp + 0x1e]
cmp dword [esi + 0x10], ebp
jne 0x4719b5
add ebp, dword [esi + 8]
jmp 0x47194d
push edi
call fcn.004629d0
push ebx
call fcn.004723f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret
mov ebp, dword [esp + 0x358]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__UPD__.TMP
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004717b0
push 0
push ebp
call fcn.00462840
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x471d53
lea ecx, [esp + 0x50]
push 0
push ecx
call fcn.00462910
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x471d2c
push 0x7d000
call fcn.004629a0
push 0
push ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], 0
call fcn.00471f20
lea edx, [esp + 0x160]
push edx
push 0x49de68
push ebx
call fcn.00472520
mov esi, eax
add esp, 0x18
test esi, esi
je 0x471b4f
mov eax, dword [esp + 0x20]
and eax, 1
mov dword [esp + 0x2c], eax
jmp 0x471a9c
mov eax, dword [esp + 0x2c]
mov ebp, dword [esi + 8]
mov edi, dword [esi + 0x10]
test eax, eax
jne 0x471ac8
mov eax, dword [esi + 0x14]
push eax
push ebx
call fcn.00472090
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov edi, dword [esi + 0x10]
not ecx
add ecx, 0x1d
add ebp, ecx
sub edi, ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push 0
push edi
push edx
mov dword [esi + 0x10], ecx
call fcn.00462970
add esp, 0xc
cmp eax, edi
jne 0x471b57
test ebp, ebp
jle 0x471b34
cmp ebp, 0x7d000
mov esi, ebp
jle 0x471af6
mov esi, 0x7d000
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
push esi
push eax
push ecx
call fcn.00462890
add esp, 0xc
cmp eax, esi
jne 0x471b57
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
push esi
push edx
push eax
call fcn.004628c0
add esp, 0xc
cmp eax, esi
jne 0x471b57
mov ecx, dword [esp + 0x1c]
sub ebp, esi
add ecx, esi
test ebp, ebp
mov dword [esp + 0x1c], ecx
jg 0x471ae7
lea ecx, [esp + 0x154]
push ecx
push ebx
call fcn.00472630
mov esi, eax
add esp, 8
test esi, esi
jne 0x471a98
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x471b68
push eax
call fcn.004629d0
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x471d14
push ebx
mov dword [esp + 0x18], 0
call fcn.004726e0
mov ebp, eax
add esp, 4
xor esi, esi
test ebp, ebp
jle 0x471c01
mov eax, dword [esp + 0x10]
test byte [esi + eax + 0x26], 0x10
jne 0x471be4
movsx edx, word [esi + eax + 0x1c]
lea edi, [esi + eax + 0x2e]
lea eax, [esi + eax + 0x1c]
mov dword [esp + 0x2c], eax
push edi
mov bl, byte [edx + edi]
lea eax, [edx + edi]
mov byte [eax], 0
mov eax, dword [esp + 0x28]
push eax
call fcn.00472680
add esp, 8
test eax, eax
je 0x471d10
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
dec ebp
mov dword [esi + edx + 0x2a], ecx
movsx ecx, word [eax]
mov eax, edx
mov byte [ecx + edi], bl
mov ebx, dword [esp + 0x24]
movsx edx, word [esi + eax + 0x20]
movsx ecx, word [esi + eax + 0x1e]
add edx, ecx
movsx ecx, word [esi + eax + 0x1c]
add ecx, esi
test ebp, ebp
lea esi, [ecx + edx + 0x2e]
jg 0x471b8d
jmp 0x471c05
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x20]
mov edx, dword [esp + 0x1c]
test cl, 1
mov dword [esp + 0x40], edx
jne 0x471c5b
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
push ecx
push eax
push esi
call fcn.004628c0
mov ecx, dword [esp + 0x48]
add esp, 0xc
cmp eax, ecx
jne 0x471d14
lea edx, [esp + 0x30]
push 0x16
push edx
push esi
call fcn.004628c0
add esp, 0xc
cmp eax, 0x16
jne 0x471d14
mov dword [esp + 0x14], 1
jmp 0x471d14
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push 4
push eax
push ecx
call fcn.004628c0
add esp, 0xc
cmp eax, 4
jne 0x471d14
mov edx, dword [esp + 0x3c]
add edx, 0x400
push edx
call fcn.004629a0
mov esi, eax
mov eax, dword [esp + 0x40]
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.00472820
mov ecx, dword [esp + 0x2c]
mov edi, eax
push edi
push esi
push ecx
call fcn.004628c0
add esp, 0x20
cmp eax, edi
je 0x471cbf
test esi, esi
je 0x471d14
push esi
call fcn.004629d0
add esp, 4
jmp 0x471d14
test esi, esi
je 0x471ccc
push esi
call fcn.004629d0
add esp, 4
mov dword [esp + 0x34], edi
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov dl, byte [esp + ecx + 0x30]
sub al, 0x5b
xor dl, al
mov byte [esp + ecx + 0x30], dl
inc ecx
cmp ecx, 0x16
jb 0x471cd5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push 0x16
push eax
push ecx
call fcn.004628c0
add esp, 0xc
cmp eax, 0x16
jne 0x471d14
mov dword [esp + 0x14], 1
jmp 0x471d14
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push edx
call fcn.004628f0
mov ebp, dword [esp + 0x35c]
mov esi, dword [esp + 0x2c]
add esp, 4
push esi
call fcn.004628f0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x471d53
push 1
lea eax, [esp + 0x54]
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
test eax, eax
jne 0x471d53
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004717b0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x50]
add esp, 4
push edi
call fcn.004629d0
push ebx
call fcn.004723f0
push ebp
call fcn.00472310
mov eax, dword [esp + 0x20]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret