Function at 0x416954
Capabilities:
Encode data using xor
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x18
add esp, 0xfffff004
push eax
dec eax
jne 0x41695d
mov eax, dword [ebp - 4]
add esp, 0xfffff9b0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18654], ebx
mov dword [ebp - 0x18650], ebx
mov dword [ebp - 0x1864c], ebx
mov dword [ebp - 0x18648], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404ba0
xor eax, eax
push ebp
push 0x416d7f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea ebx, [ebp - 0x244]
lea edx, [ebp - 0x8644]
mov eax, 0x43f408
mov ecx, 0x10
call fcn.00402888
lea eax, [ebp - 0x14]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x416d38
lea eax, [ebp - 0x18]
push eax
push 0x200
push ebx
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x416d0f
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], 0x200
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebx]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
test eax, eax
je 0x416cef
mov ebx, 0xba0da71d
xor ecx, ecx
jmp 0x416ae0
mov eax, ecx
and eax, 3
mov esi, eax
shl esi, 2
xor eax, eax
mov al, byte [ebp + esi - 0x8641]
shl eax, 0x18
xor edx, edx
mov dl, byte [ebp + esi - 0x8642]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [ebp + esi - 0x8643]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebp + esi - 0x8644]
add eax, edx
xor edx, edx
mov dl, byte [ebp + ecx - 0x444]
imul edx, ebx
xor eax, edx
mov edx, eax
and edx, 0xff000000
shr edx, 0x18
mov byte [ebp + esi - 0x8641], dl
mov edx, eax
and edx, 0xff0000
shr edx, 0x10
mov byte [ebp + esi - 0x8642], dl
mov edx, eax
and edx, 0xff00
shr edx, 8
mov byte [ebp + esi - 0x8643], dl
and al, 0xff
mov byte [ebp + esi - 0x8644], al
imul eax, ebx, 0xbc8f
mov ebx, eax
inc ecx
mov eax, dword [ebp - 0x1c]
dec eax
cmp ecx, eax
jbe 0x416a4d
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jb 0x416ba1
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x644]
mov dword [ebp - 0x44], eax
mov eax, ecx
and eax, 3
mov esi, eax
shl esi, 2
xor eax, eax
mov al, byte [ebp + esi - 0x8641]
shl eax, 0x18
xor edx, edx
mov dl, byte [ebp + esi - 0x8642]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [ebp + esi - 0x8643]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebp + esi - 0x8644]
add eax, edx
mov edx, dword [ebp - 0x44]
movzx edx, byte [edx]
imul edx, ebx
xor eax, edx
mov edx, eax
and edx, 0xff000000
shr edx, 0x18
mov byte [ebp + esi - 0x8641], dl
mov edx, eax
and edx, 0xff0000
shr edx, 0x10
mov byte [ebp + esi - 0x8642], dl
mov edx, eax
and edx, 0xff00
shr edx, 8
mov byte [ebp + esi - 0x8643], dl
and al, 0xff
mov byte [ebp + esi - 0x8644], al
imul eax, ebx, 0xbc8f
mov ebx, eax
inc ecx
inc dword [ebp - 0x44]
dec dword [ebp - 0x40]
jne 0x416b05
mov al, byte [ebp - 0x8644]
mov byte [ebp - 0x10644], al
mov al, byte [ebp - 0x8643]
mov byte [ebp - 0x10643], al
mov al, byte [ebp - 0x8642]
mov byte [ebp - 0x10642], al
mov al, byte [ebp - 0x8641]
mov byte [ebp - 0x10641], al
or byte [ebp - 0x10644], 1
xor eax, eax
mov al, byte [ebp - 0x10641]
mov ebx, eax
shl ebx, 0x18
xor eax, eax
mov al, byte [ebp - 0x10642]
shl eax, 0x10
add ebx, eax
xor eax, eax
mov al, byte [ebp - 0x10643]
shl eax, 8
add ebx, eax
xor eax, eax
mov al, byte [ebp - 0x10644]
add ebx, eax
lea eax, [ebp - 8]
call fcn.00404c08
lea esi, [eax + 4]
lea eax, [ebp - 8]
call fcn.00404c08
lea edi, [eax + 5]
xor ecx, ecx
cmp ecx, dword [ebp - 0xc]
jae 0x416c69
xor eax, eax
mov al, byte [esi + ecx]
dec eax
shl eax, 4
xor edx, edx
mov dl, byte [edi + ecx]
sub edx, 0x21
or eax, edx
cdq
push edx
push eax
mov eax, ebx
and eax, 0xffff
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov edx, ecx
shr edx, 1
mov byte [ebp + edx - 0x18644], al
imul eax, ebx, 0x10ff5
mov ebx, eax
add ecx, 2
cmp ecx, dword [ebp - 0xc]
jb 0x416c26
mov dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x8644]
mov dword [ebp - 0x30], eax
shr ecx, 1
sub ecx, 2
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x18644]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0
push 0
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.crypt32.dll_CryptUnprotectData
test eax, eax
je 0x416ccf
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
call fcn.004048e8
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
call fcn.00404ce0
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_LocalFree_1
mov dword [ebp - 0x10], 1
jmp 0x416d2d
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x18648]
call fcn.0040b2e8
mov edx, dword [ebp - 0x18648]
mov eax, dword [ebp - 4]
call fcn.00404744
jmp 0x416d2d
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x1864c]
call fcn.0040b2e8
mov edx, dword [ebp - 0x1864c]
mov eax, dword [ebp - 4]
call fcn.00404744
jmp 0x416d2d
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x18650]
call fcn.0040b2e8
mov edx, dword [ebp - 0x18650]
mov eax, dword [ebp - 4]
call fcn.00404744
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x416d56
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x18654]
call fcn.0040b2e8
mov edx, dword [ebp - 0x18654]
mov eax, dword [ebp - 4]
call fcn.00404744
mov ebx, dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416d86
lea eax, [ebp - 0x18654]
mov edx, 4
call fcn.00404714
lea eax, [ebp - 8]
call fcn.004046f0
ret