Function at 0x405380
Capabilities:
Copy file
Create directory
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4fc
movaps xmm0, xmmword [0x43ba80]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x50], 0
push edi
mov dword [ebp - 0x4c], 0
xor ecx, ecx
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x485f4943
mov dword [ebp - 0x18], 0x14485f4c
mov dword [ebp - 0x14], 0x4a555249
mov byte [ebp - 0x10], 0
nop dword [eax]
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x1b
jb 0x4053d0
lea eax, [ebp - 0x2b]
xor ebx, ebx
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0xc]
mov eax, dword [edi]
lea ecx, [ebp - 0x50]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00406a70
inc ebx
lea edi, [edi + 4]
cmp ebx, 1
jne 0x4053e8
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x44], 0
mov ah, 0x68
mov byte [ebp - 3], 0
mov al, 0xb
mov byte [ebp - 8], ah
mov cl, al
mov byte [ebp - 3], 0
mov dl, 0x55
mov bl, 0x59
xor cl, ah
xor dl, ah
xor al, ah
mov byte [ebp - 6], cl
xor bl, ah
mov byte [ebp - 5], dl
mov byte [ebp - 7], al
lea edx, [ebp - 7]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
push dword [edi + esi*4]
call fcn.0040d3b0
mov ebx, eax
add esp, 4
lea eax, [ebp - 0x44]
cmp eax, ebx
je 0x405485
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40546a
inc ecx
push ecx
push dword [ebp - 0x44]
mov ecx, eax
call fcn.004079e0
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00407820
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40549a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004079e0
cmp dword [ebp - 0x34], 0
ja 0x4054bf
mov edx, dword [ebp - 0x4c]
lea ecx, [esi + 1]
sub edx, edi
sar edx, 2
cmp edx, 1
cmovbe ecx, esi
lea eax, [ecx - 1]
cmp edx, eax
sbb esi, esi
and esi, ecx
jmp 0x405413
push 3
push 0
push 0x43b514
lea ecx, [ebp - 0x44]
call fcn.004072c0
cmp eax, 0xffffffff
jne 0x40550a
push 3
push 0
push 0x43b518
lea ecx, [ebp - 0x44]
call fcn.004072c0
cmp eax, 0xffffffff
jne 0x40550a
mov edx, dword [ebp - 0x4c]
lea ecx, [esi + 1]
sub edx, edi
sar edx, 2
cmp edx, 1
cmovbe ecx, esi
lea eax, [ecx - 1]
cmp edx, eax
sbb esi, esi
and esi, ecx
jmp 0x405413
mov bl, 0x34
mov byte [ebp - 3], 0
mov dl, 8
mov byte [ebp - 7], bl
mov al, 0x57
mov byte [ebp - 3], 0
mov cl, 0xa
xor dl, bl
xor al, bl
mov byte [ebp - 6], dl
xor cl, bl
mov byte [ebp - 5], al
mov byte [ebp - 4], cl
test dl, dl
jne 0x405534
xor ecx, ecx
jmp 0x405549
lea ecx, [ebp - 6]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405540
sub ecx, edx
push ecx
push 0
lea eax, [ebp - 6]
push eax
lea ecx, [ebp - 0x44]
call fcn.004072c0
mov esi, eax
mov byte [ebp - 3], 0
mov al, 0x5e
mov byte [ebp - 3], 0
mov bl, 0x62
mov byte [ebp - 7], al
mov cl, 0x3a
mov dl, 0x60
xor bl, al
xor cl, al
xor dl, al
mov byte [ebp - 6], bl
mov byte [ebp - 5], cl
mov byte [ebp - 4], dl
test bl, bl
jne 0x405584
xor ecx, ecx
jmp 0x405599
lea ecx, [ebp - 6]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405590
sub ecx, edx
push ecx
push 0
lea eax, [ebp - 6]
push eax
lea ecx, [ebp - 0x44]
call fcn.004072c0
cmp esi, 0xffffffff
je 0x405a6f
cmp eax, 0xffffffff
je 0x405a6f
cmp esi, eax
ja 0x405a6f
add esi, 3
mov dword [ebp - 0x54], 0xf
sub eax, esi
mov dword [ebp - 0x58], 0
push eax
push esi
lea eax, [ebp - 0x44]
mov byte [ebp - 0x68], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.004074c0
movaps xmm0, xmmword [0x43b960]
xor ecx, ecx
movups xmmword [ebp - 0xba], xmm0
mov word [ebp - 0x9a], 0x16
movaps xmm0, xmmword [0x43ba70]
movups xmmword [ebp - 0xaa], xmm0
nop
mov al, byte [ebp - 0xba]
xor byte [ebp + ecx - 0xb9], al
inc ecx
cmp ecx, 0x20
jb 0x405610
cmp byte [ebp - 0xb9], 0
mov byte [ebp - 0x99], 0
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
jne 0x405652
xor ecx, ecx
jmp 0x405669
lea ecx, [ebp - 0xb9]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405660
sub ecx, edx
push ecx
lea eax, [ebp - 0xb9]
push eax
lea ecx, [ebp - 0x98]
call fcn.004073c0
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x28]
call fcn.004090f0
push eax
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0xd4]
call fcn.00409440
mov esi, eax
add esp, 4
lea eax, [ebp - 0x68]
cmp eax, esi
je 0x4056d4
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x4056b9
inc ecx
push ecx
push dword [ebp - 0x68]
mov ecx, eax
call fcn.004079e0
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.00407820
mov eax, dword [ebp - 0xc0]
cmp eax, 0x10
jb 0x4056f2
inc eax
lea ecx, [ebp - 0xd4]
push eax
push dword [ebp - 0xd4]
call fcn.004079e0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
cmp eax, 0x10
jb 0x405722
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004079e0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x405752
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.004079e0
mov cl, 0x43
mov byte [ebp - 9], 0
mov al, 0x3f
mov byte [ebp - 0xb], cl
xor al, cl
mov byte [ebp - 9], 0
mov byte [ebp - 0xa], al
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
jne 0x40577e
xor ecx, ecx
jmp 0x40578d
lea ecx, [ebp - 0xa]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405784
sub ecx, edx
push ecx
lea eax, [ebp - 0xa]
push eax
lea ecx, [ebp - 0x80]
call fcn.004073c0
push 0x104
xor edi, edi
lea eax, [ebp - 0x3f0]
push edi
push eax
mov bl, 0x30
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x4f8]
push 0x104
push edi
push eax
call fcn.00415790
add esp, 0xc
nop dword [eax + eax]
push dword [ebp - 0x70]
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
push 0
cmovae eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x68]
push eax
call fcn.004072c0
mov esi, eax
cmp esi, 0xffffffff
je 0x4058a5
mov ecx, edi
sub ecx, 0
je 0x40586e
sub ecx, 1
je 0x40583b
sub ecx, 1
jne 0x40588f
push esi
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.00406c10
cmp dword [eax + 0x14], 0x10
jb 0x40581f
mov eax, dword [eax]
push eax
push 0x43b564
lea eax, [ebp - 0x4f8]
push 0x104
push eax
call fcn.00401070
add esp, 0x10
jmp 0x405887
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.00406c10
cmp dword [eax + 0x14], 0x10
jb 0x405852
mov eax, dword [eax]
push eax
push 0x43b564
lea eax, [ebp - 0x3f0]
push 0x104
push eax
call fcn.00401070
add esp, 0x10
jmp 0x405887
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.00406c10
cmp dword [eax + 0x14], 0x10
jb 0x405885
mov eax, dword [eax]
mov bl, byte [eax]
lea ecx, [ebp - 0x28]
call fcn.00406d90
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x68]
add eax, esi
inc edi
push eax
push 0
call fcn.00406cf0
jmp 0x4057d0
push 0x104
lea eax, [ebp - 0x2e8]
push 0
push eax
call fcn.00415790
add esp, 0xc
lea eax, [ebp - 0x2e8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x1e0]
push 0
push eax
call fcn.00415790
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dl, bl
call fcn.00404ab0
cmp dword [eax + 0x14], 0x10
jb 0x4058f7
mov eax, dword [eax]
lea ecx, [ebp - 0x3f0]
push ecx
push eax
push str._s_s
lea eax, [ebp - 0x1e0]
push 0x104
push eax
call fcn.00401070
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00406d90
push 0
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405944
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405a3a
lea ecx, [ebp - 0x1e0]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405950
mov esi, 0x103
sub ecx, edx
mov eax, esi
sub eax, ecx
push eax
lea eax, [ebp - 0x1e0]
push 0x43b51c
push eax
call fcn.00419450
lea ecx, [ebp - 0x1e0]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405980
sub ecx, edx
lea eax, [ebp - 0x4f8]
sub esi, ecx
push esi
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.00419450
add esp, 0xc
lea eax, [ebp - 0x1e0]
lea ecx, [ebp - 0x28]
push eax
call fcn.00406eb0
sub esp, 0x18
lea eax, [ebp - 0x1e0]
mov ecx, esp
push eax
call fcn.00406eb0
sub esp, 0x18
lea edx, [ebp - 0x28]
mov ecx, esp
call fcn.0040f370
call fcn.00404d60
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00406d90
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.00413d30
add esp, 8
test eax, eax
jne 0x405a3a
push eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x405a3a
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406eb0
lea ecx, [ebp - 0x28]
call fcn.00405ac0
test eax, eax
lea ecx, [ebp - 0x28]
sete bl
call fcn.00406d90
test bl, bl
jne 0x405ab0
lea ecx, [ebp - 0x80]
call fcn.00406d90
lea ecx, [ebp - 0x68]
call fcn.00406d90
lea ecx, [ebp - 0x44]
call fcn.00406d90
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x405aa9
mov eax, dword [ebp - 0x48]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00407890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x405a84
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004079e0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
test edi, edi
je 0x405aa9
mov eax, dword [ebp - 0x48]
sub eax, edi
sar eax, 2
push eax
push edi
call fcn.00407890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call fcn.00417d89
int3