Function at 0x4d5cb0
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Encode data using xor
Encrypt or decrypt via wincrypt
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push edi
mov edi, ecx
mov byte [ebp - 0x38d], al
mov dword [ebp - 0x38c], edi
mov dword [ebp - 0x58], 0x206
mov dword [ebp - 0x54], 0xa400
cmp dword [edi], 0xffffffff
mov dword [ebp - 0x50], 0x31415352
mov dword [ebp - 0x4c], 0x200
mov dword [ebp - 0x48], 0x10001
mov dword [ebp - 0x44], 0x9ab0c891
mov dword [ebp - 0x40], 0x73d2392c
mov dword [ebp - 0x3c], 0x156f8f5e
mov dword [ebp - 0x38], 0xbd4fe72a
mov dword [ebp - 0x34], 0x8d4eff66
mov dword [ebp - 0x30], 0x8dc0b38c
mov dword [ebp - 0x2c], 0xdcb2f498
mov dword [ebp - 0x28], 0xbc514381
mov dword [ebp - 0x24], 0x5074d6f3
mov dword [ebp - 0x20], 0xa887397f
mov dword [ebp - 0x1c], 0x36065c1b
mov dword [ebp - 0x18], 0xd8a80847
mov dword [ebp - 0x14], 0x6dfdad63
mov dword [ebp - 0x10], 0xf094a4b5
mov dword [ebp - 0xc], 0xc5eadfe0
mov dword [ebp - 8], 0xd2dc73f4
je 0x4d5d80
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [edi + 0x143c], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x1440], eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d5da0
sub ecx, edx
cmp ecx, 3
jbe 0x4d5e06
cmp byte [esi + 1], 0x3a
je 0x4d5e06
push 0x104
lea eax, [ebp - 0x284]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x284]
push 0x5c
push eax
call fcn.00527400
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4d5def
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi], al
test al, al
jne 0x4d5de1
jmp 0x4d5e1d
lea ecx, [ebp - 0x284]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4d5df7
jmp 0x4d5e1d
lea ecx, [ebp - 0x284]
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4d5e10
push ebx
lea eax, [ebp - 0x284]
push 0x2e
push eax
call fcn.00527400
push 0x104
push 0
mov byte [eax], 0
lea eax, [ebp - 0x17c]
push eax
call fcn.00527170
push 0x104
lea eax, [ebp - 0x388]
push 0
push eax
call fcn.00527170
add esp, 0x20
mov ecx, edi
call fcn.004d1fd0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
or esi, 0xffffffff
mov dword [ebp - 0x398], eax
nop
lea eax, [ebp - 0x284]
cmp esi, 0xffffffff
jne 0x4d5e92
push eax
lea eax, [ebp - 0x17c]
push str._s.erl
push eax
call fcn.0041f000
add esp, 0xc
jmp 0x4d5ea8
push esi
push eax
lea eax, [ebp - 0x17c]
push str._s_d.erl
push eax
call fcn.0041f000
add esp, 0x10
lea eax, [ebp - 0x17c]
push 0
push eax
call fcn.00535b29
add esp, 8
cmp eax, 0xffffffff
jne 0x4d5ec3
cmp esi, 1
jge 0x4d5edb
cmp dword [ebp - 0x398], 0
jne 0x4d5ed5
lea eax, [ebp - 0x17c]
push eax
call ebx
inc esi
cmp esi, 0x63
jle 0x4d5e70
cmp esi, 0xffffffff
jle 0x4d5f82
lea ebx, [esi - 1]
lea eax, [ebp - 0x284]
cmp ebx, 0xffffffff
jne 0x4d5f09
push eax
lea eax, [ebp - 0x17c]
push str._s.erl
push eax
call fcn.0041f000
add esp, 0xc
jmp 0x4d5f1f
push ebx
push eax
lea eax, [ebp - 0x17c]
push str._s_d.erl
push eax
call fcn.0041f000
add esp, 0x10
push esi
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x388]
push str._s_d.erl
push eax
call fcn.0041f000
add esp, 0x10
lea eax, [ebp - 0x388]
push 1
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4d5f77
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, ebx
cmp esi, 0xffffffff
jg 0x4d5ee4
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x17c]
push str._s.erl
push eax
call fcn.0041f000
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x17c]
add esp, 0xc
xor ebx, ebx
cmp byte [ebp - 0x38d], bl
setne bl
push 0
push 0x80
lea ebx, [ebx*2 + 2]
push ebx
push 0
push 5
push 0xc0000000
push eax
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4d5ff2
push 0
push 0x80000080
push ebx
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x17c]
push eax
call esi
mov dword [edi], eax
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x4d600e
pop ebx
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp - 0x38d], 0
je 0x4d6024
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esi, [edi + 0x1020]
push esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [edi + 0x102e]
lea ebx, [edi + 0x20]
push eax
movzx eax, word [edi + 0x102c]
push eax
movzx eax, word [edi + 0x102a]
push eax
movzx eax, word [edi + 0x1028]
push eax
movzx eax, word [edi + 0x1026]
push eax
movzx eax, word [edi + 0x1022]
push eax
movzx eax, word [esi]
push eax
push 0x57c038
call fcn.004da340
add esp, 4
push eax
push ebx
call fcn.0041f000
mov edx, ebx
add esp, 0x24
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4d6084
sub edx, ecx
xor eax, eax
cmp dword [edi + 0x1440], 0x3e7
cmove edx, eax
mov dword [ebp - 0x398], edx
cmp dword [edi + 0x143c], eax
je 0x4d60df
test edx, edx
jle 0x4d6346
mov ecx, ebx
mov esi, edx
nop word [eax + eax]
add dword [edi + 0x143c], 2
lea ecx, [ecx + 1]
mov eax, dword [edi + 0x143c]
add al, 0x43
xor byte [ecx - 1], al
sub esi, 1
jne 0x4d60c0
jmp 0x4d6346
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, eax
mov eax, dword [ebp - 0x38c]
movzx ecx, word [eax + 0x1022]
movzx esi, word [eax + 0x1026]
movzx edx, word [eax + 0x102e]
imul esi, ecx
movzx ecx, word [eax + 0x1020]
movzx eax, word [eax + 0x102c]
add eax, edx
imul esi, ecx
mov ecx, dword [ebp - 0x38c]
movzx ecx, word [ecx + 0x102a]
imul esi, edx
add ecx, eax
add ecx, edi
xor eax, eax
mov edi, dword [ebp - 0x38c]
xor edx, edx
inc esi
imul esi, ecx
mov dword [edi + 0x1030], esi
mov esi, 0xa
mov word [edi + 0x1032], ax
mov ecx, dword [edi + 0x1030]
or ecx, 0xfc000000
mov eax, ecx
div esi
xor edx, 0x55
shl edx, 0x10
or edx, ecx
mov dword [edi + 0x1030], edx
call ebx
push eax
call fcn.005328c0
add esp, 4
xor esi, esi
nop dword [eax]
call fcn.0053289f
and eax, 0x800000ff
jns 0x4d6193
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + esi - 0x68], al
inc esi
cmp esi, 0x10
jl 0x4d6180
lea eax, [ebp - 0x68]
push eax
lea esi, [edi + 0x1034]
push 0x10
push esi
call fcn.004dc760
add esp, 0xc
mov dword [ebp - 0x39c], 0
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x394], 0
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4d632c
lea eax, [ebp - 0x394]
push eax
push 0
push 0
push 0x54
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x39c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4d631e
push 0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0
push eax
push 0
push 0
push 1
push 0
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, dword [ebp - 0x38c]
test ebx, ebx
je 0x4d62c9
push ebx
call fcn.005238ab
movups xmm0, xmmword [ebp - 0x68]
add esp, 4
mov dword [ebp - 0x38c], 0x10
mov esi, eax
lea eax, [ebp - 0x38c]
push ebx
push eax
push esi
push 0
push 1
movups xmmword [esi], xmm0
xor byte [esi], 0x23
push 0
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4d62b8
push 0
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x3a0], 0xccfc00
push eax
push 4
lea eax, [ebp - 0x3a0]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x38c]
push eax
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.005238b4
add esp, 4
lea esi, [edi + 0x1034]
jmp 0x4d6312
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x38c]
push 0
push eax
push 4
lea eax, [ebp - 0x3a0]
mov dword [ebp - 0x3a0], 0xccfd00
push eax
push dword [edi]
call ebx
movups xmm1, xmmword [ebp - 0x68]
push 0
movups xmm0, xmmword [ebp - 0x43]
lea eax, [ebp - 0x38c]
push eax
push 0x10
lea eax, [ebp - 0x78]
pxor xmm1, xmm0
push eax
push dword [edi]
movups xmmword [ebp - 0x78], xmm1
call ebx
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x39c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ebx, [edi + 0x20]
push ebx
push ebx
push dword [ebp - 0x398]
push esi
call fcn.004dc2d0
mov edx, dword [ebp - 0x398]
add esp, 0x10
push 0
lea eax, [ebp - 0x3a4]
push eax
push edx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.0052388c
mov esp, ebp
pop ebp
ret 0x10