Function at 0x40a6b0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi], 0x4108b0
call fcn.0040a680
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov al, 0x5c
push 0
push 0
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x33], al
push 0
lea ebx, [esi + 8]
push 0
lea eax, [esp + 0x24]
mov cl, 0x49
mov dl, 0x57
push 0
push eax
mov dword [ebx], 0
mov byte [esp + 0x2e], 0x2e
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], 0x44
mov byte [esp + 0x36], 0
mov byte [esp + 0x30], 0x53
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0x56
mov byte [esp + 0x42], 0x2e
mov byte [esp + 0x48], 0x43
mov byte [esp + 0x49], 0x45
mov byte [esp + 0x4a], 0
mov byte [esp + 0x44], dl
mov byte [esp + 0x45], cl
mov byte [esp + 0x46], 0x4e
mov byte [esp + 0x47], cl
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0xffffffff
jne 0x40a771
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
call edi
cmp eax, 0xffffffff
je 0x40a77c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
call ebp
mov al, 0x7b
xor edx, edx
mov byte [esp + 0x27], al
mov byte [esp + 0x29], al
mov al, 0xe6
mov word [esp + 0x31], dx
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov al, 0xe1
mov byte [esp + 0x24], 0x75
mov byte [esp + 0x16], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x25], 0x70
mov byte [esp + 0x26], 0x7e
mov byte [esp + 0x28], 0x73
mov byte [esp + 0x2a], 0x43
mov byte [esp + 0x2b], 0x43
mov byte [esp + 0x2c], 0x40
mov byte [esp + 0x2d], 0x77
mov byte [esp + 0x2e], 0x80
mov byte [esp + 0x2f], 0x81
mov byte [esp + 0x30], 0x16
mov byte [esp + 0x33], dl
mov byte [esp + 0x10], 0xc9
mov byte [esp + 0x11], 0xf2
mov byte [esp + 0x12], 0xc6
mov byte [esp + 0x15], 0xf0
mov byte [esp + 0x17], 0xe0
mov byte [esp + 0x18], 0xed
mov byte [esp + 0x19], 0xfb
mov byte [esp + 0x1a], 0xda
mov byte [esp + 0x1b], 0xf9
mov byte [esp + 0x1c], 0xe9
mov byte [esp + 0x1d], 0xfe
mov byte [esp + 0x1e], 0xeb
mov byte [esp + 0x20], 0xe4
mov byte [esp + 0x21], 0x91
xor eax, eax
mov dl, byte [esp + eax + 0x24]
mov cl, 0xf6
sub cl, al
add dl, cl
mov byte [esp + eax + 0x24], dl
inc eax
cmp eax, 0xc
jle 0x40a824
xor eax, eax
mov cl, byte [esp + eax + 0x10]
mov dl, al
add dl, 0x80
xor cl, dl
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x12
jl 0x40a83a
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a88b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a884
call eax
cmp eax, 1
jne 0x40a884
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call ebp
jmp 0x40a88b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x24], 0x5a4a7a66
mov dword [esp + 0x28], 0x64526a53
mov dword [esp + 0x2c], 0x724d6d7f
mov dword [esp + 0x30], 0x1739294a
xor eax, eax
mov edi, dword [esp + eax*4 + 0x24]
xor edi, 0x17391832
mov dword [esp + eax*4 + 0x24], edi
inc eax
cmp eax, 4
jb 0x40a8ad
lea edx, [esp + 0x24]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40a8df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
call ebp
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
push ebx
push 0x2001f
push 0
push edi
push ebp
mov dword [esi + 0x110], 0x414f08
mov dword [esi + 0x114], 0x4166cc
mov dword [esi + 0x118], 0x4166c8
mov byte [esi + 0x120], 1
mov byte [esi + 4], 0
mov byte [esi + 0x121], 0
mov dword [esi + 0x11c], 0x1e
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a961
push 0
push ebx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40a961
push ebx
push 0x20019
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8