Function at 0x433250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x514da0
push 0x4a8910
mov eax, dword fs:[0]
push eax
sub esp, 0x714
mov eax, dword [0x51eee0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x71c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x720], eax
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x70c], 0
mov dword [ebp - 0x704], 0
xor esi, esi
mov dword [ebp - 0x710], esi
mov dword [ebp - 0x700], esi
mov dword [ebp - 0x708], 0xffffffff
mov dword [ebp - 0x718], 0x104
mov dword [ebp - 0x714], 0x104
cmp dword [0x520f30], esi
jne 0x4333c5
call fcn.00433620
test al, al
jne 0x433383
xor edi, edi
mov edx, dword [0x520340]
lea esp, [esp]
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, edi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
add edx, eax
inc edi
cmp edi, 0x100
jl 0x433300
mov dword [0x520340], edx
push 0x4d95fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4333a3
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x520f30], eax
mov eax, dword [0x520340]
mov ecx, eax
imul ecx, eax
imul eax, ecx
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 6
jne 0x4333c5
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 4], esi
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x708], ebx
mov eax, dword [0x520f30]
test eax, eax
je 0x4334cd
lea ecx, [ebp - 0x704]
push ecx
push 8
push ebx
call eax
test eax, eax
je 0x4334cd
lea eax, [ebp - 0x700]
push eax
push 0
push 0
push 1
push dword [ebp - 0x704]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
test eax, eax
jne 0x4334cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4334cd
push dword [ebp - 0x700]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x710], esi
test esi, esi
je 0x4334cd
lea eax, [ebp - 0x700]
push eax
push dword [ebp - 0x700]
push esi
push 1
push dword [ebp - 0x704]
call edi
test eax, eax
je 0x4334cd
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x718]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x714]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x4334cd
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x71c]
call fcn.00402b60
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x720]
call fcn.00402b60
mov dword [ebp - 0x70c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00433507
mov eax, dword [ebp - 0x70c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret