Function at 0x459390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push reloc.kernel32.dll_FileTimeToLocalFileTime
mov eax, dword fs:[0]
push eax
sub esp, 0xa78
mov eax, dword [0x52bd60]
xor eax, esp
mov dword [esp + 0xa70], eax
push ebx
push esi
push edi
mov eax, dword [0x52bd60]
xor eax, esp
push eax
lea eax, [esp + 0xa88]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
mov dword [esp + 0xa9c], 0
call fcn.00427880
test eax, eax
je 0x459651
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.004340a0
mov byte [esp + 0xa90], 1
mov esi, dword [esp + 0x18]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
je 0x459602
mov edi, dword [0x530408]
mov eax, edi
imul eax, edi
imul eax, edi
cdq
mov ecx, reloc.kernel32.dll_CreateFileMappingW
idiv ecx
cmp edx, 0xb
jne 0x4594f3
xor edx, edx
lea esp, [esp]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, edi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
inc edx
add edi, eax
cmp edx, 0x100
jl 0x459470
mov dword [0x530408], edi
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x459647
cmp eax, ecx
jg 0x459647
cmp word [esi + eax*2], 0x5c
je 0x459524
push 1
push reloc.kernel32.dll_GetCurrentDirectoryA
lea ecx, [esp + 0x20]
call fcn.004270f0
mov esi, dword [esp + 0x18]
push str.Mozilla_Firefox_firefox.exe
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.00426ca0
add esp, 4
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xa94], 2
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
je 0x4595dd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404770
mov edi, dword [esp + 0x14]
mov byte [esp + 0xa90], 1
mov edx, dword [esp + 0x10]
add eax, 0x10
add edx, 0xfffffff0
or ebx, 0xffffffff
mov dword [edi], eax
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4595a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [esp + 0xa90], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4595c7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4595d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x45973d
mov byte [esp + 0xa90], 1
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459602
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov edi, dword [esp + 0x14]
push 0x512960
mov ecx, edi
call fcn.004036e0
add esi, 0xfffffff0
mov byte [esp + 0xa90], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x459631
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4595d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x45973d
push 0x80070057
call fcn.0040c6f0
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x284], ax
lea eax, [esp + 0x286]
push eax
call fcn.004b9070
mov eax, dword [0x52b6d0]
add esp, 0xc
mov ecx, 0x52b6d0
mov dword [esp + 0x10], 0x400
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x280]
push eax
push 0x512960
lea ecx, [esp + 0x28]
mov byte [esp + 0xa9c], 3
call fcn.00433860
test eax, eax
jne 0x4596e5
lea ecx, [esp + 0x27c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4596c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x1c]
call fcn.004046b0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4596fa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x1c], edi
add esi, 0xfffffff0
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00404770
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0xa90], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459730
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
test edi, edi
je 0x45973b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0xa88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa70]
xor ecx, esp
call fcn.004b4591
mov esp, ebp
pop ebp
ret