Function at 0x4a91e0
Capabilities:
Encrypt data using rc4 ksa
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x525f46
mov eax, dword fs:[0]
push eax
sub esp, 0x750
mov eax, dword [0x557b14]
xor eax, esp
mov dword [esp + 0x748], eax
push ebx
push esi
push edi
mov eax, dword [0x557b14]
xor eax, esp
push eax
lea eax, [esp + 0x760]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
xor ecx, ecx
movzx edx, word [ecx + str.SoftwareCodeminion]
mov word [esp + ecx + 0x2f4], dx
add ecx, 2
test dx, dx
jne 0x4a9231
lea edi, [esp + 0x2f4]
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a9252
mov ebx, dword [0x543520]
mov dword [edi], ebx
mov edx, eax
jmp 0x4a9270
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9270
lea edi, [esp + 0x2f4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a9290
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a9290
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2f4]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a92b6
mov eax, dword [esp + 0x1c]
mov dword [edi], ebx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a92d0
lea edi, [esp + 0x2f4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4a92f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4a92f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x4c]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x5430d0
push ebx
lea edx, [esp + 0x310]
push edx
push SysReAllocString
call dword [0x57642c]
cmp eax, ebx
jne 0x4a9383
mov eax, dword [ebp + 0xc]
push eax
lea edi, [esp + 0x70]
call fcn.004a86f0
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a9351
sub eax, edx
mov edx, dword [esp + 0x2c]
add eax, 1
push eax
lea ecx, [esp + 0x70]
push ecx
push 1
push ebx
push 0x543574
push edx
call dword [0x57643c]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.shell32.dll
call dword [0x5764bc]
push 0x104
lea ecx, [esp + 0xf0]
push ecx
mov esi, eax
call dword [0x5764b0]
cmp esi, ebx
je 0x4a93cd
push str.SHGetSpecialFolderPathW
push esi
call dword [0x5764a0]
cmp eax, ebx
je 0x4a93c6
push 1
push 0x1a
lea edx, [esp + 0xf4]
push edx
push ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0xec]
add eax, 0xfffffffe
jmp 0x4a93e0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4a93e0
mov ecx, dword [0x5435ac]
mov dx, word [0x5435b0]
mov dword [eax], ecx
mov word [eax + 4], dx
mov eax, dword [esp + 0x20]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9405
lea edi, [esp + 0xec]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9420
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xec]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4a9446
mov ecx, dword [str..dat]
mov edx, dword [0x5435b8]
push ebx
push 6
push 2
push ebx
mov dword [eax], ecx
mov cx, word [0x5435bc]
push ebx
mov dword [eax + 4], edx
push 0x40000000
lea edx, [esp + 0x104]
push edx
mov word [eax + 8], cx
call dword [0x576458]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, ebx
je 0x4a9598
mov eax, dword [esp + 0x18]
movzx ecx, word [eax]
add ecx, 0xf
test ecx, ecx
jle 0x4a94d9
call fcn.004e0031
cdq
mov ecx, 0xff
idiv ecx
push 0
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], dl
lea edx, [esp + 0x24]
push edx
push 1
push eax
push esi
call edi
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ebx, 1
add edx, 0xf
cmp ebx, edx
jl 0x4a94a6
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [ebp + 0xc]
push ecx
push esi
call edi
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 2]
add eax, 0x19
xor ebx, ebx
test eax, eax
jle 0x4a9534
lea ebx, [ebx]
call fcn.004e0031
cdq
mov ecx, 0xff
idiv ecx
push 0
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], dl
lea edx, [esp + 0x24]
push edx
push 1
push eax
push esi
call edi
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx + 2]
add ebx, 1
add edx, 0x19
cmp ebx, edx
jl 0x4a9500
mov eax, 1
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov word [esp + 0x38], 0x7d2
mov word [esp + 0x3a], 7
mov word [esp + 0x40], 0xe
mov word [esp + 0x42], 0xd
mov word [esp + 0x44], 0x1e
mov word [esp + 0x46], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push 4
push str.c:__
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
call fcn.004a7a90
push 0x104
lea edx, [esp + 0x550]
push edx
mov dword [esp + 0x770], ebx
call dword [0x5764b0]
test eax, eax
je 0x4a9644
lea eax, [esp + 0x54c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a95e1
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x550]
push eax
lea ecx, [esp + 0x58]
call fcn.004a7a90
push 3
push ebx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004aa930
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x774], 1
call fcn.004a79a0
mov byte [esp + 0x768], 0
cmp dword [esp + 0x48], 8
jb 0x4a9644
mov edx, dword [esp + 0x34]
push edx
call fcn.004e001f
add esp, 4
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9650
sub eax, edx
mov edx, dword [esp + 0x54]
sar eax, 1
cmp dword [esp + 0x68], 8
jae 0x4a966e
lea edx, [esp + 0x54]
movzx ecx, word [esi + 4]
lea eax, [esi + eax*2 - 8]
push eax
movzx eax, word [esi]
push eax
push ecx
push ecx
push edx
push str._s_c_c_c__s.sys
lea edx, [esp + 0x104]
call fcn.004a0e70
lea ecx, [esp + 0x104]
push ecx
call fcn.005211eb
add esp, 0x1c
push ebx
push 6
push 2
push ebx
push ebx
push 0x40000000
lea edx, [esp + 0x104]
push edx
call dword [0x576458]
mov esi, eax
cmp esi, ebx
je 0x4a97bb
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
add ecx, 0xa
test ecx, ecx
jle 0x4a9706
call fcn.004e0031
cdq
mov ecx, 0xff
idiv ecx
push 0
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], dl
lea edx, [esp + 0x20]
push edx
push 1
push eax
push esi
call edi
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx + 2]
add ebx, 1
add edx, 0xa
cmp ebx, edx
jl 0x4a96d2
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [ebp + 0xc]
push ecx
push esi
call edi
mov edx, dword [esp + 0x18]
movzx eax, word [edx]
add eax, 5
xor ebx, ebx
test eax, eax
jle 0x4a9759
call fcn.004e0031
cdq
mov ecx, 0xff
idiv ecx
push 0
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], dl
lea edx, [esp + 0x20]
push edx
push 1
push eax
push esi
call edi
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
add ebx, 1
add edx, 5
cmp ebx, edx
jl 0x4a9726
mov eax, 1
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov word [esp + 0x38], 0x7d2
mov word [esp + 0x3a], 7
mov word [esp + 0x40], 0xe
mov word [esp + 0x42], 0xd
mov word [esp + 0x44], 0x1e
mov word [esp + 0x46], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
mov ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x68], 8
jb 0x4a97cf
mov edx, dword [esp + 0x54]
push edx
call fcn.004e001f
add esp, 4
mov ecx, dword [esp + 0x760]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x748]
xor ecx, esp
call fcn.004e0010
mov esp, ebp
pop ebp
ret