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

Disassembly:
sub esp, 0x340
mov eax, dword [esp + 0x344]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ebp
call fcn.00451030
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x454c93
push ebp
push esi
call fcn.004521c0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x454c8a
mov ecx, dword [0x4cce28]
push ebp
add ecx, edi
push ecx
push esi
call fcn.00451230
mov edx, dword [0x4cce28]
add esp, 0xc
add edx, edi
cmp eax, edx
jne 0x454c8a
lea eax, [esp + 0x2c]
push 0x16
push eax
push esi
call fcn.00451080
add esp, 0xc
cmp eax, 0x16
jne 0x454c8a
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, 0x605444f
mov eax, dword [esp + 0x30]
jne 0x454c32
cmp ax, bp
je 0x454c32
mov dword [esp + 0x20], 1
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov bl, byte [esp + ecx + 0x2c]
sub al, 0x5b
xor bl, al
mov byte [esp + ecx + 0x2c], bl
inc ecx
cmp ecx, 0x16
jb 0x454c14
mov edi, dword [esp + 0x30]
jmp 0x454c4a
mov cx, word [esp + 0x36]
cmp cx, word [esp + 0x34]
jne 0x454c8a
cmp word [esp + 0x32], bp
jne 0x454c8a
cmp ax, bp
jne 0x454c8a
call fcn.00455640
mov ecx, dword [0x4cce28]
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x3c]
push edi
push ebx
add ecx, eax
push edx
push ecx
push esi
mov dword [esp + 0x5c], ebx
call fcn.004523b0
mov edi, eax
add esp, 0x14
cmp edi, ebp
mov dword [esp + 0x10], edi
je 0x454c81
cmp edi, 0xffffffff
jne 0x454ca0
push ebx
call fcn.004556d0
add esp, 4
push esi
call fcn.004510e0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x340
ret
push 1
push ebx
call fcn.00455230
push esi
call fcn.004510e0
lea edx, [esp + 0x15c]
push edx
push 0x4c56b8
push ebx
call fcn.004557f0
add esp, 0x18
cmp eax, ebp
je 0x4550ec
cmp dword [eax + 0x10], ebp
jne 0x454d3c
mov ebp, dword [eax + 8]
lea eax, [esp + 0x150]
push eax
push ebx
call fcn.00455900
mov esi, eax
add esp, 8
test esi, esi
je 0x454d1d
test byte [esp + 0x20], 1
jne 0x454d13
mov ecx, dword [esi + 0x14]
push ecx
push ebx
call fcn.00455390
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 0x454d3c
add ebp, dword [esi + 8]
jmp 0x454cd4
push edi
call fcn.00451530
push ebx
call fcn.004556d0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret
mov ebp, dword [esp + 0x354]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4c]
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 + 0x4c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00454b50
push 0
push ebp
call fcn.00451030
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [esp + 0x44], esi
je 0x4550db
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.00451140
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x4550b4
push 0x7d000
call fcn.00451500
push 0
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 0
call fcn.00455230
lea edx, [esp + 0x15c]
push edx
push 0x4c56b8
push ebx
call fcn.004557f0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x454ed6
mov eax, dword [esp + 0x20]
and eax, 1
mov dword [esp + 0x28], eax
jmp 0x454e23
mov eax, dword [esp + 0x28]
mov ebp, dword [esi + 8]
mov edi, dword [esi + 0x10]
test eax, eax
jne 0x454e4f
mov eax, dword [esi + 0x14]
push eax
push ebx
call fcn.00455390
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 + 0x44]
mov ecx, dword [esp + 0x1c]
push 0
push edi
push edx
mov dword [esi + 0x10], ecx
call fcn.00451230
add esp, 0xc
cmp eax, edi
jne 0x454ede
test ebp, ebp
jle 0x454ebb
cmp ebp, 0x7d000
mov esi, ebp
jle 0x454e7d
mov esi, 0x7d000
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
push esi
push eax
push ecx
call fcn.00451080
add esp, 0xc
cmp eax, esi
jne 0x454ede
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push esi
push edx
push eax
call fcn.004510b0
add esp, 0xc
cmp eax, esi
jne 0x454ede
mov ecx, dword [esp + 0x1c]
sub ebp, esi
add ecx, esi
test ebp, ebp
mov dword [esp + 0x1c], ecx
jg 0x454e6e
lea ecx, [esp + 0x150]
push ecx
push ebx
call fcn.00455900
mov esi, eax
add esp, 8
test esi, esi
jne 0x454e1f
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x454eef
push eax
call fcn.00451530
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45509c
push ebx
mov dword [esp + 0x18], 0
call fcn.00455a50
mov ebp, eax
add esp, 4
xor esi, esi
test ebp, ebp
jle 0x454f89
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + eax + 0x18]
test ecx, ecx
je 0x454f6c
movsx edx, word [esi + eax + 0x1c]
lea edi, [esi + eax + 0x2e]
lea eax, [esi + eax + 0x1c]
mov dword [esp + 0x28], eax
push edi
mov bl, byte [edx + edi]
lea eax, [edx + edi]
mov byte [eax], 0
mov eax, dword [esp + 0x4c]
push eax
call fcn.004559f0
add esp, 8
test eax, eax
je 0x455098
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
dec ebp
mov dword [esi + edx + 0x2a], ecx
movsx ecx, word [eax]
mov eax, edx
mov byte [ecx + edi], bl
mov ebx, dword [esp + 0x48]
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 0x454f14
jmp 0x454f8d
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x20]
mov edx, dword [esp + 0x1c]
test cl, 1
mov dword [esp + 0x3c], edx
jne 0x454fe3
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
push ecx
push eax
push esi
call fcn.004510b0
mov ecx, dword [esp + 0x44]
add esp, 0xc
cmp eax, ecx
jne 0x45509c
lea edx, [esp + 0x2c]
push 0x16
push edx
push esi
call fcn.004510b0
add esp, 0xc
cmp eax, 0x16
jne 0x45509c
mov dword [esp + 0x14], 1
jmp 0x45509c
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push 4
push eax
push ecx
call fcn.004510b0
add esp, 0xc
cmp eax, 4
jne 0x45509c
mov edx, dword [esp + 0x38]
add edx, 0x400
push edx
call fcn.00451500
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.0045cb60
mov ecx, dword [esp + 0x2c]
mov edi, eax
push edi
push esi
push ecx
call fcn.004510b0
add esp, 0x20
cmp eax, edi
je 0x455047
test esi, esi
je 0x45509c
push esi
call fcn.00451530
add esp, 4
jmp 0x45509c
test esi, esi
je 0x455054
push esi
call fcn.00451530
add esp, 4
mov dword [esp + 0x30], edi
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov dl, byte [esp + ecx + 0x2c]
sub al, 0x5b
xor dl, al
mov byte [esp + ecx + 0x2c], dl
inc ecx
cmp ecx, 0x16
jb 0x45505d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push 0x16
push eax
push ecx
call fcn.004510b0
add esp, 0xc
cmp eax, 0x16
jne 0x45509c
mov dword [esp + 0x14], 1
jmp 0x45509c
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
push edx
call fcn.004510e0
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x358]
add esp, 4
push esi
call fcn.004510e0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4550db
push 1
lea eax, [esp + 0x50]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4550db
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00454b50
mov edi, dword [esp + 0x14]
add esp, 4
push edi
call fcn.00451530
push ebx
call fcn.004556d0
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret